@ -24,11 +24,10 @@ All books have been converted into .md files. Use those whenever possible, but
## Dice Rolling
Use Python's `random` module to roll dice. Always show the roll formula, the result, and any modifiers. Example:
Dice rolls will be passed to you as JSON data from Foundry VTT. Use the following documentation to figure out what the roll was:
```
🎲 Attack Roll: d20 + 7 → [14] + 7 = 21 vs AC 18 — Hit!
```
- [Foundry ChatMessage API](https://foundryvtt.com/api/classes/foundry.documents.ChatMessage.html). Use it and the topics within to for rules on how Foundry works in general. This relates to how Foundry works, regardless of game rules system it's running. It might be helpful, but it's not as useful as the next link.
- [Pf2e Foundry VTT Game System source code](https://github.com/foundryvtt/pf2e). This is the source code for the Pathfinder game system on Foundry VTT. Use it to figure out what the data means in relationship to the Pathfinder game system specifically (as opposed to Foundry VTT in general). This will most likely be more useful than the previous link.
Log every roll to `rolls.md` with a timestamp, description, formula, and result.