Remembering tappable choice

I’m using tappable overlays to pick the readers love interest gender, but when I test it, at first it would always resort to a man, and now it only resorts to the woman:

label LI_gender

@overlay FEMALE opacity 1 in 0 AND overlay MALE opacity 1 in 0

@speechbubble is 162 277 to 118%
NARRATOR
What gender is your love interest?

tappable (LI_gender)
“FEMALE” {

@SEX =1

goto LI_gender_check

} “MALE” {

@SEX =2

goto LI_gender_check

}

label LI_gender_check

if (LI_gender is “FEMALE”) {

&overlay FEMALE opacity 0 AND overlay MALE opacity 0
NARRATOR
Are you sure they’re a woman?

choice
“Yes!” {
goto customise_zach
} “No” {
goto LI_gender
}

} else {

&overlay FEMALE opacity 0 AND overlay MALE opacity 0
NARRATOR
Are you sure they’re a man?

choice
“Yes!” {
goto customise_dani
} “No!” {
goto LI_gender
}

}

If this script doesn’t work, should I use @SEX = 1 (female) @SEX = 2 (male), would that work?

so it seem weird what you have done here.

because this is points that seem weird to use for gender picking. also I dont think you can use points unleash you have a character with that name. I doubt episode would let you name someone sex

this here sound like a choice if, which can not be used for tappable. as far as I know

I am honestly very confused over your code.

I think you should change the points to gains.

gain female_li

gain male li

if (female_li) {

}
else {

}

I used the SEX template from someone else, the name isn’t in preview it’s just for code, when I used @SEX = 1 it seems to work great

i really don’t understand the gains

gains are very simple though.

(5) Episode tutorial - remembering choices, part 1 : gains - YouTube

At this point I’m just gonna assume that “Dani” is the female LI and “Zach” is the male LI, right? If so, you confused the goto.

This goto is under the “Are you sure you want to date a woman?”

And this goto is under the “Are you sure you want to date a man?”

Maybe that’s why when you pick “female”, the male character appears and vice-versa.

yeah i realised that after lol but it still stayed the same for the rest of the script

remember if you dont reload the page. but instead just go back it can mess up the code for things like this

ohhh I was seriously over confusing myself with gains i get it now

would this work:

if (@SEX =1){

female story

} elif (@SEX =2){

male story

}

or would this cause problems?

that is stil points.

whats wrong with using points? I’ve named a character SEX it wasn’t a problem?

nothing, I just confused . because you said gains.

though I think gains is more simple than points, but if its what you are most comfortible with then that is up to you

also I think it might be. episode can be problematic about words.

and this can create trouble. even if you dont say it. using it can get you in problems if it gets reviewed.

you would properly just be asked to change it, but that would still be a lot of work

1 Like

yeah it seems much simpler, i just confuse myself sometimes lol, thanks!

1 Like

That’s correct. Just know that you don’t have to write the @ symbol unless the script name has it.

ohh ok i thoght you did, thanks!

It’s still just taking me to the female option

NARRATOR
What gender is your love interest?

tappable (LI_gender)
“FEMALE” {

gain LI_female

goto LI_gender_check

} “MALE” {

gain LI_male

goto LI_gender_check

}

label LI_gender_check

if (LI_female) {

&overlay FEMALE opacity 0 AND overlay MALE opacity 0
NARRATOR
Are you sure they’re a woman?

choice
“Yes!” {
goto customise_dani
} “No” {
goto LI_gender
}

} elif (LI_male) {

&overlay FEMALE opacity 0 AND overlay MALE opacity 0
NARRATOR
Are you sure they’re a man?

choice
“Yes!” {
goto customise_zach
} “No!” {
goto LI_gender
}

}

Once a gain is gained you cannot un-gain it, so you’ll have to reset your story progress.

Ohh right I see what you mean now! this wont work then if they accientally click the wrong one, i’ll stick with @SEX = 1 but change SEX to GENDER, thanks!

Actually, it can work, but you’ll need to change the place where the gain is gained. You should do it like this:

NARRATOR
What gender is your love interest?

tappable (LI_gender)
"FEMALE" {
goto LI_gender_check
} "MALE" {
goto LI_gender_check
}

label LI_gender_check

if (LI_female) {
&overlay FEMALE opacity 0 AND overlay MALE opacity 0

NARRATOR
Are you sure they’re a woman?

choice
"Yes!" {
gain LI_female
goto customise_dani
} "No" {
goto LI_gender
}
} elif (LI_male) {
&overlay FEMALE opacity 0 AND overlay MALE opacity 0

NARRATOR
Are you sure they’re a man?

choice
"Yes!" {
gain LI_male
goto customise_zach
} "No!" {
goto LI_gender
}
}