Skip to content

Add flexible /roll command for custom dice rolls #57

Description

@FirebrickRed

Priority: MEDIUM
Status: TODO
Phase: Alpha-ready

Description

Add a flexible /roll command that allows players to roll any combination of dice with modifiers, separate from the skill-based rolling system in Issue #55.

Use Cases

  • Rolling damage: /roll 2d6+3 (longsword + STR)
  • Rolling hit dice: /roll 1d8 (wizard hit die)
  • Rolling multiple dice: /roll 4d6 (ability score generation)
  • Complex rolls: /roll 2d8+1d6+5 (smite damage)
  • Advantage/disadvantage: /roll 2d20adv+5 or /roll 2d20dis+3

Proposed Syntax

/roll <dice_expression> [reason]

Examples:
/roll 1d20+5              → Roll 1d20, add 5
/roll 2d6+3               → Roll 2d6, add 3
/roll 1d4                 → Roll 1d4
/roll 2d20adv+7           → Roll 2d20 advantage, add 7
/roll 1d20+5 attack       → Roll with reason "attack"

Related Issues

Future Enhancements

  • Private rolls (DM only)
  • Roll macros/saved expressions
  • Critical hit/fail detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    dm-toolsDM-specific commands and features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions