when he said "use integers" i believe he meant store the rawcode of the spell..
call SaveInteger(HASH, ParentID, childID, abilityID)
in addition, save an ability like this...
call SaveInteger(HASH, ParentID, childID, abilityID)
Yes, ability ID is a rawcode.
This doesn't work. What's wrong?
- Custom script: call SaveInteger(udg_AbilityHash,Hamg,1,AHbz)
- Custom script: call SaveInteger(udg_AbilityHash,'Hamg',1,'AHbz')
GetUnitsOfTypeIdAll returns a group, so you will never get the right handle ID there. I think you meant to get a unit who corresponds to that type ID, right?
You can't get the handle ID of a unit type ID because handle ID require you to pass a handle, what you passed instead is an integer rawcode.
GetHandleId(GetUnitTypeId(GetTriggerUnit()))
. Do you mean to store the data TO the triggering unit?You can't doGetHandleId(GetUnitTypeId(GetTriggerUnit()))
. Do you mean to store the data TO the triggering unit?
Then don't use GetHandleId, just use GetUnitTypeId directly.
the first argument must return a hashtable, not an integer...
LoadInteger(hashtable, integer, integer)