I'm looking for a way to change HP based on a the specific suit/armor my character wears, which is decided by a variable determining which one they have equipped. That armor also has different states (Worn, new, damaged) which changes the variable amount as well. I'd like the HP to automatically be changed and updated with it depending on if you take it off or put it back on. This doesn't have anything to do with actual system equipment or armor since it's all handled by different variables.
Is there a way to set HP to a variable in MV?
I've tried the simplest ways like
$gameActors.actor(1).hp = $gameVariables.value(22)
but it doesn't seem to work. There are obvious ways to add or subtract an amount to the actor's HP, but I don't want to add or minus, I want it precisely set to a number I choose.
Is there any actual way to do this? I'm a little lost here.
Is there a way to set HP to a variable in MV?
I've tried the simplest ways like
$gameActors.actor(1).hp = $gameVariables.value(22)
but it doesn't seem to work. There are obvious ways to add or subtract an amount to the actor's HP, but I don't want to add or minus, I want it precisely set to a number I choose.
Is there any actual way to do this? I'm a little lost here.


