Unexpected Parameters Premium

My script looked like this:

label point_system

    NARRATOR
About your points...

choice
“How many points do you have?”{
}
if (RAP =1){

    NARRATOR
You have |bold|1|reset| Rap points.

goto point_system
}
elif (RAP =0){

    NARRATOR
You have |bold|0|reset| Rap points.

goto point_system
}
elif (SINGER =1){

    NARRATOR
You have |bold|1|reset| Singer points.

goto point_system
}
elif (SINGER =0){

    NARRATOR
You have |bold|0|reset| Singer points.

goto point_system
}
elif (DANCE =1){

    NARRATOR
You have |bold|1|reset| DANCE points.

goto point_system
}
elif (DANCE =0){

    NARRATOR
You have |bold|0|reset| DANCE points.

goto point_system
}
“I’m done”{

but it said error unexpected PARAMETERS: premium

please help :pensive:

1 Like

You can’t have lines between choices, try deleting the line between the closing bracket } and the “Im done” choice

Can you send your script with that whole part?

Show the full code so we can help. ^^

is this your full code?

this looks eather like atempt to have if/ elif/ else inside a choice or vice versa…

without the whole code its impossible to find the mistake

i added it

Can you add the parts before and after that as well? Some parts of the code is cut out at the beginning as well as some at the end.

i did

next to i’m done there should be in front of it but for some reason it isn’t showing up

The last part where the “I’m done” choice shows up needs to have a dialogue and choice at the beginning.
Example:

    NARRATOR
    Blah blah

choice
“I’m done”{
}

I’m not sure about the rest of your script, there is no use of premium in this section of the script.

thank you :grinning:

now it says choice must follow dialog immediatley not a branch

Did you put something in between the dialogue and the choice? It has to come right after the next line.

this might not create the error but the way you hve your if else it will most likely not work as you wanted because you have created something like endless loop

you use if else when reader has some amout of points to show that points and with label you send him back on start so for example if he fits the first condition of RAP poitns its endles loop the if else will never show any other points.

do not use the label to send him back and use for each point system separate if/ elif/ else instead

also you are missing else in you if/elif/else

and there is missing closing bracket at the “I am done” choice and you miss another closing bracket of the first choice (under the if/ elif/else) too

also when you click on the error on what line exactly it points in the script?

here you have it with the added brackets but as I said I dont think your if elif else will work as intended.

In case reader can gain all RAP, SINGER and DANCE point than the way you have it will show only the RAP points and not the rest. Every reader will end up latest on RAP 0 points and it will not show the othe options…

so maybe try this instead:

label point_system
NARR
About your points…

choice “RAP points” {
if (RAP =1){
NARRATOR
You have |bold|1|reset| Rap points.
}
else{
NARRATOR
You have |bold|0|reset| Rap points.
}
goto point_system

} “SINGER points” {
if (SINGER =1){
NARRATOR
You have |bold|1|reset| Singer points.
}
else{
NARRATOR
You have |bold|0|reset| Singer points.
}
goto point_system

} “DANCE points” {
if (DANCE =1){
NARRATOR
You have |bold|1|reset| Dance points.
}
else{
NARRATOR
You have |bold|0|reset| Dance points.
}
goto point_system

}“I’m done”{

}

where is says "I’m done

it still doesn’t work

what exactly doesnt work?
Because I was testing it and it worked for me

the line that says < PREMIUM > “i’m done” isn’t working