[SOLVED] Expected Statement regarding text problem

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
Shadios
Regular
Posts: 77
Joined: Sun Apr 04, 2010 12:11 am
Projects: Our Hearts, Your Days
Location: Australia
Contact:

[SOLVED] Expected Statement regarding text problem

#1 Post by Shadios »

This is the error I'm getting:

Code: Select all

On line 3418 of G:\Our Hearts, (Y)our Days Stuff\OUR HEARTS, (Y)OUR DAYS/game/script.rpy: expected statement.
"Yeah, it was good.":
                    ^
and this is the actual code where the error is coming from:

Code: Select all

         jump renshi1
         
         "Yeah, it was good.":
         $ setsuna_points +=1
         hide setsuna smile
         with dissolve
Would somebody mind telling me where I went wrong?
Last edited by Shadios on Wed May 18, 2011 5:16 am, edited 1 time in total.
Our Hearts, Your Days
A story of love, a story of acceptance and a story of rememberance like no other....
1st Demo Release Date: December 2011/Janurary 2012
Main Release Date: Late 2012

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Expected Statement regarding text problem

#2 Post by Aleema »

Why is there a colon (:) after your line? Is this a menu choice? If so, everything belonging to a menu choice needs to be indented over once. This is so Ren'Py can tell what belongs to which menu choice.

If this is not a menu choice, remove the colon.

Shadios
Regular
Posts: 77
Joined: Sun Apr 04, 2010 12:11 am
Projects: Our Hearts, Your Days
Location: Australia
Contact:

Re: Expected Statement regarding text problem

#3 Post by Shadios »

Okay, I tried to indent everything in that portion over properly...and it still doesn't work.

I tried re-writing the first line to see if it was the code I was using, but it still didn't work.

Anything else you think is wrong?


Nevermind, it turned out the indentation of the actual menu item was what screwed everything up.
Our Hearts, Your Days
A story of love, a story of acceptance and a story of rememberance like no other....
1st Demo Release Date: December 2011/Janurary 2012
Main Release Date: Late 2012

Post Reply

Who is online

Users browsing this forum: redroomgames