Well, I was wondering if there is any way to increase the player max health during the game. I am trying to to make a script that will display a health bar of the players health and increase based off of the players health. So basically, if the player is lv1 his health may be 50 but at lv5 his health may be 68 (max health).
Here is the script...
desc = Health System
;Triggers
:state=0:hudreset,hudx=15,hudy=85,hudimagefine=gamecore\huds\Medieval\healthbar_0.png,hudname=health0,hudmake=display,hudshow=health0
:state=0:hudreset,hudx=15,hudy=85,hudimagefine=gamecore\huds\Medieval\healthbarfill.png,hudname=healthbar,hudmake=display,hudshow=healthbar
:state=0:hudshow=healthbar,hudshow=health0
;Scale player healthbar
:ALWAYS:scalehudx=health0 %CalcVar5
:ALWAYS:scalehudx=healthbar $PH
;Give player health multiplier based upon player's level
:ALWAYS:setvar=CalcVar5 50,setvar=CalcVar3 50,setvar=CalcVar4 %PlrLevel,mulvar=CalcVar4 1.4,divvar=CalcVar4 %CalcVar3,mulvar=CalcVar3 100,addvar=CalcVar5 %CalcVar3
:plrhealthgreater=%CalcVar5:plrsethealth=%CalcVar5
I would greatly appreciate any help.
<EDIT>
I know that I didn't use dimvar= for any of the CalcVar's, but that is because I used that already in the EXP script so it is all good, that is not what the problem would be.