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

Reset all bars to maximum value via macro?

November 11 (10 years ago)
Hello all, kinda new to this, so I'm not sure if this has been covered before (search didn't turn up anything)
I'm using the bars to keep track of movement and actions remaining, is it possible to have a global macro that resets all the bars of everything back to maximum value?
November 11 (10 years ago)
can be done with the API, not with macros.
November 11 (10 years ago)
Okay, thank you......I....have no idea how to use the API though :(
The API forum is filled with folks who love to tinker.

Upgrade your membership to Mentor level to get access to it first, and post a request for help in that forum.
I'm sure you'll get near-instant results.
November 11 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
Well... I wouldn't say near instant, but pretty fast for sure. =D
November 11 (10 years ago)
Okay, so can't use the API without being a mentor >_<, guess I'll revisit this when I'm closer to ready to actually run the game, really dont have the money to subscribe right now (especially since I'll barely be using the site untill I've gotten alot more work done)
November 12 (10 years ago)
Will
Pro
I'd say it's pretty instant. Aaron has an API script that can handle what you are looking for: https://app.roll20.net/forum/post/1257490/script-t...
(see the latest updates for modifying the bar values). Upgrade to mentor status to support this wonderful site and you can use it!
November 12 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
Admittedly, it doesn't support automatically doing all the tokens, but I've been meaning to expand it's capabilities a bit...
November 12 (10 years ago)

Edited November 12 (10 years ago)
Will
Pro
Yes, however with your TempHPandStatus script, I am able to select all the PC tokens and run a macro that sets all relevant bar values (bar3 = hp, bar2 = healing surges) to 9999 and others to 0 (bar1 = temp hp). The second script automatically corrects each tokens hp back to the max value allowing me to use this in my long rest macro, which is used for the UsePower script. I like scripts :)
November 12 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
HA! Excellent! I love it when there is synergy between the scripts. =D