• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

triqqer queue order

Status
Not open for further replies.
Level 4
Joined
Feb 22, 2012
Messages
74
I need to know if a trigger that is run by another trigger using "Run trigger (without checking conditions)" action has all of its actions put in the queue immediately, and play BEFORE the rest of the initiating trigger? For example, if I were to change a global variable immediately before a "run trigger" action would it be impossible for that global variable to be changed by some other trigger before or during the course of the trigger being run?

Assume I use no triggers that have waits
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
because you can only have one thread running at a time in wc3, you can only have a one trigger running at a time meaning that if you set a global to 1 and then execute another trigger(Run trigger without cheking conditions) you cant change the value from ouside the trigger while the trigger runs, even if you try the value would be changed while the trigger was running you will change it only after the trigger runs or before, never while runs.

Exception is changing the value inside the trigger or using TriggerSleepAction - Wait because that freezes the whole thread allowing another one to be run
 
Status
Not open for further replies.
Top