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

Complex Dice Roller & Forum Copy functionality #20

Open
kalebhermes opened this issue Aug 9, 2018 · 1 comment
Open

Complex Dice Roller & Forum Copy functionality #20

kalebhermes opened this issue Aug 9, 2018 · 1 comment

Comments

@kalebhermes
Copy link

kalebhermes commented Aug 9, 2018

Per this comment on the D&DBeyond Forum Thread

No, I am updating the dice roller so it will take formats like 1d20 + 4 1d12 +3 3d6 +2 and roll all of those at once instead of now where you have to click on each set. The forms roll tags, do not handle multiple dice being rolled at the same time.

I'm not sure how you were planning on implementing your solution, but one way around this problem would be to outline the results of each roll in the modal, then total them at the bottom. This would allow clicking a single roll in the modal to copy it's contents. Alternately, a solution could be implemented that copies the 'roll string' for each of the rolls as one long string.

Examples

Total All Rolls

Presented as below in the modal

1d20+4 = 12+4 = 16 <- clickable to copy [roll]1d20+4[/roll]
1d12+3 = 8+3 = 11 <- clickable to copy [roll]1d12+3[/roll]
3d6+2 = 12 + 2 = 14 <- clickable to copy [roll]3d6+2[/roll]
Total = 41

Copy All At Once

Clicking 1d20 + 4 1d12 +3 3d6 +2 opens the modal and presents the result however you'd like, clicking copy copies [roll]1d20+4[/roll] [roll]1d12+3[/roll] [roll]3d6+2[/roll] to the clipboard.

@mouse0270
Copy link
Owner

That is exactly what I planned on doing as soon as I finish the complex dice roller.

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

No branches or pull requests

2 participants