If, elif, else choices and unexpected block ends

As I’ve got customisation in my script, I want to personalise the skin color of overlays/backgrounds with skin in it to match the reader’s option. I’ve used if/elif/else and I’ve tried removing ‘else’ and just using the another ‘elif’ but it’s not working.

Hey! The script which you sent seems right.

You should check the rest of the script, if you have missed the { } bracket

You cannot end the choices with background names, that is the cause of the error which has nothing to do with the branching. You’d need to add something after it for all the choices.

Example:
if (CHOICE_NAME is “Option 1”){

INT. BACKGROUND NAME
@pause for 0

} elif (CHOICE_NAME is “Option 2”){

INT. BACKGROUND NAME 2
@pause for 0

} elif (
.
.
.

2 Likes

I did try that orignally but it made no difference :frowning:

Nevermind, I did it for all options and it worked Thank you!

1 Like