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

[Request] On damage check?

1542677589
Mik Holmes
Pro
Marketplace Creator
I have a PC with a permanent condition which triggers when he takes damage, but we have a lot of trouble remembering it. Is there a script out there that will detect when a particular PC takes damage and trigger a chat output, as well as detect a particular sheet's token on multiple pages? I know the Concentration script does a similar thing, based on the stopwatch statusmarker, but is there a way to do this attached to a specific character sheet/its default token? 
1542679707
vÍnce
Pro
Sheet Author
Maybe you could use the  Customizable Roll Listener script to trigger a chat message and/or another script(s).
read the code of Robin's DeathTracker script. &nbsp; He just observes changes to the health bar, in order to be called when health changes. &nbsp;It's a very cute idea, because you get 'change:graphic' when the bar changes, so you can indirectly observe change to hp. <a href="https://github.com/RobinKuiper/Roll20APIScripts/blob/master/DeathTracker/DeathTracker.js" rel="nofollow">https://github.com/RobinKuiper/Roll20APIScripts/blob/master/DeathTracker/DeathTracker.js</a>