Calculations
Where to find it
You can find Calculations in the sidebar, under Dynamic Components. You'll see every Calculation you've built for this book. Click Add Calculation to create a new one, or click a row to open and edit it.
The modals
The editor is a single view: the Calculation's name at the top, and the rows that make it up below. You add rows, remove them, or change what a row points at.
The Calculation
- Calculation name: shown in the list and in the dropdowns of every Dynamic Component that can read a Calculation. Required, up to 70 characters. Pick a name you'll recognise later: "Attack damage (Strength + half Dexterity)" beats "calc 4".
- Rows: an ordered list of fact references. Up to 10 of them, combined left to right. The result is one number.
Calculation rows
Each row is one fact reference
A row points at one Numeric fact on one Glossary Item and contributes its current value to the Calculation. Each row holds:
- Glossary item: the item the fact belongs to. You can pick any Glossary Item in the book that has at least one Numeric fact.
- Numeric fact: the fact to read on that item. Only the chosen item's Numeric facts are listed.
- Percentage: scales the fact's value by this percent before the row joins the total. Defaults to 100, the whole value. Use it for effects like "half this stat": Dexterity at 50% contributes half its current value.
- Conjunction: Plus or Minus. This sets whether the row is added to the running total or subtracted from it. The first row's conjunction is hidden, since there is nothing to add to yet.
The final number is the rows combined in order: row 1 [± row 2] [± row 3] …
Extra Calculation per row
Optional per-row math
Each row can apply one extra arithmetic step to its own value before it joins the total. Pick one of:
- No Extra Calculation: the default. The row's scaled value goes in as is.
- Add Amount: add a fixed amount to the row's value first.
- Subtract Amount: subtract a fixed amount.
- Multiply By: multiply by a fixed amount.
- Divide By: divide by a fixed amount.
The extra operation runs after the percentage scale and before the conjunction joins the row to the running total.
Published Calculations are locked
Once a Calculation is part of a published expansion of a book, it locks: its card in the list shows a lock icon and no longer opens the editor. Hover the card and click Duplicate to create a copy with (Copy) appended to the name, then edit that. The original stays unchanged for the readers who bought that expansion.
Validation
A Calculation can become invalid in a few ways. The list page marks broken Calculations with a warning icon, and the publish check rejects any book that contains one.
- A row references a Glossary Item or a fact that has since been deleted.
- A row points at a fact whose type changed from Numeric to something else. Calculations can only read Numeric facts.
Deleting a Calculation that's in use breaks whatever reads it: a Dice Template modifier, a Trade Screen modifier, or a combat ability's damage formula. The editor warns you when you delete, so you can cancel or fix what breaks afterwards.