- Joined
- Nov 5, 2008
- Messages
- 536
Hello!
I have a trigger that looks like this:
The aura is called Call from the Wild.
If any unit dies within range of the aura, the dead unit is replaced with a friendly wolf. The trigger works fine, but
I would like the aura to work as this:
An ENEMY unit dies within the aura.
A FRIENDLY wolf is summoned from it's corpse.
If a friendly unit dies, nothing happens.
Anyone has any ideas how to change the trigger?
I have a trigger that looks like this:
-
Unit Spawns Aura
-

Events
-


Unit - A unit Dies
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in (Units of type Lorekeeper) and do (Actions)
-



Loop - Actions
-




Player Group - Pick every player in (Player group((Owner of (Picked unit)))) and do (Actions)
-





Loop - Actions
-






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







If - Conditions
-








(Level of Call from the Wild (Neutral Hostile) for (Picked unit)) Not equal to 0
-








(Distance between (Position of (Picked unit)) and (Position of (Dying unit))) Less than or equal to 700.00
-
-







Then - Actions
-








Unit - Create 1 Wolf for (Picked player) at (Position of (Dying unit)) facing Default building facing degrees
-
-







Else - Actions
-
-
-
-
-
-
-
The aura is called Call from the Wild.
If any unit dies within range of the aura, the dead unit is replaced with a friendly wolf. The trigger works fine, but
I would like the aura to work as this:
An ENEMY unit dies within the aura.
A FRIENDLY wolf is summoned from it's corpse.
If a friendly unit dies, nothing happens.
Anyone has any ideas how to change the trigger?

i think you want to create unit for owner of picked unit