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