Hi I wanted to have readers be able to customize their own name but when I try it doesn’t seem to work and the warning, label “avatar_0” is never used, always pops up. What am I doing wrong?
Here’s my script:
Avatar - Female {
@NAUSICA enters from left to screen left
NARRATOR
So... what's your name?
label first_name_input
input What’s Your First Name?|What’s Your First Name?|Done(FIRSTNAME)
if (FIRSTNAME is “”) {
NARRATOR
You do need a name.
goto first_name_input
} else {
continue
}
It means that you don’t have a goto avatar_0 in your script, and so you don’t need the label. You can delete that line.
For the name input, you can actually simplify it to:
@NAUSICA enters from left to screen left
NARRATOR
So... what’s your name?
input What’s Your First Name?|What’s Your First Name?|Done(FIRSTNAME)
@zoom reset
@speechbubble reset
You don’t need to check whether the name is empty, because by default now there is an error message shown when less than 2 characters are entered into the input.
in your character creation portion of the portal where it says “display name” when you create a character type in “FIRSTNAME” <— because that’s what you have as your “input”
also, you’re label avatar_0 is never utilized. you never put like a goto or anything it’s just kinda there so until you do that it’s just gonna show up as an error.
If you’re trying to save the user’s input as the character’s name label above the speech bubble, your input has to save to the character name, not to some arbitrary variable. For example, if your character’s name is Nausica:
input What’s Your First Name?|What’s Your First Name?|Done(NAUSICA)
If I’m not mistaken, in the character settings on the portal, the display name must also match the script name for this override take effect. If you’ve changed the display name to something else, after you change it back, you might need to reset your story to see the speech bubble label update.