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

Custom character sheet: ugly looking rolls?

What am I doing wrong? I tried 2 slightly different versions of the roll code I found in the guide, but both end up showing garbage text in the roll when we use them. Any advice?   <section>       <label>           Stress: <input type="number" name="attr_stress" value="current">          <button type="roll" name="roll_stress" value="&{template:rolls} {{title=stress}}          {{subtitle=@{character_name} }} {{roll= [[@{stress}d6]]}}">         </button>           Sanity: <input type="number" name="attr_sanity" value="current">          <button type="roll" name="roll_sanity" value="&{template:rolls} {{title=sanity}}          {{subtitle=@{character_name} }} {{roll= [[1d100]]}}">         </button>       </label>   </section>      <section class="skill f-col nowrap">     <h3>Attributes (max 5 per)</h3>      <div class="f-row nowrap">       <label>        Initiative         <input type="number" name="attr_init" value="current">         <button type="roll" name="roll_init" value="&{template:rolls} {{title=Initiative}}          {{subtitle=@{character_name} }} {{roll= [[1d20+(@{init}[init]) &{tracker}]]}}">          </button>        Body        <input type="number" name="attr_body" value="current">       <button type="roll" name="roll_body" value="&{template:rolls} {{title=Body}}         {{subtitle=@{character_name} }} {{roll= [[2d6+@{body}[body] ]]}}">        </button>        Mind        <input type="number" name="attr_mind" value="current">       <button type="roll" name="roll_mind" value="&{template:rolls} {{title=Mind}}        {{subtitle=@{character_name} }} {{roll= [[2d6+@{mind}[mind] ]]}}">        </button>        Spirit        <input type="number" name="attr_spirit" value="current">       <button type="roll" name="roll_spirit" value="&{template:rolls} {{title=Spirit}}        {{subtitle=@{character_name} }} {{roll= [[2d6+@{spirit}[spirit] ]]}}">        </button>        Charisma       <input type="number" name="attr_char" value="current">       <button type="roll" name="roll_char" value="&{template:rolls} {{title=Charisma}}        {{subtitle=@{character_name} }} {{roll= [[2d6+@{char}[char] ]]}}">        </button>       </label>     </div> This is a screenshot that shows when we roll:
1766796100
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
For the roll output, you need a roll template section at the end of your sheet's html (or use the basic default roll template if you don't need a lot of styling). You can fully style and lay the rolls out that way.
1766922942
Maïlare
Pro
Sheet Author
API Scripter
Hello, I agree with what Scott is saying. In your roll button code, you have write {template:rolls}. Do you have a rolltemplate named "rolls" in your HTML code ? Otherwise, it cannot work, because the only template Roll20 recognizes is "default". It have a section in the character sheet development wiki to write rolltemplates.
Thank you both! I totally missed that section in the wiki. I'm reading it now and will post how it turns out. =)