- Joined
- May 28, 2011
- Messages
- 102
Hello once again
I made a unit that is supposed to pick up souls and then be able to turn into a more powerful unit by using abilities. I copied the triggers from another unit where the triggers work perfectly. In this case however, the unit is unable to move after picking up 3 souls.
Here is the trigger for the unit where it stops moving:
I made a unit that is supposed to pick up souls and then be able to turn into a more powerful unit by using abilities. I copied the triggers from another unit where the triggers work perfectly. In this case however, the unit is unable to move after picking up 3 souls.
Here is the trigger for the unit where it stops moving:
-
Abomination Take Soul
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Take Soul (Arthas)
-
-

Actions
-


Unit - Kill (Target unit of ability being cast)
-


Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\DeathPact\DeathPactCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Casting unit)) Equal to Abomination (Arthas)
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of (Casting unit)) Less than or equal to 1
-
-





Then - Actions
-






Unit - Set the custom value of (Casting unit) to ((Custom value of (Casting unit)) + 1)
-






Unit - Set Max HP of (Casting unit) to ((Max HP of (Casting unit)) + 50)
-






Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 50.00)
-






Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 2) for weapon index: 0
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Custom value of (Casting unit)) Equal to 2
-
-







Then - Actions
-








Unit - Add Blood Amelioration (Abomination) to (Casting unit)
-








Unit - Add Frost Amelioration (Abomination) to (Casting unit)
-








Unit - Add Unholy Amelioration (Abomination) to (Casting unit)
-








Unit - Set Max HP of (Casting unit) to ((Max HP of (Casting unit)) + 50)
-








Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 50.00)
-








Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 2) for weapon index: 0
-








Unit - Remove Take Soul (Arthas) from (Casting unit)
-
-







Else - Actions
-
-
-
-
-



Else - Actions
-
-
-
-
Gargoyle Take Soul
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Take Soul (Arthas)
-
-

Actions
-


Unit - Kill (Target unit of ability being cast)
-


Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\DeathPact\DeathPactCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Casting unit)) Equal to Gargoyle (Arthas)
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of (Casting unit)) Less than or equal to 1
-
-





Then - Actions
-






Unit - Set the custom value of (Casting unit) to ((Custom value of (Casting unit)) + 1)
-






Unit - Set Max HP of (Casting unit) to ((Max HP of (Casting unit)) + 20)
-






Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 20.00)
-






Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 2) for weapon index: 0
-






Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 1) for weapon index: 1
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Custom value of (Casting unit)) Equal to 2
-
-







Then - Actions
-








Unit - Add Blood Amelioration (Gargoyle) to (Triggering unit)
-








Unit - Add Frost Amelioration (Gargoyle) to (Triggering unit)
-








Unit - Add Unholy Amelioration (Gargoyle) to (Triggering unit)
-








Unit - Set Max HP of (Casting unit) to ((Max HP of (Casting unit)) + 20)
-








Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 20.00)
-








Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 2) for weapon index: 0
-








Unit - Set Base Damage of (Casting unit) to ((Base Damage of (Casting unit) for weapon index 0) + 1) for weapon index: 1
-








Unit - Remove Take Soul (Arthas) from (Casting unit)
-
-







Else - Actions
-
-
-
-
-



Else - Actions
-
-
-
