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

If roll total ≤ X, count total as X; if roll total > X, count total as total

1609707768

Edited 1609707885
Hi there, I was wondering if there was a way to have a macro rounding up totals below X to X, while counting totals over X as the normal total. Example: I want a hero's roll of 3d6 to always count as 11 (average of a 3d6 roll), unless it's over 11. Let's say hero rolls 3d6 and gets an 8. The macro should display it as 11. Let's say hero rolls 3d6 and gets a 14. The macro should display it as 14. Is there a way to do this?
1609708175

Edited 1609708317
vÍnce
Pro
Sheet Author
Hi NutUrFatha, Try [[ {11, [[3d6]]}kh1 ]]  ( grouped rolls  info)
Vince's method is the cleanest.  If you want to see the results, its a bit uglier, but something like: [[ {11+0d0, 3d6}kh1 ]]  should also work There is a wierd thing with roll comparing that it cant easily compare a roll result and a static number, but adding a 0d0, it turns the static number into a roll result to compare the two.
1609946026

Edited 1609946045
Thank you, Vince and Jake! This helped a lot!