I was wondering if there is a way to set a variable to a local witout using jass. I herd there is a custom script function wich can makes a variable local. So anyone know a way to make a variable local witout the use of jass?
By any chance do you know the custom script wich will declare a global a local?
Waldbaer
#4
I'm not sure if I understood you correctly, but when you declared the local via custom script, you'll need custom script again every time you use the variable. To set a variable in JASS, just write
set variable1 = VariableOrFunction2
and variable1 will be set to the value that results of the right side of the "=". Don't forget to add udg_ before the names of globals you declared in the variable window.