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

Added support for 'aapdd' style shorthand dice rolling. #1150

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

tucker87
Copy link
Contributor

@tucker87 tucker87 commented Jan 9, 2023

I tested using a Discord bot for a bit and enjoyed the shorthand it used for dice so I've made the /roll command able to use that shorthand.

aapdd is equivalent to 2da+1dp+2di (I've put a substitute to allow for d or i to mean difficulty

This doesn't kick in unless the main parser comes back with a StringTerm without a number in it which will fail to evaluate so it shouldn't clash with any existing systems.

Copy link
Collaborator

@Esrin Esrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea

@Esrin Esrin merged commit 18eaa32 into StarWarsFoundryVTT:foundry-10 Jan 11, 2023
@tucker87 tucker87 deleted the diceShorthand branch January 12, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants