setTableEntry: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setTableEntry |version=1.4.0.1 |description= Sets the result for a specified roll value. Returns {{true}} if update successful and {{false}} if not. May...") |
No edit summary |
||
Line 2: | Line 2: | ||
|name=setTableEntry | |name=setTableEntry | ||
|version=1.4.0.1 | |version=1.4.0.1 | ||
|trusted=true | |||
|description= | |description= | ||
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= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 12:30, 3 May 2016
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)
Parameters
tableName
- A string containing the name of the Table.roll
- Whether or not the table can be seen by players in the Table Window,true
(1
) orfalse
(0
).result
- A string containing the result returned by the table() function.