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" buttons in my Character sheet not working properly

To be clear -- some are. Skills, for instance. When I click on the little dice icon, the appropriate information shows up in chat.  But with saving throws, or attacks, when I click on the dice icon, I hear the audio report, as if the dice have been rolled, and a blank line of chat arrives, but there is no information contained in it.  I would add a sample of the html... but the line for the dice roller is too long to screenshot.  Ideas? Sorry I'm not more helpful in my wording. -Dan
1646855740
Finderski
Pro
Sheet Author
Compendium Curator
Post the code, the actual code is usually more useful than screenshots.  Just click on the magic wand and select Code, then paste your code inside that. It will look something like this: <button type="roll" name="roll_mybutton" value="stuff here" /> However, if nothing is showing up in chat at all, you may need to look in the Dev Console of your browser and see what the console is saying, as well...
Here's the Fortitude saving throw code. It's one of the ones that doesn't work.                  <td class="sheet-statlabel-big" style="width: 60px;">Fortitude<br><div style="font-size: 0.65em;">(Constitution)</div></td>                 <td><input class="sheet-inputbox" type="number" name="attr_fortitude" style="height: 24px; width: 40px; font-weight: bolder" value="@{fortitudebase}+@{conmod}+@{fortitudemiscmod}+@{fortitudetempmod}" disabled="true"> = </td>                 <td><input class="sheet-inputbox" type="number" name="attr_fortitudebase" style="height: 24px; width: 40px;"> + </td>                 <td><input class="sheet-inputbox" type="number" value="@{conmod}" disabled="true" name="attr_fortitudeabilitymod" style="height: 24px; width: 40px;"> + </td>                 <td><input class="sheet-inputbox" type="number" name="attr_fortitudemiscmod" style="height: 24px; width: 40px;"> + </td>                 <td><input class="sheet-inputbox" type="number" name="attr_fortitudetempmod" style="height: 24px; width: 40px;"></td>                 <td><button type="roll" value="&{template:check} {{name=Fortitude Saving Throw}} {{Roll=[[floor(@{con}/2-5)+@{fortitudebase}+@{fortitudemiscmod}+@{fortitudetempmod}+1d20]]}}" name="roll_fortitudecheck"</button> </td>             </tr>
And here's the code for the 'Ranged Weapons.'          <table cellpadding="10" cellspacing="0">             <tr>                 <td colspan="3" class="sheet-statlabel-big" style="font-size: 1.5em; width: 750px;">Ranged Weapons</td>             </tr>         </table>         <fieldset class="repeating_rangedweapons">             <table cellpadding="0" cellspacing="0">                 <tr>                     <td colspan="3" class="sheet-statlabel-big" style="font-size: 1.5em; width: 260px;">Name</td>                     <td class="sheet-statlabel" style="width: 110px;">Attack Bonus</td>                     <td class="sheet-statlabel" style="width: 100px;">Damage</td>                 </tr>                 <tr>                     <td colspan="3"><input class="sheet-inputbox" type="text" name="attr_rangedweaponname" style="height: 24px; width: 260px;"></td>                     <td><input class="sheet-inputbox" type="number" name="attr_rangedweaponattackbonus" style="height: 24px; width: 110px;"></td>                     <td><input class="sheet-inputbox" type="text" name="attr_rangedweapondamage" style="height: 24px; width: 100px;"></td>                 </tr>                             <tr>                     <td class="sheet-statlabel" style="width: 80px;">Roll</td>                     <td class="sheet-statlabel" style="width: 90px;">Range</td>                     <td class="sheet-statlabel" name="rangedweapontype" style="width: 90px;">Type</td>                     <td colspan="2" class="sheet-statlabel" style="width: 210px;">Notes</td>                 </tr>                 <tr>                     <td><button type="roll" value="&{template:5eAttack} {{name=@{rangedweaponname}}} {{subtags=@{rangedweapontype}}} {{attack=[[@{rangedweaponattackbonus}+@{rangedattacktotal}+1d20]]}} {{damage=[[@{rangedweapondamage}]]}}" style="height: 24px; width: 40px;" name="roll_rangedweaponattackcheck"</button></td>                     <td><input class="sheet-inputbox" type="text" name="attr_rangedweaponrange" style="height: 24px; width: 90px;"></td>                     <td><input class="sheet-inputbox" type="text" name="attr_rangedweapontype" style="height: 24px; width: 90px;"></td>                     <td colspan="2"><input class="sheet-inputbox" type="text" name="attr_rangedweaponnotes" style="height: 24px; width: 210px;"></td>                 </tr>              </table>         </fieldset>
1646859933

Edited 1646860058
Andreas J.
Forum Champion
Sheet Author
Translator
Edit: let me guess, the buttons in repeating sections doesn't work either? Using &lt;table&gt; might be an issue: <a href="https://wiki.roll20.net/Character_Sheet_Development/Repeating_Section#Definition_.26_Restrictions" rel="nofollow">https://wiki.roll20.net/Character_Sheet_Development/Repeating_Section#Definition_.26_Restrictions</a> Nothing obvious on the button. Showing the code for a working one could help Are both the working and broken rolls both using the &amp;{template:check} ? If not, I suspect there issue might like in the rolltemplate sheet code. Have you tried inspect the broken roll result with browser tools ? And is this a sheet you made from scratch, or used something existing as a base?
1646860855
Kraynic
Pro
Sheet Author
Andreas J. said: And is this a sheet you made from scratch, or used something existing as a base? I think this is the thread that started it, editing one of the Star Wars sheets: <a href="https://app.roll20.net/forum/post/10737755/this-sheet-these-mods-dot-dot-dot-help-please" rel="nofollow">https://app.roll20.net/forum/post/10737755/this-sheet-these-mods-dot-dot-dot-help-please</a>
Andreas J. said: Edit: let me guess, the buttons in repeating sections doesn't work either? Using &lt;table&gt; might be an issue: <a href="https://wiki.roll20.net/Character_Sheet_Development/Repeating_Section#Definition_.26_Restrictions" rel="nofollow">https://wiki.roll20.net/Character_Sheet_Development/Repeating_Section#Definition_.26_Restrictions</a> Nothing obvious on the button. Showing the code for a working one could help Are both the working and broken rolls both using the &amp;{template:check} ? If not, I suspect there issue might like in the rolltemplate sheet code. Have you tried inspect the broken roll result with browser tools ? And is this a sheet you made from scratch, or used something existing as a base? Hey Andreas, I'm a total newb. And from your post, there are a bunch of terms I'm only vaguely familiar with. And some I don't understand at all. I don't know what a repeating section is. I don't know what &amp;{template:check} is. I don't really know what the rolltemplate sheet code is. I have not tried the browser tools, but I will!&nbsp; I'm modifying a SW sheet, using D20 modern as the core rules and combat rules, but Palladium-style % skills.&nbsp;
Here's a section I lifted from another sheet, a Palladium Megaverse sheet, for the skills. They are working.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan="3" class="sheet-statlabel-big" style="font-size: 1.5em; width: 750px;"&gt;Skills&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt; &nbsp; &nbsp; &lt;button type="roll" value="/em attempts a ?{Skill name} check.&amp;#x00A;[[d100&lt;?{skill rating}]]&amp;#x00A;Success = 1, Failure = 0" name="skill-roll" &gt;&lt;/button&gt; Universal Skill Roll &nbsp; &nbsp; &lt;div class="sheet-tabbed-panel"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="sheet-row-panel"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="checkbox" name="attr_OCC-Skill-toggle" class="sheet-arrow" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h4&gt;D20 'Base' Skillset&lt;/h4&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="body"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table style="width:90%"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:10%"&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:25%"&gt;&lt;h5&gt;Name&lt;/h5&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:8%"&gt;&lt;h5&gt;Rating&lt;/h5&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="width:10%"&gt;&lt;h5&gt;+/ Level&lt;/h5&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;h5&gt;Notes&lt;/h5&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fieldset class="repeating_skillocc"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;div class="sheet-ability"&gt;&lt;button type="roll" value="@{character_name}'s @{skill_name} check:&amp;#x00a;/roll d100&lt;@{skill_rating}"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;div class="sheet-ability"&gt;&lt;input class="sheet-input-center-aligned" type="text" style="width:220px" value="" name="attr_skill_name" placeholder="Skill name"/&gt;&lt;/div&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;div class="sheet-ability"&gt;&lt;input class="sheet-input-center-aligned" type="number" value="" name="attr_skill_rating" /&gt;&lt;b&gt;%&lt;/b&gt;&lt;/div&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;div class="sheet-ability"&gt;&lt;input class="sheet-input-center-aligned" type="number" style="width:60px" value="+" name="attr_skill_level" /&gt;&lt;b&gt;%&lt;/b&gt;&lt;/div&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;div class="sheet-ability"&gt;&lt;input class="sheet-input-center-aligned" type="text" style="width:300px" value="" name="attr_skill_reference" placeholder="Book &amp; page number"/&gt;&lt;/div&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/fieldset&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
1646861897
Andreas J.
Forum Champion
Sheet Author
Translator
Dan G. said: I don't know what a repeating section is. <a href="https://wiki.roll20.net/Repeating_Section" rel="nofollow">https://wiki.roll20.net/Repeating_Section</a> <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates</a> We have extensive documentation, which I keep linking so you have the best chance of figuring things out.But as that part part looks that way in the existing sheet, it's unlikely to be the &lt;table&gt; issue I mentioned. I don't know what &amp;{template:check} is.&nbsp; I don't really know what the rolltemplate sheet code is. <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates</a> It's the last part on the html &amp; css file. Please, when you make a thread, link to the previous one so we get the context of what you're working with and your progress, makes it much easier to help.