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 .
×

Reference names for built-in character bars?

Hey :) The characters have their own premade 3 bars (default blue, green and red), but since they're not a user-made attribute, I was wondering if the bars had a reference name to use in macros? For example if I chose the third bar on pirate1 to be 6/8 health, and I used a target macro to attack: Player attacked target! [[@{target|Bar3current} - 1d6]] Is there a way to refer to the current value of Bar 3 (the actual reference name for "Bar3current" which I used in this example)?
1477049819
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
It's just bar#. To reference the max value, you would do @{keyword|bar3|max}. When using max, you have to use the entire attribute syntax, including designating a target name if you are using the target keyword.
Ah, yes, it works just as I wanted it to now! Thanks a bunch!
1477052060
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Happy Rolling :-D