Having trouble with name changing template


#1

I am having a lot of trouble with the option to allow users to pick their name. I have no idea how to fix the error. It says “You cannot have a label inside if/then statements or {}” and “The label name “first_name_input” does not exist”. I added the name option after the character customization option, but I don’t know if that would affect anything. Thanks for any answers! :slight_smile:

Here is exactly what is typed in the story…

Avatar - Female {

&FEMONE enters from left to screen center

    NARRATOR
So... what's your name?

label first_name_input

input What’s Your First Name?|What’s Your First Name?|Done(FEMONE)

if (FEMONE is “”) {

    NARR
You do need a name...

goto first_name_input

} else {
continue
}

@zoom reset
@FEMONE starts think
@speechbubble reset

@zoom reset
@FEMONE exits left and FEMONE is walk_neutral_offset

#}


#2

Did you put this inside of a choice?


#3

I didn’t even notice that. What part should I add the choice to?


#4

I’m asking if you did because that would be the reason for error message saying the label doesn’t exist.


#5

Try to put the label before the text of the narrator.


#6

Yes, there is a choice before it.


#7

Thanks, I’ll try that out.


#8

Not sure if this helps, but here’s a screenshot (including the choice before it)…


#9

You can’t have labels inside of a choice. Put that whole name change code after the choice instead of inside it.


#10

I’ll just put it at the beginning of the story where there are no choices then. Thanks for the help.


#11

Glad this got resolved! Closing :v:t2:


#12