I am a noob to coding. Went through the ren'py tutorial and I'm starting to build my game, and I'm actually doing ok. However, I'm having some troubles. For each character at their introduction I ask the player if they want to change the character's name with a Yes/No. If they choose yes, I want to add an input for the name. That far I've gotten. Unfortunately it gives me an error.
It returns an error that name is not defined. If anyone could help I'd appreciate it.
Code:
scene scene1_2
"This is Mrs. Kelly. Her default name is Olivia. Would you like to change her name?"
menu:
"Yes":
python:
olivia_name = renpy.input(_("What is her name?"))
olivia_name = name.strip() or __("Olivia")
"No":
jump olivia_name_done
label olivia_name_done: