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

Invertible Stats

Hello, I am using a custom system for my game. My players have two separate stats, Base and Strength, that, added together, become the HP of their character. However, whenever their HP is depleted their Scores for those two stats go down as well. The problem is, Strength has to go down to 0 before Base starts going down at all. I am struggling to figure out a way to display the single HP value within a token bar, and whenever a player edits it writing to both Strength and Base based on the amount depleted. Is there any way to do this without writing a new script? I am a Pro subscriber, but I am not an excellent scriptwriter myself.
Are you using a custom character sheet of your own design?
Mark (GM) said: Are you using a custom character sheet of your own design? Well.. I am just using the Roll20 Attribute system, without an actual character sheet to go with it. My players use abilities and macros as buttons.
What you probably need to do is use the attributes tab in the custom character sheet or blank sheet, create an attribute that add the two other attributes together and then assign that attribute to bar you want. Example Strength 10 Base 10 Total HP: @{base}+@{Strength} Note you also have a current and max field. This is helpful for fields like HP because you can set the bar value to current and still know what the max value is with out changing it. This will also leave your base stats alone on the sheet.
1586445827
GiGs
Pro
Sheet Author
API Scripter
That method will set a score in the token bubble, but as soon as the player edits the value, it'll overwrite the original and break the link to the original stats.  Since you're a pro user, Artum, you could use a custom API script to show the sum of the values and manage its score. I think thats the only way to do what you want. Of course, a simpler method would be to set one token bubble to Strength, and one to Base, and then let players modify Strength when they first take damage, and apply any excess to Base. It's simple, and does pretty much the same job.
Artem B. said: Hello, I am using a custom system for my game. My players have two separate stats, Base and Strength, that, added together, become the HP of their character. However, whenever their HP is depleted their Scores for those two stats go down as well. The problem is, Strength has to go down to 0 before Base starts going down at all. I am struggling to figure out a way to display the single HP value within a token bar, and whenever a player edits it writing to both Strength and Base based on the amount depleted. Is there any way to do this without writing a new script? I am a Pro subscriber, but I am not an excellent scriptwriter myself. Maybe you could stop using the token radials and just control it with macros? You said your guys are already used to using macros as buttons. If you make all the adjustments via "ChatSetAttr" instead of manually, you can control exactly what you want adjusted and when.