Hi all, very noob here when it comes to API scripting and all. In our game, for every 1/4 of the Hit Points you lose, you get a -1 penalty. I've set up the Bar1 (green) to be HP value and Bar3 (red) to be the penalty you get. I was trying to figure a way of making a script that would automatically modify Bar3 to -1, -2 and -3 for every 1/4 drop in your Bar1 value. Is that possible? To have multiple IF instances? I've started with something like this: on("change:graphic", function(obj) { if(obj.get("bar1_max") === "") return; if(obj.get("bar1_value") <= obj.get("bar1_max") *0.75) {obj.set({"bar3_value": -1});} But when I add another IF (ie: if(obj.get("bar1_value") <= obj.get("bar1_max") *0.5) {obj.set({"bar3_value": -2});}, there's no response. Sorry if this is too dumb, but I'd love to get some light on this :) Cheers