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

Half-heart marker for blooding condition

I'm using the following API for the automatic marker in blooding condition. It works alright, but I'd like to change the "redmarker" for the "half-heart", but the dash symbol in the name of the marker creates an error. Anyone can help me solving this? on("change:graphic:bar1_value", function(obj) { if(obj.get("bar1_max") === "") return; if(obj.get("bar1_value") <= obj.get("bar1_max") / 2) { obj.set({ status_redmarker: true }); } else{ obj.set({ status_redmarker: false }); } if(obj.get("bar1_value") <= 0) { obj.set({ status_dead: true }); } else { obj.set({ status_dead: false }); } }); Felipe Lima
Put quotation marks around the status name "status_half-heart"
Thank you so much. It worked alright.