• 🏆 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] Matchup/Movement/Clearing msgs Q>Triggers . . .

Status
Not open for further replies.
Level 4
Joined
May 22, 2011
Messages
68
Matchup/Movement/Clearing msgs?

  • Matchup
    • Events
      • Player - Player 1 (Red) types a chat message containing -eh as An exact match
      • Player - Player 2 (Blue) types a chat message containing -eh as An exact match
      • Player - Player 3 (Teal) types a chat message containing -eh as An exact match
      • Player - Player 4 (Purple) types a chat message containing -eh as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -eh as An exact match
      • Player - Player 6 (Orange) types a chat message containing -eh as An exact match
      • Player - Player 7 (Green) types a chat message containing -eh as An exact match
      • Player - Player 8 (Pink) types a chat message containing -eh as An exact match
      • Player - Player 9 (Gray) types a chat message containing -eh as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -eh as An exact match
    • Conditions
    • Actions
      • Set GlobalForMode_UnitGroup = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in GlobalForMode_UnitGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) is an enemy of (Triggering player)) Equal to True
            • Then - Actions
              • Game - Display to (Player group((Triggering player))) the text: ((Name of (Owner of (Picked unit))) + ( controls + (Name of (Picked unit))))
            • Else - Actions
  • Movespeed
    • Events
      • Player - Player 1 (Red) types a chat message containing -s as An exact match
      • Player - Player 2 (Blue) types a chat message containing -s as An exact match
      • Player - Player 3 (Teal) types a chat message containing -s as An exact match
      • Player - Player 4 (Purple) types a chat message containing -s as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -s as An exact match
      • Player - Player 6 (Orange) types a chat message containing -s as An exact match
      • Player - Player 7 (Green) types a chat message containing -s as An exact match
      • Player - Player 8 (Pink) types a chat message containing -s as An exact match
      • Player - Player 9 (Gray) types a chat message containing -s as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -s as An exact match
    • Conditions
    • Actions
      • Set GlobalForMode_UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in GlobalForMode_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)))))
  • Clear Msgs
    • Events
      • Player - Player 1 (Red) types a chat message containing -c as An exact match
      • Player - Player 2 (Blue) types a chat message containing -c as An exact match
      • Player - Player 3 (Teal) types a chat message containing -c as An exact match
      • Player - Player 4 (Purple) types a chat message containing -c as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -c as An exact match
      • Player - Player 6 (Orange) types a chat message containing -c as An exact match
      • Player - Player 7 (Green) types a chat message containing -c as An exact match
      • Player - Player 8 (Pink) types a chat message containing -c as An exact match
      • Player - Player 9 (Gray) types a chat message containing -c as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -c as An exact match
    • Conditions
    • Actions
      • Set GlobalForMode_UnitGroupC = (Units owned by (Triggering player) matching (((Matching unit) is A structure) Not equal to True))
      • Unit Group - Pick every unit in GlobalForMode_UnitGroupC and do (Actions)
        • Loop - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
Now the Q>

does this triggers

works?

Ex: when a player types the mode -c , does it clears the screen messages only in him/her? or to all players or allies??


+rep for help in advance :thumbs_up:
 
Last edited:
First off, use:
  • Custom script: call DestroyGroup (udg_GlobalForMode_UnitGroup)
in the end of each trigger.

Secondly, the last trigger doesn't require you to create a unit group for that.
  • Clear Msgs
  • Events
    • Player - Player 1 (Red) types a chat message containing -c as An exact match
    • Player - Player 2 (Blue) types a chat message containing -c as An exact match
    • Player - Player 3 (Teal) types a chat message containing -c as An exact match
    • Player - Player 4 (Purple) types a chat message containing -c as An exact match
    • Player - Player 5 (Yellow) types a chat message containing -c as An exact match
    • Player - Player 6 (Orange) types a chat message containing -c as An exact match
    • Player - Player 7 (Green) types a chat message containing -c as An exact match
    • Player - Player 8 (Pink) types a chat message containing -c as An exact match
    • Player - Player 9 (Gray) types a chat message containing -c as An exact match
    • Player - Player 10 (Light Blue) types a chat message containing -c as An exact match
  • Conditions
  • Actions
    • Set PlayerGroup = (Player group(Triggering player))
    • Cinematic - Clear the screen of text messages for PlayerGroup
    • Custom script: call DestroyForce (udg_PlayerGroup)
 
Level 4
Joined
May 22, 2011
Messages
68
First off, use:
  • Custom script: call DestroyGroup (udg_GlobalForMode_UnitGroup)
in the end of each trigger.

Secondly, the last trigger doesn't require you to create a unit group for that.
  • Clear Msgs
  • Events
    • Player - Player 1 (Red) types a chat message containing -c as An exact match
    • Player - Player 2 (Blue) types a chat message containing -c as An exact match
    • Player - Player 3 (Teal) types a chat message containing -c as An exact match
    • Player - Player 4 (Purple) types a chat message containing -c as An exact match
    • Player - Player 5 (Yellow) types a chat message containing -c as An exact match
    • Player - Player 6 (Orange) types a chat message containing -c as An exact match
    • Player - Player 7 (Green) types a chat message containing -c as An exact match
    • Player - Player 8 (Pink) types a chat message containing -c as An exact match
    • Player - Player 9 (Gray) types a chat message containing -c as An exact match
    • Player - Player 10 (Light Blue) types a chat message containing -c as An exact match
  • Conditions
  • Actions
    • Set PlayerGroup = (Player group(Triggering player))
    • Cinematic - Clear the screen of text messages for PlayerGroup
    • Custom script: call DestroyForce (udg_PlayerGroup)


yeah thx ^^ :thumbs_up:
 
Status
Not open for further replies.
Top