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 .
×

[Help] Any way to recieve a numerical result depending on the number in the dice roll?

Hello! I'm developing a homebrew system, I won't go deep on how the whole thing works out, but basically is based on the result of a d20 die. Basically, When the d20 rolls from 12 to 15 the player deals 1 point of damage, from 16 to 18 the player deals 2 and, lastly, when rolling a 19 deals 3 points of damage. I've read the "dice reference" article at the wiki (which had helped me a lot) but, with my non-coding experience, have not found a way to express it on Roll20. Is it possible? :< Thanks in advance.
1532855563
Ziechael
Forum Champion
Sheet Author
API Scripter
You can achieve this using a rollable table , you'll need to set the weightings accordingly unless you need to know the actual result of the d20 as well in which case you'd set up 20 entries all with equal weighting.
Thank you!
1532861380
Ziechael
Forum Champion
Sheet Author
API Scripter
You are very welcome... top tip: When a rollable table entry begins with a number it is treated as a die face, if you want to retain the roll of the d20 you can add 'tags' to the roll using [] ie: Side 1 = 0[1], Side 2 = 0[2] etc etc... then when you roll on the table and hover over the result you'll see the tag and know exactly what was rolled.
1532871998
GiGs
Pro
Sheet Author
API Scripter
That's a useful tip!