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

Dice Reference

Hi,  I was unable to find in the dice reference page if there's a way to create a macro with this behaviour : " You can treat any 1 on a damage die as a 2 "
1479576813

Edited 1479576830
You would use the keep high function to do that.  {1d6,2+0d0}kh1 would roll a 1d6 and treat any roll of a 1 as a 2.
1479577225
Gold
Forum Champion
Here is the Dice Reference page if needed, <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
1479584690
Lithl
Pro
Sheet Author
API Scripter
Ed S. said: You would use the keep high function to do that.&nbsp; {1d6,2+0d0}kh1 would roll a 1d6 and treat any roll of a 1 as a 2. Note that you would have to do this for each die of damage, so 2d6 would be {d6,2+0d0}kh1 + {d6,2+0d0}kh1
Brian said: 2d6 would be {d6,2+0d0}kh1 + {d6,2+0d0}kh1 {d6, d6, 2+0d0, 2+0d0}kh2 could also work
Silvyre said: Brian said: 2d6 would be {d6,2+0d0}kh1 + {d6,2+0d0}kh1 {d6, d6, 2+0d0, 2+0d0}kh2 could also work I never knew this, how many expressions can you fit into that?&nbsp;
Ed S. said: Silvyre said: Brian said: 2d6 would be {d6,2+0d0}kh1 + {d6,2+0d0}kh1 {d6, d6, 2+0d0, 2+0d0}kh2 could also work I never knew this, how many expressions can you fit into that?&nbsp; Over a thousand.
1479654273
The Aaron
Pro
API Scripter
Make a rollable table with 6,5,4,3,2 and the 2 weighted double. Roll those instead: [[ 4t[d6min2] ]] That lets you roll as many as you need and get the proper weighting&nbsp;
1479656936
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
huh, nice idea Aaron, simplifies the expression a ton, that's for sure.
The Aaron said: Make a rollable table with 6,5,4,3,2 and the 2 weighted double. Roll those instead: [[ 4t[d6min2] ]] That lets you roll as many as you need and get the proper weighting&nbsp; I could even throw that into the spell damage for higher level and get it to work. Nice.
1480340934
The Aaron
Pro
API Scripter
(I actually have a script that creates these called&nbsp; Weighted Dice .)