Assistance with a script that can recover hp on demand?

So I wanted to have a fight where the boss recovers hp as they talked with each text box but was just extremely unsure how to go about writing this... It doesn't even need to be % hp or anything, flat hp would be easier for me to handle. Am still really new to all this T..T

I've moved this thread to Learning Ruby. Thank you.

why are you asking for a script?
I assume that you have either a troop event or a common event on a skill to create the show text boxes you wrote about, and in that case you can simply use a change enemy HP event command after each show text.
why are you asking for a script?
I assume that you have either a troop event or a common event on a skill to create the show text boxes you wrote about, and in that case you can simply use a change enemy HP event command after each show text.
Uhm... Would you have a guide on how I could go about making that T..T unless it's just me doing change_enemy and then making an event ._.
a fight where the boss recovers hp as they talked with each text box
So this implies that you have a battle setup and it is working except you need to have the boss recover hp.
If that's the case, show us the battle setup.
I can only assume you are doing this in the troop tab.
If you do not have anything setup, then you should be more clear in your request.
How is the boss going to interact/where are the text boxes controlled?

Original thread: https://forums.rpgmakerweb.com/threads/assistance-with-a-script-that-can-recover-hp-on-demand.149679/