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

Custom Sheet, Auto-Calc/Disabled-"true" Attributes and Token Bar Link Issues

One of the issues I am having with my custom character sheet is that I use several auto-calc/Disabled="true" fields. This means things like Armor Class have a final value automatically calculated based on entries for Dexterity Modifier, Armor Type, Shield, etc. It even calculates changes based on maneuvers and other options. The final line looks like this:   <td><input type="number" name="attr_A.C." class="alcenter" STYLE="width: 46px" value="10+@{ArmorAC}+(@{ShieldAC}*@{ShieldReady})+@{DexterityMod}+@{MagicAC}+@{MiscAC}-(@{retreat})+@{Parry}+@{Evade}+@{DodgeAction}-(@{OffensiveFocus}*2)-(@{Charge}*2) +@{Marauder} +@{Giants} +@{MiscAC2} -(@{DexterityMod}*@{OverBurdened})" disabled="true"/></td> But for some reason attributes defined as disabled="true" do not show up on the Attributes & Abilities tab of the character and are not an option I can find from the drop down selection options for Bar1, Bar2, and Bar2 when assigning values to a token. Is there as way around this? A different option for calculating these values that doesn't involve having years of computer programming experience?
1614779735

Edited 1614779942
Ziechael
Forum Champion
Sheet Author
API Scripter
It is an issue that was introduced a while back... while it has been reported a few times and is apparently 'under investigation' there has been no update on it yet. This thread is the origin as far as I remember and has the official 'we are looking into it' line... 10 months old though so it's not looking good for sheets that use autocalc and won't likely see an update from the author. Since this is a sheet you are writing I'd suggest looking into using sheet workers instead, they are the preferred method these days.
I don't prefer sheet workers, they seem overly complicated to someone who isn't computer savvy when auto-calc is fairly simple and easy. Writing macros and working with APIs is already way out of my comfort zone, not to mention actually designing a character sheet. It is a very steep hill to climb. Looks like I am about to learn way more than I bargained for.