How so I make max hp equal a variable.

I have tried 5 times to fix this.

I don’t get what you are trying to do there.You first assigned a variable the max hp of a character, then you substracted 1 and later changed the max hp of the character by the variable and later you added by another variable?. Your variable is already the max hp.