Gender and pronouns (also for non-binary) (MZ)

INTRO

When you want the player to choose which character they play, you can easily just switch out images and names, or even the whole main character. However, If you want to have dialogue about the main character, this might cause an issue. You have to avoid words like "Him/Her" "His/Her" and "He/She". Or you'd have to rewrite all dialogue for males and females.

I got the solution for that. And it works for MV too!!



STEPS

  1. Set up a gender
  2. Preparing pronouns
  3. Writing dialogue



1. Set up a gender

First you need to make a scene, where the character is introduced. Probably at the very start of your game.

In this scene, before your character is named or shown for the first time, you ask the player fir their desired gender. Here you set up the images and the name of the main characters. Here you also puts a gender in a variable of your choice. I use var 31 in this example. 0 = male, 1 = female (and if you want: 2 = non-binary)

1744279526079.png


You can dress it up any way you like, as long as you turn the var into 0 for male, and 1 for female.



2. Preparing pronouns

Now we are going to set up the pronouns for the genders. There are 3 pronouns for each gender.
Each of the following lines fit only one of those pronouns:

HE is so cute!
SHE is so cute!

I love HIS smile!
I love HER smile!

I have a crush on HIM!
I have a crush on HER!

But all 3 pronouns can be part of a single line:
When I saw HIM walking HIS dog in the park, HE waved at me.

For this reason I, I use 3 variables per pronouns... (Twice, but we get to that later)

I use variable 32, 33 and 34 in this example:
1744279540458.png

1744279549314.png


If game var 31 is 0, var 32, 33 and 34 will now contain the words "He" "His" and "Him".
If game var 31 is 1, var 32, 33 and 34 will now contain the words "She" "Her" and "Her".

Remember I said we do this twice? We set up 3 variables like this again, but this time, we do no use caps.
In this example we use car 35, 36 and 37:
1744279564709.png


We only have to do this once in your whole game. Never change the value of those variables, again.

If you want a 3rd (or more) gender, and your want its pronouns to be Xi/Xis/Xem. then simple add those to the array (the list of pronouns in a single value) like this:
1744279597689.png


Now if the variable for genders is set to 2, the pronouns is Xi/Xis/Xim. I've add a third option to the players choice to choose not to play as a man or a woman.

You can add as many genders as you like!



3. Writing dialogue

Your system is ready to be used now.

When you write dialogue, then ALWAYS assume your player is MALE! This is important because male pronouns has Him and His, but for the female they are both Her. I saw HIM on HIS bike, or I saw HER on HER bike. For females they are the same pronouns, but not for males. That is why we write as if all our players play as male, so we don't use the wrong pronouns for any of the genders.

We are going to write the following message, as example:

When I saw him walking his dog in the park, he
waved at me. His puppy is so cute! He probably loves
his puppy more than he loves his mother.

All 3 pronouns are in this line multiple times. It is important to note that SOME of them are starting with a capital letter. It is a good thing we prepared for this.

When we want to show this in dialogue, we simply replace all pronounce with the value of the pronounce variable. Like this:
1744279645010.png


If the main character is a guy, you will get this:
1744279653882.png


And for a girl it would be like this:
1744279665788.png


And for the other gender:
1744279692611.png




Thanks for reading! I hoped this helped you and your buddies to make the game you always wanted to make.

And some of you might think: "Oh, do I need to put \v[x] here and there and everywhere?" Well, no. It is not that common that a game refers to the protagonist in the third person. In 99% of all your text, you will just use YOU and YOUR and YOURS as pronounce, when talking directly to your character. Only when other characters talk about your character, but not to your character, you need to use the pronouns by variables.

Have fun, and I am a little early, but... Enjoy your weekend!

(Edit: I messed up!! You see, after the comma I used the wrong variables, so there is a capitalized pronoun... This is what I tried to prevent by using 2 variables for each pronoun. I'm too lazy to make new screenshots, though) 😛
Nice tutorial, lucky, I can do it slightly easier as well 😛
using 1 variable for him/he/his use \v[31][0] for "him/her", \v[31][1] for "he/she".

as array in array use can be useful.

but you need to track off the variable how it is used and correctly.

keep up the nice work, gonna dig into this how exactly what is given how
for the she/her part that is being taken out.
Nice tutorial, lucky, I can do it slightly easier as well 😛
using 1 variable for him/he/his use \v[31][0] for "him/her", \v[31][1] for "he/she".

as array in array use can be useful.

but you need to track off the variable how it is used and correctly.

keep up the nice work, gonna dig into this how exactly what is given how
for the she/her part that is being taken out.
\v[31][1] doesn't work in text messages, though.

you should really start testing your theories, before you pass them on to me. 😛

I don't know what you mean by the last comment... She her is taken/out?
\v[31][1] doesn't work in text messages, though.
this does work because I coded it into my base 😉
so \v[31] takes the value while \v[31][0] from array if its made.

by default, it doesn't work indeed, but for me, it does work ^^
this does work because I coded it into my base 😉
so \v[31] takes the value while \v[31][0] from array if its made.

by default, it doesn't work indeed, but for me, it does work ^^
Oh you made a plugin to make it work like that? Yeah.

By the way, just curious. How come that with everything I post, you take that as a personal quest to improve it? 😛 I mean, there is kind of a pattern here, mate. And it is not that I mind, not really... But I do kind of wonder why that is.

At first I thought you were just excited about the things I make, and somehow want to participate, which I think is real nice. But I do notice that it is mainly with everything I create. 😛

It's okay though. I don't mind the interaction. Sometimes it feels like I got a real fan. 😛
By the way, just curious. How come that with everything I post, you take that as a personal quest to improve it?
its ideal for user friendly, but using a bit advanced technic can be done using
1 variable, so you basicly do array index + variable (male/female).
so if you do \v[31][0 + variable] 0 or 1 it always get the right one like yours 🙂
this could be a for advanced approach if they want to learn a bit of scripting too.

don't get me wrong though, beginners learn a lot from it, but they should have something
to save it to re-use it somehow to use those variables whenever they want to use
the he/him/his/she/her/hers.

this is kind of a nice way to lessen the condition branch to check if its a male/female.
That doesn't really answer my question, though. 😛

Yes, \v[x][y] using 1 variable would be easier than using 7 variables in total, but \v[x][y] doesn't work by default. That is the whole issue here. My system does work without the need of a plugin.

If I would use a plugin to do this, I would actually only use a variable for the gender, and have all the arrays stored in a plugin I'll write itself, in combination with some handy plugins by yanfly. That works fine for my football manager, which uses arrays for everything. 😛 But the tutorial is about how to create this yourself, without the need of a plugin.

It's relatively simple, yet it is effective. And (hopefully) it is understandable enough for most users who want to create a system like this.

Edit: If you really want to help me improve, help me figure out a way to deal with the capitalized pronouns. If I could use the same var for "he" and for "He", then that would be a great improvement.
You could also just use a few blank actors and either change their names accordingly and use \n[x] to insert their names as the words. This way You could even let the player input the pronouns they want to I’ve with the input actor name.

Or have an actor with each preset pronoun name, some variables for pronoun ID (pnID) for which one to use, before dialogue set those pnID variables to the appropriate actor name, then use \n[\v[pnID]] in the dialogue.

Original thread: https://forums.rpgmakerweb.com/threads/gender-and-pronouns-also-for-non-binary-mz.176859/