Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Events/Chat Message

From SC2Mapster Wiki
Jump to: navigation, search

Game-Chat And Console

Chat Message


Game - Player p types a chat message containing s, matching exact|Exactly/Partially

Galaxy Code

void TriggerAddEventChatMessage (trigger t,int player,string inText,bool exact)


This event fires when the specified chat message is typed by the specified player. If exact match is selected, then the string the player enters must be identical to the specified string for the event to fire. If partial match is selected, then the event will fire if the player enters the specified string plus any number of additional characters after it. Use the "Chat String" function to refer to the message being entered. Use "Triggering Player" to get the player that typed the message.