Invalid Syntax Error

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
User avatar
ArizaLuca
Regular
Posts: 104
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen
Tumblr: aa-games
Deviantart: ArizaLuca
itch: arizaluca
Contact:

Invalid Syntax Error

#1 Post by ArizaLuca » Thu May 24, 2018 9:08 pm

Code: Select all

label Yes2:

    me "I mean… yeah, of course I would."

    "I mean, sure, they're a little different, but isn't everybody?"

    me "So that means I've got to head… to the left."

    if criteria1 == 1 and criteria 2 == 1:
        jump lgbtqquestion
    elif criteria1 == 2 and criteria 2 == 2:
        jump continue2
Whenever I try running this code, this says there is an invalid syntax error. I'm not sure as to why?

User avatar
Draziya
Regular
Posts: 65
Joined: Sun Nov 26, 2017 8:50 am
Completed: I Don't Have A Clue [QRMJam 18], Cautionary Tale [NaNoRenO 18], OP Dodge Cross [GGJ 18], Acetone [AceJam 18], Ah! My Girlfriend is a Demon Summoned from the Depths of Hell! [MonJam 17]
Organization: Watercress
itch: Drazillion
Contact:

Re: Invalid Syntax Error

#2 Post by Draziya » Thu May 24, 2018 10:19 pm

I think it's because criteria 2 has a space in it, and it should be criteria2.
Image

User avatar
ArizaLuca
Regular
Posts: 104
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen
Tumblr: aa-games
Deviantart: ArizaLuca
itch: arizaluca
Contact:

Re: Invalid Syntax Error

#3 Post by ArizaLuca » Fri May 25, 2018 7:41 am

Ah, thank you!

Post Reply

Who is online

Users browsing this forum: GeeSeki