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 roller] Multiple successes

I'm trying to figure out the best way to handle this: Premise: Skill check is made with a d12. Success is a result of 6 or above. An additional success is scored on a roll of 10 or above. At the moment I use a combination of success counts and critical scores. <button type='roll' name='roll_generaldice' value='&{template:default} {{name=@{character_name}}} {{result=[[1d12>6cs>10]]}}'></button> It displays a number ("0" or "1") indicating if the roll was 6 or above, and if the roll was 10 or above it changes the colour of the box around the number. So a "1" in a green box is actually two successes. Is there a way to make the output "0", "1", or "2" instead?
1608120507
Oosh
Sheet Author
API Scripter
You can use the failure operator to give a -1 on the 5 or less - this gives you a result of -1, 0 or 1. Then you just need to +1 to give 0, 1 or 2: [[1d12cs>10cf<5>10f<5 + 1]]
Amazing! Thank you so much!