Skip to content
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.

Have .roll accept multiple dice rolls #32

Open
emmiegit opened this issue Jul 18, 2017 · 2 comments
Open

Have .roll accept multiple dice rolls #32

emmiegit opened this issue Jul 18, 2017 · 2 comments

Comments

@emmiegit
Copy link
Collaborator

So right now .roll only accepts one dice roll configuration. It should be able to support any number of configurations, such as:

.roll 2d20 d6
@emmiegit
Copy link
Collaborator Author

emmiegit commented Jul 28, 2017

I'll attach it to this issue, but also add offsets to dice rolls.
So like, 3d6+2 rolls a d6, but adds 2 to the result, making it do 3 rolls in the range [2, 8].
The regex for the new dice roll should be something like:

(?:([0-9]+)?[dD])?([0-9]+)(?:([+-][0-9]+))?

@raylu-stripe
Copy link

so... https://github.com/raylu/sbot/blob/master/utils.py#L24
supports advantage, exploding dice, arithmetic, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants