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

Referencing one char sheet field in another

In the (say, 5e) character sheet, is it possible to reference one field in another? For instance, setting the @class_resource_max for Bardic Inspiration to @charisma_mod would allow it to level up with the ability modifier. Or @hit_dice_max = @level feels useful. Bonus question: Is there a way to reset appropriate current resources to their max with a short/long rest macro?
1508617784
GiGs
Pro
Sheet Author
API Scripter
You should be able to enter stat references, but rememebr to use the curly brackets: It's @{class_resource_max} not @class_resource_max. It's possible the box for the stat is formatted as a number, and you won't be able to enter text (like "@") which would stop this working. But if it's an ordinary text box, you can enter stat references like these. Bonus Question: Macros cant alter values, so if the sheet doesn't include a way to reset resoures to max you have to do it manually. (Pro uses can do this with an API script, of course, but that doesn't help you.)
So no in both cases (unless I upgrade for the 2nd thing). Okay, that's good to know. Thank you. :)