CYBER_Aeon
New Member
- Reaction score
- 11
I could use a little help getting this trigger to work. Not sure what i'm doing wrong. I suspect 'rally' isn't what I want for the order in the condition, even though I am trying to tell when a rally-point order is issued.
Code:
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Ordered unit)) Equal to Teleport Rune (Magic)
(Issued order) Equal to (Order(rally))
Actions
Set tmpPoint = (Target point of issued order)
Set tmpPoint2 = (Position of (Ordered unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between tmpPoint and tmpPoint2) Greater than or equal to 2000.00
Then - Actions
Unit - Set Rally-Point for (Ordered unit) to tmpPoint2
Game - Display to (Player group((Owner of (Ordered unit)))) the text: |CFFFFCC00You canno...
Else - Actions
Custom script: call RemoveLocation(udg_tmpPoint)
Custom script: call RemoveLocation(udg_tmpPoint2)