table: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (table (function) moved to table: I initially named this 'table (function)' because I thought it would conflict with the sort of table that this function rolls on, but that panel is labeled 'Tables' and a 'Table' could be delegated to a glossary en) |
Verisimilar (talk | contribs) mNo edit summary |
||
Line 39: | Line 39: | ||
|also= | |also= | ||
[[ | [[Tables]], [[tableImage|tableImage()]] | ||
}} | }} | ||
[[Category:Table Function]] | [[Category:Table Function]] |
Revision as of 22:04, 10 March 2009
table() Function
• Introduced in version 1.3b39
Gets the text value from the specified table. If the row is not specified then the default roll for the table is used. The row can be either a constant or a roll.
Usage
table(name)
table(name, row)
tbl(name)
tbl(name, row)
Parameters
name
- A string containing the name of the table.row
- The row of the table that should be returned.
Examples
Example 1: Display a random value from table
"tbl1"
using default roll:
[r: table("tbl1")]
Example 2: Display the first value from table "tbl1"
:
[r: table("tbl1", 1)]
Example 3: Display one of the first four values from "tbl1"
, chosen randomly:
[r: table("tbl1", "1d4")]