PubMsg: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
Nipodemos (talk | contribs)
Add EventMacro event condition: PubMsg
 
m 4epT moved page pubMsg to PubMsg over a redirect without leaving a redirect
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:PubMsg}}


:* Is a condition that checks public messages, is true when the message matches the given regex.
[[Category:EventMacro_Automacros]]
 
: Syntax:
PubMsg <[[EventMacro#Regex|Regex]]>
 
: Example:
PubMsg /(buff|bless)/
 
: Set variables:
$.PubMsgLastName => Saves the name of the player which message activated PubMsg
$.PubMsgLastMsg => Saves the message which activated PubMsg
[[Category:EventMacro_Conditions_Event]]
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 21:54, 12 September 2021

PubMsg
  • Description: Is checked on public messages, is true when the message matches the given regex.
Syntax:
PubMsg <Regex>
Example:
PubMsg /(buff|bless)/
Set variables:
$.PubMsgLastName => Saves the name of the player which message activated PubMsg
$.PubMsgLastMsg => Saves the message which activated PubMsg