Statement Error in script

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
Lexxa_Astral
Newbie
Posts: 4
Joined: Sun Jul 28, 2019 12:10 am
Contact:

Statement Error in script

#1 Post by Lexxa_Astral »

While I was adding choices, I encountered this issue

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 80: expected statement.
    "Space {i}is{/i} in, so..":
                              ^

File "game/script.rpy", line 84: expected statement.
    "This is cuter, so..":
                         ^

Ren'Py Version: Ren'Py 7.3.2.320
I've tried fixing the lines in question, but nothing I've tried has worked. The lines of code in question are below. Any ideas on what I should do?

Code: Select all

label hoodie:
        "Space {i}is{/i} in, so..":
            jump out_we_go

    label sweater_weather:
        "This is cuter, so..":
            jump out_we_go

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Statement Error in script

#2 Post by Alex »

They should be 'menu' not 'label' - https://www.renpy.org/doc/html/menus.html

Code: Select all

label start:
    "blah-blah"
    menu hoodie:
        "Space {i}is{/i} in, so..":
            jump out_we_go
        "Pass":
            pass

    menu sweater_weather:
        "This is cuter, so..":
            jump out_we_go

Post Reply

Who is online

Users browsing this forum: Bing [Bot]