I don't understand this 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
TheFandomPerson
Newbie
Posts: 4
Joined: Sat Jul 10, 2021 1:21 am
Contact:

I don't understand this error

#1 Post by TheFandomPerson »

So here's the thing I'm working on (don't ask why it's Pokemon):

Code: Select all

    label choose_starter:

        p "So, you're bringing a Pokemon with you? Which one?"

    menu:

        "Houndour":

            p "You're bringing a Houndour?"

            "Yes": jump houndour_confirm

            "No": jump choose_starter

        "Munna":

            p "You're bringing a Munna?"

            "Yes": jump munna_confirm

            "No": jump choose_starter

        "Riolu":

            p "You're bringing a Riolu?"

            "Yes": jump riolu_confirm

            "No": jump choose_starter


label houndour_confirm:

    $ Houndour_flag = True

    p "How cute! I've always loved these little guys."

    p "Well, I think we're ready to begin!"

label munna_confirm:

    $ Munna_flag = True

    p "How cute! I still have the one I caught when I was your age."

    p "Well, I think we're ready to begin!"

label riolu_confirm:

    $ Riolu_flag = True

    p "How cute! I've always been curious about this species."

    p "Well, I think we're ready to begin!"
But when I try to run the game to test it, Ren'Py gives me this:

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 62: expected statement.
    "Yes": jump houndour_confirm
         ^

File "game/script.rpy", line 64: expected statement.
    "No": jump choose_starter
        ^

File "game/script.rpy", line 70: expected statement.
    "Yes": jump munna_confirm
         ^

File "game/script.rpy", line 72: expected statement.
    "No": jump choose_starter
        ^

File "game/script.rpy", line 78: expected statement.
    "Yes": jump riolu_confirm
         ^

File "game/script.rpy", line 80: expected statement.
    "No": jump choose_starter
        ^

Ren'Py Version: Ren'Py 7.4.6.1693
Thu Jul 15 17:48:27 2021
I don't understand what I need to change. Yes, I am a Ren'Py noob.
"I would shun the light, share in evening's cool and quiet
Who would trade that hum of night?
For sunlight, sunlight, sunlight
But whose heart would not take flight?
Betray the moon as acolyte
On first and fierce affirming sight
Of sunlight, sunlight, sunlight..."

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: I don't understand this error

#2 Post by Ocelot »

You need a menu there:

Code: Select all

menu: # 1st level menu: choose Pokemon
    "Houndour":
        p "You're bringing a Houndour?"
        menu: # ANOTHER menu. no relation to 1st level one
            "Yes": 
                jump houndour_confirm
            "No": 
                jump choose_starter
    "Munna": # rest of the menu
< < insert Rick Cook quote here > >

TheFandomPerson
Newbie
Posts: 4
Joined: Sat Jul 10, 2021 1:21 am
Contact:

Re: Re: I don't understand this error

#3 Post by TheFandomPerson »

Yes! That worked! Tysm! :D
"I would shun the light, share in evening's cool and quiet
Who would trade that hum of night?
For sunlight, sunlight, sunlight
But whose heart would not take flight?
Betray the moon as acolyte
On first and fierce affirming sight
Of sunlight, sunlight, sunlight..."

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]