Making an Inn heal only alive party members

Hey, I wanted to know if there was a way to make the inns heal alive party members without resurrecting dead ones and I don't think I can do it with the "Change HP..." option. Do you have any idea of how could I make it?
You would have to have a script call to go through the alive members, or do a series of conditional branches for every actor to see if they're in the party and they're alive.
I'm not at a computer right now so I can't double check, but if you can set a conditional branch to check if a character has the 'dead' state on them, give that branch an else statement and heal them fully in the else statement (since that will be the condition of NOT having the state) You'd have to do that for each character individually, so make it in a common event and then just call that common event on your inn events.


this should work providing there's a conditional branch to check a character's state, but I'm pretty sure there is.
Hi, guys! Thank you for your answers. I'm not a nice scripter (I just know how to plug a script over Main Process, tehehe), but Makio's answer seemed to work so thanks to both of you  😀

Original thread: https://forums.rpgmakerweb.com/threads/making-an-inn-heal-only-alive-party-members.57710/