PC gender and pronouns

Hi! I was hoping someone could better explain HarrisPS’s Gender and Pronoun sample code to me. I understand the gist of it (I’m going to have to redo some of my code) but in startup, do I just need to do *create pc_gender 1 or do I need to do that for all “three” I’d be using (male, female, (and by extension trans male and trans female) and nonbinary)?

Or do i just do that in the code when the player selects the gender? i.e. *set pc_gender 1 or *set pc_gender 2?

I’m hoping to do it this way so I can easily use multireplace later on for singular/plural pronouns as I’ve already run into a situation where I had to adjust my writing to avoid using a plural because I forgot to code it in in advanced. Any suggestions/answers would be greatly appreciated before I go back into the code and start changing things and accidentally mess something up :slight_smile:

Yes, you would need to create only one variable in startup.

Setting pc_gender to something not zero is best because using multireplace causes errors if you have a 0 as variable.
Better to prevent that by setting it to 1, as in the example.

Edit: forgot to add, you basically have figured it out already. Just *set the variables in the game and you should be fine.

You were on the right path.

1 Like

Thanks so much! I wanted to be sure before I started messing around with it.

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.