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

Map class_resource_max to other attributes

I'm don't have the full PHB, so I don't have every class ability to pull onto my sheets from the compendium. I'm trying to track the main class resources on our tokens for a couple of characters - barbarian rages, monk ki points, sorcerer points, etc. Most of these follow simple formula or progression. When I use static numbers for class_resource and class_resource_max, I can map this value to the character token without issue. I can't seem to find a way to use dynamic references. I would like to put @{level} in for class_resource_max for sorcerer and ki points. Any idea how I can assign this attribute reference and maintain it as the value for this resource?
1592639617
Oosh
Sheet Author
API Scripter
I don't think you'll be able to get it to display that way on the actual sheet, without making a custom sheet. It will work if you call it with a macro though. So if you replace class_resource_max on your character sheet with: [[floor(@{level})+@{charisma_mod}]] for example, it will look ugly on the sheet. But if you call it with this &{template:default}{{name=Party Status}}{{@{selected|character_name}=Resources: @{selected|class_resource}/@{selected|class_resource|max}}} you will get the output you want. But yeah, without a Pro subscription I don't think there's any way to edit the sheet so it calculates the value in the repeating resources label.