Can I Use Tappables and Conditions Together?

Hi!

I’ve completely overstretched myself in planning this murder mystery story and now I’m stuck! MC’s personality is shaped by reader choices, using gains. I’m also creating a folder full of evidence by using tappable overlays.

My question is: Is it possible to make one tappable lead to different labels in the script, by using conditions?

So, at the moment, MC is either feisty or placid, and I want the evidence to match the personality. I was hoping to code it so that when one of my OLs is tapped, it goes to either feisty or placid evidence, depending on what the reader chose previously.

This is not working however!!

I feel like it’s all to do with where I put the if/else statement.

I’m using labels for the feisty or the placid evidence, but I’m not sure exactly where in the script the condition statement should go, in order to send the reader to the correct label.

At the moment I have the if/elif placed at the beginning of the scene with the evidence, as I was hoping it would then go to the correct label, and show the evidence that matches the choice.

Did Not Work!!

1 Like

Why did you put tappable on the second choice as Well? I don’t Think you need to do that But I’m not sure, I rarely use tappable choices.

Yeah, I took the second tappable out, but I got an error.

1 Like

Try putting pause for 0 between the choice and Where the label starts.

1 Like

You are right, I do only need to put tappable once! Thank you!! I find that one of the most confusing things about donacode is the fact that the error messages aren’t always accurate. It’ll tell you something is wrong, then it turns out it’s actually something else…

1 Like

I agree! I am glad that you got a solution <3

I got the solution to the tappable problem (thank you [Unicorngirl2]) but the OL is still defaulting to the else statement.

Would anyone know how to fix this please?

1 Like

I’m not sure what you mean ahaha, please can you explain a bit more and then I will have a look for you

Thank you!

I want my tappables to take the reader to the correct label, based on their previous choices. Do you know A. If this is possible, and B. If so, where should I write the if/elif statement please? :slight_smile:

1 Like

I am sorry, I am not completely sure, but I assume that you can just write it underneath the first if/elif statement. If you try this and it doesn’t work then I am sorry because as I said, I am not entirely sure :blush:

1 Like

Thank you for your help anyway. I might be trying to do something that isn’t possible :confused:

1 Like

It is fine, I am happy to help whenever you need it! I am sure it is possible, you just need somebody who is experienced with coding to help you. I will try and get some very talented coders to come on here and maybe help you out as they know what they are doing more than I do!

@Apes @Dara.Amarie Do you know how to fix the problem that @Wenna.Mac has? <3

2 Likes

My head hurts thinking about it lmao, coding can be so confusing sometimes! If it works out then I am sure that your story will be amazing. Some readers (that aren’t authors) will not understand the struggle that writers go through just for scenes that look so simple :joy:

1 Like

OMG yes! Thank you for your kind words xx

1 Like

No problem! Good luck with your story :heart:

1 Like

can you post your script?

2 Likes

label OPEN_CASE_FILE_CHAPTER_1

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay EVIDENCE FOLDER OL create
&overlay EVIDENCE FOLDER OL opacity 1
&overlay EVIDENCE FOLDER OL moves to layer 1
&overlay EVIDENCE FOLDER OL shifts to 348 346
&overlay EVIDENCE FOLDER OL scales to 0.352 0.352

&overlay UNLOCKED BUTTON OL create
&overlay UNLOCKED BUTTON OL moves to layer 3
&overlay UNLOCKED BUTTON OL opacity 1
&overlay UNLOCKED BUTTON OL shifts to 347 340
&overlay UNLOCKED BUTTON OL scales to 0.100 0.100

&overlay PERSONS OF FILE OL create
&overlay PERSONS OF FILE OL moves to layer 1
&overlay PERSONS OF FILE OL opacity 1
&overlay PERSONS OF FILE OL shifts to 479 348
&overlay PERSONS OF FILE OL scales to 0.352 0.352

&overlay LOCK BUTTON OL create
&overlay LOCK BUTTON OL moves to layer 3
&overlay LOCK BUTTON OL opacity 1
&overlay LOCK BUTTON OL shifts to 348 239
&overlay LOCK BUTTON OL scales to 0.100 0.100

&overlay STATEMENTS FOLDER OL create
&overlay STATEMENTS FOLDER OL moves to layer 1
&overlay STATEMENTS FOLDER OL opacity 1
&overlay STATEMENTS FOLDER OL shifts to 353 247
&overlay STATEMENTS FOLDER OL scales to 0.352 0.352

&overlay LOCK BUTTON OL_2 create from LOCK BUTTON OL
&overlay LOCK BUTTON OL_2 moves to layer 3
&overlay LOCK BUTTON OL_2 opacity 1
&overlay LOCK BUTTON OL_2 shifts to 475 340
&overlay LOCK BUTTON OL_2 scales to 0.100 0.100

&overlay PRESS FOLDER OL create
&overlay PRESS FOLDER OL moves to layer 1
&overlay PRESS FOLDER OL opacity 1
&overlay PRESS FOLDER OL shifts to 483 248
&overlay PRESS FOLDER OL scales to 0.352 0.352

&overlay LOCK BUTTON OL_3 create from LOCK BUTTON OL
&overlay LOCK BUTTON OL_3 moves to layer 3
&overlay LOCK BUTTON OL_3 opacity 1
&overlay LOCK BUTTON OL_3 shifts to 478 239
&overlay LOCK BUTTON OL_3 scales to 0.100 0.100

&overlay DONE BUTTON OL create
&overlay DONE BUTTON OL opacity 1
&overlay DONE BUTTON OL shifts to 435 175
&overlay DONE BUTTON OL scales to 0.640 0.640

tappable “EVIDENCE FOLDER OL” {

goto EVIDENCE_CHAPTER_1

}
“DONE BUTTON OL” {

goto END_CHAPTER_1

}

label EVIDENCE_CHAPTER_1

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay MISH ICON OL create
&overlay MISH ICON OL shifts to 339 289
&overlay MISH ICON OL scales to 0.244 0.244
&overlay MISH ICON OL opacity 1

&overlay MAP ICON OL create
&overlay MAP ICON OL shifts to 450 309
&overlay MAP ICON OL scales to 0.406 0.406
&overlay MAP ICON OL opacity 1

&overlay LEFT ARROW OL create
&overlay LEFT ARROW OL opacity 1
&overlay LEFT ARROW OL shifts to 347 94
&overlay LEFT ARROW OL scales to 0.550 0.550

tappable
“MISH ICON OL” {

goto MISH_INFO_CHAPTER_1_PAGE_1

}
“MAP ICON OL” {

goto CARDLE_MAP

}
“LEFT ARROW OL” {
goto OPEN_CASE_FILE_CHAPTER_1

}

label MISH_INFO_CHAPTER_1_PAGE_1

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay MISH JOB APP OL create
&overlay MISH JOB APP OL moves to layer 0
&overlay MISH JOB APP OL shifts to 372 101
&overlay MISH JOB APP OL scales to 0.604 0.604
&overlay MISH JOB APP OL opacity 1

&overlay LEFT ARROW OL create
&overlay LEFT ARROW OL opacity 1
&overlay LEFT ARROW OL shifts to 380 105
&overlay LEFT ARROW OL scales to 0.352 0.352

&overlay RIGHT ARROW OL create
&overlay RIGHT ARROW OL opacity 1
&overlay RIGHT ARROW OL shifts to 514 105
&overlay RIGHT ARROW OL scales to 0.388 0.388

tappable
“LEFT ARROW OL” {

goto EVIDENCE_CHAPTER_1

}
“RIGHT ARROW OL” {

goto MISH_INFO_CHAPTER_1_PAGE_2

}

label MISH_INFO_CHAPTER_1_PAGE_2

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

@pause for 0

if (FEISTY_MISH) {
goto FEISTY_MISH_INFO_CHAPTER_1_PAGE_2
}
else {
goto PLACID_MISH_INFO_CHAPTER_1_PAGE_2
}

label FEISTY_MISH_INFO_CHAPTER_1_PAGE_2

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay FEISTY MISH REFS OL create
&overlay FEISTY MISH REFS OL moves to layer 0
&overlay FEISTY MISH REFS OL opacity 1
&overlay FEISTY MISH REFS OL shifts to 338 91
&overlay FEISTY MISH REFS OL scales to 1.270 1.270

&overlay LEFT ARROW OL create
&overlay LEFT ARROW OL opacity 1
&overlay LEFT ARROW OL shifts to 431 103
&overlay LEFT ARROW OL scales to 0.424 0.424

&overlay RIGHT ARROW OL create
&overlay RIGHT ARROW OL opacity 1
&overlay RIGHT ARROW OL shifts to 490 102
&overlay RIGHT ARROW OL scales to 0.478 0.478

tappable
“LEFT ARROW OL” {

goto EVIDENCE_CHAPTER_1

}
“RIGHT ARROW OL” {

goto MISH_INFO_CHAPTER_1_PAGE_3

}

@pause for 0

label PLACID_MISH_INFO_CHAPTER_1_PAGE_2

EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay PLACID MISH REFS OL create
&overlay PLACID MISH REFS OL moves to layer 0
&overlay PLACID MISH REFS OL opacity 1
&overlay PLACID MISH REFS OL shifts to 338 91
&overlay PLACID MISH REFS OL scales to 1.270 1.270

&overlay LEFT ARROW OL create
&overlay LEFT ARROW OL opacity 1
&overlay LEFT ARROW OL shifts to 431 103
&overlay LEFT ARROW OL scales to 0.424 0.424

&overlay RIGHT ARROW OL create
&overlay RIGHT ARROW OL opacity 1
&overlay RIGHT ARROW OL shifts to 490 102
&overlay RIGHT ARROW OL scales to 0.478 0.478

tappable
“LEFT ARROW OL” {

goto EVIDENCE_CHAPTER_1

}
“RIGHT ARROW OL” {

goto MISH_INFO_CHAPTER_1_PAGE_3

}

@pause for 0

label MISH_INFO_CHAPTER_1_PAGE_3
EXT. DEEP WATERS - DAY
&zoom on 32000 0 to 101%

&overlay LEFT ARROW OL create
&overlay LEFT ARROW OL opacity 1
&overlay LEFT ARROW OL shifts to 431 103
&overlay LEFT ARROW OL scales to 0.424 0.424

    NARR
More evidence will appear here as you progress through the story.

tappable
“LEFT ARROW OL” {

goto EVIDENCE_CHAPTER_1

}

My problem is knowing where to put the if/elif :slight_smile:

1 Like

Thank you for helping out! I thought you’d reply and help to fix it <3

1 Like

Sorry I got caught up with something else :grin: you made this way too complicated just put if/else in each tappable and then a goto inside. Check your story on the app when checking branches and remember to reset your story progress before checking different outcomes

2 Likes

Thank you so much! :slightly_smiling_face:

1 Like