PDA

View Full Version : Trigger execution order


some_person
06-12-2008, 9:33 PM
Lets say I have a trigger that has a preserve trigger. Below that trigger is another trigger with the same conditions and also has a preserve trigger.
If the conditions are meet, what order will the triggers be executed in?
I know that the top trigger will fire first, but will the preserve trigger cause the top trigger to fire again before the bottom trigger? Or will the top trigger fire, then the bottom trigger fires, and then the top again, then the bottom and so on?

Konn
06-12-2008, 10:04 PM
If its the exact same, then doesnt matter

If they're different they should go one then the other over and over again (not positive)

SilverCrusader
06-12-2008, 10:32 PM
What happens is StarCraft reads it like a list, so first to last, that's the order it executes it in. What preserve trigger does is not execute it time and time again. It does just like it says; it preserves the trigger, or keeps it on the list. When it was checked, it was kept on the list and StarCraft continued reading down the list. When it got to the end it read the list again, and lo and behold the trigger is still on the list, and thus executes the actions again.