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

Not getting a rolltemplate to work.

1589108512
zun z.
Sheet Author
Hi! I'm learning how to create a custom character sheet and I face with an error I don't know how to resolve: I've this button: <button      title="@{skillName}"      type="roll"      name="roll_Skill"      value="&{template:skillRoll} {{name=@{skillName}}} {{result=[[2d6+@{skillTotal}]]}}"> </button> And this rolltemplate at the bottom of the character sheet: <rolltemplate class="rolltemplate-skillRoll">   <div class="container">     <div class="header">       {{#name}}<div class="sheet-title">{{name}}</div>{{/name}}     </div>     <div class="sheet-content">       {{#result}}<div class="sheet-desc">{{result}}</div>{{/result}}     </div>   </div> </rolltemplate> When I click on the button this error shows up in the console: instrument.ts:129 Didn't find a roll template called 'skillRoll' I hope I can get some help here. Thank you in advance.
You might have to add the "sheet" property to your class. Everything that does not have the prefix "sheet" will be ignored in CSS for example. <rolltemplate class="sheet-rolltemplate-skillRoll"> might work
1589110537
GiGs
Pro
Sheet Author
API Scripter
As Arthega suggests, this line <rolltemplate class="rolltemplate-skillRoll"> should be <rolltemplate class="sheet-rolltemplate-skillRoll">
1589111694
zun z.
Sheet Author
Oh! I didn't think about trying that. Thank you so much!