Change a roll table
update-roll-tableUpdate roll table settings and entries: name, description, formula, replacement, display, and add/change/remove entries. Validates ranges and warns on gaps before writing.
Instructions
Change the settings and entries of a roll table: name, description, formula, replacement (false means drawn entries do not come again), displayRoll, change entries by id, add entries, remove entries by id. The whole result is checked before anything is written: overlapping ranges are refused, gaps are warnings. Removing entries needs the roll table permission set to full. Entry ids come from get-roll-table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name | |
| formula | No | New dice formula, e.g. "1d8" | |
| results | No | Changes to existing entries | |
| tableId | Yes | Id or exact name of the table | |
| addResults | No | New entries; a missing range follows the highest one | |
| description | No | New description; an empty text removes it | |
| displayRoll | No | Show the roll in the chat message of a draw | |
| replacement | No | true: drawn entries stay in the table; false: they are marked and skipped | |
| removeResults | No | Ids of entries to remove |