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!
Global variables in scopes are just global variables.
Only difference with normal global variables is that those in scopes can be public or private.
JASS:
scope a initializer b
globals
integer q
public integer w
private integer e
endglobals
function b takes nothing returns nothing
set q=5
set w=10
set e=15
endfunction
endscope
JASS:
//some other scope or something
function blah takes something returns something
set q=6
set a.w=7
set a.e=8 //wont work
endfunction
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.