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

Using temporary vars really too many times

Status
Not open for further replies.
Hello again (it's the third topic in two weeks after several months o.o my searches have failed x.x )

I found out that I'm having troubles with temporary variables messing up, after some time reading and reading the same code.

I'm using the same tempInteger or tempUnit in about 50 functions, and about 5~6 can run at the same time. None of them use waits, only timers (and thus a new function).

However it happens as if there was a wait. So, if a funcion runs before the previous one finishes, everything goes like "s* x.x", get it? xD

Is there any risk of another function override the previous one, even though they're almost "instant"?

Thanks for reading (I just can't write a small text x.x)
Hossomi-sama
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
If the functions are instant as in no timers no waits, then you have no problem.
But if you are using timers and global variables, than you will have a problem.
 
Status
Not open for further replies.
Top