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

Simple Char Sheet Auto Calc not working

1718737777
Victor B.
Pro
Sheet Author
API Scripter
Very basic.  Not working.  What changed?  <div class="sheet-row"> <div class="sheet-col-1-5 sheet-pad-r-sm sheet-pad-t-sm"> <span>Starting</span> </div> <div class="sheet-col-1-10 sheet-center sheet-pad-r-sm"> <input class="sheet-center" type="number" name="attr_IntBase"/>0</> </div> </div> <div class="sheet-row"> <div class="sheet-col-1-5 sheet-pad-t-xsm sheet-pad-r-sm  sheet-vert-middle"> <span>Modifiers</span> </div> <div class="sheet-col-1-10 sheet-center sheet-pad-r-sm"> <input class="sheet-center" type="number" name="attr_IntMods"/>0</> </div> </div> <div class="sheet-row"> <div class="sheet-col-1-5 sheet-pad-t-xsm sheet-pad-r-sm  sheet-vert-middle"> <span>Cyberware</span> </div> <div class="sheet-col-1-10 sheet-center sheet-pad-r-sm"> <input class="sheet-center" type="number" name="attr_IntCyberware"/>0</> </div> </div> <div class="sheet-row"> <div class="sheet-col-1-5 sheet-pad-t-xsm sheet-pad-r-sm sheet-vert-middle"> <span>Totals</span> </div> <div class="sheet-col-1-10 sheet-center sheet-pad-r-sm"> <input class="sheet-center" type="number" name="attr_Int" value="@{IntBase}+@{IntMods}+@{IntCyberware}" readonly/> </div> </div>
1718738210
Gauss
Forum Champion
Hi Victor,  As this is a Character Sheet problem I would suggest reposting in the Character Sheet forum. You might get different answers (as some folks tend to gravitate to different forum sections). 
1718739149

Edited 1718739255
vÍnce
Pro
Sheet Author
Try using disabled(note: disabled is not compatible with sheetworkers btw) and wrap the calc in parenthesis; <input class="sheet-center" type="number" name="attr_Int" value="( @{IntBase}+@{IntMods}+@{IntCyberware} )" disabled/> Also, the other inputs are not in the proper format; <input class="sheet-center" type="number" name="attr_IntMods"/>0</> should be something like; <input class="sheet-center" type="number" name="attr_IntMods" value="0" /> Hope this helps. Cheers
1718747235
Victor B.
Pro
Sheet Author
API Scripter
Changing to disabled did it.  I have other char sheets I created that use readonly.  They work fine.  Strange.