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.
I read the tutorial, played the game, and I'm not a n00b when it comes to scripting. I have most of the features down, but I'm having a bit of trouble. Okay, here is my game script.
label start:
scene bg background
show person guy
e "You're some punk kid in high school"
e "Yeah, so... do something"
e "C'mon! Do something already!"
show person girl
g "Hi! How's it going?"
menu:
"Go away!":
jump ok
"Go die!":
jump ok2
label ok:
scene bg background
show person girl
g "Okay. Bye!"
e "You won. Congratulations!"
return
label ok2:
scene bg background
show person girl
g "Maybe I will!"
e "You won! Congratulations!"
return
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
On line 30 of C:\Documents and Settings\Schenk\Desktop\renpy-6.8.0-sdk\renpy-6.8.0\Lol First/game/script.rpy: menu statement expects a non-empty block.
menu:
^
On line 31 of C:\Documents and Settings\Schenk\Desktop\renpy-6.8.0-sdk\renpy-6.8.0\Lol First/game/script.rpy: expected statement.
"Go away!":
^
On line 34 of C:\Documents and Settings\Schenk\Desktop\renpy-6.8.0-sdk\renpy-6.8.0\Lol First/game/script.rpy: expected statement.
"Go die!":
^
On line 35 of C:\Documents and Settings\Schenk\Desktop\renpy-6.8.0-sdk\renpy-6.8.0\Lol First/game/script.rpy: jump statement does not expect a block. Please check the indentation of the line after this one.
jump ok2
^
Ren'Py Version: Ren'Py 6.8.0f
So, um... I did my spacing and indentations perfectly, at least I think I did. Help me?
label start:
scene bg background
show person guy
e "You're some punk kid in high school"
e "Yeah, so... do something"
e "C'mon! Do something already!"
show person girl
g "Hi! How's it going?"
menu:
"Go away!":
jump ok
"Go die!":
jump ok2
label ok:
scene bg background
show person girl
g "Okay. Bye!"
e "You won. Congratulations!"
return
label ok2:
scene bg background
show person girl
g "Maybe I will!"
e "You won! Congratulations!"
return