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

Keep One from Unalike Dice

Hi all, trying to figure out if it is possible to do a keep one if I roll unalike dice. What works: /roll 3d4!!k1 - This rolls a d4 3 times, explodes on max roll, highest result is what is kept and matters. What I'd like to work: I'm trying to put in a way for the player to roll to attributes (for a saving throw), but they might not be the same value. So the player might role a d10!! and a d6!!, with the highest result being what is kept. We can obviously do this via visual inspection, but wondering if there is a way to code it in to do automatically. Thank you.
1588751349
Ziechael
Forum Champion
Sheet Author
API Scripter
I might not be understanding 100% but the following would give you the highest result of the two exploding groups of rolls: /r { d10!!, d6!! }k1
Thanks Ziechael! That is what I asked, though apparently I didn't ask enough (my fault). I have the following macro: /roll ?{Ability Selection| Fortitude,1d@{mod-Strength}!! + 1d@{mod-Willpower}!!| Reflex,1d@{mod-Dexterity}!! + 1d@{mod-Perception}!!| Will,1d@{mod-Constitution}!! + 1d@{mod-Intelligence}!!} Wherein mod X has a value like 4, 6, 8, etc. What I'd like to do for those 3 saving throws is to keep the higher roll, instead of adding them together. I thought with just get the base code I'd be able to figure it out with variables, but I keep getting errors. Thank you for your reply.