expected statement 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
lolitiabear
Newbie
Posts: 2
Joined: Fri Jan 09, 2015 7:56 pm
Contact:

expected statement error?

#1 Post by lolitiabear » Fri Jan 09, 2015 8:07 pm

I keep getting an error message about it and i can't figure out what's wrong
Here's the code:

Code: Select all

"Amanda":
                jump a 
                label a:
                define m = Character('Mom', color="#F73A3A")
                define d = Character('Dad', color="#3AB5F7")
                define a = Character('Amanda', color="#B71BEB")
                d "So, Amanda, are you ready to go?"
                a "Yeah dad, i packed my bags and everything."
                m "Oh, i'm gonna miss you so much! I hope you have a great time at the school."
                a "I'll miss you too mom, and you too dad."
                d "Well let's go honey, we got not no time to loose!"
                a "Alright, bye mom!"
                m "Bye sweet heart, see you this summer!"
                "And so with there good byes and hugs, Amanda goes on with her dad to the school. Amanda can remember the happiness she felt when she found out
                she didn't had to go to that 'godforsaken school' any more."
                "Ever since kindergarden Amanda has always been picked on. As she got older people started thinking the way she dressed and what she was into was a way of showing she was better than the other girls, because she was different. But Amanda saw herself no better than the rest of them. Still she managed to get by, until recently. She started getting into fights with
                her class mates, so her parents pulled her out of school, and put her into this one, hoping it will be better than the last."
                "*two hours later...*"
I made sure everything was fine, but i keep getting this message, anybody have an answer? Also, this is an menu option.

User avatar
mjshi
Regular
Posts: 179
Joined: Wed Mar 13, 2013 9:55 pm
Completed: MazeSite01, Ponderings of Time
Contact:

Re: expected statement error?

#2 Post by mjshi » Fri Jan 09, 2015 8:20 pm

Let me first say, whoa, you're going crazy with the indents there.

4 spaces is enough xD

Okay, now onto the actual problem. Some of the ordering is messed up, and I recommend shorter dialogue or breaking up the really long statements a bit, just for game pace.

Defines should go at the beginning of the script.
Labels should be on a new line and really shouldn't be subset into a choice.
Definitely remember to have "" over everything, especially if it's a new line.

Code: Select all

define m = Character('Mom', color="#F73A3A")
define d = Character('Dad', color="#3AB5F7")
define a = Character('Amanda', color="#B71BEB")

## game stuff, then menu choice:

    "Amanda":
        jump a 

label a:

    d "So, Amanda, are you ready to go?"
    a "Yeah dad, i packed my bags and everything."
    m "Oh, i'm gonna miss you so much! I hope you have a great time at the school."
    a "I'll miss you too mom, and you too dad."
    d "Well let's go honey, we got not no time to loose!"
    a "Alright, bye mom!"
    m "Bye sweet heart, see you this summer!"
    "And so with there good byes and hugs, Amanda goes on with her dad to the school. Amanda can remember the happiness she felt when she found out she didn't had to go to that 'godforsaken school' any more."
    "Ever since kindergarden Amanda has always been picked on. As she got older people started thinking the way she dressed and what she was into was a way of showing she was better than the other girls, because she was different. But Amanda saw herself no better than the rest of them. Still she managed to get by, until recently. She started getting into fights with her class mates, so her parents pulled her out of school, and put her into this one, hoping it will be better than the last."
    "*two hours later...*"
The code should work fine now.

lolitiabear
Newbie
Posts: 2
Joined: Fri Jan 09, 2015 7:56 pm
Contact:

Re: expected statement error?

#3 Post by lolitiabear » Sat Jan 10, 2015 12:33 am

Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users