[Solved] Detecting generic chat message?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
  • Unclaim base
    • Events
      • Player - Player 1 (Red) types a chat message containing -unclaim as An exact match
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Bases[(Integer A)] Equal to Player 1 (Red)
            • Then - Actions
              • Set Bases[(Integer A)] = Bases[11]
              • Set BasesInUse[(Integer A)] = False
              • Game - Display to (Player group((Triggering player))) the text: |cffffcc00Base 1 ha...
            • Else - Actions
I can only find a string message detection for one player and not a generic chat message for any player. Is that possible?
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
No it's not. You can however add the events for every player from 1 to 12. Then you can use (Triggering player) to refer to the player typing in chat.
  • Chat
    • Events
      • Player - Player 1 (Red) types a chat message containing a as An exact match
      • Player - Player 2 (Blue) types a chat message containing a as An exact match
      • Player - Player 3 (Teal) types a chat message containing a as An exact match
      • Player - Player 4 (Purple) types a chat message containing a as An exact match
      • ....
    • Conditions
    • Actions
 
Level 12
Joined
Dec 2, 2016
Messages
733
No it's not. You can however add the events for every player from 1 to 12. Then you can use (Triggering player) to refer to the player typing in chat.
  • Chat
    • Events
      • Player - Player 1 (Red) types a chat message containing a as An exact match
      • Player - Player 2 (Blue) types a chat message containing a as An exact match
      • Player - Player 3 (Teal) types a chat message containing a as An exact match
      • Player - Player 4 (Purple) types a chat message containing a as An exact match
      • ....
    • Conditions
    • Actions
oh good thanks
 
Status
Not open for further replies.
Top