- Joined
- Dec 26, 2010
- Messages
- 475
hey guys i need help with my spell triggers. when i cast my triggered spell it gives me fatal error!

Heres the trigger:


Heres the trigger:
-
TKCero
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Cero (Kaname Tousen)
-
-
Actions
-
Set TKCero_Unit[0] = (Triggering unit)
-
Set TKCero_Unit[1] = (Target unit of ability being cast)
-
Set TKCero_Point[0] = (Position of TKCero_Unit[0])
-
Set TKCero_Point[1] = (Position of TKCero_Unit[1])
-
Set TKCero_Point[2] = ((Position of TKCero_Unit[0]) offset by 100.00 towards (Facing of TKCero_Unit[0]) degrees)
-
Unit - Pause TKCero_Unit[0]
-
Unit - Pause TKCero_Unit[1]
-
Special Effect - Create a special effect attached to the head of TKCero_Unit[0] using war3mapImported\GreenFireringMissile.mdx
-
Set TKCero_SFX[0] = (Last created special effect)
-
Wait 0.20 seconds
-
Special Effect - Destroy TKCero_SFX[0]
-
Unit - Create 1 Tousen Cero Green Dummy for (Owner of TKCero_Unit[0]) at TKCero_Point[2] facing (Position of TKCero_Unit[1])
-
Set TKCero_Unit[2] = (Last created unit)
-
Trigger - Turn on TKCero Loop <gen>
-
-
-
TKCero Loop
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Order TKCero_Unit[2] to Attack TKCero_Unit[1]
-
Unit - Create 1 Tousen Cero Green Dummy for (Owner of TKCero_Unit[0]) at (Position of TKCero_Unit[2]) facing (Position of TKCero_Unit[1])
-
Set TKCero_Unit[3] = (Last created unit)
-
Unit - Add a 2.00 second Generic expiration timer to TKCero_Unit[3]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between (Position of TKCero_Unit[2]) and (Position of TKCero_Unit[1])) Less than or equal to 100.00
-
-
Then - Actions
-
Unit - Remove TKCero_Unit[2] from the game
-
Unit - Cause TKCero_Unit[0] to damage TKCero_Unit[1], dealing 500.00 damage of attack type Spells and damage type Normal
-
Special Effect - Create a special effect at TKCero_Point[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Animation - Play TKCero_Unit[1]'s death animation
-
Trigger - Turn off (This trigger)
-
Custom script: call RemoveLocation(udg_TKCero_Point[0])
-
Custom script: call RemoveLocation(udg_TKCero_Point[1])
-
-
Else - Actions
-
Trigger - Run TKCero Loop <gen> (ignoring conditions)
-
-
-
-