-
Notifications
You must be signed in to change notification settings - Fork 29
Options Argument for API methods
Daniel Böttner edited this page Nov 18, 2021
·
1 revision
Developers can now use an optional options argument on several methods. This is still work in progress and currently only used for a single option. Please feel free to add an issue with options you would like to see.
generateLoot(tableEntity, options);
generateChatLoot(tableEntity, options)
betterTableRoll(tableEntity, options)
addLootToSelectedToken (tableEntity, token, options)
options
is expected to be a simple object like {key: value}
.
As of version 1.8.5 the only option checked for is the rollMode option.
When calling a betterRolltables method you can set the rollMode to be one of the values.
mode | Description |
---|---|
blindroll |
roll blind and only visble to gm |
gmroll |
roll visible to self and gm |
selfroll |
roll visible to self |
Example:
const mode = 'blindroll',
options = {
rollMode: mode,
};