SOLVED ! Need very urgent HELP with IF, ELIF & ELSE IN IF, ELIF & ELSE!

Hi, I need help very urgently, because the new chapter is supposed to go online at 7pm (German time), but so far is completely bugged.

It’s about a discussion Pearl is having with her best friend Shelby and Pearl is supposed to talk to Shelby about the following, depending on the readers’ previous decisions.

The problem? Somehow Pearl doesn’t include the decisions of the previous chapters and jumps arbitrarily to one (if or elif).

Sometimes even after - "And yes, but it’s not what yoz think", it’s over and the episode ends itself.

Can anyone help me? I am really desperate. :cry:

@kahlouchee @schittwriter

START :

PEARL (talk_exhausted)
And yes, but it’s not what you think.

@PEARL is deepbreath

.

if (love_PEARL) {

PEARL (talk_armscrossed_sad_loop)
I have already gathered the courage and confessed my love to [FIRSTNAME]-
And thereby I learned that she also has strong feelings for me, but doesn’t want to start a relationship with me-

if (kiss_faith) {

PEARL (talk_armscrossed_sad_loop)
When I asked her today if we wanted to meet, she said that we couldn’t and-

} elif (kiss_PEARL) {

PEARL (talk_exhausted)
But since our kiss at the lake, I-

} elif (hug_PEARL) {

PEARL (talk_exhausted)
But since our hug at the lake, I-

@transition fade out black

}

} elif (undecided_love) {

PEARL (talk_armscrossed_sad_loop)
I have already gathered the courage and confessed my love to [FIRSTNAME]-
And thereby I I found out that she also has strong feelings for me, but doesn’t know if she loves me, and doesn’t want to start a relationship with me-

if (kiss_faith) {

PEARL (talk_armscrossed_sad_loop)
When I asked her today if we wanted to meet, she said that we couldn’t and-

} elif (kiss_PEARL) {

PEARL (talk_exhausted)
But since our kiss at the lake, I-

} elif (hug_PEARL) {

PEARL (talk_exhausted)
But since our hug at the lake, I-

}

}else {

PEARL (talk_armscrossed_sad_loop)
I have already gathered the courage and confessed my love to [FIRSTNAME]-
But she just laughed and said, that the two of us would |bold|never|reset| be a couple.

@cut to zone 1

if (kiss_faith) {

PEARL (talk_armscrossed_sad_loop)
When I asked her today if we wanted to meet, she said that we couldn’t and-

} elif (kiss_PEARL) {

PEARL (talk_exhausted)
When we met today, she even kissed me and-

} elif (hug_PEARL) {

PEARL (talk_exhausted)
When we met today, she even hugged me and-

Off to the bar!

}

}

@transition fade out black

(Saying Goodbye to the readers… )

THANKS IN ADVANCE! :hugs:

2 Likes

So, when you’re previewing in the platform, it won’t remember choices from previous episodes. So, what you need to do is click the Story Modifiers button on the preview screen and select the flags you want to test with. I have to use this all the time.

2 Likes

Thank you I will try! :hugs: But the code is correct?

It looks alright to me. Try it with the flags and see if it works. If not, we can take another look at what might be happening.

1 Like

OMG! IT WORKED! THANK YOU SO MUCH! :partying_face: :party_time:

1 Like

You’re welcome! My current story has gender and body choice, so I have become very familiar with the flags as I have to code several scenes 3 times.

1 Like

Aww, thank you from the bottom of my heart! :smiling_face_with_three_hearts:

What’s the name of your story? :hugs:

I’m only on chapter 2, so I haven’t figured that out yet. I should probably get on that!

1 Like

Then I wish you a lot of fun, while coding and let me know when you publish it. :partying_face: I’m always looking for new stories (But only with an lgbt option) :sweat_smile: :hugs:

1 Like