• 🏆 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] [GUI] Problems with a -ms command - Help!

Status
Not open for further replies.
Level 4
Joined
Aug 6, 2009
Messages
74
I've just changed the -ms (movement speed) for -vm (velocidad de movimiento, its translation into the Spanish).

Happens that when I use it, it shows me the current speed of the unit ("350"), but it doesn't when I pick up a "Boots of speed", then it just show me "0". Then, when I drop the item and pick it up again, shows me the corresponding "400" points.

What's wrong with it?

  • vm
    • Events
      • Player - Player 1 (Red) types a chat message containing -vm as An exact match
      • Player - Player 2 (Blue) types a chat message containing -vm as An exact match
      • Player - Player 3 (Teal) types a chat message containing -vm as An exact match
      • Player - Player 4 (Purple) types a chat message containing -vm as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -vm as An exact match
      • Player - Player 6 (Orange) types a chat message containing -vm as An exact match
      • Player - Player 7 (Green) types a chat message containing -vm as An exact match
      • Player - Player 8 (Pink) types a chat message containing -vm as An exact match
      • Player - Player 9 (Gray) types a chat message containing -vm as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -vm as An exact match
    • Conditions
    • Actions
      • Set UnitGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is selected by (Triggering player)) Equal to True
            • Then - Actions
              • Set MovespeedCheckUnit = (Picked unit)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_UnitGroup)
      • Set PlayerGroup = (Player group((Triggering player)))
      • Game - Display to PlayerGroup for 10.00 seconds the text: (Tu velocidad de movimiento actual es: + (String((Integer((Current movement speed of MovespeedCheckUnit))))))
      • Custom script: call DestroyForce(udg_PlayerGroup)
      • Set MovespeedCheckUnit = No unit
By the way, check out this other problem that I had in another trigger of the same map, I posted it in "Requests", the wrong forum I suppose. Here, Multiboard problem.
 
Last edited:
Status
Not open for further replies.
Top