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

#rollLess() or equal to?

I am working on a roll template for my character sheet and I am having trouble finding out how to do a less-than-or-equal-to. The working code looks like this:    {{#rollLess() Roll skill}}           <tr><td colspan="2">Success!</td></tr>    {{/rollLess() Roll skill}} ... which prints "Success" whenever Roll is less than skill. What I want is to print "Success" when Roll is less than or equal to skill.  I have tried: {{#rollLess() Roll skill+1}}      <tr><td colspan="2">Success!</td></tr> {{/rollLess() Roll skill+1}} Which does not work at all. Any ideas?
1470098093
Finderski
Pro
Sheet Author
Compendium Curator
The easiest way I can think of at the moment would be to pass a value called success perhaps something like this: {{success=[[@{skill}+1]]}}, then your check would look like this: {{#rollLess() Roll success}}            <tr><td colspan="2">Success!</td></tr> {{/rollLess() Roll skill}}
That is exactly what I needed, Thanks!