- Joined
- Jul 31, 2012
- Messages
- 2,217
Like the title says
locals are just variables used in the function they r declared in.
here is a full tutorial if tht didnt help u mybe this will
heres is one from hive
http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/local-variables-34049/
and another one
http://world-editor-tutorials.thehelper.net/variables.php
set local variable name = value
nice catch xonok i only skimmed the tutorial didnt see tht
Note that this is not correct(from tutorial)
set and local are keywords that never exist together, as local is only for defining the variable and set is for changing values(which you can't do to a variable before defining or in the same line)JASS:set local variable name = value
tutorial said:JASS:set local variable name = value
Examples: set Nova_Caster = GetTriggerUnit() - [In GUI: Set Nova_Caster = (Triggering Unit)]
local variableType name = value
not set local variableType name = value
without set.@XonoK
itslocal variableType name = value
notset local variableType name = value
without set.
And Kibatake is correct: the way it is used in the tutorial , while confusing, is correct.Xonok said:set and local are keywords that never exist together