DARA’S GUIDE: Remember Choices with if/elif/else

Hey I don’t get it why does this work
if (Female_me) {
NARR
I am the female part
}elif (Male) {
NARR
I am the male part
}

but this doesn’t?

if (Female_me) {
NARR
I am the female part
}else {
NARR
I am the male part
}

I FINALLY UNDERSTOOD thank you!

I don’t know what I am doing wrong, the first and third works perfectly but not this one:

} elif (HOUSE is “A house-girl”) {

Thank so much for any help!

Screenshot%20(41)
Can someone tell me what I’m doing wrong? I have an outfit selection in Chap 1; However, I used this coding in chap 2 and she keeps coming out in the 3rd choice. In my playthrough I picked choice 2 and she still comes out in choice 3.

If you’re using the web previewer, it does not remember choices from previous episodes. You’ll have to test it out in the app

1 Like

I tested it on my phone and it still has her come out in outfit 3. if I click update she comes out in outfit 1… I have no idea what the issue is. Do I have something in the coding wrong?

Did you play through episode 1 then immediately play through episode 2? What does your choice look like?

Screenshot%20(45)

Yes, my app immediately starts chap 2 after the final transition at the end of chap 1.

You didn’t name your choice and the choice titles don’t match at all in the if/elif

1 Like

Thank you! I’ve been kicking myself trying to figure it out. That’s what I get for not paying attention. Thank you so much! I’m new to all of this. :exploding_head:

Hi Dara I’m having a little bit of trouble with remembering a choice.
Here are the photo ( what I want is if they choose one type of piercings then the outfit changes according to that) :

But if i choose the second piercing it chooses the outfit with the other one!
thxx
mafi

@Dara.Amarie don’t worry i figured it out!
thanks anyway :slight_smile:

Yay, this thread is still open.
I have a little dilemma.
When I did the if/elif/else method. It worked but I have a slight problem now.
When I go into my app to test it out.
Only “else” works.
I had type of different things to say.
But even when I restart the script, else is the one that works.
Can anybody tell me what I can do? lol

Hi there.

Honestly, I really don’t know what the problem is in my script.
I used if/elif/else already in former episodes…
But…obviously here something doesn’t go right. It doesn’t matter which dress I choose, the script always follows the text in “else”. Did I do something wrong? :frowning:
Thx in advance!

label birthdaydress
NARRATOR
What’s your choice?

choice (BIRTHDAYDRESS)
“Silver” {
@AMY changes into AMY_birthdaydress1
goto birthdaydress
} “Red” {
@AMY changes into AMY_birthdaydress2
goto birthdaydress
} “Blush” {
@AMY changes into AMY_birthdaydress3
goto birthdaydress
} “That’s perfect!” {
goto continuestory
}

label continuestory
@AMY is flirt_wink_atcamera
@zoom on 320 302 to 125% in 2

if (BIRTHDAYDRESS is “Silver”) {
@EMILY is admire_happy

    EMILY (talk_flirt_coy)
You look smoking, my girl.

@AMY is flirt_wink_happy

    EMILY (talk_agree_happy)
Now it's my turn!

@EMILY exits right in 2 AND EMILY does it while run_athletic_neutral_loop
@AMY walks to screen left in 2 THEN AMY is idle_shiftweight_neutral_loop AND AMY faces right
@EMILY changes into EMILY_birthdaydress
@EMILY enters from right to screen center THEN EMILY is flirt_wink_happy AND AMY is admire_happy

    AMY (flirt_fingerbite_sexy)
Now look at this hot chick.

@AMY is laugh_giggle AND EMILY is laugh_giggle

    EMILY (talk_excited_happy)
Come on, let's go!

    AMY (talk_shrug_neutral)
I've no idea where to go, but..okay.

@EMILY is eyeroll_subtle
@AMY exits left in 2 AND AMY does it while walk_neutral_loop AND EMILY exits left in 3 AND EMILY does it while walk_neutral_loop

} elif (BIRTHDAYDRESS is “Red”) {
@EMILY is admire_happy

    EMILY (talk_flirt_coy)
You look smoking, my girl.

@AMY is flirt_wink_happy

    EMILY (talk_agree_happy)
Now it's my turn!

@EMILY exits right in 2 AND EMILY does it while run_athletic_neutral_loop
@AMY walks to screen left in 2 THEN AMY is idle_shiftweight_neutral_loop AND AMY faces right
@EMILY changes into EMILY_birthdaydress
@EMILY enters from right to screen center THEN EMILY is flirt_wink_happy AND AMY is admire_happy

    AMY (flirt_fingerbite_sexy)
Now look at this hot chick.

@AMY is laugh_giggle AND EMILY is laugh_giggle

    EMILY (talk_excited_happy)
Come on, let's go!

    AMY (talk_shrug_neutral)
I've no idea where to go, but..okay.

@EMILY is eyeroll_subtle
@AMY exits left in 2 AND AMY does it while walk_neutral_loop AND EMILY exits left in 3 AND EMILY does it while walk_neutral_loop

} else {
@EMILY is admire_happy
@EMILY +5
EMILY (talk_excited_happy)
Oh my god!

@EMILY exits right in 2 AND EMILY does it while run_athletic_neutral_loop AND AMY is react_startled_subtle
@AMY walks to screen left in 2 THEN AMY is idle_shiftweight_neutral_loop AND AMY faces right
@EMILY changes into EMILY_birthdaydress
@EMILY enters from right to screen center THEN EMILY is flirt_wink_happy AND AMY is admire_happy

    AMY (talk_flirt_charming)
We're matching!

readerMessage Emily +5
@AMY is laugh_giggle AND EMILY is laugh_giggle

    EMILY (talk_excited_happy)
Come on, let's go!

    AMY (talk_shrug_neutral)
I've no idea where to go, but..okay.

@EMILY is eyeroll_subtle
@AMY exits left in 2 AND AMY does it while walk_neutral_loop AND EMILY exits left in 3 AND EMILY does it while walk_neutral_loop
}

Are you using gains? Can you post a screenshot of your choice and then another of your if/elif/else?

1 Like

I found out the problem.
I had “OUTFIT_1” for the dressing game but I didn’t include it in the if/elif.
Thank you for responding though! :heartpulse:

Oh okay, that does make sense. What need I do to fix that? Do I need to make choices within the choices?

Gesendet mit der GMX Mail App

Just add a “Yes/no” choice after the outfit choice to confirm or go back