Expected Statement Error (solved)

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
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Expected Statement Error (solved)

#1 Post by MioSegami » Sat Nov 17, 2012 2:56 pm

I just can't seem to find what's wrong? Thanks for reading, or helping :)

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 390: expected statement.
    else:
        ^

Ren'Py Version: Ren'Py 6.14.1.366

Code: Select all

$ slow_dissolve = Dissolve(1.5)
    show bg academyout1
    with slow_dissolve 
    "Lady" "WELCOME TO HAZUYA ACADEMY!!Now, students! Please get into class as soon as....ehh.....oooo"
    "Girls screaming"
    C "(What's up with the screaming? Seriously are they this excited about the academy?)"
    "Gril 1" "RYO-SEMPAI!!!!!!"
    "Girl 2" "GOSH THEY'RE SOOO HOT!"
    "Girl 3" "HITORIKI-KUN!"
    C "(Are they seriously that poopular?!)"
    C "This...is insane."
    "Stranger" "Tell me about it, geesh these girls hollar and scream like it's a concert."
    C"Yeah, I mean, why're they so big around in this academy."
    "Stranger" "Eh, you're a fresh one are you?"
    C "Fresh??"
    "Stranger" "Fresh as in new in this academy?"
    C "Yeah...."
    "Stranger" "Well let me tell yah, these boys are hell, their father is the principle in this academy and for this school district he's in charge,{p=.7} You know the oldest son Ryohei,
    you  better watch out,{p=.5}because he gets what he wants,  he's one spoiled brat."
    if  metryohei:
        C "I know him..." 
        "Stranger" "Are you serious? How? Are you his friend?"
        C "EWW NEVER! HE'S RUDE! AND SHORT TEMPERED!"
        "Stranger" "Wow, so you've met him, ahaha...sooo....{p=.5} tell me about it!"
        C "You sure?"
        "Stranger" "Damn girl, I'm sure!"
        C "Alright my father is under a debt, so my parents sold me into another home, being a maid....and there you go...I'M A MAID FOR THEM!"
        "Stranger" "Are...you serious about this....? Like oh my god...have fun with that hun'"
        C "I'm going to die sooon!!!"
        "Bell rings"
        "Stranger" "Oh shoot, well bye..."
        C "See ya, it was fun talking to you"
        "Stranger" "wait!"
        C "Huh??"
        "Stranger" "I never got your name...can I know your name before I go?"
        C "Oh I'm Chihiro, well your name then."
        "Stranger" "I'll tell you later!"
        "Just left, and flew with the wind, now YOU better hurry up!"
        C "(wow how unfair)"
    $ metitoe = True
    else:
        C "He looks mean.....so you said his name is Ryohei huh?"
        "Stranger" "Yeah, he's Ryohei, sadly one of the boy is gone."
        C "A boy..so there is more?!"
        "Stranger" "Yes girl there is more."
        C "Well the boys don't even looks twice as good as you!"
        "Stranger" "Aha, plese don't flatter me!"
        C "I'm serious!"
        "Stranger" "Well than, thank you -bows-"
        "Bell rings"
        "Stranger" "Oh shoot, well bye..."
        C "See ya, it was fun talking to you"
        "Stranger" "wait!"
        C "Huh??"
        "Stranger" "I never got your name...can I know your name before I go?"
        C "Oh I'm Chihiro, well your name then."
        "Stranger" "I'll tell you later!"
        "Just left, and flew with the wind, now YOU better hurry up!"
        C "(wow how unfair)"
    $ metitoe = True
if metmochiku:
    C "He looks mean.....so you said his name is Ryohei huh?"
    "Stranger" "Yeah, he's Ryohei, sadly one of the boy is gone."
    C "( a boy....is it who I think it is?"
    C "So what's that other boy's name?"
    "Stranger" "Aha! You're interested in him eh?"
    C "EH! No! Just wanted to know the whole crew!"
    "Stranger" "Ah, I see well his name is Mochiku, a sporty kid, pretty nice."
    C "Ummm his appearence?"
    "Stranger" "Okay girlie, just admit it you're interested in him."
    C "OKAY! I admit, I am...(i am soo damn curious! Tell me already!)"
    "Stranger" "Spiked up hair...."
    C ".........(ummm...not fimiliar)"
    "Stranger" "green eyes, orangish hair, energetic smile..."
    C "....."
    "Stranger"  "He get's sick a lot, plus he's been sick for months so far....poor kid got kicked out from the football team."
    C "(I do know him...)"
    "Bell rings"
    "Stranger" "Oh shoot, well bye..."
    C "See ya, it was fun talking to you"
    "Stranger" "wait!"
    C "Huh??"
    "Stranger" "I never got your name...can I know your name before I go?"
    C "Oh I'm Chihiro, well your name then."
    "Stranger" "I'll tell you later!"
    "Just left, and flew with the wind, now YOU better hurry up!"
    C "(wow how unfair)"
    $ metitoe = True
else:
    C "He looks mean.....so you said his name is Ryohei huh?"
    "Stranger" "Yeah, he's Ryohei, sadly one of the boy is gone."
    C "A boy..so there is more?!"
    "Stranger" "Yes girl there is more."
    C "Well the boys don't even looks twice as good as you!"
    "Stranger" "Aha, plese don't flatter me!"
    C "I'm serious!"
    "Stranger" "Well than, thank you -bows-"
    "Bell rings"
    "Stranger" "Oh shoot, well bye..."
    C "See ya, it was fun talking to you"
    "Stranger" "wait!"
    C "Huh??"
    "Stranger" "I never got your name...can I know your name before I go?"
    C "Oh I'm Chihiro, well your name then."
    "Stranger" "I'll tell you later!"
    "Just left, and flew with the wind, now YOU better hurry up!"
    C "(wow how unfair)"
    $ metitoe = True   
Last edited by MioSegami on Sat Nov 17, 2012 3:28 pm, edited 1 time in total.
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

User avatar
Aedin
Regular
Posts: 137
Joined: Fri Sep 07, 2012 11:53 pm
Contact:

Re: Expected Statement Error

#2 Post by Aedin » Sat Nov 17, 2012 3:19 pm

Your indentation is off. When it says:

Code: Select all

        C "(wow how unfair)"
    $ metitoe = True
    else:
the $ mettle needs to be indented once more. So it'd be:

Code: Select all

        C "(wow how unfair)"
        $ metitoe = True
    else:
"There’s no shame in pleasure, Mr. Gray. You see, man just wants to be happy, but society wants him to be good. And when he’s good, man is rarely happy, and when he’s happy he is always good."

User avatar
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Re: Expected Statement Error

#3 Post by MioSegami » Sat Nov 17, 2012 3:28 pm

Aedin wrote:Your indentation is off. When it says:

Code: Select all

        C "(wow how unfair)"
    $ metitoe = True
    else:
the $ mettle needs to be indented once more. So it'd be:

Code: Select all

        C "(wow how unfair)"
        $ metitoe = True
    else:
Thank you soo! much!
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

Post Reply

Who is online

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