I'm having a bit of trouble trying to assign two names to the protagonist of my story. I want players to have the option of naming the MC if they want to or just leaving her name as the default. Problem is, the way I have it set up is by giving the player an option to name her inside a menu like so:
Code: Select all
n "Do you want to leave the default name?"
n "Or do you want to input your own name?"
menu:
"I want to leave the default name":
jump default
"I want to input my own name":
jump yourname
label default:
n "Default name it is!"
jump next
label yourname:
n "Then tell me your name."
$ player_name = renpy.input ("What is your name?", "Heidi")
$ player_name = f_name.strip()
if player_name == "":
$ player_name = "Heidi"
jump next
Code: Select all
define h = Character ("[player_name]")
Thank you so much for any help!