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.
[08:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: Gowers