Matching bracket error

here’s the code:
label four_things
tappable [pan:1:2]
“CREAM” {
gain CREAM
@THINGS +1
@overlay CREAM opacity 0 in 0.5
if (THINGS=4) {
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?!
Anyways but you did found other useful items too!
So no worries :slight_smile:
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
} else {
}
}
goto four_things
}
}“HAMMER” {
gain HAMMER
@THINGS +1
@overlay HAMMER opacity 0 in 0.5
if (THINGS=4) {
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?! XD
Anyways but you did found other useful items too!
So no worries :slight_smile:
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
} else {
}
}
goto four_things
}
} “BAND-AID” {
gain BANDAID
@THINGS +1
@overlay BAND-AID opacity 0 in 0.5
if (THINGS=4) {
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?! XD
Anyways but you did found other useful items too!
So no worries :slight_smile:
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
} else {
}
}
goto four_things
}
} “NECKLACE” {
gain NECKLACE
@THINGS +1
@overlay NECKLACE opacity 0 in 0.5
if (THINGS=4) {
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?! XD
Anyways but you did found other useful items too!
So no worries :slight_smile:
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
} else {
}
}
goto four_things
}
} “STRAWBERRY” {
gain STRAWBERRY
@THINGS +1
@overlay STRAWBERRY opacity 0 in 0.5
if (THINGS=4) {
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?! XD
Anyways but you did found other useful items too!
So no worries :slight_smile:
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
} else {
}
}
goto four_things
}
}
}

it’s showing error on the bold-italic line
please lemme know where did i went wrong

1 Like

hey I am bit of confused with ur script! but I have similar kind

Summary

So maybe try this method and let me know.

if(THINGS =4){
NARRATOR
Congratulations, you found all the useful items!
goto CONTINUE_STORY
}else{
goto four_things
}

it worked though the first tappable overlay, “cream”, is no more tappable… if that makes sense…

the code:
label four_things
tappable [pan:1:2]
“CREAM” {
gain CREAM
@THINGS +1
@overlay CREAM opacity 0 in 0.5
if (THINGS=4) {
goto continue_story
} else {
goto four_things
}
}“HAMMER” {
gain HAMMER
@THINGS +1
@overlay HAMMER opacity 0 in 0.5
if (THINGS=4) {
goto continue_story
} else {
goto four_things
}
} “BAND-AID” {
gain BANDAID
@THINGS +1
@overlay BAND-AID opacity 0 in 0.5
if (THINGS=4) {
goto continue_story
} else {
goto four_things
}
} “NECKLACE” {
gain NECKLACE
@THINGS +1
@overlay NECKLACE opacity 0 in 0.5
if (THINGS=4) {
goto continue_story
} else {
goto four_things
}
} “STRAWBERRY” {
gain STRAWBERRY
@THINGS +1
@overlay STRAWBERRY opacity 0 in 0.5
if (THINGS=4) {
goto continue_story
} else {
goto four_things
}
}
label continue_story
NARRATOR
Let’s see how many | bold |items you found!
if (STRAWBERRY) {
NARRATOR
Well what really made you pick a freaking strawberry?! XD
Anyways but you did found other useful items too!
So no worries :slight_smile:
readerMessage | color:caramel,bold | Mystery +3
@MYSTERY +3
} else {
NARRATOR
Congratulations, you found all the useful items!
@MYSTERY +4
readerMessage | color:caramel,bold | Mystery +4
}

1 Like

U mean only first overlay? and others are working?

yess

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