resetTablePicks

From RPTools Wiki
Revision as of 15:58, 10 March 2020 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=resetTablePicks |version=1.6.0 |trusted=true |description= Resets the entries in a table that have been picked. The individual entries in a ''Pick Once'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

resetTablePicks() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.6.0
Resets the entries in a table that have been picked. The individual entries in a Pick Once table can only be randomly chosen once until the table is reset with this function. This can be used to simulate a deck of cards where a card picked is no longer available for future picks until the deck is re-shuffled.

Usage

resetTablePicks(tableName)

Parameters

  • tableName - A string containing the name of the Table.

Examples

[r:resetTablePicks("Poker Deck")]
Result: Table is reset so that all entries are available to be chosen again.

See Also