• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Need Trigger

Status
Not open for further replies.
Level 4
Joined
Jul 19, 2007
Messages
76
I was wondering what trigger I need to show a -ms trigger
This trigger shows to the triggering player the move speed of the selected unit.
Please help me.

  • Movespeed
    • Events
      • Player - Player 2 (Blue) types a chat message containing -ms as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ms as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ms as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ms as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ms as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ms as An exact match
      • Player - Player 9 (Gray) types a chat message containing -ms as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -ms as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -ms as An exact match
      • Player - Player 12 (Brown) types a chat message containing -ms as An exact match
      • Player - Player 2 (Blue) types a chat message containing -movespeed as An exact match
      • Player - Player 3 (Teal) types a chat message containing -movespeed as An exact match
      • Player - Player 4 (Purple) types a chat message containing -movespeed as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -movespeed as An exact match
      • Player - Player 6 (Orange) types a chat message containing -movespeed as An exact match
      • Player - Player 8 (Pink) types a chat message containing -movespeed as An exact match
      • Player - Player 9 (Gray) types a chat message containing -movespeed as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -movespeed as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -movespeed as An exact match
      • Player - Player 12 (Brown) types a chat message containing -movespeed as An exact match
    • Conditions
    • Actions
      • Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Game - Display to (Player group((Triggering player))) the text: (Player_Colors[(Player number of (Triggering player))] + ((Name of (Picked unit)) + (|r movement speed is + (String((Current movement speed of (Picked unit)), 4, 3)))))
 
Status
Not open for further replies.
Top