end of line and expected failure

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.
Post Reply
Message
Author
BEOWULF97
Newbie
Posts: 1
Joined: Thu Nov 29, 2018 6:05 pm
Contact:

end of line and expected failure

#1 Post by BEOWULF97 »

I've no idea what I'm doing. I've just started my first attempt at making any sort of game today, so forgive everything I'm about to explain wrong please. I'm trying to create choices for example here the MC has the option between two doors and each option (left or right) will lead to a different scene next. Between reading files and watching youtube videos to put the script together this is a problem I've encountered I can't find a solution to on my own. Two errors come up back and forth between telling me either a menu item is expected, then I edit, and it says end of line expected. Repeat back and forth. The error is like this currently at end of line expected.
The screenshots are attached.
I might be doing a lot wrong other than whatever this is telling me too. I'm sorry if the screenshots/my layout makes you cringe. I appreciate any help, thank you!
Attachments
Screen Shot 2018-11-29 at 4.11.04 PM.png
Screen Shot 2018-11-29 at 4.30.24 PM.png

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: end of line and expected failure

#2 Post by Imperf3kt »

After menu: you need a new line - anywhere : is used means renpy expects a block, which means it expects a new line and four additional spaces. Also, please post the code in code tags in future, instead of an image. It makes helping you much easier.

Code: Select all

    menu:
        "Which one should I choose?" 
        
        "Left":
            jump left
        "Right":
            jump right
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: henne