I imported a spell from the hive's spell resource,the spell works in the test map,but after i try to save it in my map,i get multiple errors,i dont know why.
Here is the "error",and all functions that have this variable,get an index missing for array variable udg_ID
Please help.
I imported the spell with all requirements.
Here is the "error",and all functions that have this variable,get an index missing for array variable udg_ID
-
Soul Gathering Cast
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to SG_Spell
-
-

Actions
-


Set TEMP_UNIT = (Triggering unit)
-


Set TEMP_LOC = (Target point of ability being cast)
-


-------- Create the dummy --------
-


Unit - Create 1 SG_DummyType for (Owner of TEMP_UNIT) at TEMP_LOC facing Default building facing degrees
-


Set ID = (Custom value of (Last created unit)) <<<<< HEREEEE
-


Unit Group - Add (Last created unit) to SG_MainDummyGroup
-


-------- Add expiration timer to dummy - Charged Time --------
-


Unit - Add a (2.00 + (1.00 x (Real((Level of SG_Spell for TEMP_UNIT))))) second Generic expiration timer to (Last created unit)
-


Unit - Change color of (Last created unit) to Black
-


-------- Starting Scale of the Dummy --------
-


Set SG_Scale[ID] = 50.00
-


-------- Starting Scale of the AoE --------
-


Set SG_AoE[ID] = 80.00
-


-------- Set Damage per 0.04 Second --------
-


Set SG_Dps[ID] = (0.80 x (Real((Level of SG_Spell for TEMP_UNIT))))
-


-------- Set damage at the end of the skill --------
-


Set SG_Damage[ID] = (50.00 x (Real((Level of SG_Spell for TEMP_UNIT))))
-


Custom script: call RemoveLocation(udg_TEMP_LOC)
-


Trigger - Turn on Soul Gathering Loop <gen>
-
-
JASS:
set udg_ID=GetUnitUserData(GetLastCreatedUnit())
Please help.
I imported the spell with all requirements.
