PDA

View Full Version : About triggers


Shimmer
03-31-2007, 4:28 PM
1)Tell me plz how does position of "Preserve Trigger" action influence on a trigger?
2)Does "Wait" action blocks all other triggers or does it blocks only current trigger?

Thanks.

SilverCrusader
03-31-2007, 5:35 PM
preserve trigger makes the trigger keep firing as long as the conditions are met, if they aren't met than the trigger doesn't fire, but will still be there in case the conditions are met once again.

Normally, a trigger will only run once for each owner. Triggers automatically disable themselves once they run through all of their actions, unless the Preserve Trigger action is present. If you want a trigger to remain in effect throughout the scenario, add the Preserve Trigger action to its action list.

Copyright © 1997 Blizzard Entertainment. All Rights Reserved.

Wait times still, in my opinion, are not fully understood, and things about them are still being discovered. But I'll assume your sticking to the simple stuff, so you don't need to know the super advanced material.

The wait action is used to delay other actions for the specified number of milliseconds. Because it is a blocking action, no other actions in the same trigger and no other blocking actions in other triggers will activate until it is done.

Copyright © 1997 Blizzard Entertainment. All Rights Reserved.

So yes, it does affect other triggers. But only other "blocking actions." The other triggers will still fire regardless.

Ling666
04-09-2007, 9:10 PM
I've noticed that in maps whenever I have a trigger where you need to have a building at a certain place for the trigger to go off and create guys (with preserve trigger) , the trigger keeps going after the building has died. I'm pretty sure it goes off more than once after the building has died too...

Also, try not to have wait be the first action, sometimes when I do that the trigger doesn't work; and after I've only gotten the wait trigger moved down, it starts to work.

Basan
04-10-2007, 6:03 PM
I've noticed that in maps whenever I have a trigger where you need to have a building at a certain place for the trigger to go off and create guys (with preserve trigger) , the trigger keeps going after the building has died. I'm pretty sure it goes off more than once after the building has died too...

Is that trigger's owner more than one player (aka a force)? And is it's building condition set to which player and how (command at location, bring, etc. etc.)?

P.S. - And can we have this moved onto the SC Maps & Mods Depot area, please? ;)

SilverCrusader
04-10-2007, 9:30 PM
the wait trigger is a blocking action, so it would get blocked by other blocking actions, thats why it won't work.

matefkr
04-11-2007, 6:54 PM
But wait trigger could be better then it's currently, whit not too much work on it.

You should use only one trigger with wait action at one time.