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

Character Sheet Bug - Max Fields can't be linked

I'm running into a problem with the D&D 5E shaped character sheet, according to the author this seems be a roll20 bug of some kind.  There are some fields in the sheet used for current and max values of attributes. Apparently the max value fields can't be cross-linked to multiple sections of the character sheet, they act as unique fields instead. I am using Chrome as the browser. To reproduce:  Set up a campaign with the D&D 5e shaped character sheet and make a character.  Note that on the Core page and the Spells page there are fields for current and max spell slots.   Try changing the values for these on a character. The current spells will dynamically update between the two pages when one is changed.  If the Max spell slots value is changed, it will only update on the page that is changed, leaving them out of synch.
1437725491
Kryx
Pro
Sheet Author
API Scripter
This isn't specific to the Shaped sheet - it should happen on any sheet. Normal inputs seem to save the value and display them on other inputs of the same name, but "_max" inputs do not. This can be tested with the following inputs: <input type="number" name="attr_test" class="sheet-no-spin" value="1"> <input type="number" name="attr_test_max" class="sheet-no-spin" value="1"> <input type="number" name="attr_test" class="sheet-no-spin" value="1"> <input type="number" name="attr_test_max" class="sheet-no-spin" value="1"> Put those on a character sheet (right next to each other or on different "pages"). If you update the one without "_max" it propagates to the other, but the "_max" fields do not. Please let me know if further details can be provided
Just to make sure I know the issue here (and I think I do), when you close and re-open the sheet both of the _max fields have been updated, right? It's only right after the value changes that they don't all get updated?
1437766775
Kryx
Pro
Sheet Author
API Scripter
It does indeed update the other location on close and re-open. It just doesn't do it right away like the normal non "_max" fields do.
1438274767
Kryx
Pro
Sheet Author
API Scripter
Any update on this? Is it something that can be added to the next sprint?
Looking at the bugfix thread for this week (<a href="https://app.roll20.net/forum/permalink/2234818/" rel="nofollow">https://app.roll20.net/forum/permalink/2234818/</a>), it seems to be one of their main priorities. Probably just being quiet as most of them are getting ready for GenCon
1438288780
Kryx
Pro
Sheet Author
API Scripter
Thanks Liam! I missed that.
I believe this should be fixed now. Let me know if you're still seeing the issue. Thanks!
1438797018
Kryx
Pro
Sheet Author
API Scripter
Seems fixed. Thanks Riley!
Great news, thanks for the fix!
This doesn't seem to be fixed in my case. In Devindra's GURPS character sheet, attributes are calculated this way, for strength as an example: name="attr_strength" value="(@{strength|max} + @{strength_mod})" Where @{strength|max} is defined as : name="attr_strength_max" value="(10 + floor(abs(@{strength_points}) / 10) * (@{strength_points}+1)/abs(@{strength_points}+1))" @{strength_points} and @{strength_mod}&nbsp;are values directly modified by the player in the sheet. However when @{strength_points}&nbsp;is modified, @{strength|max} is only correctly updated where it first appears in the sheet, but it is not in the data formula for @{strength}. It only updates when the sheet is closed OR when @{strength_mod} is modified by the player.