@Olive and @RudeInception
Hi both of you! I’ve read through your replies, and it seems like your questions are answered, but I thought I’d just explain how to exclude names, because there is a way to do it.
So, let’s say that your current characters’ names are, um, Bob, Sally, John, Tess, Mia and Jake.
Here’s what you’d do:
label name_input
input What’s your name?|What’s your name?|Done (YOURNAME)
if (YOURNAME is " "){
NARRATOR
Error! Please enter a name!
goto name_input
}if (YOURNAME is “Bob”) {
NARRATOR
Sorry, but you can’t call your avatar Bob - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
}if (YOURNAME is “Sally”) {
NARRATOR
Sorry, but you can’t call your avatar Sally - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
}if (YOURNAME is “John”) {
NARRATOR
Sorry, but you can’t call your avatar John - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
}if (YOURNAME is “Tess”) {
NARRATOR
Sorry, but you can’t call your avatar Tess - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
}if (YOURNAME is “Mia”) {
NARRATOR
Sorry, but you can’t call your avatar Mia - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
}if (YOURNAME is “Jake”) {
NARRATOR
Sorry, but you can’t call your avatar Jake - there’s someone else in the story with that name!
NARRATOR
Please try again and type in a different name.
goto name_input
} else {
goto continue_story
}
label continue_story
#Start story here
Hopefully that coding makes sense, but essentially, I’ve just used ifs and elses to recognise if a certain name is entered, and then I’ve used labels to either send the reader to re-enter their name, or to continue with the story once they’ve entered a valid name. I personally don’t like using elifs so I’ve repeatedly used normal ifs, but you can replace them with elifs if you prefer!
Hopefully this makes sense to you both, and let me know if you still need help with anything!
Tara xx