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 Templates: Allow performing of calculations and rolls in the template

Right now as far as I can tell the only way to roll a d100 or to calculate a target based on skill level is to pass them to the template whole cloth, simplified example: {&template:roll} {{roll=[[1d100]]}} {{target=[[@{skill_level}/2+10]]}} I'd like to be able to perform calculations or hard-code rolls into my templates so that the actual call for the template can be simpler: Button value: {&template:roll} {{skill=@{skill_level}}} Template: <div>[[1d100]]</div> <div>Target: [[{{skill}}/2+10]]</div> Bonus points, allow for this to also work inside of template conditionals: {{#rollBetween() roll [[{{skill}}/2+10]] 100}}Success!{{/rollBetween() roll [[{{skill}}/2+10]] 100}}
1558170209
Roll20 Dev Team
Pro
Marketplace Creator
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 .