So for my project, damage the player takes works in a weird way. Most enemy attacks do not affect the player's HP bar directly, and instead deal damage to the MP bar. At the end of EVERY turn, the game checks the player's MP and subtracts whatever's missing from the player's HP bar; if the HP reaches 0 in the process, the Actor dies (obvious). The MP bar is then fully restored. The primary objective of my project handling player health this way is to make the phenomonon of "Health Crunch" (ie the player losing an overwhelmingly majority of their health to a single attack-- or turn in the case of Turn-Based games) a complete non-concern for the player.
Originally, I was just going to have this calculated through a Troop Event occurring at the end of every turn, using the "Change HP" event command:
This technically works (when the MP bar writes a check the HP bar can't cash, the Actor dies and the game over processes before the player can pick next round's move)(note- this only works), HOWEVER the player's HP/MP bar does not actually display on that the calculation has happened until the start of the following turn.
So, here's the script I need:
At the end of every turn in combat-- before the player selects an input for the next turn --the Actor's HP is subtracted by their missing MP, and then fully restore their MP. The battle scene then needs to immediately redraw the health and mana bar after this calculation has been made, BEFORE the player inputs for the next turn.
(last-sec edit: also please make sure it's compatible with mjshi's PrettySleekGauges? *pleading face*)
Originally, I was just going to have this calculated through a Troop Event occurring at the end of every turn, using the "Change HP" event command:
This technically works (when the MP bar writes a check the HP bar can't cash, the Actor dies and the game over processes before the player can pick next round's move)(note- this only works), HOWEVER the player's HP/MP bar does not actually display on that the calculation has happened until the start of the following turn.
So, here's the script I need:
At the end of every turn in combat-- before the player selects an input for the next turn --the Actor's HP is subtracted by their missing MP, and then fully restore their MP. The battle scene then needs to immediately redraw the health and mana bar after this calculation has been made, BEFORE the player inputs for the next turn.
(last-sec edit: also please make sure it's compatible with mjshi's PrettySleekGauges? *pleading face*)