I currently have as the code:
Code: Select all
label start:
$ name = renpy.input("Her name was...", length=10)
$ name = name.strip()
# If the player can't be bothered to choose a name, then we
# choose a suitable one for them:
if name == "Hero" or "Hiro": #<--This bit is the issue.
$ name="Hana"
"Her name was [name]. "
jump after_name
elif name == "Moo":
$ name="Moore"
"Her name was [name]."
jump after_name
else name == "Jane":
$ name="Jade"
"Her name was [name]."
jump after_name
I know that I can use multiple labels/jumps to remove the "or" in the script altogether, like this:
Code: Select all
label start:
$ name = renpy.input("Her name was...", length=10)
$ name = name.strip()
# If the player can't be bothered to choose a name, then we
# choose a suitable one for them:
if name == "Hero":
jump hana_name
if name == "Hiro":
jump hana_name
label hana_name:
$ name="Hana"
"Her name was [name]."
jump after_name
Any ideas?