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!
Use a local variable if the value is needed later in a function of a thread.
Use a global if the value is to be shared between all functions running on all threads.
You can use arrays if you need multiple variables selectable by an index (a number). Arrays in WC3 are dynamic arrays with a maximum bound of 2^13 (so do not care about specifying a size as that is not needed).
Hashtables can be used as another form of data mapping strcture but be aware they are a complex structure that can not be deallocated once allocated.
Hashtables have already been mentioned and indexing consists of using variables, mentioned already too. Also indexing is used for dynamic storage.
Your post is redundant.
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.