- Joined
- Mar 24, 2013
- Messages
- 1,105
Hello, I'm trying to make a spell that upon activation when the triggering unit issues a move to a point order they get a blink added to them and then cast the blink on the ordered point. After x number of times, they stop getting the blink and go back to having to walk everywhere.
Here is what I have so far, but it doesn't exactly work at/how I want it to. Sometimes I can issue the move order then order the unit to blink and get the counter to like 80 and never have the "effect" end as it should. Other times it ends properly, but the caster never blinks anywhere. (The caster's backswing/cast point all at 0)
Any help would be great~!
Here is what I have so far, but it doesn't exactly work at/how I want it to. Sometimes I can issue the move order then order the unit to blink and get the counter to like 80 and never have the "effect" end as it should. Other times it ends properly, but the caster never blinks anywhere. (The caster's backswing/cast point all at 0)
Any help would be great~!
-
Activate
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Time Shift
-
Actions
- Set TimeWarp_Caster = (Triggering unit)
- Set TimeWarp_Integer = 0
- Animation - Change (Triggering unit)'s vertex coloring to (39.00%, 100.00%, 100.00%) with 60.00% transparency
- Trigger - Order <gen>
-
Events
-
Order
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
- (Triggering unit) Equal to TimeWarp_Caster
-
Actions
- Unit - Add Time Warp to (Triggering unit)
- Set TempPoint = (Target point of issued order)
- Wait 0.01 seconds
- Unit - Order TimeWarp_Caster to Night Elf Warden - Blink TempPoint
- Countdown Timer - Start TimeWarp_Timer as a One-shot timer that will expire in 0.25 seconds
- Custom script: call RemoveLocation(udg_TempPoint)
- Set TimeWarp_Integer = (TimeWarp_Integer + 1)
-
Events
-
TimeWarp
-
Events
- Time - TimeWarp_Timer expires
- Conditions
-
Actions
- Unit - Remove Time Warp from TimeWarp_Caster
- Game - Display to (All players) the text: (String(TimeWarp_Integer))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TimeWarp_Integer Equal to 6
-
Then - Actions
- Trigger - Turn off Order <gen>
- Animation - Change TimeWarp_Caster's vertex coloring to (39.00%, 100.00%, 100.00%) with 0.00% transparency
- Set TimeWarp_Caster = No unit
- Set TimeWarp_Integer = 0
- Else - Actions
-
If - Conditions
-
Events