For HP, you have two values that need to be adjusted: Current HP and MaxHP (same thing with MP). Check out Safer Sephiroth's AI for an example of how HP is adjusted; some stats need the adjustment to be made in a different way (like pushing the value into a Local Var, adjusting them there, and then pushing them back into the stat).