............................................................................
define m_name_default = "Jack"
define f_name_default = "Erika"
default m_name = m_name_default
default f_name = f_name_default
define m = Character("[m_name]")
define f = Character("[f_name]")
label name_input:
menu:
"Male":
$ is_male = True
"I see."
"Female":
$ is_male = False
"Interesting."
$ input = renpy.input("What is your name, young grasshopper?").strip()
if is_male:
$ m_name = input if input else m_name_default
menu:
"Are you sure?"
"Yes.":
return
"No.":
jump name_input
else:
$ f_name = input if input else f_name_default
menu:
"Are you sure?"
"Yes.":
return
"No.":
jump name_input
label start:
call name_input
$if m_name == "Mario"
jump mariosecret
I want to add a list of names where the game will take you to a secret scene based on that name. Such as Mario, which will take you to a brief Mario scene. Problem is, when I tried to do that, I get this error:
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 40: Line is indented, but the preceding one-line python statement statement does not expect a block. Please check this line's indentation.
jump mariosecret
^
Ren'Py Version: Ren'Py 7.3.5.606
What have I done wrong now? I want to add this name, and others to a list for both the male and female option. Each of which jump to another part of the script for a short scene. How can I make it so it does that? Please help me, I'm still new to coding in Ren'Py.