• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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
 
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.
Back
Top