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

Resource tab updating at level up?

Hello, Straight to the point, i have been messing around and trying to figure out if its possible to setup a way in the attributes section of the 5e OGL sheet; a way to update resources based on the class. The class in question for now is paladin with lay on hands. Ideally, i would want it to, when leveling up, take the level of the paladin and x5 the @{class_resource_max} , so a lvl 5 paladin turning 6 would go from 25 max, to 30 max without manual input on that resource. Is this doable with the attributes section or would an API be required to do this?
The API is required to write  values to the character sheet automatically.
gotcha. any recommendations for this kind of request?
You could set this up as a separate attribute in the Attributes & Abilities tab. If you do this, then you could get the maximum value to update automatically when you level up. The problem with this approach is that it means to update how many you have remaining you would have to go to the Attributes & Abilities tab rather than having direct access to it on the CORE page of the character sheet. But you could ask the GM to link the new attribute to your token which would allow you to directly modify the current value from the token rather than having to update it on the character sheet.
1516921390

Edited 1516921734
Kyle G. said: You could set this up as a separate attribute in the Attributes & Abilities tab. If you do this, then you could get the maximum value to update automatically when you level up. Mkay. This portion of your reply is exactly what i am attempting to do, but i am not sure how to code those values appropriately. My test code uses something like: class_resource_max @{LayonHands} LayonHands @{base_level}*5 I only just started learning some syntax for these today, so i am probably messing up the structure of this. I would assume there is more needed to ideally execute this. As for the min value, that is fine for manual changing, the max value is really what i want to have automated in the sense apon leveling up so that the player doesn't have to really think about increasing his max value every level.