getTablePickOnce: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=getTablePickOnce |version=1.6.0 |trusted=true |description= Returns the {{code|1}} if the specified table is set as ''Pick Once'' and a {{code|0}} if it...") |
No edit summary |
||
Line 4: | Line 4: | ||
|trusted=true | |trusted=true | ||
|description= | |description= | ||
Returns | Returns a {{code|1}} if the specified table has been set as ''Pick Once'' and a {{code|0}} if it hasn't. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
Line 14: | Line 14: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r:getTableRoll("Poker Deck")] | [r:getTableRoll("Poker Deck")] | ||
</source> | </source> | ||
'''Returns:''' Either a {{code|1}} or {{code|0}} if the table is or isn't set as ''Pick Once''. | |||
|also= | |also= | ||
{{func|setTablePickOnce}} | {{func|setTablePickOnce}} | ||
}} | }} | ||
[[Category:Table Function]] | [[Category:Table Function]] |
Revision as of 16:10, 10 March 2020
getTablePickOnce() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.6.0
Returns a
1
if the specified table has been set as Pick Once and a 0
if it hasn't.Usage
getTablePickOnce(tableName)
Parameters
tableName
- A string containing the name of the table.
Examples
[r:getTableRoll("Poker Deck")]
1
or 0
if the table is or isn't set as Pick Once.