There is no LUA command to affect the second number in the default HUD.
If you want to have a changeable max HP, you can create a variable that stores the initial HP in the start of a map and then grows in level up. For example:
-- Inside main(), since for some reason init() doesn't react to all LUA commands
if MaxHP == nil then
MaxHP = g_PlayerHealth
end
if g_PlayerHealth > MaxHP then
g_PlayerHealth = MaxHP
end
-- assuming you are using a Level Up -flag like this
if Flag_Level_Up == 1 then
MaxHP = MaxHP + 10
-- etc
end
In addition you will need:
- custom way to show the max HP (custom HUD, battle message prompt, menu, etc)
- custom collectables/health items that react to the max HP
- custom area in the player start position to reset the HP back to the MaxHP when the player dies and respawns
I created a set of RPG scripts a while ago and decided not to make MaxHP grow (to eliminate the need for extra adjustments and so that the scripts would be 100 % compatible with the default HUD).