Hair Change Issues

Hello,

I’m Kyndra, I write Interlace. Well I wrote Interlace and then I stopped and now I’m starting again. Anyway!

So I need to make the reader choose their hair color again and I typed the code below. I keep getting this error and warning though:

Error - "Expected CHARACTER or SCENE change. Found ““Dyed hair colors” {” instead. Did you forget to CAPITALIZE the name, or close the ( ) around the animation?

Warnings - "You cannot have a label inside if/then statements or { }.

I understand that I should delete the labels inside the choices, but I can’t think of another way to do it. I’ve been looking at it for so long I’ll never be able to find my errors at this point. Someone please help me!

Here’s what I wrote:

@zoom on 640 420 to 229% in 2

label newhair

        NARRATOR
    What color did you dye your hair?

choice
"Natural hair colors" {
label newhair_nat
        NARRATOR
    So?
choice
"Black" {
@YOU changes hairColor into Black
goto newhair_nat
}
"Chestnut"{
@YOU changes hairColor into Chestnut
goto newhair_nat
}
"Auburn" {
@YOU changes hairColor into Auburn
goto newhair_nat
}
"Fawn" {
@YOU changes hairColor into Fawn
goto newhair_nat
}
"Blond" {
@YOU changes hairColor into Blond
goto newhair_nat
}
"Platinum Blond" {
@YOU changes hairColor into Platinum Blond
goto newhair_nat
}
"Strawberry Blond" {
@YOU changes hairColor into Strawberry Blond
goto newhair_nat
}
<GREEN>"Back to choices."{
goto newhair
}
<PREMIUM>"Looks good!"{
goto newhair_end
}
}

"Dyed hair colors" {
label newhair_unnat
        NARRATOR
    So?
choice
"Dark gray" {
@YOU changes hairColor into Charchoal
goto newhair_unnat
}
"Light gray" {
@YOU changes hairColor into White
goto newhair_unnat
}
"Light pink"{
@YOU changes hairColor into Passion Fruit
goto newhair_unnat
}
"Pink" {
@YOU changes hairColor into Pop Pink
goto newhair_unnat
}
"Coral" {
@YOU changes hairColor into Coral
goto newhair_unnat
}
"Green" {
@YOU changes hairColor into Grievance Green
goto newhair_unnat
}
"Mint" {
@YOU changes hairColor into Mint
goto newhair_unnat
}
"Light blue" {
@YOU changes hairColor into Blue Light
goto newhair_unnat
}
"Blue" {
@YOU changes hairColor into Blasting Blue
goto newhair_unnat
}
"Purple" {
@YOU changes hairColor into Punky Purple
goto newhair_unnat
}
<GREEN>"Back to choices."{
goto newhair
}
<PREMIUM>"Looks good!"{
goto newhair_end
}
}



label newhair_end

        NARRATOR
    Are you sure? You might not get a chance to change it back.
    
choice
"Yes." {
goto moving_on
}
"No." {
goto label newhair
}

label moving_on

# CONTINUE FROM HERE

try:

label newhair
NARR
What color did you dye your hair?
choice
“Natural hair colors” {
goto newhair_nat
}
“Dyed hair colors” {
goto newhair_unnat
}
label newhair_nat
NARR
So?
choice
#continue here

label newhair_unnat
NARR
So?
choice
#continue here

i hope this wasn’t confusing :sweat: and I hope I haven’t done any mistakes
if any errors show up, please send a screenshot.

1 Like

That fixed it, thank you very much! I was going crazy with that part.

1 Like

great! i was starting to do the whole script myself, just in case another error would show up :sweat_smile: glad it worked!

Noo, I would’ve felt bad if you had to write a whole script for it. Thanks again :blush:

1 Like