Triggers/Events/Chat Message

From SC2Mapster Wiki
Jump to: navigation, search

Game-Chat And Console

Chat Message

GUI

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)

Description

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.

Parameters