What I have might be a simpler version. I tried to add comments in the code to explain what I did.
ARL4EKNV
The math, which I didn't explain much in the program, stems from using the percentage of current HP to max HP and matching it to the length of the HP bar. The program gives you a kinda formula thing to work from so its easy to use.
0そうだね プレイ済み