
Is there a way to prevent input type number being blank causing the whole roll to fail other than setting a default of value="0" on the input?
Example:
The result is
If I wrap @{acrobatics_bonus} in parenthesis it causes the "attr_acrobatics" calculation to be blank. When I tried this strategy elsewhere I sometimes got errors about having the closing parenthesis without a number.
Is there a different way to do this or must I set value="0" on all number inputs?
Example:
<input class="sheet-no-spin" type="number" name="attr_acrobatics_bonus" value="0" step="1"> <input class="sheet-no-spin" type="number" name="attr_acrobatics" value="2+3+@{acrobatics_bonus}" disabled="disabled"> <button type="roll" name="roll_Acrobatics_Check" value="[[ d20 + @{acrobatics} + (0) ]]"></button>"attr_acrobatics_bonus" is the one that I would like to remove the value="0" on as having 0s show up is ugly.
The result is
[[ (13)+(2)+(3)++(0)]]Which results in 0.
If I wrap @{acrobatics_bonus} in parenthesis it causes the "attr_acrobatics" calculation to be blank. When I tried this strategy elsewhere I sometimes got errors about having the closing parenthesis without a number.
Is there a different way to do this or must I set value="0" on all number inputs?