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

autoButtons + TokenMod

Anyone know if there is a way to get autoButtons to remove temp HP before your HP using TokenMod maybe?
1692244692
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The health tracking script  I   use was specifically written for 5e by Arcane Scriptomancer The Aaron. It's not in the repo, since he likely never got around to writing an in-game config for it, so you have to set some variables in the first few lines of code. This is   TempHP and Status , and it has several features to help 5e health tracking. It places a "bloodied" token marker on any token that dips below ½ Total HP. It limits a token's current HP to being between 0 and Max. If you put in a value greater or smaller, it autocorrects it. If you add any temporary hit points in the 5e sheet's TempHP field, any damage done to the token will be deducted from the TempHP first, invisibly.
1692248265
Oosh
Sheet Author
API Scripter
Thanks Keith! Aaron's script should work just fine with autoButtons, since it reacts to the token change after the HP have already been changed. autoButtons passes off to TokenMod to update the HP, so essentially anything that works with TM should work fine with autoButtons.
That sounds pretty good, but is there an easy way to get rid of the markers? Because I also use Aura/Tint HealthColors.
I just test the Temp HP and Status Script in one of my games, and sadly does not work when you use autobuttons to reduce damage. It works fine if you substract directly from the token bubble.
there's probably a need in restrating the script with autobuttons...