update-rolltable
Update a RollTable by editing its fields (name, description, formula) and/or entries. Choose targeted per-entry edits to fix one entry without affecting others, or destructive full replacement to replace all results.
Instructions
Update a RollTable's fields (name, description, formula, replacement, displayRoll) and/or its entries, two ways: editResults = TARGETED per-entry edits — name an entry by its roll face (e.g. 7 on a d12) or resultId (from get-rolltable) and patch just its text, linked uuid, weight, and/or range; every OTHER entry (ranges, weights, @UUID item links) stays byte-identical — the right way to fix a typo on one entry of a tuned table. text/uuid REPLACE that entry's content (copy the raw text from get-rolltable and change only what you need). results = DESTRUCTIVE whole-set replace (all entries deleted and recreated with auto-assigned ranges). Bad edits are isolated + reported; an introduced range overlap/gap is warned. GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New table name. | |
| formula | No | New roll formula. | |
| results | No | DESTRUCTIVE: replaces ALL existing results (deleted + recreated with auto-assigned ranges). To change one entry, use editResults instead. | |
| identifier | Yes | Table id or exact name. | |
| description | No | New description. | |
| displayRoll | No | Show the roll when drawing. | |
| editResults | No | TARGETED per-entry edits — fix one entry's text/link/weight/range in place; every other entry (ranges, weights, @UUID item links) is left byte-identical. Mutually exclusive with `results`. | |
| replacement | No | Draw with replacement. |