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 .
×

Roll Template Help

1466480209

Edited 1466480383
Very new to roll20. Trying to create a roll template. Getting error: app.js?1465844948:22 Uncaught Error: Unclosed section "rollTotal() val 1" at 201 &lt;button type='roll' value='&{template:green} {{name=Green Power Die}} {{val=[[1d6]]}}' name='roll_green'&gt;Green&lt;/button&gt; &lt;tr&gt; &nbsp; {{#rollTotal() val 1}} &nbsp; &nbsp; &lt;td&gt;&lt;span&gt;Hearts:&lt;/span&gt; 0&lt;td&gt; &nbsp; {{/rollTotal() val}} &nbsp; {{#rollTotal() val 2}} &nbsp; &nbsp; &lt;td&gt;&lt;span&gt;Hearts:&lt;/span&gt; 0&lt;td&gt; &nbsp; {{/rollTotal() val}} &lt;/tr&gt; Any idea why this isn't working? Full test template:&nbsp; <a href="http://pastebin.com/BzaeJ5Mx" rel="nofollow">http://pastebin.com/BzaeJ5Mx</a>
1466482799
vÍnce
Pro
Sheet Author
What are you wanting to accomplish Andrew? It looks like your closing elements do not match the opening element. Normally you want something like(html removed for simplicity) {{#rollTotal() val 1}} Foo:{{rollTotal() val 1}}&nbsp;{{/rollTotal() val 1}}
Ah I see. The wiki only had a no-argument example: {{#rollWasCrit() attack}} Crit: {{dmgcrit}} {{/rollWasCrit() attack}} I did not realize I needed to repeat the args in the closing portion. I will attempt that when I get home later. Thanks!