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

Adjusting the MAX attribute of a value for distribution...

Hi all,  I am in the later stages of developing my character sheet, but I am realizing that I will need to go back and re-do some fields that I have put as "readonly", but will once in a while need adjusting when the character levels up...but I need to impose an upper limit to how high the player can adjust this Stat... So how do I use one Input to set-up the MAX limit of a group of stats that the players allocate? For Example, if I was using the GURPS system where a variable amount of points is used to determine the games "level of play"...how would I set up the input that would be used as a reliable pool the player can use to allocate those points on their character sheet?
1724386434
GiGs
Pro
Sheet Author
API Scripter
What you're asking here is very difficult to do with a standard character sheet. You'd need to add code in every attribute that can be increased. It might be worth looking at the charactermancer, though that might be overkill. Alternatively, you could create an input showing the points of attributes that can be added. Then have a sheet worker that checks its value, and when above zero, it does the following: each readonly attribute has a matching attribute that is ormally display:none. When that input is above 0, it makes them visible and hides the readonly attributes. That way you get the ability to add points to any attribute, and whenall the points available are gone, they go back to being readonly.
After looking into it, I think the Charactermancer might be the way to go...is this code I just put in front of the Custom Sheet or do I need to put this in an entirely different place?
1724467705
GiGs
Pro
Sheet Author
API Scripter
It's placed in the HTML tab of the character sheet.