• 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] ANY Player enters a Chat Message?

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,230
  • Events
    • Player - Player 1 (Red) types a chat message containing seeall as An exact match
    • Player - Player 2 (Blue) types a chat message containing seeall as An exact match
    • Player - Player 3 (Teal) types a chat message containing seeall as An exact match
    • Player - Player 4 (Purple) types a chat message containing seeall as An exact match
    • Player - Player 5 (Yellow) types a chat message containing seeall as An exact match
    • Player - Player 6 (Orange) types a chat message containing seeall as An exact match
    • Player - Player 7 (Green) types a chat message containing seeall as An exact match
    • Player - Player 8 (Pink) types a chat message containing seeall as An exact match
    • Player - Player 9 (Gray) types a chat message containing seeall as An exact match
    • Player - Player 10 (Light Blue) types a chat message containing seeall as An exact match
    • Player - Player 11 (Dark Green) types a chat message containing seeall as An exact match
    • Player - Player 12 (Brown) types a chat message containing seeall as An exact match
If I want something to happen when ANY player enters the valid chat message, is this the only way to do this or is it possible with 1 event? :confused:
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
There is another way as far as I see it.
Paste following action in your initialization trigger (and remove those events you had in the other trigger)

  • Initialize
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to YOUR_EVENT_TRIGGER the event (Player - (Player((Integer A))) types a chat message containing seeall as An exact match)
thats all :)
/Regards
 
Level 2
Joined
Mar 14, 2011
Messages
11
Here is a slightly more elegant solution for adding the event to all players.
Výstřižek.PNG
 
Last edited:
Status
Not open for further replies.
Top