Expected Menuitem and Call

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
XxPetraxX
Newbie
Posts: 2
Joined: Sun Aug 16, 2009 12:43 am
Contact:

Expected Menuitem and Call

#1 Post by XxPetraxX »

Okay, this is my first time posting here, but I really want to figure this out, it's been driving me crazy for the longest time now.

Code: Select all

menu:    
    "Vilnius"
    call vilnius_lithuania:
      A "this is a test."
    "Liverpool"
    call liverpool_england:
      P "This is a test"
    "Abakan"
    call abakan_russia:
       L "This is a test"
    "Crotone"
    call crotone_southitaly:
      A "More testing"
    "Shawinigan"
    call shawinian_canada:
      P "Testing."
    label vilnius_lithuania:      
    A "Testing"    
    return
I thought I had everything right. Well, apparently not.

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


On line 78 of C:\Program Files\Ren'Py\renpy-6.9.2\When Fangirls Attack/game/script.rpy: expected menuitem
call vilnius_lithuania:
^

Ren'Py Version: Ren'Py 6.9.2a
Please, please, help me out as soon as you can! Thank you!

JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: Expected Menuitem and Call

#2 Post by JQuartz »

XxPetraxX wrote:Please, please, help me out as soon as you can!
You need to place call after the menuitem not as it. Like so:

Code: Select all

menu:   
    "Vilnius":
        call vilnius_lithuania
        A "this is a test."
    "Liverpool":
        call liverpool_england
        P "This is a test"
    "Abakan":
        call abakan_russia
        L "This is a test"
    "Crotone":
        call crotone_southitaly
        A "More testing"
    "Shawinigan":
        call shawinian_canada
        P "Testing."
label vilnius_lithuania:     
    A "Testing"   
    return
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

XxPetraxX
Newbie
Posts: 2
Joined: Sun Aug 16, 2009 12:43 am
Contact:

Re: Expected Menuitem and Call

#3 Post by XxPetraxX »

It worked! Thank you so much!

Post Reply

Who is online

Users browsing this forum: Google [Bot]