Staredit Network

Staredit Network -> UMS Assistance -> Attack System Assistance
Report, edit, etc...Posted by Staredit.Net Essence on 2004-09-08 at 20:36:44
I wasn't going to ask for help but this just pissed me off WAY too much. And I couldn't get it to work.

Basically I'm trying to do the dropship menu. This is what I'm trying to do...

I have an observer as a cursor and a hero, and when I click the attack command on the dropship menu (which is attack) I want the hero to attack where the cursor is once and then stop until I click the attack command again.

The problem is each time I do this it doesn't seem like the switches are working and either it'll A. Keep following the observer (if I have preserve trigger on) or B. Do it the first time and then stop after that.

Does anyone think they can fix this problem or is there a way to do this easily?...sorry to ask for help, today is just not my day, I am so out of it.
Report, edit, etc...Posted by Vindexus on 2004-09-08 at 21:04:01
Could you please post your triggers? It would be alot easier to see what's wrong if we could see the map. The basic idea would just have something like this

Trigger
Players:
¤ Player 1
Conditions:
¤ Curent player brings at least 1 Attack to Dropship Ground
Actions:
¤ center location 1 Attack Target on Observer owned by Current Player at Anywhere
¤ Order all hero owned by current player at anywhere: attack to 1 Attack Target
¤ Run AI Script Enter Transport
Report, edit, etc...Posted by phatdiddy on 2004-09-08 at 21:16:43
Here's a map with a dropship menu I made, take a look at the triggers if you want, maybe they can help.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-09-08 at 21:24:29
Hm...well I tried what you just said but it only works the first time and then it won't work after that. If I add a preserve trigger to that one above it'll keep following the observer.

I've tried several different triggers so I'll post what I remembered trying, this is off the top of my head so I might write them incorrectly...
Trigger 1
Trigger
Conditions:
¤ Bring 1 Attack to dropship area
¤ "Switch 1" is set
Actions:
¤ Set Player 8 to Enemy
¤ Center Location 1 on Observer at Anywhere
¤ Order all heros owned by player 1 to attack at location 1
¤ Clear Switch 1
¤ (preserve trigger)

Trigger 2
Trigger
Conditions:
¤ "switch 1" is cleared
Actions:
¤ Set Player 8 to Ally
¤ set switch 1
¤ (preserve trigger)


The preserve trigger action is in ( ) b/c I tried them with and without these.

Another variation of this is where I had switch 1 set and then wait 1000 milliseconds and then clear switch 1. But these never worked either. These triggers are off the top of my head so if you need me to clarify or something just ask.
Report, edit, etc...Posted by phatdiddy on 2004-09-08 at 21:32:03
Look get rid of the switch and just put the attack unit back in the dropship.

I think what you're doing is not having a dropship location only checked for ground properties, make sure you're doing that.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-09-08 at 21:40:06
my bad...ur a genius...no i'm just stupid but anyways thanks for the help
Next Page (1)