Name Input Help please

Okay So I’m working on a story and i want the reader to put a name for the main chracter. Does any know a way for it to work without getting the error. Thanks so much in advanced.

  • LOVE, JOANNA :heart:

Have u got any script code for this so far? (:

1 Like

@CHARACTER enters from left to screen center

 NARRATOR

So… what’s your FIRST name?

label first_name_input

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

if (NAME is “”) {

 NARRATOR

You do need a name.

goto first_name_input

} else {

continue

}

 NARRATOR

So… what’s your LAST name?

label last_name_input

input What’s Your Last Name?|What’s Your Last Name?|Done(LASTNAME)

if (LASTNAME is “”) {

 NARRATOR

You do need a name.

goto last_name_input

} else {

continue

}

Remember to change @CHARACTER to whoever you are naming!

EXAMPLE OF RESULT:

NARRATOR

Hi! Is you name [NAME] [LASTNAME]?

If you want your reader to make sure they spell their name right, and if they wanted to change it before it is their name in the story forever, simply do:

@CHARACTER enters from left to screen center

 NARRATOR

So… what’s your FIRST name?

label first_name_input

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

if (NAME is “”) {

 NARRATOR

You do need a name.

goto first_name_input

} else {

continue

}

NARRATOR

So… what’s your LAST name?

label last_name_input

input What’s Your Last Name?|What’s Your Last Name?|Done(LASTNAME)

if (LASTNAME is “”) {

 NARRATOR

You do need a name.

goto last_name_input

} else {

continue

}

NARRATOR

Is your name [NAME] [LASTNAME]?

choice “Yes”{

NARRATOR

You may continue on with the story!

}“No” {

NARRATOR

We’ll take you back to the start!

goto first_name_input

}

If you only want the reader to choose their last name or their first name, just copy half of the code.

This coding’s credits go to @K.Logan as far as I know since I found this in a message from @ K.Logan on the thread named ‘Script Writing Help’ (:

3 Likes

Thanks I will see if it works thank u

1 Like

You’re welcome (:

1 Like

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