How can I make a “pick your gender” system?

Hey all, I’m making a game where at some point in the start you choose to play as a male character or a female character. But it’s not as simple as your character will either be male or female. I’m wanting it so you choose between two siblings, and both siblings are in the story of the game, but you get to choose which one you play as. And whoever you choose, the other one will be an npc.

So basically, if you choose the brother, the sister is an npc in the environment. If you choose the sister, the brother is an npc, and they will have basically the same dialogue when you interact with them throughout the story.

I need help finding a tutorial that’ll help me make this happen as I’m not quite sure what I should be looking for.
Since it sounds like an either-or situation (sibling A or B), consider a switch. Event page conditions and Conditional Branch commands both allow you to check for a switch being on, or an actor being in the party. For example, you could have a map event with 2 pages:
  1. Sibling B NPC image and dialogue (page condition: none);
  2. Sibling A NPC image and dialogue (page condition: switch 123 is ON).
This assumes switch 123 gets turned on if/when the player selects to play as sibling B (and is otherwise off).

By default RMMZ doesn't offer a way to separate Show Text from its face image. If you want to show different face images for the same NPC dialogue, you could:
  • Copy+paste the dialogue, then edit each command's face;
  • Work around it using pictures or something instead of facesets;
  • Find a plugin.
You might also find these tutorials helpful~
Spoiler: Oops... This solution is for MV...
Fun thing... I do exact the same thing in my game. You can choose to play the brother or the sister, and the one you do not choose will be an NPC. (And soon after they will be the first zombie of many.)

I used the following plugins for that:
- SRD_AutoNameBox.js
- YEP_MessageCore.js
- YEP_X_ExtMesPack1.js
- YEP_X_ExtMesPack2.js

SRD AutoNameBox lets you start each message with a default text depending on the face your chose for that message and is meant to show the name with the chosen face in each message box, but I use it to show the face of actor1 or actor2 when I use a certain face.

When I use the face of the brother, the message autostarts with \af[1] which is the yanfly code for "face of actor 1" and when I use the face of the sister, then the message autostarts with \af[2].

In the character selection menu at the start of my game, I give actor one the male graphics if the brother is chosen and female graphics if the sister is chosen and actor 2 the other way around.

Now I develop the game in the perspective of the brother, but when the player chooses to play as Ramona (the sister), it will always show the right face for both the player and the NPC.

Another thing I do, is give the sibling the nickname "brother" or "sister". The I try to avoid using things like "She" and "Her" but instead I use "your \an[2]", which is yanfly's way to say the nickname of actor 2.

Edit: IMPORTANT NOTE!!! If you use this method, and at any point in the game you add the sibling to the party, do NOT check initialize!

Edit: Oops... I wrote all this just to find out you work with MZ. This solution is rather specific for MV, because of the plugins.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-a-pick-your-gender-system.151485/