QUOTE(PCFredZ @ Sep 17 2005, 08:30 AM)
I read Blizzard's FAQ, and it was supposed to be that way. However, Bolt told me otherwise, and I tested it out. Turns out the triggers execute in the order they're created.
[right][snapback]315708[/snapback][/right]
QUOTE(Veritaserum @ Sep 17 2005, 09:39 AM)
Well then the move up/move down buttons are pretty pointless unless you just wanna make it more organized...
[right][snapback]315737[/snapback][/right]
This only refers to group triggers PCFredz. and the specific order that the allplayers triggers fire with player 1 is dependant on when you create the trigger. However this can be changed.
Take this example:
1. Create a trigger for player 1. (add 2 minerals)
2. Then create a trigger for All Players (subtract 1 mineral for current player)
3. Last create a trigger for player 1 again (set minerals to 4)
If you create those in that order then they will also fire in that order. So you will end up with 4 minerals. In the editor you will see under player 1. Trigger 1 followed by Trigger 3. Trigger 2 will be under all players. Its order is defined but not exactly by the order you it appears in. Trigger 2 will have an imaginary placehold within player 1s triggers. If you don't know what order the triggers were created you can edit the players to uncheck all players and check player 1. You will clearly see the trigger in the middle. Of the other 2.
Now when you have all 3 triggers under player 1 move Trigger 2 down one so it is under trigger 3. Then move the trigger back to all players. When you run trigger 2 will now fire after trigger 3. Leaving you with 3 minerals. (so the triggers no longer fire in the same order they were created)
Some background information:
If you look at my unprotected TimeUp bound you will see a trigger under All players or one of the forces (i forget witch) titled "book mark" or something similer.
When i was creating this map it was necissary for me to put all my obstical triggers before the triggers that exicuted the explotions below them. So if i was to add a new obstical i would first create the trigger under all players. When i move the trigger above the 'book mark' then it jumps up the entire list under the player and puts it above where the bookmark is in the player list. (effectivly moving the trigger up over 200 slots with one click)
So to compair this to our example...
Say you just created your triggers. (you havn't moved any yet)
1. Create a trigger for player 1. (add 2 minerals)
2. Then create a trigger for All Players (subtract 1 mineral for current player)
3. Last create a trigger for player 1 again (set minerals to 4)Then create a 4th trigger for all players (set minerals to 8)
In the all players trigger screen you will see trigger 2 followed by trigger 4. If you use the move trigger to move trigger 4 above trigger 2 it will also jump over trigger 3 in the player 1 section. Making the order (1, 4, 2, 3). However if you take trigger 2 and more it below trigger 4 it will look the exact same but you will have changed the trigger order differantly. You will instead moved trigger 2 after 4 jumping it behind trigger 3 making the order (1, 3, 4, 2)
I refer to this whole mess as the Truth about trigger order. Because mapmakers will have been making maps for years and consider themselfs experts but not actually know the order triggers fire in. Maybe i should make a tutorial called "the truth about trigger order" cause i have tried to inform people of this for a long time without much success.
QUOTE(FatalException @ Sep 17 2005, 11:18 AM)
Well, the answer has already been said, but I'll say it again. A wait action only afects the next action in THAT trigger, so it won't do anything to the next trigger.
[right][snapback]315802[/snapback][/right]
If there is a wait in the following trigger owned by the same player that wait cannot fire until the first one is compleated. So if the second triggers conditions is found to be true right after the first one is is then its wait will be effected by the first. This is refered to as the Wait Block and this is why people have trouble looping music.
Example...
Conditions:
-Always
Acitons:
-Play Wav "30second song"
-Wait 30000
Conditions:
-Always
Actions:
-Display text welcome to...
-wait 500
-Display text "My awsome map!!!
In this example the music trigger (the first one) will start running its wait before the second trigger starts. Considering both of these triggers are owned by the same player this will happen.
When the second trigger fires first it will display "welcome to..."
Next the wait 500 needs to fire but it can't because there can only be one active wait per player at any given time and the first triggers wait is still going. Because of this it will not start until the 30000milli from the music trigger is done then it will wait 500milii making a total of 30500 milli seconds before "My Awsome Map!!!" is displayed.
This is a prime example of how a wait can effect the actions in the next trigger.