function example takes nothing returns nothing
local @integer@ id = 'hpea'
endfunction
local integer peasant = 'hpea'
1st. Do you mean the AI editor ?
2nd.
but note that at the end of the function, that local never exist unless you set a global to this local value.JASS:function example takes nothing returns nothing local unittype id = 'hpea' endfunction
this is wrong...
unittype in jass are things like UNIT_TYPE_HERO, UNIT_TYPE_DEAD etc, the 'hpea' is an integer...