js:MapTool.chat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
|name=chat.broadcast | |name=chat.broadcast | ||
|trusted=true | |trusted=true | ||
|version=1. | |version=1.10.0 | ||
|description= | |description= | ||
Like the {{func|broadcast}} macro. | Like the {{func|broadcast}} macro. | ||
Line 24: | Line 24: | ||
|name=chat.broadcastToGM; | |name=chat.broadcastToGM; | ||
|trusted=true | |trusted=true | ||
|version=1. | |version=1.10.0 | ||
|description= | |description= | ||
Like chat.broadcast, but only includes GMs. | Like chat.broadcast, but only includes GMs. |
Revision as of 20:36, 22 September 2021
This article describes a feature or macro function that is experimental and may be subject to change.
Within the javascript environment used by js.eval
, MapTool.chat
is the entry point for sending chat messages. This page details the attributes and functions available on the MapTool.chat
object.
chat.broadcast() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.10.0
Like the broadcast() macro.
Usage
MapTool.chat.broadcast(msg);
MapTool.chat.broadcast(lstOfPlayers, msg);
Parameters
msg
String to sendlstOfPlayers
An array containing the names of the players to include
chat.broadcastToGM;() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.10.0
Like chat.broadcast, but only includes GMs.
Usage
Maptool.chat.broadcastToGM(msg)
Parameters
msg
String to send