- Joined
- Aug 14, 2006
- Messages
- 7,614
Hello.
I have a problem with a simple trigger where a variable doesn't work even if it should.
The map is about two ghosts which change sides every 10 to 20 seconds. When a ghost with with Command Aura is killed it will always resurrect back. When a ghost with Brilliance Aura is killed it resurrect backs when he have at least 1 mana point.
The problem is that this:
How do I fix this problem?
I have a problem with a simple trigger where a variable doesn't work even if it should.
The map is about two ghosts which change sides every 10 to 20 seconds. When a ghost with with Command Aura is killed it will always resurrect back. When a ghost with Brilliance Aura is killed it resurrect backs when he have at least 1 mana point.
The problem is that this:
-
Set GHOST_1 = (Last created unit)
How do I fix this problem?
-
GHOST 1 DIES
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Dying unit) Equal to GHOST_1
-
-
Actions
-
Set TempLoc = (Position of (Dying unit))
-
Unit - Create 1 Wraith for Neutral Hostile at TempLoc facing Default building facing degrees
-
Set GHOST_1 = (Last created unit)
-
Special Effect - Destroy GHOST_SE1
-
Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\Silence\SilenceAreaBirth.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Special Effect - Create a special effect attached to the origin of GHOST_1 using Abilities\Spells\Orc\CommandAura\CommandAura.mdl
-
Set GHOST_SE1 = (Last created special effect)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-