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.
python:
mcname = renpy.input("What is your name?")
mcname = mcname.strip()
if not mcname:
mcname = "Hitoshi"
# These display lines of dialogue.
e "You've created a new Ren'Py game, [mcname]."
e "Once you add a story, pictures, and music, you can release it to the world!"
Can someone help? I'm relatively new, so I may have just made a silly mistake.
label start:
python:
mcname = renpy.input("What is your name?")
mcname = mcname.strip()
if not mcname:
mcname = "Hitoshi"
# These display lines of dialogue.
e "You've created a new Ren'Py game, [mcname]."
e "Once you add a story, pictures, and music, you can release it to the world!"
label start:
$ mcname = renpy.input("What is your name?").strip() or "Hitoshi"
e "You've created a new Ren'Py game, [mcname]."
e "Once you add a story, pictures, and music, you can release it to the world!"