...
messagedata (table)
A table containing information about the message.
clearChat
| Code Block | ||
|---|---|---|
| ||
function clearChat( ) |
...
recipients (string (or table)) [optional]
A string (or integer indexed table of strings) containing the user name(s) of the desired recipient(s)
deliverOOBMessage
| Code Block | ||
|---|---|---|
| ||
function deliverOOBMessage( tabledata, [recipients] ) |
...
recipients (string (or table)) [optional]
A string (or integer indexed table of strings) containing the user name(s) of the desired recipient(s)
onReceiveOOBMessage
| Code Block | ||
|---|---|---|
| ||
handlerfunction onReceiveOOBMessage( tabledata ) |
...
tabledata (table)
A LUA table object.
registerSlashHandler
| Code Block | ||
|---|---|---|
| ||
function registerSlashHandler( command, callback, helptext ) |
This function registers a handler function that will be called if the specified slash command is requested.
...
callback (function)
The LUA function that will be called when the specified slash command is requested.
helptext (string or table)
The string to append to the command in the default help output to indicate usage. If a table is used, it is assumed to be a numerically-indexed table of strings, and multiple entries will be added to the default help output.
setChatMood
| Code Block | ||
|---|---|---|
| ||
function setChatMood( message ) |
...
message (string)
The text message to display as mood text.
throwDice
| Code Block | ||
|---|---|---|
| ||
function throwDice( dragtype, dice, modifier, description, [customdata] ) |
...
customdata (any) [optional]
A custom value useful for e.g. storing special information about the roll required when the results are displayed (see dragdata.setCustomData).
throwDice
| Code Block | ||
|---|---|---|
| ||
function throwDice( data ) |
...
data (table)
See the dragdata object for a description of the table (same as dragdata.setData)
vote
| Code Block | ||
|---|---|---|
| ||
function vote( message ) |
...