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

d20 Modern Sheet by John W. missing Defense

I know this is an older sheet and this is a very specific question, but here's hoping. I'm having a problem linking the Characters "Defense" calculated value to their token.  When I mouse over the cell on the sheet, I see properly that it has an attribute associated with it (@{Defense}), but that isn't a selectable value on the tokens for mapping.  I can create a custom attribute and put @{Defense} into the field for calculation, but it always loses that reference when we switch maps or if it reloads. I don't want to have to keep remapping this custom attribute, has anyone have any idea what I can do? Is there a way for me to get at the code for this custom sheet, even if it means having to create a copy of the sheet and transfer everything to a copy of the game I'd be willing to do that as we are only 4 sessions in currently.
1650030863
Kraynic
Pro
Sheet Author
I think I found the relevant place in the sheet code.  There is a title (mouseover text) that shows "@{Defense}, but the actual attribute specified in the html is Defense_Normal.  This is line 1980 in the code.  You might check to see if @{Defense_Normal} is in the drop down to select. If that isn't available, it might be due to it being an autocalc/disabled input, instead of calculated and filled in by sheetworker.
1650141030

Edited 1650142067
Ahh, the sheets are on github, guess I should have guessed that since the api scripts are. I'll dig through the code
It seems that attributes don't show up as selectable until a value is entered into them on the character sheet, so definitely not possible for Defense to show up since it is "disabled=true" in the sheet.  Is this true for all sheets?
1650160990
Kraynic
Pro
Sheet Author
Most newer sheets don't use any disabled attributes, since those are only used for the old autocalc method for derived stats/attributes.  The newer sheets that use sheetworkers will have readonly inputs instead of disabled.  I'm assuming that difference is causing the issue you are running into. I'm not currently using any sheets with the autocalc design, so I don't know the ins and outs of how they work as far as visibility to tokens.  Hopefully someone with current experience with them can chime in.