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

Using an assigned token bar value in a macro...

1416511773
Tom
Plus
Sheet Author
Is there a way to do it without using the @{selected|bar#} command?
1416511852
The Aaron
Roll20 Production Team
API Scripter
@{target|bar#} probably works, but I get the feeling that's outside the scope of what you're asking. More details?
1416512060
The Aaron
Roll20 Production Team
API Scripter
Verified that @{target|bar#} does work. Would be nice if you could specify the token_id with something like @{-Jb8EyJkOiE9DRuWClpf|bar#}, but that doesn't work.
1416512143
The Aaron
Roll20 Production Team
API Scripter
Depending on how important it is to you, there is surely an API solution, but possibly not a pretty one...
1416512614
Tom
Plus
Sheet Author
Hrm.... Target is not what I'm going for here. I need the macro to access a bar on an assigned token. I'm pretty sure I can figure out a workaround. But that was the point of least resistance right there.
1416514128
The Aaron
Roll20 Production Team
API Scripter
Assigned to a character, but where they bars aren't representative of an attribute on the character (i.e.: mooks)?
1416514496

Edited 1416514566
Tom
Plus
Sheet Author
No, here's what I'm going to do. I'm going to create a new attribute called "Action Modifier" that will be attached to the token bar. Or wait! Yes. Assigned to a character, but are not representative of a character attribute. That would work too. (ie. @{bar1}).