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

[Trigger] How to make this GUI MUI?

Status
Not open for further replies.
How can I make this GUI MUI-able?

  • Concentrate Init
    • Events
      • Unit - A unit starts casting an ability
    • Conditions
      • (Unit-type of (Triggering unit)) equal to Human Warrior
      • (Ability being cast) equal to Concentrate
      • ((Triggering unit) has buff Concentrate ) equal to False
    • Actions
      • Player - Activate Concentrate DUMMY for (Owner of (Triggering unit))
      • For each (Integer IntegerCs[2]) from 1 to 20, do (Actions)
        • Loop - Actions
          • Wait 0.50 game-time seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Triggering unit) has buff Concentrate ) equal to False
            • 'THEN'-Actions
              • Player - Deactivate Concentrate DUMMY for (Owner of (Triggering unit))
              • Unit - Remove Concentrate buff from (Triggering unit)
              • Skip remaining actions
            • 'ELSE'-Actions
      • Player - Deactivate Concentrate DUMMY for (Owner of (Triggering unit))
      • Unit - Remove Concentrate buff from (Triggering unit)
Edit: Maybe this try?

  • Concentrate Init
    • Events
      • Unit - A unit starts casting an ability
    • Conditions
      • (Unit-type of (Triggering unit)) equal to Human Warrior
      • (Ability being cast) equal to Concentrate
      • ((Triggering unit) has buff Concentrate ) equal to False
    • Actions
      • Custom script: local unit udg_Tmp_Unit
      • Set Tmp_Unit = (Triggering unit)
      • Player - Activate Concentrate DUMMY for (Owner of Tmp_Unit)
      • For each (Integer IntegerCs[2]) from 1 to 20, do (Actions)
        • Loop - Actions
          • Wait 0.50 game-time seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Tmp_Unit has buff Concentrate ) equal to False
            • 'THEN'-Actions
              • Player - Deactivate Concentrate DUMMY for (Owner of Tmp_Unit)
              • Unit - Remove Concentrate buff from Tmp_Unit
              • Skip remaining actions
            • 'ELSE'-Actions
      • Player - Deactivate Concentrate DUMMY for (Owner of Tmp_Unit)
      • Unit - Remove Concentrate buff from Tmp_Unit
 
Status
Not open for further replies.
Top