Error code: Unexpected block end. Could anyone help me?

Hey everyone!

I’m currently creating a chapter and before the chapter starts, I would like to give people the opportunity to look back at some hints they were able to obtain in the previous chapter. The problem I’m keep running into is the fact that I keep getting the error code: Unexcpected block end. I’ve tried anything by adding and deleting stuff, but it doesn’t really help. Could anyone help me? Here are some screenshots of my coding:

I’ve already looked if I just mispelled the flags (hint_1 , hint_2 etc.), but I don’t think that’s the case. I do think I might’ve mispelled something else by accident however.

And this is the coding in text just in case.

INT. CAPTAIN HERRINGHAIR INTRO

@set hsl 0 0 -100 no_colorize with blendMode Normal to 100% in 0

sound angelicstring

@speechbubble is 166 189 to 93%

@pause for 0.5

@reset hsl in 3

@pause for 0.5

    NARRATOR
Chapter 5 - The hero convention, part 2
Hey reader, before you start this chapter, you'll be able to look at your obtained hints from the previous chapter.

@speechbubble reset

label first_screen

    NARRATOR
Would you like to look at the hints now? You won't be able to look at them later.

choice “I want to look at the hints.” {

    NARRATOR
Okay, let's take a look at your obtained hints!

goto label hint_screen

}

@pause for 0.1

label hint_screen

if (hint_1) {

    NARRATOR
Blablabla

goto hint_2

}

else {

    NARRATOR
You didn't obtain hint 1

goto hint_2

}

label hint_2

@pause for 0.5

if (hint_2) {

    NARRATOR
Blablabla

goto hint_3

}

else {

    NARRATOR
You didn't obtain hint 2

goto hint_3

}

label hint_3

@pause for 0.5

if (hint_3) {

    NARRATOR
Blablabla

goto hint_4

}

else {

    NARRATOR
You didn't obtain hint 3

goto hint_4

}

label hint_4

@pause for 0.5

if (hint_4) {

    NARRATOR
Blablabla

goto hint_5

}

else {

    NARRATOR
You didn't obtain hint 4

goto hint_5

}

label hint_5

@pause for 0.5

if (hint_5) {

    NARRATOR
Blablabla

goto hint_screen_done

}

else {

    NARRATOR
You didn't obtain hint 5

goto hint_screen_done

}

label hint_screen_done

    NARRATOR
Would you like to look at the hints again?

choice “yes” {

goto hint_screen

} “No” {

goto first_screen

}

}

"What are you talking about?" {

    NARRATOR
In the previous chapter, there was a part were you could obtain hints.
You were able to obtain them by talking to other people at the hero convention.
These hints will come handy for the quiz, which will take place in this chapter.
If you want to see your obtained hints, just choose the first option in the menu!

goto first_screen

}

“Let’s start the chapter!” {

    NARRATOR
Are you sure you want to start this chapter now?

choice “Yes” {

    NARRATOR
Okay, have fun reading this chapter!

goto quiz_time

} “No, I want to go back!” {

goto first_screen

}

}

label quiz_time

    NARRATOR
To be continued...

I’m pretty sure you just have to take out the “}” on line 160.

1 Like

there ware few things so I changed it - this should work:

INT. CAPTAIN HERRINGHAIR INTRO
@set hsl 0 0 -100 no_colorize with blendMode Normal to 100% in 0

sound angelicstring

@speechbubble is 166 189 to 93%

@pause for 0.5

@reset hsl in 3

@pause for 0.5

NARRATOR

Chapter 5 - The hero convention, part 2
Hey reader, before you start this chapter, you’ll be able to look at your obtained hints from the previous chapter.
@speechbubble reset

label first_screen

NARRATOR

Would you like to look at the hints now? You won’t be able to look at them later.
choice “I want to look at the hints.” {

NARRATOR

Okay, let’s take a look at your obtained hints!
goto label hint_screen

@pause for 0.1

label hint_screen

if (hint_1) {

NARRATOR

Blablabla
goto hint_2

}else {

NARRATOR

You didn’t obtain hint 1
goto hint_2

}

label hint_2

@pause for 0.5

if (hint_2) {

NARRATOR

Blablabla
goto hint_3

}else {

NARRATOR

You didn’t obtain hint 2
goto hint_3

}

label hint_3

@pause for 0.5

if (hint_3) {

NARRATOR

Blablabla
goto hint_4

}else {

NARRATOR

You didn’t obtain hint 3
goto hint_4

}

label hint_4

@pause for 0.5

if (hint_4) {

NARRATOR

Blablabla
goto hint_5

}else {

NARRATOR

You didn’t obtain hint 4
goto hint_5

}

label hint_5

@pause for 0.5

if (hint_5) {

NARRATOR

Blablabla
goto hint_screen_done

}

else {

NARRATOR

You didn’t obtain hint 5
goto hint_screen_done

}

label hint_screen_done

NARRATOR

Would you like to look at the hints again?
choice “yes” {

goto hint_screen

} “No” {

goto first_screen

}

}“What are you talking about?” {

NARRATOR

In the previous chapter, there was a part were you could obtain hints.
You were able to obtain them by talking to other people at the hero convention.
These hints will come handy for the quiz, which will take place in this chapter.
If you want to see your obtained hints, just choose the first option in the menu!
goto first_screen

}“Let’s start the chapter!” {

NARRATOR

Are you sure you want to start this chapter now?
choice “Yes” {

NARRATOR

Okay, have fun reading this chapter!
goto quiz_time

}“No, I want to go back!” {

goto first_screen

}

}

label quiz_time

NARRATOR

To be continued…

Thanks, it worked! It’s interesting to know that it was more than 1 mistake, but I think I could learn a lot from it. :grin:

there wa one bracket I deleted

and I deleted the empty lines that conflict with the script

I mean this - if you have empty line between the closing bracket and new choice it usually conflict and portal is not able to read the choice properly

}

“option”{

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