setTableRoll: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page setTableRoll to SetTableRoll without leaving a redirect: Converting page title to first-letter uppercase)
m (Conversion script moved page SetTableRoll to setTableRoll: Converting page titles to lowercase)
(No difference)

Revision as of 23:31, 9 February 2023

setTableRoll() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.4.0.1
Sets the roll expression for the specified table.

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