Dungeon restriction

So... I'm trying to set up a dungeon that you can only enter if you have a certain character in your active party. (not your backups, but in the 3 characters supporting you in battle)
The switch in game seems to only be effected by if they're in your party at all, not the active party. Any reccomendations?
In Conditional Branch, go to "script" and insert this:

Code:
$gameActors.actor(1).isBattleMember()

1 refers to the actor ID that you see in the database, not to be mixed up with 1st actor in the party.
Awesome! Much Appriciated. Thank you

Original thread: https://forums.rpgmakerweb.com/threads/dungeon-restriction.170424/