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

Maximum or Minimum Argument

December 23 (11 years ago)
Is there a maximum or minimum argument? I know I have asked this before, but could not find it.

Example something that works out like this

/roll max(12d6,24)

This would let the player makes his roll, but the minimum results would be twice his dice.
December 23 (11 years ago)
Gauss
Forum Champion
Effectively, yes.

/roll {12d6, 24}kh1
December 23 (11 years ago)
Why didn't I think of that? Thanks for the help.
December 23 (11 years ago)
Gauss
Forum Champion
NP :)
December 25 (11 years ago)
Ah, I had a chance to try it today and it did not work.generates error Cannot mix sum and M rolls in a roll group. However by editing it to 24d1 worked fine in place of just typeing the 24 modifier.

The following formula worked perfectly for what I needed.
/roll {5d6!!k1, 12d1}kl1 - For keeping the lower of the roll or 12.
/roll {5d6!!k1, 12d1}kh1 - For keeping the higher of the roll or 12.
December 25 (11 years ago)

Edited December 25 (11 years ago)
Gauss
Forum Champion
Sorry, my bad. Yeah, what you did works. :)
December 25 (11 years ago)
It does let me add values after the statement so I can do the following for a powerful spell for example
/roll {5d6!!k1, 12d1}kl1+6