RPG Maker MZ, need all 4 characters for portal home, how?

Hello.
Working on the ending for my game. Need all four of the characters to be present - the player starts with two and the objective is to rescue the other two party members, then take the portal home. Is there some way I can ensure the player actually does rescue the other two party members before trying to go thru portal home and end the game?
Thank you for your time.
control variable (game data) can give you the ID of the actor in any given actor position.
just have the event pretending to be the portal check if all four actors are present that way.

alternatively have each rescue turn a switch and check those
You already asked this, and got an answer, here:


Please don't post the same question multiple times.

Moderator note: Closing

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-need-all-4-characters-for-portal-home-how.148384/