roll-dice
Roll arbitrary dice for custom checks, random tables, or DM-specified rolls. For D&D 5e mechanics, prefer: dnd5e-roll-skill (skills), dnd5e-roll-save (saves), dnd5e-roll-attack/dnd5e-roll-damage (combat), or dnd5e-item-use (spells/abilities). isCritical / isFumble flags fire correctly on the KEPT d20: works for plain 1d20, advantage 2d20kh1 (a 20 on the kept die marks crit), and disadvantage 2d20kl1 (a 20 on the discarded die does NOT count). Module v8.5.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formula | Yes | Dice formula: "1d20+5", "2d6", "4d6kh3" (keep highest 3), "2d20kh1" (advantage), "2d20kl1" (disadvantage) |