How does coding a female AND male gender choice work

Like do you write the script in the male verison then go back and write in the female verison

You could do that. Or you can write the script once and then just change the scenes where the LI interacts with the MC or the LI is seen in any of the scenes. I think you would have to work with flags then.

3 Likes

Dara Amarie has a code for letting reader choose their gender!

When I wrote my story, I copied and pasted between the branches. You have to make sure you change the pronouns and script name (and that you copied the template correctly).

2 Likes

I’m currently writing a Male/Female MC and Male/Female LI.

I use flags at the beginning of the story to determine whether the reader is MALE or FEMALE.

Then, you can use the @MC becomes MALEMC to have them take on the appearance of the Male character, so that you can still use @MC and write the story as normal.

When you get to outfit changes, I split the story and have FEMALEMC and MALEMC change clothes, then at the end, I use the same command @MC becomes MALEMC or @MC becomes FEMALEMC

eg.

label outfit_choice
NARR
Choose your outfit.
"One" if (FEMALE) {
@FEMALEMC changes into Female_Outfit_One
}
"One" if (MALE) {
@MALEMC changes into Male_Outfit_One
}

###############################

NARR
Is this what you want to wear?
choice
"Yes" {
continue
}
"No." {
goto outfit_choice
}

###############################

if (MALE) {
@MC becomes MALEMC
}
else {
@MC becomes FEMALEMC
}

This basically saves you from having double the lines in your script and you only need to use the if/elif/else when a character refers to your character’s gender.

2 Likes

Moved to Creator’s Corner since this is about story creation. Make sure to check out our Forum Tutorial for more info about creating topics, and feel free to PM me if you’ve got questions. :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.