expected menuitem when I've finished the menu?? [[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
imnotsmart
Newbie
Posts: 12
Joined: Sun Jul 14, 2013 5:52 pm
Projects: Currently Working On: "Give Me A Secret"
Location: US
Contact:

expected menuitem when I've finished the menu?? [[solved]]

#1 Post by imnotsmart »

Whenever I try to run the game, I get this error -

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 541: expected menuitem
    label choice1_mercy:
    ^

Ren'Py Version: Ren'Py 6.14.1.366
But line 541 is where I've already finished the menu - it's a new label. I'm so confused.
Here is the script that's giving me trouble, with a little bit of the surrounding script before and after in case that's part of the problem.

Code: Select all

d "What? You think of a secret?"
    m "N..No.. But..."
    
menu: 
        "...please have mercy!":
                jump choice1_mercy
                
        "...I can find one!":
                jump choice1_secret
                
        label choice1_mercy:
        $ no_mercy = True
        m "Please, have mercy on me! I haven't done anything to you!"
For some reason it keeps thinking that the new label is part of the menu... At first I thought it was because they had the same indentation, so I tried pretty much every indentation besides the one shown, but then I get the indentation mismatch error, even if I edit all the following text to match it. Sorry if the answer is something easy or stupid, I am just so stuck x n x
Last edited by imnotsmart on Mon Jul 15, 2013 3:12 pm, edited 1 time in total.

User avatar
Suwamoto
Regular
Posts: 66
Joined: Wed Sep 05, 2012 7:36 am
Contact:

Re: expected menuitem when I've finished the menu??

#2 Post by Suwamoto »

I think you simply got the blocks wrong owo It should be like this.

Code: Select all

	d "What? You think of a secret?"
    	m "N..No.. But..."
   
	menu:
        	"...please have mercy!":
                	jump choice1_mercy
               
        	"...I can find one!":
                	jump choice1_secret
               
label choice1_mercy:
        $ no_mercy = True
        m "Please, have mercy on me! I haven't done anything to you!"

User avatar
imnotsmart
Newbie
Posts: 12
Joined: Sun Jul 14, 2013 5:52 pm
Projects: Currently Working On: "Give Me A Secret"
Location: US
Contact:

Re: expected menuitem when I've finished the menu??

#3 Post by imnotsmart »

Suwamoto wrote:I think you simply got the blocks wrong owo It should be like this.

Code: Select all

	d "What? You think of a secret?"
    	m "N..No.. But..."
   
	menu:
        	"...please have mercy!":
                	jump choice1_mercy
               
        	"...I can find one!":
                	jump choice1_secret
               
label choice1_mercy:
        $ no_mercy = True
        m "Please, have mercy on me! I haven't done anything to you!"
I put that in and it worked! Thank you so much : 3

Post Reply

Who is online

Users browsing this forum: BBN_VN