setTableEntry: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page SetTableEntry to setTableEntry: Converting page titles to lowercase) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
Sets the result for a specified roll value. Returns {{true}} if update successful and {{false}} if not. | Sets the result for a specified roll value. Returns {{true}} if update successful and {{false}} if not. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setTableEntry(tableName, roll, result) | setTableEntry(tableName, roll, result) | ||
setTableEntry(tableName, roll, result, imageId) | setTableEntry(tableName, roll, result, imageId) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|tableName|A string containing the name of the Table.}} | {{param|tableName|A string containing the name of the Table.}} |
Latest revision as of 23:59, 14 March 2023
setTableEntry() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.4.0.1
Sets the result for a specified roll value. Returns
true
(1
) if update successful and false
(0
) if not.Usage
setTableEntry(tableName, roll, result)
setTableEntry(tableName, roll, result, imageId)
Parameters
tableName
- A string containing the name of the Table.roll
- A value to select the desired table entry.result
- A string containing the result returned by the table() function.imageId
- Optional and is the asset id of an image that will be returned by the tableImage() function.