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

[Help] [API] I'm trying to move HP values from Bar 1 to Bar 3 using API and macro commands

1772653078

Edited 1772653163
As you know when you create a game using a purchased module, all the tokens default to using Bar 1 (the green bar) for HP... but my video game sensibilities has me preferring the red bar.  I tried using TokenMod to transfer the values from Bar 1 to Bar 3 with a macro but it had trouble unlinking the attribute on tokens where the HP bar was linked to the attribute on the character sheet. I found this post  by just googling my question and it's almost exactly what I need, but I don't know anything about creating my custom mods, I only know how to install the API Scripts and follow very basic instructions haha! So The Aaron, if you're still around, or if anyone else can tell me if that code still works and what I would have to do to utilize it? Sorry if this gets asked a lot, I only found the one result. Thanks for your patience.
All you have to do is go to the settings (cog on the top right), personalization & Display and assign colour to each bar It will change colour of existing to token's on the map as well as any new ones you drag in from the compendium.
1772669659
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ha! That's outside the box thinking!
1772674196
Gauss
Forum Champion
To add to what Viggo wrote, it is generally a bad idea to move the HP from bar 1 to another bar because you will be doing that over and over. Viggo's solution is the best one. :)
Viggo said: All you have to do is go to the settings (cog on the top right), personalization & Display and assign colour to each bar It will change colour of existing to token's on the map as well as any new ones you drag in from the compendium. Wow that seems so obvious, I never knew that was even possible. Thanks!