Hey guys, I was wondering : How does the order of the triggers in the list affect the actions and conditions and in wich circumstances?
Well thats my question.
None.
It starts at player 1, at the top of the list going down and then continues to player 2 and so on. Triggers under Forces go to the bottom of the list of the players under that force.
Edit: Oops. I misunderstood. No, it does not matter the order within the trigger unless you have a lot of triggers, like 8000 +, then you can reduce lag by putting the least likely conditions to be met at the top of the list so that starcraft will just skip over the rest of that trigger.
Post has been edited 2 time(s), last time on May 19 2009, 9:36 pm by Morphling.
None.
It starts at player 1, at the top of the list going down and then continues to player 2 and so on. Triggers under Forces go to the bottom of the list of the players under that force.
This. Sort of.
The triggers indeed start at player 1 and run down the list (from top to bottom), then move onto player 2 and so forth (following the same pattern), but that's not how forces work. Force triggers and All Player triggers are mixed with the Player triggers. The order of this mix depends on the trigger ID (first triggers created mix in higher on the list).
None.
So morphling, if I understand, the only diffrence i'l see is if I make a map with a ''GiantAss'' amount of triggers ?
None.
Is it the exact order found in SCMDraft's Text Trigger Editor, from top to bottom?
None.
Is it the exact order found in SCMDraft's Text Trigger Editor, from top to bottom?
Yea, I want to know if this order changes anything to the triggers condition/action. But I think morphling answered my question, unless there is more effects he don't know of or didn't mentioned.
None.
It doesn't change the conditions/actions, but other triggers firing before others can change the status of things before they happen. For example, if you have 2 triggers:
Accumulate atleast 20 gas, bring atleast 1 men to location X: Move all at location X to location Y.
Bring atleast 1 men to location x: Kill all at location X.
This will have it so if you bring someone to the location with 20 or more gas, it will be moved, but 19 or less, it will be killed. If you switch the order, it will always be killed. Generally, just never use forces or all players for triggers where order matters a lot, since it's a pain to deal with.
None.
SDE, BWAPI owner, hacker.
I'm sure that the triggers are run in the same order that they are saved in memory.
For most editors, it will be in the order you created your triggers, regardless of the trigger owner.
I'm sure that the triggers are run in the same order that they are saved in memory.
For most editors, it will be in the order you created your triggers, regardless of the trigger owner.
I am using SCMDraft, will this happen?
None.
SCM Draft gets the triggers right that are placed under the players, however, any triggers that are for multiple players or Forces are in the wrong order, any force trigger creates a trigger for each player, which runs at the same time as the rest of that player's triggers run, but it only runs the trigger for that player, not the rest of the ones the trigger is marked for, it runs the players from 1 to 8.
None.
Alright then, I guess it answers my question. If I get any other problem, I will ask!
None.