setTableRoll

From RPTools Wiki
Revision as of 09:46, 3 May 2016 by Jagged (talk | contribs) (Created page with "{{MacroFunction |name=setTableRoll |version=1.4.0.1 |description= Sets the roll expression for the specified table. May only be used by GM or a trusted macro. |usage= <source...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setTableRoll() Function

Introduced in version 1.4.0.1
Sets the roll expression for the specified table. May only be used by GM or a trusted macro.

Usage

getTableRoll(tableName, roll)

Parameters

  • tableName - A string containing the name of the Table.
  • roll - A string containing the new roll expression. If the value is "" the roll will be set to a default expression that should cover all table entries.

Examples

[r:setTableRoll("test","")]
[r:setTableRoll("test","1d6+1")]

See Also