Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
menu .name:
"Your current name is [mc]."
"Change name":
$ mc = renpy.input("What's your name? (2-10 characters)", allow=" 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", length=10)
$ mc = mc.strip()
if len(mc) < 2:
"You must name your character a minimum of 2 letters."
$ mc = "Robert"
jump .name
$ mc = mc.title()
$ persistent.mc = mc
jump .name
"Continue":
pass
However, I also want to give the player the option to enter the preferences menu and be able to change the name directly there. How could I do that?
I added some custom vboxes to my preferences menu, but they follow the "radio" style and are only used to set some variables. I have no idea how I can create a vbox there where the player can input text or something...
menu .name:
"Your current name is [mc]."
"Change name":
$ mc = renpy.input("What's your name? (2-10 characters)", allow=" 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", length=10)
$ mc = mc.strip()
if len(mc) < 2:
"You must name your character a minimum of 2 letters."
$ mc = "Robert"
jump .name
$ mc = mc.title()
$ persistent.mc = mc
jump .name
"Continue":
pass
However, I also want to give the player the option to enter the preferences menu and be able to change the name directly there. How could I do that?
I added some custom vboxes to my preferences menu, but they follow the "radio" style and are only used to set some variables. I have no idea how I can create a vbox there where the player can input text or something...