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!
Hi,
Simple question.
If i use the same Temp_Variable like Temp_Point in more periodic event triggers, does that really work? It should, but I'm not sure.
thanks
There is one issue when you use one temp variable for everything. If you trigger a different trigger with the code, and that modifies that temp variable, then things might mess up.
e.g:
Set TempInteger = 5
Unit - Order (triggering unit) to Stop
Game - Display to (All Players) String(TempInteger) for 60.00 seconds
Random Trigger
Events
Unit - A unit is issued an immediate order
Conditions
Actions
Set TempInteger = 10
What do you think the first trigger will show? 5? Sadly no (AFAIK). It will show 10, because the unit is issued the "Stop" order, and then it runs the "Random Trigger", which changes the value of the global.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.