Help whit remmebering tappable choices

Hi,
Can anybody help me find where’s the error please, because I don’t know why it’s not working. And when I’m previewing it in some it says daughter and in others son.

if (FEMALE_LI) {

  KARL HOLMBERG

My daughter Christine Holemberg.

}
else {

  KARL HOLMBERG

My son Christopher Holemberg.

}

This is the choice (it’s a the start of the episode)

tappable (LI)
“FEMALE”{
gain FEMALE_LI
&speechbubble reset
&overlay FEMALE opacity 0 in 0 AND overlay MALE opacity 0 in 0

@ZB WOMEN spot 2.125 144 -397 in zone 1 AND ZB WOMEN faces right
&ZB WOMEN is talk_flirt_coy_atcamera
NARRATOR
Are you sure you want to date a Female?
choice
“Yes I want to date a Female” {
@ZB WOMEN spot 0.0 144 -397 in zone 1 AND ZB MALE faces left
}
“No” {
goto Love_interest_choice
}

} “MALE”{
gain MALE_LI
&speechbubble reset
&overlay FEMALE opacity 0 in 0 AND overlay MALE opacity 0 in 0

@ZB MALE spot 2.125 144 -397 in zone 1 AND ZB MALE faces left
&ZB MALE is kiss_blow_happy_atcamera
NARRATOR
Are you sure you want to date a male?
choice
“Yes I want to date a Male” {
@ZB MALE spot 0.0 144 -397 in zone 1 AND ZB MALE faces left
}
“No” {
goto Love_interest_choice
}
}

1 Like

Try this

label Love_interest_choice

tappable
“FEMALE” {

&speechbubble reset
&overlay FEMALE opacity 0 in 0 AND overlay MALE opacity 0 in 0

@ZB WOMEN spot 2.125 144 -397 in zone 1 AND ZB WOMEN faces right
&ZB WOMEN is talk_flirt_coy_atcamera
NARRATOR
Are you sure you want to date a Female?
choice
“Yes I want to date a Female” {

@ZB WOMEN spot 0.0 144 -397 in zone 1 AND ZB MALE faces left

gain FEMALE_LI

} “No” {

goto Love_interest_choice

}

} “MALE” {

&speechbubble reset
&overlay FEMALE opacity 0 in 0 AND overlay MALE opacity 0 in 0

@ZB MALE spot 2.125 144 -397 in zone 1 AND ZB MALE faces left
&ZB MALE is kiss_blow_happy_atcamera
NARRATOR
Are you sure you want to date a male?
choice
“Yes I want to date a Male” {

@ZB MALE spot 0.0 144 -397 in zone 1 AND ZB MALE faces left

gain MALE_LI

} “No” {

goto Love_interest_choice

}
}

1 Like

You put the gain right away when you’re supposed to put it after :point_down:

same thing with the male

Hi,
Thanks for your help but it still isn’t working.
If you have any other tips

Try elif instead of else.

Also make sure the remembering choice doesn’t get gained before the reader confirms it

If you are previewing a different chapter than the one you wrote the choice in, you need to toggle flags etc for it to work

1 Like

I’ve also tried elif, and the you only gain the choice if you confirmed it, and the choice is in the same chapter.
But thanks, if you have any other tips…

1 Like

Refresh and try again. Don’t press both choices, just one.
In the starter script you give us the reader gains the choice after previewing a choice, not after confirming it. If you haven’t already changes that, make sure you will!

1 Like

YESS I refreshed the page and now it works thanks!!!

2 Likes

No problem! Glad I could help you!

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