Programming Pronouns in Ren'Py
Added 2017-08-09 18:45:09 +0000 UTCI wanted to add a little update/tutorial about the programming I've used for giving the player choosable pronouns in The Hunt!
So, I started with making a custom screen in the screens.rpy file!

Then, inside, I needed the front end of the choices

And, a way to submit the form:

I have more coding on this page, but it's for other choices and decoration. These are the basic elements you'd need to let a player pick their pronouns.
Now that you have a new screen to call, you can call it in the script.rpy file to have it pop up in the game.

That'll bring up the screen you just made called 'startgame', and once the player clicks 'I'm Ready' it'll close the screen, leaving you with filled up variables to use!
But, because english is literally the shittiest crappily constructed language invented, we are going to have to a do a bunch more work with our variables. Right now, all we have is the player's preference. We'll need to expand that into all the possible variables in vocabulary we'll actually need in dialogue.

So now I have... 8 variables, with 3 possibilities each. Sheesh. I've tried naming them in a way I can remember when I'm coding.. the 'pp' stands for player pronoun. '_c' means capitalized, _sub and _obj mean subjective and objective nouns [ I needed alans help for that, I just put numbers before.. ], then the _pos and _is are for possession and..uhh... what they is. Look, I talk in computer, not people.
ANYWAY. Now we have the variables we need to write dialogue!

In this sentence, I used the variable 'pp_is_c' and 'pp_1', which will be replaced by whatever pronouns the player picked!
This way, my dialogue will always use the right pronoun, and I don't have to worry about writing in 'if' statements for every damn sentence. XD
Hope that made sense! Let me know in the comments if you have any other ideas for mini-tutorials! I can make more if I have time <3