• 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.

[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