Non lethal combat for reoccurring NPC help

I have an idea that I could use some help with. Is there a way to start a dialogue and have that trigger into a battle where the NPC doesn't die and then goes back into dialogue?
(example: "Hey let's fight!" fight ensues "Wow, you're strong!")
troop event checking for target HP < X.
troop event checking for target HP < X.
Thanks, that answered the second part of the question but I was able to figure out the rest as well. Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/non-lethal-combat-for-reoccurring-npc-help.157450/