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

Die Roll Minimum One?

If I want to a die or dice with a negative for a damage roll for instance is there anything that I can add to make the result always show as at least a 1? For example rolling 1d4-2 giving me 1, 1, 1, 2 as results instead of -1, 0, 1, 2?
1424824037
vÍnce
Pro
Sheet Author
That's funny Zoula, I was thinking about this question last night when I came across someone's macro that had [[1d6-1]]. Of course the simplest solution is to just know that anything less than 1 is equal to 1. Not sure how to do this without API. I heard that API can save the universe... You could use a rollable table where 0, and -1 would equal 1 on the table.
[[{1d4-2, 1d1}kh1]]
Ah! I get it, yeah that works. Thanks!
1424825359
vÍnce
Pro
Sheet Author
HoneyBadger said: [[{1d4-2, 1d1}kh1]] That's cool.
1424827159
Gen Kitty
Forum Champion
Following on this theme, how would you roll multiple dice and turn 1s into 2s? Say, for example, 8d6?
That would require a weighted table to mimic the odds.
1424860057
Lithl
Pro
Sheet Author
API Scripter
HoneyBadger said: That would require a weighted table to mimic the odds. Or a long macro. Say, [[{1d6-2,1d1}kl1 + {1d6-2,1d1}kl1 + {1d6-2,1d1}kl1]] etc.
or maybe use just: /r 1d4r<2 -2 works inline as well: [[1d4r<2 -2]]
1424980564
The Aaron
Pro
API Scripter
HoneyBadger said: That would require a weighted table to mimic the odds. If you're a mentor (giving you access to the API), I have a script for this: <a href="https://app.roll20.net/forum/post/950142/script-we" rel="nofollow">https://app.roll20.net/forum/post/950142/script-we</a>...