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

rollGreater isn' t greater or equal

1519628277
Jose J.
KS Backer
Sheet Author
So, I may be too tired to think but, when using `rollGreater` what do youse do to consider the EQUAL situation? Example: `rollGreater() 1d20 12` this suceeds if result is 13+, and fails if 13-, but if the result is 13, none of them are triggered.
1519634418
Natha
KS Backer
Sheet Author
API Scripter
You have to add a rollTotal() case to your roll template.
1519655703

Edited 1519655762
GiGs
Pro
Sheet Author
API Scripter
this puzzled me for a while too, till I discovered the NOT operator (which is ^). So if you have a system where you have to roll equal or greater, that is the same as NOT rolling less, which is: {{#^rollLess() <rollname>}} {{/^rollLess() <rollname>}}
1519656809
Natha
KS Backer
Sheet Author
API Scripter
Good one GG. That's another solution.
1519657439
Jose J.
KS Backer
Sheet Author
Dang that one was a good find. Thanks G G and Natha.
1519659243
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Also, if the expected roll is only going to be stepping in integers, you can just do {{#rollGreater() 1d20 11}}.