temp.pl = findPlayer("xAndrewx"); temp.ap = temp.pl.ap; temp.pl.ap = 50; temp.pl.hp = 5; // yes, hp is valid, and so is maxhp temp.pl.ap = temp.ap;