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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Roll template output problem

1537813310

Edited 1537813345
Kari
Sheet Author
This is my nightmare. For some reason this ghost } is appearing only  in front of this one roll template. Here is <rolltemplate class="sheet-rolltemplate-URPGS_Attack"> <table> <tr><th><span class="tcat"></span>{{name}}</th></tr> <tr><td><span class="tcat">Attack: </span>{{roll}}</td></tr> <tr><td><span class="tcat">Damage: </span>{{roll2}}</td></tr>} </table> </rolltemplate> The bit that calls <input type="text" placeholder="Attack Name" name="attr_AtkNm1"> <input type="text" placeholder="Attack Roll" name="attr_Atk1"> <button class='sheet-dten' type="roll" name="Attack1" value="&{template:URPGS_Attack}{{name=@{AtkNm1}}}{{roll=[[@{Atk1}]]}}{{roll2=[[@{Dmg1}]]}}"></button> <input type="text" placeholder="Damage Roll" name="attr_Dmg1"> And the CSS for the template /* Template Attack */ .sheet-rolltemplate-URPGS_Attack table { width: 90%; border: 1px solid; color: black; font-size 1em; font-family: Arial, Helvetica, sans-serif; } .sheet-rolltemplate-URPGS_Attack th { background-color: red; color: black; padding: 2px; border-bottom: 1px solid black; line-height: 1.6em; font-size: 1.2em; float: center; } .sheet-rolltemplate-URPGS_Attack .userscript-tcat { font-weight: bold; } .sheet-rolltemplate-URPGS_Attack td { padding: 5px; border-bottom: 1px solid black; } .sheet-rolltemplate-URPGS_Attack tr:nth-child(odd) { background-color: rgba(217, 217, 214,1); } .sheet-rolltemplate-URPGS_Attack tr:nth-child(even) { background-color: rgba(233, 233, 233,1); } .sheet-rolltemplate-URPGS_Attack .inlinerollresult { display: inline-block; min-width: 3em; text-align: center; border: 0px; background-color: none; padding: 10px; font-size: 35px; } .sheet-rolltemplate-URPGS_Attack .inlinerollresult.fullcrit { color: green; border: 0px; background-color: none; padding: 20px; font-size: 30px; } .sheet-rolltemplate-URPGS_Attack .inlinerollresult.fullfail { color: red; border: 0px; background-color none; padding: 10px; font-size: 20px; } .sheet-rolltemplate-URPGS_Attack .inlinerollresult.importantroll { font: #4A57ED; border: 0px; background-color: none; padding: 10px; font-size: 20px; } If anyone can rescue me from this mystery bracket I would be really appreciative.
1537815045
Scott C.
Roll20 Production Team
Compendium Curator
Your problem is on the 5th line of your roll template: <tr><td><span class="tcat">Damage: </span>{{roll2}}</td></tr> } You've got an extra curly bracket at the end. Not sure why it's showing up before the roll template.
1537818278
Kari
Sheet Author
Thank you so much. I had gone code blind