Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trigger order in the list.
Trigger order in the list.
May 19 2009, 9:24 pm
By: Dungeon-Master  

May 19 2009, 9:24 pm Dungeon-Master Post #1



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.

May 19 2009, 9:28 pm Morphling Post #2



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.

May 19 2009, 9:31 pm Lethal_Illusion Post #3



Quote from Morphling
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.

May 19 2009, 9:36 pm Dungeon-Master Post #4



So morphling, if I understand, the only diffrence i'l see is if I make a map with a ''GiantAss'' amount of triggers ?



None.

May 19 2009, 9:37 pm Vrael Post #5



Is it the exact order found in SCMDraft's Text Trigger Editor, from top to bottom?



None.

May 19 2009, 9:55 pm Dungeon-Master Post #6



Quote from Vrael
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.

May 19 2009, 10:06 pm fritfrat Post #7



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.

May 19 2009, 10:49 pm Heinermann Post #8

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.




May 19 2009, 11:02 pm Dungeon-Master Post #9



Quote from Heinermann
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.

May 20 2009, 12:51 am Falkoner Post #10



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.

May 20 2009, 1:00 am Dungeon-Master Post #11



Alright then, I guess it answers my question. If I get any other problem, I will ask!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy, NudeRaider