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

How can i make this MUI?

Status
Not open for further replies.
Level 17
Joined
Jun 2, 2009
Messages
1,137
Still i don't understand how to make it, this is why i am requesting help for this. I am a mapmaker since 2002 (since it's release) created many maps but still i don't understand about making MUI (tried many times, my iq is not enough to learn it because it is beyond my limits)

  • 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
 
Level 28
Joined
Feb 18, 2014
Messages
3,580
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 1 (Red) // Exclude any player here
      • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
    • Actions
      • Unit - Add Sprint / spellbook to (Triggering unit)
      • Player - Disable Sprint / spellbook for (Owner of (Triggering unit))
      • Wait 3.00 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 seconds
      • Unit - Remove Sprint debuff buff from (Triggering unit)
      • Unit - Remove Sprint / spellbook debuff from (Triggering unit)
Unit responses like (Ordered unit) are lost after the wait. Use (Triggering unit) instead.
 
Level 17
Joined
Jun 2, 2009
Messages
1,137
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 1 (Red) // Exclude any player here
      • ((Issued order) Equal to (Order(manashieldon))) or ((Issued order) Equal to (Order(manashieldoff)))
    • Actions
      • Unit - Add Sprint / spellbook to (Triggering unit)
      • Player - Disable Sprint / spellbook for (Owner of (Triggering unit))
      • Wait 3.00 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 seconds
      • Unit - Remove Sprint debuff buff from (Triggering unit)
      • Unit - Remove Sprint / spellbook debuff from (Triggering unit)
Unit responses like (Ordered unit) are lost after the wait. Use (Triggering unit) instead.
Are we sure about this? What kind of triggers are not good with wait function? Many people tells me "do not use wait when you try to make it work for more than 1 unit"
Update: Oh wait. I want to make it useable more than 1 player. Heroes of all players have this ability. Is it gonna work? It has to be MPI.
 
Last edited:
Level 19
Joined
Feb 27, 2019
Messages
590
Itd be good if you got yourself a grasp on local variables. (Triggering unit) works like a local variable while (Target unit of ability being cast) and others dont. That way youd understand why (Triggering unit) works and others dont. Simply put, the game will remember (Triggering unit) during that instance while it will forget (Target unit of ability being cast). Taking advantage of local variables using custom script in GUI can sometimes be used to make a trigger MUI/MPI.
 
Last edited:
Level 39
Joined
Feb 27, 2007
Messages
5,014
Are we sure about this? What kind of triggers are not good with wait function?
The best resource to answer this question: Event Response Myths
Many people tells me "do not use wait when you try to make it work for more than 1 unit"
These are two different things. Triggers with Waits are often not MUI because of what they do with waits. In addition, some event responses don't work after a Wait. In this instance Warseeker is suggesting you use a different event response that will work properly after the Waits you are using. Since the way you are using Waits in the trigger does not cause a problem with this triggering being MUI, this will fix your problem. But they are in general two separate problems about using Waits.
 
Status
Not open for further replies.
Top