I spent more time than I should have on the text based adventure game. I’m adding a link just in case anyone feels like playing through it to justify the unreasonable amount of time I spent on it. One thing that I ended up having to create was a special function that checked hp was greater than zero, then moved to the next line if it was, or gave a custom death message and ended the game if not.
https://drive.google.com/file/d/19dW28Y49qK2keok5qyd53Cvt6iis-4t_/view?usp=sharing