I am having an issue on my sheet where skills are not applying the armor penalty to skills correctly. If I use positive penalty of 5 it will add 5 to the skill, but if I use -5 it will not calculate it and apply it. Ideally, there should never be a positive penalty and only negatives. Is there anything here that can be explained why it might not be subtracting from the skill? My coding skills are minimal. on("change:acrobatics-base change:acrobatics-mod change:total_armor_penalty change:usearmorpenalty", function (eventinfo) { getAttrs(["acrobatics-base","acrobatics-mod","total_armor_penalty","useArmorPenalty"], function (values) { var acrobaticsBase = parseInt(values["acrobatics-base"]); var acrobaticsMod = parseInt(values["acrobatics-mod"]); var penaltyVal = parseInt(values["total_armor_penalty"]); var usePenalty = parseInt(values["useArmorPenalty"]); if(usePenalty==1){ if((acrobaticsMod+penaltyVal)>=0){ setAttrs({ 'acrobatics': acrobaticsBase+acrobaticsMod+penaltyVal }); } else{ setAttrs({ 'acrobatics': acrobaticsBase }); } } else{ setAttrs({ 'acrobatics': acrobaticsBase+acrobaticsMod }); } }); });