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

Bars and Macros

Two questions actually. We have the Bar 1, Bar 2, and Bar 3. Is there a way to rename these to something else? Additionally can we use these as variables in Macros and what would we need to call them? And does that name change if we change the name of the bar? Thanks Phillip
Like this question
1401303743

Edited 1401303977
Lithl
Pro
Sheet Author
API Scripter
No, you cannot change the name of the bar. In a macro or ability, you can use @{selected|bar_1} or @{target|bar_1} (or bar_2 or bar_3) to get the current value of the selected (or targeted) token's bar, as well as @{selected|bar_1|max} to get the maximum value. @selected will fail if you don't have a token selected when you use the macro. @target will prompt you to select a token when you use the macro. @selected doesn't work as you might expect if you have multiple tokens selected; only one of the tokens will be used, and the choice isn't necessarily predictable; you're better off just selecting a single token. You can name your @targets, which is useful if you want to reference the same target multiple times or reference multiple targets: @{target|Target1|bar_1}, @{target|Target 2|bar_2}, @{target|Happy Fun time Target|bar_3}. If you want to reference the |max of a @target, you must specify a name.