TriggerRegisterPlayerChatEvent

Parameters
whichTrigger trigger

The trigger to which register the event.

whichPlayer player

The player on which chat-messages to react to.

chatMessageToDetect string

The message to react to. Pass "" to react to any message.

exactMatchOnly boolean

true if only the exact string in chatMessageToDetect should fire the trigger. false will trigger if the chatMessageToDetect appears anywhere in the entered string.

comment

Registers a chat event.

event
ConvertPlayerEvent(96)
note

The callback event will not have the EVENT_PLAYER_CHAT eventid, instead ConvertPlayerEvent(96) which has no attached global in common.j.

note

Players removed by RemovePlayer will not fire chat events.

patch

1.00

return type
event
Source code
native TriggerRegisterPlayerChatEvent takes trigger whichTrigger, player whichPlayer, string chatMessageToDetect, boolean exactMatchOnly returns event
Source
common.j
wc3modding.com
TriggerRegisterPlayerChatEvent