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

Roll Template Helper Functions

1470094747
Finderski
Pro
Sheet Author
Compendium Curator
Perhaps an odd question (and I probably already know or suspect the answer, but here goes anyway...), is there a way to use a helper function to check multiple rolls in one call?  For example, I have R1 and R2 and I want to use the {{#rollTotal() }} helper function to check the value of both dice (I want to know if they are both 5)? Can I make one call to check both dice against the same value simultaneously? 
1470103795

Edited 1470103915
The Aaron
Forum Champion
API Scripter
I'm pretty certain you'll need to nest checks. &nbsp;Unfortunately, that means you'll have to duplicate some code. See:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates#Helper_Func" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Helper_Func</a>...
1470103998
Finderski
Pro
Sheet Author
Compendium Curator
Yeah, that was my assumption. I was hoping to simplify my code, because it is already nasty complex. :-/ Oh well.&nbsp;