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

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,231
  • 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