Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Rolling dice and counting results that were not kept

1532029720

Edited 1532031362
Hello! I'm running a game that keeps 2 dice out of a mixed pool (d6s and d10s) for a total. The leftover results have special results if you run 6s (or higher) or 1s. I can't figure out a way to make this work as a roll20 roll (I mean, the first part is easy - /r {Xd6+Yd10} - but the rest looks impossible) let alone put it in a character sheet. Can anyone help me?
1532031377
The Aaron
Pro
API Scripter
There probably isn't a way to do this without an API script.
Thanks for the reply, Aaron! Do you know how would I go about doing that as an API script?
1532099069
The Aaron
Pro
API Scripter
My approach would be similar to the BashDice, CthulhuTechDice, MutantYearZero, WildDice and ZombieDice scripts I've written in the past.  The basic idea would be to have an API command something like: !md 2 3 where the arguments are the number of 6s and the number of 10s to roll.  The script would then generate the rolls and do the categorization, then report them out in a nicely formatted message. 
Thanks a lot!
1532106196
The Aaron
Pro
API Scripter
If you're familiar with javascript, BashDice and WildDice would be pretty easy to modify for this.