Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dice roll explosion notation #88

Open
Vlek opened this issue May 10, 2022 · 0 comments
Open

Add dice roll explosion notation #88

Vlek opened this issue May 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@Vlek
Copy link
Owner

Vlek commented May 10, 2022

Add a notation to dice rolls that allows for a dice to be rolled, and, if it lands on a specific value, the initial value is kept and the dice is re-rolled. The notation should allow for the lowercase variant to re-roll only one and the uppercase should re-roll as many times as the number is hit.

This is different from the re-roll notation in that it keeps the initial value and adds it towards the total for the roll.

Examples:

# Example 1
roll 1d6p6
Rolled 6
Rolled 3
Total: 9

# Example 2
roll 1d6p6
Rolled 6
Rolled 6
Total: 12

# Example 3
roll 1d6P6
Rolled 6
Rolled 3
Total: 9

# Example 4
roll 1d6P6
Rolled 6
Rolled 6
Rolled 2
Total: 14

# Example 5
roll 1d6P6
Rolled 6
Rolled 6
Rolled 6
Rolled 5
Total: 23
@Vlek Vlek added the enhancement New feature or request label May 10, 2022
@Vlek Vlek added this to the 3.0 milestone May 10, 2022
@Vlek Vlek self-assigned this May 10, 2022
@Vlek Vlek added this to To do in Roll 3.0 via automation May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant