w (roll option): Difference between revisions
Jump to navigation
Jump to search
(New roll option for 1.3.b58) |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
===[ ] Display to Specific Player Option=== | ===[ ] Display to Specific Player Option=== | ||
'''[w("name"): ]''' evaluates the text after the ':' but only displays the results to the specific named user, such as: | <div>• '''Introduced in version 1.3.b58'''</div> | ||
'''[w("name"): ]''', '''[whisper("name"): ]''' evaluates the text after the ':' but only displays the results to the specific named user, such as: | |||
<syntaxhighlight lang="mtmacro" line> | |||
Everyone can see this [w("bob"): "but only Bob can see this"] | |||
</syntaxhighlight> | |||
{{roll|w}} can also take more than one player name as an argument: | |||
<syntaxhighlight lang="mtmacro" line> | |||
[w("Fred", "Joe"): d20] | |||
</syntaxhighlight> | |||
It can also take a JSON list containing player names: | |||
<syntaxhighlight lang="mtmacro" line> | |||
[h: names = json.fromList("Fred, Joe")] | |||
[w(names): d20] | |||
</syntaxhighlight> | |||
This roll option may be combined with the {{roll|s}}, {{roll|g}}, {{roll|gt}}, and {{roll|st}} options. Blank messages will not be shown to a certain user if an entire message is invisible to that user due to these roll options or the {{roll|h}} roll option. | This roll option may be combined with the {{roll|s}}, {{roll|g}}, {{roll|gt}}, and {{roll|st}} options. Blank messages will not be shown to a certain user if an entire message is invisible to that user due to these roll options or the {{roll|h}} roll option. |
Latest revision as of 23:59, 13 March 2023
[ ] Display to Specific Player Option
• Introduced in version 1.3.b58
[w("name"): ], [whisper("name"): ] evaluates the text after the ':' but only displays the results to the specific named user, such as:
Everyone can see this [w("bob"): "but only Bob can see this"]
[w():] can also take more than one player name as an argument:
[w("Fred", "Joe"): d20]
It can also take a JSON list containing player names:
[h: names = json.fromList("Fred, Joe")]
[w(names): d20]
This roll option may be combined with the [s:], [g:], [gt:], and [st:] options. Blank messages will not be shown to a certain user if an entire message is invisible to that user due to these roll options or the [h:] roll option.