NpcMsg: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: NpcMsg)
 
m (4epT moved page npcMsg to NpcMsg over a redirect without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Is checked on npc conversation messages, is true when the message matches the given regex.
{{Template:NpcMsg}}


: Syntax:
[[Category:EventMacro_Automacros]]
NpcMsg <[[EventMacro#Regex|Regex]]>
 
: Example:
NpcMsg /your return point was saved/
 
: Set variables:
$.NpcMsgLastName => Saves the name of the npc which message activated NpcMsg
$.NpcMsgLastMsg => Saves the message which activated NpcMsg
[[Category:EventMacro_Conditions_Event]]
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 21:50, 12 September 2021

NpcMsg
  • Description: Is checked on npc conversation messages, is true when the message matches the given regex.
Syntax:
NpcMsg <Regex>
Example:
NpcMsg /your return point was saved/
Set variables:
$.NpcMsgLastName => Saves the name of the npc which message activated NpcMsg
$.NpcMsgLastMsg => Saves the message which activated NpcMsg