• 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.

[Trigger] Time Warp Ability

Status
Not open for further replies.
When the ability is casted it is suppose to pause all units owned by grey except heroes for 2/4 seconds the units pause but dont unpause
help is apreciated

  • Time Warp Rank 1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Time Warp (Rank 1)
    • Actions
      • Set TimeWarp_Caster = (Triggering unit)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of (Ability being cast) for (Triggering unit)) Equal to (==) 1
          • Then - Actions
            • Set TimeWarp_GRP = (Units in (Playable map area) owned by Player 9 (Gray))
            • Unit Group - Pick every unit in TimeWarp_GRP and do (Actions)
              • Loop - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • ((Picked unit) is A Hero) Equal to (==) False
                  • Then - Actions
                    • Unit - Pause (Picked unit)
                    • Trigger - Turn on Time Warp Loop 1 <gen>
                  • Else - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TimeWarp_Time Equal to (==) 1
                • Then - Actions
                  • Unit - Unpause (Picked unit)
                • Else - Actions
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of (Ability being cast) for (Triggering unit)) Equal to (==) 2
          • Then - Actions
            • Set TimeWarp_GRP = (Units in (Playable map area) owned by Player 9 (Gray))
            • Unit Group - Pick every unit in TimeWarp_GRP and do (Actions)
              • Loop - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • ((Picked unit) is A Hero) Equal to (==) False
                  • Then - Actions
                    • Unit - Pause (Picked unit)
                    • Trigger - Turn on Time Warp Loop 1 <gen>
                  • Else - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TimeWarp_Time Equal to (==) 2
                • Then - Actions
                  • Unit - Unpause (Picked unit)
                • Else - Actions
          • Else - Actions
  • Time Warp Loop 1
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set TimeWarp_Time = (TimeWarp_Time + 1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Time Warp (Rank 1) for TimeWarp_Caster) Equal to (==) 1
          • Then - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • TimeWarp_Time Equal to (==) 1
              • Then - Actions
                • Trigger - Turn off (This trigger)
              • Else - Actions
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Time Warp (Rank 1) for TimeWarp_Caster) Equal to (==) 2
          • Then - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • TimeWarp_Time Equal to (==) 2
              • Then - Actions
                • Trigger - Turn off (This trigger)
              • Else - Actions
          • Else - Actions
 
Status
Not open for further replies.
Top