Perhaps you should give a screenshot of what you have so far - that would make it easier.
Because removing actors from the party is a simple command, and you can place it in conditional branches to check for anything.
But the exact event sequence depends on what you want to achieve, and you didn't give enough info about your project to understand that.
I'm going to assume that when you said you want an event which (quote) permits me to evitate loosing them (unquote) evitate is your way of translating evitare, which is to avoid/prevent.
So you want to avoid loosing characters when the player exits the house. Some questions you need to answer
Have you collected the other characters?
If yes, why would you lose them from the party?
If no, do you want a way to prevent the player leaving the house until all the characters have joined the party?
I want that the player whenn tries to exit from thethe houses oror the village an event says that he have to find thethe other character
At the event of the other character, turn ON a general switch.
At the transfer for the exit, check if that switch is ON - if yes, allow exit, if not show text to find the other character.
If you need more help, I suggest working through the tutorials to learn the elements of the RM engine - follow the link in my signature to find those tutorials.
I would do: New Event > Conditional Branch > tab 2 > Actor "other character", In the party. If yes > transfer event, self switch A on; if no, text box to go find him/her. New Event Page, condition self switch A is on, transfer event. (<-- This is to "close" the event when done as the party has been formed and there is no need to check again when leaving the house/village for the rest of the game.)