How can you edit save file to get a ton of health?
A touch bit more involved than you think, but still pretty straightforward.
Before doing anything, make a copy of your save just in case you break something.
Upon opening a save file in a text editor (I use Notepad++), search for
<playerCharacter>
. This will bring you to the beginning of where your character is defined in the file.
Scrolling down a while, look for either
<attributes>
or
<attributes/>
. The former will be present if your character already has some attribute modifiers, while the latter is a self-closing line because the game has nothing recorded there.
In the former case, all you need to add is a line among the values within that reads:
XML:
<attribute type="HEALTH_MAXIMUM" value="X"/>
Where X is the amount of HP you want to give yourself. If there's already a HEALTH_MAXIMUM attribute in there, however, you should edit that to be whatever you want instead of making a second value.
In the latter case, you'll need to replace
<attributes/>
to look like the former case, which with just the HP modification would look like this:
XML:
<attributes>
<attribute type="HEALTH_MAXIMUM" value="X"/>
</attributes>
Upon loading your save, assuming you didn't accidentally break anything, you maximum HP will be increased. Do note that you can only have up to 1,000HP, no matter how much bonus HP you give yourself. This is a game limitation, but if you're ambitious you could theoretically mod this via a fork from the game's github to be a higher value.