NPC gender based on MC gender?

Hi! I am trying to make a game and part of it has to do with most NPCs being the same gender as the MC due to them being on a sports team. I have searched but couldn’t find any script that would enable this.

Thank you!

You would just set the gender for those NPCs at the same time you set the PC’s gender. Let’s say your PC has three teammates, A, B, and J. You set up a choice asking the PC’s gender.

#I’m a man.
*set gender 1
*set subj “he”
*set a_name “Alan”
*set b_name “Brian”
*set j_name “Joseph”
#I’m a woman.
*set gender 2
*set subj “she”
*set a_name “Alana”
*set b_name “Brianna”
*set j_name “Jessica”

… but with proper indentation, which I included but this forum software doesn’t respect.

And since all these characters are necessarily the same gender, you wouldn’t have to set pronouns and other gender-variable terms for each character.

10 Likes

thank you so much!

2 Likes

It will if you put it in a code block [code] and [/code] like this :slight_smile:

#I'm a man.
   *set gender 1
   *set subj "he"
   *set a_name "Alan"
   *set b_name "Brian"
   *set j_name "Joseph"
#I'm a woman.
   *set gender 2
   *set subj "she"
   *set a_name "Alana"
   *set b_name "Brianna"
   *set j_name "Jessica"
7 Likes
#I love dogs.
   *set soulmate_name "Marigold"
#I hate dogs.
   *set i_suck true

Awesome, thanks!

4 Likes

You can cause indentation to appear correctly by using the “preformatted text” option, which is marked by an icon of a closing tag </>. It uses special inverted apostrophes as a markdown, the key for which you can find on the top-left corner of most keyboards (also known as the tilde key ~).