17.07.2013, 10:17
The problem is most likely with your variables. There are three, one of which the value isn't calculated inside the command (despite being called "EditedHP"). Implement the method I stated above, it will probably fix the issue.