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

status for "Dead" not responding correctly?

Hello again everyone, I have to following code: log(obj.get("statusmarkers")); log(obj.get("status_yellow")); log(obj.get("status_dead")); When run against a token that has both the Yellow dot and the big red X set, it produces the following output: "yellow,dead" true false When I run it against a token where only the Yellow dot is set, I get this: "yellow" true false It appears as though a token is not being properly reported as "Dead" by the pseudo variable dead_status. It reports the marker as being "off" regardless of its actual setting.
1384634300

Edited 1384634313
Workaround. var isAlive = obj.get("statusmarkers").split(',').indexOf("dead")==-1;
1384773933

Edited 1384773968
Filed as bug. <a href="https://app.roll20.net/forum/post/470240/#post-470" rel="nofollow">https://app.roll20.net/forum/post/470240/#post-470</a>...