What's wrong with this script?
Posted: Mon Mar 05, 2012 1:22 am
Basically, I want to make so that if the player doesn't input a name and if he is male, his name will become Jack. And if the player didn't enter a name and if she is female, her name is Sarah. I can't for the life of me see what's wrong with what I've written.
Code: Select all
"Are you male or female?"
menu:
"Male":
$ gender = "male"
"Female":
$ gender = "female"
"What is your name?"
$ player_name = renpy.input ("What is your name?")
$ player_name = player_name.strip()
if $ gender=="male" :
if player_name == "":
$ player_name="Jack"
if $ gender== "female" :
if player_name == "":
$ player_name="Sarah"