Here, I have a trigger that I don't know what's wrong with. It is supposed to skip to the 2nd If/then/else func. but It never does
Can you find anything wrong ?
-
LP Death Trigger
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) is in LifePower_units) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Dying unit) belongs to an enemy of (Load 2 of (Key (Dying unit)) in Hasttable_LP)) Equal to True
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 350.00 of (Position of (Dying unit)) matching ((((Matching unit) belongs to an ally of (Owner of (Dying unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False)))) and do (Actions)
-
Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Unit - Cause (Load 2 of (Key (Dying unit)) in Hasttable_LP) to damage (Picked unit), dealing ((Real((Level of Life Power for (Load 2 of (Key (Dying unit)) in Hasttable_LP)))) x 20.00) damage of attack type Spells and damage type Normal
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 350.00 of (Position of (Dying unit)) matching ((((Matching unit) belongs to an ally of (Owner of (Dying unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False)))) and do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Dying unit) belongs to an ally of (Load 2 of (Key (Dying unit)) in Hasttable_LP)) Equal to True
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 350.00 of (Position of (Dying unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False)))) and do (Actions)
-
Loop - Actions
- Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Items\AIre\AIreTarget.mdl
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Level of Life Power for (Load 2 of (Key (Dying unit)) in Hasttable_LP)))) x 20.00))
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 350.00 of (Position of (Dying unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False)))) and do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
- Special Effect - Destroy (Load 1 of (Key (Dying unit)) in Hasttable_LP)
- Unit Group - Remove (Dying unit) from LifePower_units
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Can you find anything wrong ?
Last edited: