- Joined
- Sep 6, 2013
- Messages
- 6,742
I don't know if this was already mentioned before, but I wanna share the random experience I did.
It is about the order of trigger-evaluation of different leafs, if they have the exactly same event.
I created 2 leafs with a chat event. One of them will display "1", the other one "2", if fired:
Now... but what will be displayed first?
The visual order in which you see leafs in your list (pic above) does nothing say about the in-game evaluation order.
The only thing that really matters is the creation order. The leaf that was created first, also will be fired first in game.
So if you open a random map, you can't know what leaf was created first, and which was just moved around in list. Finaly you can't really say which one will fire first without testing.
This might be helpful for getting the correct order, thanks for Ceday's post:
That's it. Anyway we all know that multiple triggers with same event should be avoided, but it's still good to know I think.
___________________________________
It is about the order of trigger-evaluation of different leafs, if they have the exactly same event.
I created 2 leafs with a chat event. One of them will display "1", the other one "2", if fired:
Now... but what will be displayed first?
The visual order in which you see leafs in your list (pic above) does nothing say about the in-game evaluation order.
The only thing that really matters is the creation order. The leaf that was created first, also will be fired first in game.
So if you open a random map, you can't know what leaf was created first, and which was just moved around in list. Finaly you can't really say which one will fire first without testing.
This might be helpful for getting the correct order, thanks for Ceday's post:
You can determine which trigger created first by reading war3map.j file.
That's it. Anyway we all know that multiple triggers with same event should be avoided, but it's still good to know I think.
___________________________________
Attachments
Last edited: