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

API Script to Change Token Tint on Health

Hi there! I found a great javascript on here that puts a red X on my tokens whenever their health gets to 0 or below without me having to touch anything.  I added it to my mod as a custom script along with tokenmod and its working great!  Now I'm looking for another that will change any token's tint color to red if their health reaches or goes below half their max (and reverts back once it's back above half). Cheers!
This should do what you're looking for , but this is more of a question for this subforum .
Woops.. sorry about that.  But yes, this will do the trick nicely.  Thank you!