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

How to add aura/tint health color to tokens without assigned character sheets?

Recently started using the aura tint health API to use during games but I noticed that it would only work If I had a dedicated character to attach the token to. I don't really like this as oftentimes in my campaign there are fights I that I don't expect to break out. When this happens I don't really want to have to make a new character for every enemy that appears on screen and I don't want to have to assign each one a health value every time, it's very annoying. Before I would just add the monster health as bar 3 on whatever token I needed it on so I could just assign a value to any given token and leave it there, I wanted to switch to the aura because the health bar made it too obvious (even without showing numeric values) how much health an enemy currently has. Is there any way that I can change it so that bar 3 will create the health aura for whatever token I put it on or do I actually have to make a character and assign it to the token and give it a health value in the characters section every time?
1675017087
David M.
Pro
API Scripter
If you're not actually using the character sheets for anything other than making aura-tint work, can you just assign the tokens to represent a single dummy sheet and manually change the current and max values (non-linked of course)? You could have a separate token-mod macro handy that assigns the represents property of the tokens to that dummy sheet to make setup easier. It could even query for current and max bar values as part of that macro.
I'm pretty new, do you have any recommendations for macros that can do such a thing?
1675063404
Ralph
Pro
Marketplace Creator
The Mod "Aura/Tint HealthColors" from the Roll20 Mod Library does exactly that.
1675079643
David M.
Pro
API Scripter
Durd said: I'm pretty new, do you have any recommendations for macros that can do such a thing? If your character sheet was named "dummy", and you have bar1 for hp and bar2 for AC, then select your token and run this macro: !token-mod --set represents|dummy bar1_value|?{Enter current hp} bar1_max|?{Enter max hp} bar2_value|?{Enter AC}