• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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