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

Character sheet error (help!)

1512969040

Edited 1512969184
<table> <tr>             <td><button type="roll" name="roll_str" value="&{template:default}{{name=Strength Check}}{{character=@{character_name}}}{{Check=[[1d20+@{strmod}]]}}" style="width:25px;"></button></td>             <td align="center"><b>STR</b></td>             <td><input type="text" name="attr_str" value="(@{bstr}+@{rstr})" style="width:40px;" disabled="true"/></td>             <td><input type="number" name="attr_bstr" value="0" style="width:40px;"/></td>             <td><input type="number" name="attr_rstr" value="0" style="width:40px;"/></td>             <td><input type="text" name="attr_strsmod" value="floor(@{str}/5)" style="width:40px;" disabled="true"/></td>             <td><input type="number" name="attr_strpmod" value="0" style="width:40px;"/></td>             <td><input type="number" name="attr_strmmod" value="0" style="width:40px;"/></td>             <td><input type="text" name="attr_strmod" value="@{strsmod}+@{strpmod}+@{strmmod}" style="width:40px;" disabled="true"/></td>         </tr> </table> For some, annoying, unknown reason when I attempt to use this button to roll it the attribute @{strsmod} always comes back as a 0.  It shows as it's normal number on the sheet, but when trying to roll it always comes back as a 0.  Please help.  This is beyond frustrating. When I attempt to roll it shows as: 17 = (17)+0+0+0 even though it should be showing a value of: 18 = (17)+1+0+0 if the attribute @{str} is 5.
1512972447
vÍnce
Pro
Sheet Author
Try changing the value of strmod to inline rolls  "[[ @{strsmod} ]] + [[ @{strpmod} ]] + [[ @{strmmod} ]]"
1512974554

Edited 1512974765
no they don't work. I've tried everything I can think of.  @{strsmod} doesn't want to work.
I think it might have something to do with it calculating based off of floor(@{attribute}/5) because I changed the attribute name from @{strsmod} to @{strscoremod} and it came back as 20 = 20 + floor(0/5) + 0 + 0
1512974882
vÍnce
Pro
Sheet Author
Strange.  It worked for me with a quick test. <table> <tr>             <td><button type="roll" name="roll_str" value="&{template:default}{{name=Strength Check}}{{character=@{character_name}}}{{Check=[[1d20+@{strmod}]]}}" style="width:25px;"></button></td>             <td align="center"><b>STR</b></td>             <td><input type="text" name="attr_str" value="(@{bstr}+@{rstr})" style="width:40px;" disabled="true"/></td>             <td><input type="number" name="attr_bstr" value="0" style="width:40px;"/></td>             <td><input type="number" name="attr_rstr" value="0" style="width:40px;"/></td>             <td><input type="text" name="attr_strsmod" value="floor(@{str}/5)" style="width:40px;" disabled="true"/></td>             <td><input type="number" name="attr_strpmod" value="0" style="width:40px;"/></td>             <td><input type="number" name="attr_strmmod" value="0" style="width:40px;"/></td>             <td><input type="text" name="attr_strmod" value="[[@{strsmod}]]+[[@{strpmod}]]+[[@{strmmod}]]" style="width:40px;" disabled="true"/></td>         </tr> </table>
I think roll20 just hates me.  I even copy-pasted your code and it still doesn't work.
So I deleted the character sheet, STR works now, but every other attribute is bugged.
1512976245

Edited 1512976268
Okay everything works now, just had to add the hard brackets around each attribute.