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

Rolling 1d12, and then 1d20 when the result is 12

1583401771
Laurent
Pro
Sheet Author
API Scripter
I would like to implement some roll dice logics, but can't find a way to do it using Roll20 engine. Here is what I would like to see : roll 1d12 and get the result, except if the result is 12, in which case, roll 1d20 and then take that result if it is above 12. Would someone have an idea how to do that (or know it to be impossible, I would stop searching...)
1583417858

Edited 1583418599
I believe that most things that require conditional logic (if this then that) need to be an API script.
1583423266
Pantoufle
Pro
Sheet Author
Translator
I think you may be able to achieve that with some roll template if you're using a custom character sheet
1583436549
GiGs
Pro
Sheet Author
API Scripter
As noted, the only way to do that is through the API or a rolltemplate (the clunkiest solution). One other solution is a rollable table, with numbers 1-20, with numbers 1-11 having weights of 20, 12 having a weight of 12, and 13-20 having weights of 1. This gives you the same odds as the system you described. Failing that you can just roll them both, the d20 and d20, and manually take the d20 if it is higher and the d12 is a 12.
1583447023

Edited 1583447056
[[[[d12>12]]d20]]
1583448536

Edited 1583448706
GiGs
Pro
Sheet Author
API Scripter
The problem with that is if you roll less than 12 on your first roll, it wont display the result, and because of the inner brackets, will just display 0 - there's no way to roll what you actually rolled. You could do  /roll [[1d12>12]]d20 and you'd be able to hover over the roll to see what it rolled - but if you do roll a 12 on that first roll, the d20 might still get less than that and would be displayed as the result. So this kind of approach is not really practical.
1583486597
Laurent
Pro
Sheet Author
API Scripter
Thank you for your answers. I hadn't though of the rollable table. I'll give it a try.