• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Map Initialization race conditions?

Status
Not open for further replies.
Level 2
Joined
Aug 22, 2013
Messages
13
How do I know the order in which the triggers will be executed when they share the same event? For instance:

Trigger A: on map intialization, add all heros on the map to udg_GROUP_HEROS.
Trigger B: on map initialization, add spellbook to all units in udg_GROUP_HEROS

Do the triggers execute in the order that I define them? or is it undefined, meaning that I should put all map initialization actions into the same trigger?
 
Level 2
Joined
Aug 22, 2013
Messages
13
it is defined because it is written when you save the game. display the messages multiple times to see what i mean.

Is there any guarantee in the engine that your triggers of the same event type will execute in some defined order? Your statement is not necessarily related to the question; saving the game has little to do with execution order unless the engine enforces some behavior.
 
Status
Not open for further replies.
Top