Currently, the user is prompted in the text box, and once the three user input fields are filled, they arrive at the character creation screen.
Code: Select all
label char_select:
"Now, select your beginning."
$ player_firstname = renpy.input("Given Name")
$ player_firstname = player_firstname.strip()
if player_firstname == "":
$ player_firstname="Derya"
$ player_surname = renpy.input("Family Name")
$ player_surname = player_surname.strip()
if player_surname == "":
$ player_surname="Emin"
$ player_age = renpy.input("Age")
$ player_age = player_age.strip()
if player_age == "":
$ player_age="30"
"Select your beginning."
show screen charselect
$ renpy.pause()
My problem is, I would like to move the user input onto my character selection screen-- so that when they type, they type into the empty fields indicated by age, given name, and family name. I have looked at the following threads:
General information about ui.input:
http://www.renpy.org/wiki/renpy/doc/ref ... s/ui.input
Using ui.input in nvl mode:
http://lemmasoft.renai.us/forums/viewto ... =8&t=22636
Customize the text in ui.input:
http://lemmasoft.renai.us/forums/viewto ... =8&t=10865
Displaying ui.input in a screen:
http://lemmasoft.renai.us/forums/viewto ... =8&t=16354
But I can't figure out how to get it to work. This is the closest that I've gotten:
Code: Select all
$ ui.input('', xpos 607, ypos 163)
$ player_age = ui.interact("Age")
$ player_age = player_age.strip()
if player_age == "":
$ player_age="30"
If anyone knows how to fix this up, I'd greatly appreciate it!



