Originally Posted by Fireeye
Do you mean using something like this?
public function Init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( t, Condition( function Cast_Conditions ) )
call TriggerAddAction( t, function Cast_Actions )
set Bex = Condition(function KBFilter)
set TreeRect = Rect(256.0 , 2400.0 , 448.0 , 2656.0)
set TerrainCheck = CreateItem(TerrainItem,0.00,0.00)
The other 2 things are already done, well i never got any problem with
set glob[Integer] = twdat
but i'm too lazy to make test right now so i changed it
Any other constructive critiques are welcome.
I mean this:
About this line of code set glob[Integer] = integer(twdat)
, it is mandatory in order to guarantee compatibility with newer versions of JassHelper, because this will generate a serious syntax error.
EDIT: Here's the thread related with the integer() stuff: http://www.wc3campaigns.net/showthread.php?t=96463