MV Can you make a character unwilling to join the party under certain circumstances? (And how?)

Hiii! This is my first time posting on these forums, I hope this is appropriately categorized hehe

Is there a way to make the presence of character A in your party prevent character B from joining the party? I have a few characters who don't get along in lore and I'd like to have them refuse to join if the other is present

I'm a total newbie, so sorry if I seem a little ignorant to how this whole thing works... thank you in advance, if anyone happens to know a solution 😀
Do you have a big roster? If this is handled by events, just test if Alice is in the party, then Bob cannot join. Use the conditional branch.
I'd combine switches with conditional branches to do this.
Spoiler: Example image 1
1754332819693.png

Spoiler: Example image 2
1754332903191.png

The setup above will make it so that Lucius will join if spoken to while Melanie is not present in the party, but will not if she is. On the other hand, if you speak to Melanie first, she will join the party instead, refusing only if Lucius is in the party.

Spoiler: The Conditional Branch option
1754333077872.png

1754333115446.png
That's how the Conditional Branch settings look. Make sure to click the 'Create Else Branch' box when setting this up.

I should also point out that you could avoid using switches and simply have your conditional branch based on who's in the party at the moment. I'll show that below.

Spoiler: Setting conditional branch based on Actor
1754333309902.png

This would work the same way, merely omitting the switch requirement. However, this option might result in unexpected weirdness should someone not be in the party at that moment for whatever reason, but are meant to return later. Using the switch ensures you won't encounter that issue.
While @Sword_of_Dusk first method works just fine, with the information given, I don't quite see why you'd use switches when there's literally a check for whether or not a character is in the party. I don't see what "weirdness" could be happening with that check that supposedly can't happen with a switch.
I don't quite see why you'd use switches when there's literally a check for whether or not a character is in the party:
As he said, it's to protect against certain scenarios.
He mentioned an actor that might have been recruited that may not be in the party at the moment but come back later. That can be for story reasons, but also with how the engine handles when someone is counted as being party member, it'll mean if the event is ran in a battle and the actor isn't in the battle party, they're not a member, the event won't count them, and you end up with both actors in the party.
As he said, it's to protect against certain scenarios.
He mentioned an actor that might have been recruited that may not be in the party at the moment but come back later. That can be for story reasons, but also with how the engine handles when someone is counted as being party member, it'll mean if the event is ran in a battle and the actor isn't in the battle party, they're not a member, the event won't count them, and you end up with both actors in the party.
Huh, I didn't know the check only counts the party right on the map. Interesting. In that case yeah, probably use switches, even tho keeping track of them is kind of a chore.
to extent sword_of_dusk answer a little on refusing,
if its vice versa (1 joins, also check if they both are in party)
if 1 wants too and bad relation between 2, the other left.

but this isn't required if they join in order or you can recruit any of it,
or make sure this combo works correctly for your lore based.

so it would be easy to extend the logic 🙂
Tysm everyone! This should do nicely :3

Original thread: https://forums.rpgmakerweb.com/threads/can-you-make-a-character-unwilling-to-join-the-party-under-certain-circumstances-and-how.179358/