getTablePickOnce: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page getTablePickOnce to GetTablePickOnce without leaving a redirect: Converting page title to first-letter uppercase) |
m (Text replacement - "source>" to "syntaxhighlight>") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
Returns a {{code|1}} if the specified table has been set as ''Pick Once'' and a {{code|0}} if it hasn't. | Returns a {{code|1}} if the specified table has been set as ''Pick Once'' and a {{code|0}} if it hasn't. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getTablePickOnce(tableName) | getTablePickOnce(tableName) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|tableName|A string containing the name of the table.}} | {{param|tableName|A string containing the name of the table.}} | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r:getTableRoll("Poker Deck")] | [r:getTableRoll("Poker Deck")] | ||
</ | </syntaxhighlight> | ||
'''Returns:''' Either a {{code|1}} or {{code|0}} if the table is or isn't set as ''Pick Once''. | '''Returns:''' Either a {{code|1}} or {{code|0}} if the table is or isn't set as ''Pick Once''. | ||
|also= | |also= |
Latest revision as of 23:59, 14 March 2023
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.