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
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Invalid Syntax Error

#1 Post by ArizaLuca »

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: 70
Joined: Sun Nov 26, 2017 8:50 am
Completed: this was for you. [NaNoRenO 19], Acetylene [AceJam19], Ah!! My Roommate is a Succubus Hellbent on World [MonJam 18], I Don't Have A Clue [QRMJam 18], Cautionary Tale [NaNoRenO 18], OP Dodge Cross [GGJ 18], Acetone [AceJam 18]
Projects: I'm a love interest in my childhood friend's reverse harem!!
Organization: Watercress
itch: Drazillion
Contact:

Re: Invalid Syntax Error

#2 Post by Draziya »

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

ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: Invalid Syntax Error

#3 Post by ArizaLuca »

Ah, thank you!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]