help with expected menuitem

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
kenmas
Newbie
Posts: 3
Joined: Thu Jun 22, 2017 12:27 am
Tumblr: royalpalmkenma
Contact:

help with expected menuitem

#1 Post by kenmas »

Code: Select all

# The script of the game goes in this file.
image blank = "blank.jpg"
image mauve = "mauveresize.png"

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define m = Character("mauve")


# The game starts here.

label start:
  

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene blank

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.



    # These display lines of dialogue.

    "i'm tired of feeling sad all the time."
    
    show mauve at right

    m "i have things to do today, so i have to get out of bed whether i like it or not."
    menu:
        get out of bed:
            jump getoutofbed
label getoutofbed:
    m "i'm not sure if i'm hungry or not. should i bother with breakfast?"
    menu:
        skip breakfast:
            $ skipbreakfast = True
            jump skipbreakfast
        eat breakfast:
            $ eatbreakfast = Trye
            jump eatbreakfast
label skipbreakfast:
    if skipbreakfast = True:
        m "i'll get something to eat later"
    if eatbreakfast = True:
        m "i'll just have something quick."
# This ends the game.

    return
thats literally all i have. this is my first game. ive checked my indentation a thousand times. idk what else to do. it says specifically the problems are with lines 36 and 41.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: help with expected menuitem

#2 Post by trooper6 »

Your menu items need to be in quotation marks.
Notice the example code in the documentation: https://www.renpy.org/doc/html/menus.html#in-game-menus
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
kenmas
Newbie
Posts: 3
Joined: Thu Jun 22, 2017 12:27 am
Tumblr: royalpalmkenma
Contact:

Re: help with expected menuitem

#3 Post by kenmas »

trooper6 wrote:Your menu items need to be in quotation marks.
Notice the example code in the documentation: https://www.renpy.org/doc/html/menus.html#in-game-menus
i feel like a complete dumbass. thank you sm

timdonehy200
Newbie
Posts: 20
Joined: Sun Mar 12, 2017 6:15 am
Deviantart: timdonehy200
Contact:

Re: help with expected menuitem

#4 Post by timdonehy200 »

Also, you wrote:

$ eatbreakfast = Trye

instead of True...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Sugar_and_rice