• 🏆 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!

[Solved] How can i make it mui (it includes 3 seconds wait)

Status
Not open for further replies.
Level 17
Joined
Jun 2, 2009
Messages
1,139
Increase movement speed by 40% for 3 seconds when activated but after 3 seconds decreases movement speed for 3 seconds.

You can suggest different way to do that. Hero runs %40 faster for 3 seconds but this process make them tired and they will move %20 slower for next 3 seconds.

I have to create this system for reforged and i have to make it for 22 players.

  • Sprint ekle
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set sprint_caster[2] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[2]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[2])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[2]
          • Unit - Remove Sprint / spellbook from sprint_caster[2]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[2]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[2])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[2]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[2]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Set sprint_caster[3] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[3]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[3])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[3]
          • Unit - Remove Sprint / spellbook from sprint_caster[3]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[3]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[3])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[3]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[3]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • Set sprint_caster[4] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[4]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[4])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[4]
          • Unit - Remove Sprint / spellbook from sprint_caster[4]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[4]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[4])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[4]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[4]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 5 (Yellow)
        • Then - Actions
          • Set sprint_caster[5] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[5]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[5])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[5]
          • Unit - Remove Sprint / spellbook from sprint_caster[5]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[5]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[5])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[5]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[5]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Set sprint_caster[6] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[6]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[6])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[6]
          • Unit - Remove Sprint / spellbook from sprint_caster[6]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[6]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[6])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[6]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[6]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 8 (Pink)
        • Then - Actions
          • Set sprint_caster[8] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[8]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[8])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[8]
          • Unit - Remove Sprint / spellbook from sprint_caster[8]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[8]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[8])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[8]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[8]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 9 (Gray)
        • Then - Actions
          • Set sprint_caster[9] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[9]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[9])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[9]
          • Unit - Remove Sprint / spellbook from sprint_caster[9]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[9]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[9])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[9]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[9]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 10 (Light Blue)
        • Then - Actions
          • Set sprint_caster[10] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[10]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[10])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[10]
          • Unit - Remove Sprint / spellbook from sprint_caster[10]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[10]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[10])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[10]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[10]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 11 (Dark Green)
        • Then - Actions
          • Set sprint_caster[11] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[11]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[11])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[11]
          • Unit - Remove Sprint / spellbook from sprint_caster[11]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[11]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[11])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[11]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[11]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
              • (Owner of (Ordered unit)) Equal to Player 12 (Brown)
        • Then - Actions
          • Set sprint_caster[12] = (Ordered unit)
          • Unit - Add Sprint / spellbook to sprint_caster[12]
          • Player - Disable Sprint / spellbook for (Owner of sprint_caster[12])
          • Wait 3.00 seconds
          • Unit - Remove Sprint buff buff from sprint_caster[12]
          • Unit - Remove Sprint / spellbook from sprint_caster[12]
          • Unit - Add Sprint / spellbook debuff to sprint_caster[12]
          • Player - Disable Sprint / spellbook debuff for (Owner of sprint_caster[12])
          • Wait 3.00 seconds
          • Unit - Remove Sprint debuff buff from sprint_caster[12]
          • Unit - Remove Sprint / spellbook debuff from sprint_caster[12]
        • Else - Actions
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,553
(Triggering unit) acts like a local variable so you don't need variables here.

Also, this doesn't do anything here:
  • And - All (Conditions) are true
All conditions need to be true by default.

  • Events
    • Unit - A unit Is issued an order with no target
  • Conditions
    • ((Issued order) Equal to (Order(manashieldon)))
  • Actions
    • Unit - Add Sprint / spellbook to (Triggering unit)
    • Player - Disable Sprint / spellbook for (Owner of (Triggering unit))
    • Wait 3.00 game-time seconds
    • Unit - Remove Sprint buff buff from (Triggering unit)
    • Unit - Remove Sprint / spellbook from (Triggering unit)
    • Unit - Add Sprint / spellbook debuff to (Triggering unit)
    • Player - Disable Sprint / spellbook debuff for (Owner of (Triggering unit))
    • Wait 3.00 game-time seconds
    • Unit - Remove Sprint debuff buff from (Triggering unit)
    • Unit - Remove Sprint / spellbook debuff from (Triggering unit)
 
Level 17
Joined
Jun 2, 2009
Messages
1,139
Oh wait. Is it gonna works for every 22 players? Is that all??? If we are doing everything in same trigger, triggering units can handle everything?

Player 2 started spint
--- 2 seconds later ---
Player 2: 1 Seconds left and another player triggers, isn't it causes any trouble? Really?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,553
Yes, just remember that you're often asking for trouble by using Waits. It really depends on what can happen in your map, like say if your Hero died while sprinting, then immediately revived, the Sprint trigger would still be running which may be unwanted. The Hero may end up with weird abilities as well, I'm not sure what happens if you Add/Remove an ability to a Dead hero but I assume it doesn't work.
 
Status
Not open for further replies.
Top