PubMsgDist: Difference between revisions
Jump to navigation
Jump to search
(Add EventMacro event condition: PubMsgDist) |
m (add this page to event Conditions category) |
||
Line 13: | Line 13: | ||
$.PubMsgDistLastDist => Saves the distance to the player which message activated PubMsgDist | $.PubMsgDistLastDist => Saves the distance to the player which message activated PubMsgDist | ||
$.PubMsgDistLastID => Saves the openkore ID of the player which message activated PubMsgDist | $.PubMsgDistLastID => Saves the openkore ID of the player which message activated PubMsgDist | ||
[[Category:EventMacro_Conditions_Event]] |
Revision as of 14:16, 4 July 2019
Is checked on public messages, is true when the message matches the given <Regex> and the distance match the given condition.
- Syntax:
PubMsgDist <Regex> <Math condition operators>
- Example:
PubMsgDist /(buff|bless)/ < 5
- Set variables:
$.PubMsgDistLastName => Saves the name of the player which message activated PubMsgDist $.PubMsgDistLastMsg => Saves the message which activated PubMsgDist $.PubMsgDistLastPos => Saves the position of the player which message activated PubMsgDist $.PubMsgDistLastDist => Saves the distance to the player which message activated PubMsgDist $.PubMsgDistLastID => Saves the openkore ID of the player which message activated PubMsgDist