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

Template triggering on a 19?

1585536534

Edited 1585536940
I'm trying to write a template for my game that will alert me if a d20 rolls a natural 19 (much like it can trigger on a nat20 or nat1). Is there an accepted way to accomplish something like this? The helper functions will let me trigger on a result of 19, but that's a much different thing than rolling a nat 19. The only thing I can think to do is write a jscript and have the template call it every time it rolls. Given the lag situation on roll20 lately, I'm not too keen on that solution. Specifically, my system cares about nat1, nat19, and nat20. My template presently notes if a roll happens to be a nat1 or nat20, but I have no way to alert on a nat19.
1585537106
The Aaron
Roll20 Production Team
API Scripter
Crit fail is on 1, crit success is on 20. Those can be controlled with the cf and cs flags. You could have the roll crit on 19 or 20 [[1d20cs>19]] Note: > means created or equal for dice rolls. if you want 19 to look different, you could have it as a crit success and crit fail [[1d20cs>19cf19]] That will give you green 20, red 1, and blue 19  
1585537510

Edited 1585539137
Interesting. A 1 would still be a fail? So if I'm understanding this: 1 Fumble 19 Crit and Fumble 20 Crit Leaving me free to check for a 19 by doing: {{#rollWasCrit() attack_roll}} {{#rollWasFumble() attack_roll}}This is a 19!{{/rollWasFumble() attack_roll}} {{/rollWasCrit() attack_roll}} Is that correct? EDIT: Which absolutely works. Thanks!
1585570941
The Aaron
Roll20 Production Team
API Scripter
Sweet!  =D