So I am trying to make an armor piece that when equip[ped increases the player's max health by 50
This is my code currently:
every 1 tick:
loop all players:
if loop-player is wearing an iron helmet:
if name of loop-player's helmet is "Skeleton Helmet":
set the maximum health of the loop-player to 150
every 1 tick:
loop all players:
if loop-player is not wearing an iron helmet:
if name of loop-player's helmet is not "Skeleton Helmet":
set the maximum health of the loop-player to 100
Now this technically increases the health by 50 but it is a set value and wont work for like a mmorpg world.
Ive tried using %player's health +50% but it I get an error message saying I can not increases the max health because %player's health +50% is not a number.
Any ideas on how to do what im trying to do?
This is my code currently:
every 1 tick:
loop all players:
if loop-player is wearing an iron helmet:
if name of loop-player's helmet is "Skeleton Helmet":
set the maximum health of the loop-player to 150
every 1 tick:
loop all players:
if loop-player is not wearing an iron helmet:
if name of loop-player's helmet is not "Skeleton Helmet":
set the maximum health of the loop-player to 100
Now this technically increases the health by 50 but it is a set value and wont work for like a mmorpg world.
Ive tried using %player's health +50% but it I get an error message saying I can not increases the max health because %player's health +50% is not a number.
Any ideas on how to do what im trying to do?