I need help in setting the gender of the companion for my game.
In the beginning, you get to pick if you want your companion to be male or female. Right now, I resort to writing two different labels for each gender, but I wonder if there is a simpler way to do it. The stats screen is pretty messed up as well, because both gender appear even if the npc’s gender is chosen.
create a variable representing the NPC … such as: *create npc_one in your startup
Then set that variable as 0 if male or 1 if female or 2 if non-binary in the story
Then use ${npc_one_heshethey} and so forth.
Details are in the wiki if you like that or you can find tutorials that will take you step by step through examples in: Master-List Links For Beginners
Depends whether the character is the same person just genderflipped, or whether they’re different characters. For the first one, like the others have said, you can create pronoun variables and I’d also throw in a name variable (so when you put ${j_name} in the code it would show ‘John’ or ‘Jane’ or whatever) and one to show ‘man’/‘woman’/‘person’.
For the second, same as above, because you can use that for when the dialogue/action is generic enough to be used for either. When you need something more personalised to the character you can use *if statements to show one scene for one character and one for another.
-player choose to pick male friend-
*set ${ChristClara} “Chris”
*set ${himher} “him”
${heshe} “he”
${hisher} “his”
-a scene in the game-
${ChrisClara} reach for ${hisher} weapon and get ready. You stand behind ${himher}. ${heshe} looks at you and smile.
The list is long, the more interchangeable words you think of
…
I personally like using ${Chris_hisher} etc. when coding because its easier for me to keep in mind with the prose that its an actual variable. ymmv.
‘hisher’ is a reasonable choice because, quirks of the English language:
She gave the ball to her. It’s her ball.
He gave the ball to him. It’s his ball.
The he/her pronouns don’t change their format in the same place.
He / she / they
Him / her / them His / her / their His / hers / theirs
For enthusiastic grammarians
For this reason, and also for preserving gender neutrality, I like to use grammar code. :D chrisnom(inative), chrisobl(ique), chrisdet(erminer possessive), chrispos(ssesive), chrisref(lexive).
Then you get something like ${chrisnom} gave the ball to ${jessobl}. It's ${jessdet} ball. That parses to (let’s say Chris is she and Jess is he): ‘He gave the ball to her. It’s her ball.’
I feel as if, for less enthusiastic grammarians, they pronouns may be a functional replacement for nominative, oblique, determiner possessive, etc. Both traditionally male and traditionally female pronouns have a repeat (though exactly not in the same points of use) while, as far as I can see, neither plural nor singular they repeats. Would there be anything significant missing in code like the following?
I’ve actually learned to prefer name_they/them/their/theirs both for the lack of ambiguity (unlike his/hers each word is actually different), and because it helps to keep it in my mind that the characters do not have a set gender.