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

[Question] Regarding sheet building : is the mention disabled = "true" mandatory for auto calculted Fields ?

Hello I am a newbie, and I would like to submit a community sheet for the "Dungeon Slayers 4" RPG. My question is the following : Can we have a field that is auto calculated, but that the player can manually edit afterwards ? Example : Given : <label>Mind</label><input type="number" name="attr_MND" /> <label>Intellect</label><input type="number" name="attr_IN" /> <label>Aura</label><input type="number" name="attr_AU" /> Does : <label>Targeted Spellcasting</label><input type="number" name="attr_TSC" value="@{MND}+@{DX}" /> will provide an autocalculated fields that the player can later update or do I must enter :  <label>Targeted Spellcasting</label><input type="number" name="attr_TSC" value="@{MND}+@{DX}" disabled="true" /> Thanks in advance for your kind answer.
1443880429
Lithl
Pro
Sheet Author
API Scripter
Only disabled inputs will be autocalc fields. However, you can do something like: Targeted Spellcasting: <input type="number" name="attr_tsc" value="@{tsc-calc}" disabled="true"> Targeted Spellcasting Calculation: <input type="text" name="attr_tsc-calc" value="@{mind} + @{dx}"> I believe one of the D&D sheets does this for HP calculation, for example.
Hello Brian Thanks for your quick answer. I will review my code according to your proposal before submitting. GuiGnome