Varying Gender in Text

Another question, so sorry!

So I am doing a story where there is a sibling that varies in gender depending on the choice of the player.

My question is, how do I put this into text without having to rewrite each scene with different pronouns and names? I don’t want to have to writer three different versions with ${sister_name} and ${brother_name} and ${sibling_name} with the appropriate pronouns shifted each time.

1 Like

Make the pronouns variables as well, and use multireplace. (Also, there’s no reason to use three different variables for the sibling’s name based on their gender.)

$!{sibname} walks into the room. $!{sibsub} @{sibthey sit|sits} down and @{sibthey put|puts} ${sibpos} feet up.

5 Likes

So I do realize I can just:

*create sibling “”

And have the value set to the name depending on the gender that the player chose, but how do I stat block that then? Like if I already have sibling as a variable being used to set the name of them, what do I do for the percentage of closeness?

Because right now I have

*create sibling 20

You could make the variable ${sibname}, the way I did in the example.

2 Likes

I’m just being slow on the uptake, sorry.

So I would have
*create sibname “”
*create sibling_gender “”
*create sibling 20

For the statblock, if I put sibling there, would it replace ‘sibling’ with the sibling name?

1 Like

Do you mean when you’re showing the relationship on the stats page? If so, you’d want to put something like percent sibling ${sibname} in your *stat_chart.

There’s more about how to lay out the stats page here:

I’d also recommend having a look at my gender and pronoun sample code for ideas about how to deal with the variables needed for gender-variable characters.

5 Likes

I didn’t know I could add more stuff after percent variable, thank you!