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

Roll multiple dice types, keep highest two

Hi,


I want to be able to roll many dice of different sizes and keep the highest two. I already tried /r 2d8 + 1d10 + 3d6k2.

Doesn't work. Tried a couple other alterations. Anyone know the special sauce way to write this?

/r {1d8,1d8,1d10,1d6,1d6,1d6}k2

This will work, but there might be a more elegant way of writing it.  

I presume you meant that you wanted to treat each die as an individual.  But perhaps you meant this:

/r {2d8,1d10,3d6}k2

That "code" keeps the two highest dice sets. For example, 2d8 (4, 5; total of 9), 1d10 (8, total of 8), 3d6 (1, 2, & 3; total of 6) results in a 17 (9 +8). I was hoping that if you had the rolls I just listed it would only grab the 5 and the 8 - the two highest individual dice. 


I am really appreciative of what you showed me b/c I didn't even know how to do that, but it isn't what I need. I am hoping that maybe you or someone else might know how to do what I just described.


Thanks!

May 21 (3 years ago)
GiGs
Pro
Sheet Author
API Scripter

Unfortunately the Roll20 dice system has a lot if limitations. Peter's first line is the best you can do without access to the API (needing a Pro Subscription).

You can use

/r {2d8 + 1d10 + 3d6}k2

Single sub-roll group expressions have various exceptions and restrictions so it can be counter-intuitive

May 21 (3 years ago)
GiGs
Pro
Sheet Author
API Scripter

Oh yes, i forgot you don't have to separate them inti separate groups with comma. Nice.

Based on what you said I tried separating each dice (instead of 3d6, 1d6 + 1d6 + 1d6) and when separated it all works as I want. 


Thanks.