- Joined
- Jun 10, 2013
- Messages
- 472
hey >
I need help triggering an ability which when any allied unit with in 650 range of the hero dies a dummy unit casts inner fire and bloodlust on the hero, so far I've come up with this which doesn't work;

-
AvengeroftheForests
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Learned Hero Skill) Equal to Summon Forest Stalkers ( Avenger )
-
-

Actions
-


Set TempUnit = (Learning Hero)
-


Set TempPoint = (Position of TempUnit)
-


Set Player_Owner = (Owner of TempUnit)
-


Set AbilityAdd = Inner Fire (Neutral Hostile)
-


Set AbilityAdd2 = Bloodlust (Neutral Hostile 1)
-


Unit Group - Pick every unit in (Units within 650.00 of TempPoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of Player_Owner) Equal to True) and (((Matching unit) is A structure) Equal to False)))) and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






((Picked unit) is dead) Equal to True
-
-





Then - Actions
-






Unit - Create 1 Dummy Spellcaster for Player_Owner at TempPoint facing Default building facing degrees
-






Unit - Add AbilityAdd to (Last created unit)
-






Unit - Add AbilityAdd2 to (Last created unit)
-






Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
-






Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
-






Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
-





Else - Actions
-
-
-
-
-













