Rename the M.C. in the preferences menu?
Posted: Wed Feb 12, 2020 12:05 am
Hello!
At the beginning of my game, the player has the option to rename the main character according to this code:
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...
Thanks.
At the beginning of my game, the player has the option to rename the main character according to this code:
Code: Select all
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":
passI 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...
Thanks.