• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Issued Orders not happening

Status
Not open for further replies.
Level 13
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~!

  • 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>
  • 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)
  • 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
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
@Sapi I was using a Blink so it would only move them so far, but you're right the Move unit is a much better

Thanks +rep

  • 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 - Turn on Time Warp Run <gen>
  • Time Warp Run
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Triggering unit) Equal to TimeWarp_Caster
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempPoint2 = (Target point of issued order)
      • Unit - Make (Triggering unit) face TempPoint2 over 0.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between TempPoint and TempPoint2) Greater than or equal to 650.00
        • Then - Actions
          • Set TempPoint2 = (TempPoint offset by 649.00 towards (Facing of (Triggering unit)) degrees)
        • Else - Actions
      • Unit - Move (Triggering unit) instantly to TempPoint2, facing (Facing of (Triggering unit)) degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Set TimeWarp_Integer = (TimeWarp_Integer + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TimeWarp_Integer Equal to 6
        • Then - Actions
          • 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
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Status
Not open for further replies.
Top