Essentially what I'm trying to do is make a basic combat system. The player versus 3 enemies, and will attack, and be attacked until one of their HP counters hit 0.
In the script I'm using while loops, the main loop holds the game, and turns will use secondary loops. The problem is the loops don't seem to be updating the HTML elements, and the initial ".innerHTML" writing function doesn't seem to trigger until after a prompt within the secondary loop.
I'm sure I'm probably overlooking something simple, or I'm not understanding something correctly since I'm still pretty amateur. Please take a look and see if you can help make it work!