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 .
×

[Help] changing Bloodied and Dead Status Markers

I'm new to all of this so bear with me if i am missing something but, I want to simple change the popular Bloodied and Dead Status Markers script to show the Half heart status instead of the the red marker, but i cant seem to get it to work.  I thought it would be as simple as replaceing the text of status_redmarker with status_half-heart, but it doesnt seem to work, anyone know what im doing wrong or if this just plain doesn't work?
1503728682
Lithl
Pro
Sheet Author
API Scripter
The script in question uses the single-parameter version of obj.set , so status_redmarker is an object key. Hyphens are not legal characters in a JavaScript identifier. You can still use a hyphenated word as an object key, however, if you make it a string by wrapping it in single or double quotes. So, instead of: status_half-heart: true use: 'status_half-heart': true (and the same for the false line, of course.)
That did the trick, thank you very much!