Screen, Input and Statement trouble[Solved]
Posted: Wed Jul 29, 2020 7:45 am
So I am currently trying to make a new screen to pop up when the player gets the prompt to type in there own name. I am still new to coding so this may be an easy fix but I just cant get it to stop giving me errors. I fix the "unexpected statement" issue but then it says "expected statement". Then there's the "end of line expected error". What am I doing wrong? Any help is appreciated!
Code: Select all
screen enterName:
vbox:
xalign 0.5
yalign 0.5
text "What is your name?":
size 20
input default:"Type Name Here"
pixel_width(500)
value VariableInputValue("player_name")
textbutton "OK":
action Jump("continue")
keysym('K_RETURN', 'K_KP_ENTER')
"Now, what is my name?"
$ quick_menu = False
$ _skipping = False
$ player_name = ""
show screen enterName
$ _preferences.afm_enable = False
$ renpy.pause(hard=True)
label continue:
$ player_name = player_name.strip()
if player_name == "":
$ player_name="Josh"
hide screen enterName
$ quick_menu = True
$ _skipping = True