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

Roll_mod in custom sheet works for GM but not players

Hi, I've been modifying an existing Urban Shadows PbtA sheet and thought I had rolls working nicely but when my players tried them the roll_mod modifiers were zeroed out. Any ideas what I'm doing wrong?  <label class="sheet-class-moves sheet-section-title">Stats:</label>         <div class="sheet-attr-box"> <label class="sheet-focus sheet-name">Focus:</label> <input type="number" name="attr_focus" value="0" /><br> <label class="sheet-suave sheet-name">Suave:</label> <input type="number" name="attr_suave" value="0" /><br> <label class="sheet-badass sheet-name">Badass:</label> <input type="number" name="attr_badass" value="0" /><br> <label class="sheet-synth sheet-name">Synth:</label> <input type="number" name="attr_synth" value="0" /><br> <label class="sheet-rep sheet-name">Rep:</label> <input type="number" name="attr_rep" value="0" /><br> </div> <div class="sheet-box"> <label class="sheet-playbook-moves sheet-section-title">Playbook Moves:</label> <fieldset class="repeating_othermoves">       <label class="sheet-movename">Move:</label>       <input type="text" name="attr_movename" />       <label class="sheet-stat">Stat:</label>     <select name="attr_moves" class="sheet-moves" value="N/A">  <option value="N/A">"N/A"</option>          <option value="@{focus}">Focus</option>          <option value="@{suave}">Suave</option>          <option value="@{badass}">Badass</option>          <option value="@{synth}">Synthesis</option>     </select> <label class="sheet-orgmod">Org Mod:</label> <input type="number" name="attr_orgmod" value="0" /><br> <label class="sheet-othermod">Other Mod:</label> <input type="number" name="attr_othermod" value="0" /><br>     <button type='roll' value='&{template:us} {{name=@{character_name}}} {{roll_name=@{movename}}} {{roll_mod=[[@{moves}]]}} {{result=[[2d6 + @{moves} + @{orgmod} + @{othermod}]]}}' name='roll_move'></button>       <label class="sheet-desc">Description:</label>        <textarea rows="4" cols="50" name="attr_movedesc" ></textarea> </fieldset> </div>
that line is calling attr_moves but the only possible value for attr_moves based on the dropdown values associated with it is N/A. Not sure what the intent here is, but, if you need something else to show up, you'll need to either add more options or make that a writable field so a metric can be garnered from it.
Isn't it set so that the default value is N/A but the other options of Focus, Suave, etc. are in the select tag? On the sheet I can select the other options and it does roll properly as GM, just not for players. I could definitely be missing something here. I'm not much of a coder.
1501987183
GiGs
Pro
Sheet Author
API Scripter
I just tested the code section you've shown, replacing the roll template with default, and it worked fine. So my guess is the problem is in your roll template and you haven't shown us that.
1501988151

Edited 1501988423
vÍnce
Pro
Sheet Author
Just a hunch; Try removing value="N/A" from attr_moves, assign "0" to the N/A option and add "selected" to the N/A option to make it the default.  Also verify gm/players can pull indiviudal attribute values for all attributes being used. <select name="attr_moves" class="sheet-moves">  <option value="0" selected>"N/A"</option>  <option value="@{focus}">Focus</option>  <option value="@{suave}">Suave</option>  <option value="@{badass}">Badass</option>  <option value="@{synth}">Synthesis</option> </select>
Thanks for the responses. I tried <option value="0" selected>"N/A"</option> with no luck. Here's the roll template code, which I haven't changed from the original sheet I was working from. <rolltemplate class="sheet-rolltemplate-us">     <table>         <tr><th colspan="2">{{name}} rolls{{#roll_name}} {{roll_name}}{{/roll_name}}{{#roll_mod}}({{roll_mod}}){{/roll_mod}}</th></tr>  <tr>         {{#rollGreater() result 11}}         <td class="result success">{{result}}</td>         <td> Succeeds{{advanced}} </td>         {{/rollGreater() result 11}}         {{#rollBetween() result 10 11}}         <td class="result success">{{result}}</td>         <td> Succeeds </td>         {{/rollBetween() result 10 11}}         {{#rollBetween() result 7 9}}         <td class="result">{{result}}</td>         <td> Succeeds partially</td>         {{/rollBetween() result 7 9}}         {{#rollLess() result 7}}         <td class="result failure">{{result}}</td>         <td> Miss </td>         {{/rollLess() result 7}}         </tr>     </table> </rolltemplate> Thanks again.
I did some more testing and it seems that it's just the sheets that were created before I started customizing that don't work. So even though the old ones show the new custom sheet, something didn't switch over properly when I changed the character sheet template in settings. And even logged in as a player, sheets created after I switched to custom template work fine. Thanks again for taking a look at this. And sorry I led the inquiry in the wrong direction.