How to set the entire party's HP to 1 after a conversation with an NPC?

Hello all!

I have a part in my game where the players fight with an NPC.
If lose, there should be a dialogue and the entire party's HP should be set to 1hp - however I can't figure out how to set that. I tried Change HP, but that only lets me add or subtract a number of HP.

Can anyone please tell me how to set the entire party's HP to 1 when I don't know how many party members there will be?

Thank you.
Create a variable for each actor that is linked to their current HP. From there, set the variables to = 1.
Change HP -> decrease by 9999 -> uncheck the "allow knockout" box so the party members can't die.
Thank you both for your replies!

MushroomCake28, this is exactly what I was hoping to achieve.
I'm just sorry I didn't notice that the functionality was already built-in!

Thanks very much!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-the-entire-partys-hp-to-1-after-a-conversation-with-an-npc.105601/