• 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.

Variable help

Status
Not open for further replies.
Level 3
Joined
Aug 24, 2007
Messages
31
This is a little hard to explain but I'll do my best. So I have two triggers, each one is setting the same variable to a random number, and both of them has a wait in-between the setting of the variable and the using of it. So what happens if one trigger runs while the other is still waiting to continue? Does that change the random number in the first one?
 
Each trigger is independent. If one trigger is running the other trigger, the trigger that is being ran depends on the first trigger running.
basically, as long as the first and second trigger have seperate events, they should both work at different times.

Your answer:
Yes the first trigger will randomize the number while the other is waiting. When the first trigger is waiting, the second trigger will be randomizing the variable.

But I have a question..
Why don't you just use one trigger that randomizes the number in half the time.
If the trigger randomizes the number every 1.00 seconds, why not make it randomize the number every 0.50 seconds? lol
 
Last edited:
Status
Not open for further replies.
Top