This is the wounded.js script I am using. And typing it in instead of copying did not work, it still gives the same syntax error message. I want to change status_skull to status_back-pain, if possible. It just hates the "-" in there. on("change:graphic", function(obj) {
if(obj.get("bar3_value") <="") return;
if(obj.get("bar3_value") <= 3) {
obj.set({
status_redmarker: true
});
}
else{
obj.set({
status_redmarker: false
})
}
if(obj.get("bar3_value") <= 0) {
obj.set({
status_skull: true
});
}
else {
obj.set({
status_skull: false
});
}
});