JASS:
function StoreItemType takes string item, string abil, string abilbook, integer slot, string req, string bonus returns nothing
call SaveStringBJ(abil,1,item,udg_Items)
call SaveStringBJ(abilbook,2,item,udg_Items)
call SaveIntegerBJ(slot,3,item,udg_Items)
call SaveStringBJ(req,4,item,udg_Items)
call SaveStringBJ(bonus,5,item,udg_Items)
endfunction
function Trig_Items_Init_Actions takes nothing returns nothing
call StoreItemType("I03W","A01L","A01M",5,"lvl1","dmg+5")
endfunction
function InitTrig_Items_Init takes nothing returns nothing
set gg_trg_Items_Init = CreateTrigger()
call TriggerAddAction(gg_trg_Items_Init,function Trig_Items_Init_Actions)
endfunction
I have a global variable Hashtable type named Items
Can anyone see what's wrong with this small section of codes? When saving, it gives an error "Expected a name" on the first line. It has been bothering me for over 6 hours