Remembering Choices (Dara Amarie if/elif/else)

Hi, my question is simple. What am I doing wrong?

I’m currentrly writing a new chapter and I want to remember a past choice (two in total) from the previous chapter.
How do I do it? I tried so many times, by reading over and over again Dara’s guide and reading about other’s topic to see if I can finally see what I’m doing wrong, but I falied. I can’t see the problem as much as I want.

Also, as soon as I saw the error I wrote the coding again, and then for doubts with flags/gains but nothing.

Thank you!

From the previous chapter:

choice (BEACH_PICTURE)

Take a picture with him” {

(Scene)

} “Refuse” {

(Scene)

}

2
Line 36 is where it starts the coding"if"

1 Like

Which line is line 36? Do you have an end bracket for the “else” part?

Your if/else coding is correct but if you’re previewing your story with the web previewer, it won’t remember the choice because the choice is in the previous chapter. The Web previewer doesn’t remember things from other chapters, so you’ll need to test this in the app to make sure it works.

Line 36 is where “if” starts and yes, else has an end bracket.

The thing is that when I save the chapter I can’t preview it, it doesn’t let me.

Okay so when you get an error message saying there is a missing bracket but all brackets are there, then that means there is an error inside those brackets that you need to fix. It’s a bit hard for me to see the photo clearly. Can you copy and paste the part inside the “if” part here and I can find the error?

Sure!

Can you copy and paste the code here? I need to test it out to find the error.

if (BEACH_PICTURE is “Take a picture with him”) {

@pause for 1
&KIARA is selfie_phone THEN pause for 1 THEN KIARA is text_phone_neutral_loop
@pause for 0.7
&EXTRA7 is flirt_wink_happy THEN pause for 1 THEN EXTRA7 is think_rubchin
@pause for 2.5

@transition fade in white in 0.2

&EXTRA7 moves to layer 2
@EXTRA7 walks to spot 0.247 59 451 in zone 2 in 1.5
&EXTRA7 is kiss_makeout_start_rear THEN pause for 0.5 THEN EXTRA7 is kiss_passionate_loop_rear
@EXTRA7 faces left

@transition fade in white in 0.2

&KIARA spot 0.231 75 452 in zone 2
&KIARA is slapface_give_angry
&KIARA moves to layer 3
&zoom on 387 316 to 1406% in 0.1
&EXTRA7 is slapface_receive_angry
@EXTRA7 faces right
@pause for 1

@transition fade in white in 0.2

} else {

&zoom on 356 312 to 848% in 2.5
@KIARA walks to spot 0.231 59 453 in zone 2 in 2
@KIARA faces right
&KIARA is talk_handsonhips_neutral_rear
@pause for 0.5
&KIARA spot 0.231 46 453 in zone 2
&KIARA is flirt_liftchin_give_rear
@pause for 1

@transition fade in white in 0.2

&zoom on 365 316 to 1196% in 1.5
&EXTRA7 is kiss_makeout_start THEN pause for 0.5 THEN EXTRA7 is kiss_passionate_loop
@pause for 2.5

@transition fade in white in 0.2

&zoom on 363 308 to 848% in 0.2
&KIARA is kick_crotch_give AND KIARA faces left
&EXTRA7 moves to layer 5
&EXTRA7 is kick_crotch_receive_rear AND EXTRA7 faces left
@pause for 1

@transition fade in white in 0.2

}

For some reason, there’s a blank space on line 66 that the script doesn’t seem to like. Just delete line 66 and save and it should get rid of the error.

I did it but nothing. I deleted everything but the coding, but it keeps showing me the same error. Doesn’t matter on which line, wherever the coding starts is where the error is.

Copy and paste this

if (BEACH_PICTURE is “Take a picture with him”) {

@pause for 1
&KIARA is selfie_phone THEN pause for 1 THEN KIARA is text_phone_neutral_loop
@pause for 0.7
&EXTRA7 is flirt_wink_happy THEN pause for 1 THEN EXTRA7 is think_rubchin
@pause for 2.5

@transition fade in white in 0.2

&EXTRA7 moves to layer 2
@EXTRA7 walks to spot 0.247 59 451 in zone 2 in 1.5
&EXTRA7 is kiss_makeout_start_rear THEN pause for 0.5 THEN EXTRA7 is kiss_passionate_loop_rear
@EXTRA7 faces left

@transition fade in white in 0.2

&KIARA spot 0.231 75 452 in zone 2
&KIARA is slapface_give_angry
&KIARA moves to layer 3
&zoom on 387 316 to 1406% in 0.1
&EXTRA7 is slapface_receive_angry
@EXTRA7 faces right
@pause for 1

@transition fade in white in 0.2

} else {

&zoom on 356 312 to 848% in 2.5
@KIARA walks to spot 0.231 59 453 in zone 2 in 2
@KIARA faces right
&KIARA is talk_handsonhips_neutral_rear
@pause for 0.5
&KIARA spot 0.231 46 453 in zone 2
&KIARA is flirt_liftchin_give_rear
@pause for 1

@transition fade in white in 0.2

&zoom on 365 316 to 1196% in 1.5
&EXTRA7 is kiss_makeout_start THEN pause for 0.5 THEN EXTRA7 is kiss_passionate_loop
@pause for 2.5

@transition fade in white in 0.2

&zoom on 363 308 to 848% in 0.2
&KIARA is kick_crotch_give AND KIARA faces left
&EXTRA7 moves to layer 5
&EXTRA7 is kick_crotch_receive_rear AND EXTRA7 faces left
@pause for 1

@transition fade in white in 0.2

}

OK, HOW? It worked, I can finally preview it. How did you do it? I must know.

There was just a space somewhere right before the } else { that the script hated for some reason. I only removed that space

Centuries would have passed for me to have noticed by myself, THANK YOU SO MUCH <3

1 Like

Took me forever to even find it! LOL. Glad it’s working for you now!

Sorry for being such a bother but thank you for helping me! If it hadn’t been for your help, I would have given up on the fifth try D:

1 Like

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