You are able to create a health variable when the person becomes damaged (using Armor::Damage).
%player.getDatablock().maxDamage - %player.getDamageLevel() - Should automatically give you how much health they have left out of their max datablock health.
I'm sorry, but i'm so confused, like i'm not sure how I would use those codes, the Armor::Damage, or the %player.getDatablock() like i don't understand that.
I was just looking for a way to load a health varaible if they die or leave the game and come back. For example i have it setup where your checkpoints are saved and when you spawn at a checkpoint there is a zone for when players enter that zone, they load things such as..
onPlayerEnterZone - client - loadVariable - Client - Gold(Or whatever)
Now i was wondering if there was a way to do
onPlayerEnterZone - client - loadVariable - Player - maxHealth(Also save the variable as well.)
When I try it, it doesn't work.