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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Roll Template: Additional Helper Function (value from list)

1535302486
Marco
Pro
Sheet Author
I suggest an additional Helper Function for Roll Templates. This function is true, if an inline roll has a value from a given list. This list has 1 to n arguments and each argument is an inline roll or number. Syntax:  {{#rollFromList() rollname 1 7 11 15}}  if the inline roll "rollname" is 1 or 7 or 11 or 15 then do something  {{/rollFromList() rollname 1 7 11 15}} Note: It doesn't bring new functionality, but reduces the amount of tests for extensive logic patterns. Some TTRPGs have multiple usage of a single d100 with different thresholds, including an usage of reverse value of the initial roll. It would reduce the amount of logic tests by factor 10 and higher.
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .