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

Result calculations in templates

Hi. So I’m building my own Werewolf the Apocalypse sheet (because I can). At the moment I’m sitting with a button that rolls for frenzy. The rules are quite simple, you roll your attribute with a variable difficulty. If you get 4 or more successes you frenzy. Now to the problem, can I use a rolltemplate for this, check if number of successes was more than 3 and then show a certain image and in other cases show another? If possible then how? Or do I need to write an API script for this?
1607535405
David
Sheet Author
&{template:yourTemplate}  { successes    =[[@{attribute}d10>?{Difficulty|5}]] } {{#^rollLess() successes  4}} <img src=""> {{/^rollLess() successes  4}}
David said: &{template:yourTemplate}  { successes    =[[@{attribute}d10>?{Difficulty|5}]] } {{#^rollLess() successes  4}} <img src=""> {{/^rollLess() successes  4}} Thank you!