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!
locations are sets of data behind the jass/gui frontend which must be allocated. If they are not destroyed (call RemoveLocation()), they cause "leaks", which are simply undestroyed data that takes up room in the client's memory. Read more about leaks in the "what leaks" thread.
On easy words, if u make an point variable, u have to remove it later, or else, the game will begins to lag.Then - call RemoveLocation (udg_(variable)
The udg is for when u use a variable.
udg stands for user defined global; if you're using variables defined in the GUI variable editor you must including the udg prefix when using jass/custom script.
okay, go to item, choose the create button,
now if you made the items variable and putted it array,
you should have the option to press variable,
in the array underline area, choose math - random number
and in 1 - 10 just change to w/e you want, or how many items you got in the variable.
hope i helped..
edit:
ops.. i wrote " or how many items you got in the variable"
i meant like if there are 5 items in the variable use
Item - Create items[(Random integer number between 1 and 5)] at Point_Which_You_Make
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.