I'm using a slightly modified version of the Bloodied and Dead Status Markers script, as you can see below (just tints instead of markers, bloodied on 1/3, and a different bar) on("change:graphic", function(obj) {
if(obj.get("bar3_max") === "") return;
if(obj.get("bar3_value") <= obj.get("bar3_max") / 3) {
obj.set({
tint_color: "#ad0000"
});
}
else{
obj.set({
tint_color: "transparent"
})
}
if(obj.get("bar3_value") <= 0) {
obj.set({
status_dead: true,
tint_color: "#000000"
});
}
else {
obj.set({
status_dead: false
});
}
}) It's a bit awkward for players to get a big red X on their token when their health drops to 0 in D&D 5e, since they're not technically dead, just unconscious. I assume there is a way for the dead status marker to only appear on non-PC tokens, but I wouldn't know where to start for adding this feature (I'm new to the API and a very poor/amateur coder) so any help would be appreciated. Thanks in advance.