I need help with sexuality choices!

Does anyone know how to make it possible for the reader to choose their sexuality and code it into your story? All the ways I have researched are very complicated… help me?? :sweat_smile:

Yes I do!

1 Like

At the very beginning of the story, you give the reader a choice, then when they choose one, confirm it, and then add a flag, then for future chapters use labels and stuff

Ex.
choice
“I prefer men” {

gain label

} “I prefer women” {

gain label

} “I like both” {

gain label

}

3 Likes

You’ll have to use gain. Like name it gain_straight, gain_asexual, gain_gay, etc…

1 Like

If I’m not wrong this shows how remembering choices work
1 Like

Sorry the code isn’t fully complete, but I thought it would work as an example

1 Like

Thanks! What I did already was:
Are you interested in guys, girls, or both?
choice
“Guys”{
gain interest_guys
}
“Girls”{
gain interest_girls
}
“Both”{
gain interest_both
}
do you think that would work? like if i did that and then later in my story did if/then labels??

2 Likes

you guys are life savers!

1 Like

Yes it works! You may want to confirm it first though. With nested choices

1 Like

nested choices?

It should work :relieved: I would use if, elif, and elif

(To test it out)

1 Like

“Both”{
gain interest_both

NARRATOE
Are you sure?

choice
“Yes” {
gain
} “No” {
goto the beginning of the section
}
}

1 Like

oh i see. thanks so much!

1 Like

Of course! I forgot to put the label at the beginning though, but hopefully it still helps!

1 Like
2 Likes

I’m having a hard time understanding this. Could you guys send me a sexuality choice code with some explanation of what should I do in the next chapters?

Labels, it’s all about the labels. and gotos and all that good stuff.