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

[Question] An API to throttle HP (bar 3) to not exceed Max?

Kinda explained in the title. Say a character has 10 hp max, takes 6 points of damage (Current now 4hp). Then is healed for 7 damage. Using the +/- option on the token bubbles, this would make the Current 11 out of 10, and cause the red bar to "overflow". I've been away from Roll20 for awhile and was trying to setup my APIs again and can't remember what the API I used was called.
<a href="https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token" rel="nofollow">https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token</a>
I like your script Capt, in fact I already use it. I guess I didn't think about the fact your prevents over and under calculations, I just used it so the Players could adjust HP instead of me and lessen my work load :)
It's a really old script, one of the first I wrote. Could probably use a re-write. :D