- Joined
- Sep 10, 2006
- Messages
- 185
I set the A range to 1 for a certain unit in the editor. I then did this:
What did I do wrong?
Edit: Here's the whole trigger
-
Unit - Set (Attacked unit) acquisition range to ((Current acquisition range of (Attacked unit)) + 1.00)
What did I do wrong?
Edit: Here's the whole trigger
-
Phase Disrupter
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Night Elf Fishing Village (4)
-
((Attacked unit) has buff Phased Out ) Equal to False
-
-
Actions
-
Set PhasePos = (Position of (Attacked unit))
-
Set PhasePos = (PhasePos offset by 200.00 towards ((Facing of (Attacked unit)) - 180.00) degrees)
-
Unit - Move (Attacked unit) instantly to PhasePos
-
Unit - Set (Attacked unit) acquisition range to ((Current acquisition range of (Attacked unit)) + 1.00)
-
Game - Display to (All players) the text: (AQ Range - + (String((Current acquisition range of (Attacked unit)))))
-
Special Effect - Create a special effect at PhasePos using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer((Current acquisition range of (Attacked unit)))) Greater than or equal to 6
-
-
Then - Actions
-
Game - Display to (All players) the text: (AQ Range - + (String((Current acquisition range of (Attacked unit)))))
-
Unit - Set (Attacked unit) acquisition range to 0.00
-
Unit - Create 1 Tharifas for (Owner of (Attacking unit)) at PhasePos facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Unit - Order (Last created unit) to Undead Necromancer - Cripple (Attacked unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_PhasePos)
-
-