Page 1 of 1

expected menuitem(SOLVED)

Posted: Tue Jan 15, 2019 5:01 pm
by Nawmie
I've started with using Ren'Py just recently, so i apologize if it's a silly mistake. I'm using that "The Question" game assets for learning.
I've tried to rewrite this part of the programming a few times already, but it doesn't seem to be working.I don't understand what's wrong.

"file "game/script.rpy",line 33: expected menuitem
->label fazer:

Here are the lines in question:

Code: Select all

 show Sylvie sorrindo
    "Ela se vira para mim e sorri. Ela parece tão acolhedora que eu logo sinto a minha ansiedade desaparacer."
menu:
    "O que eu faço?"
    
    "Fazer a pergunta.":
            jump fazer
    "não falar nada.":
            jump naofalar
    
    label fazer:
    e"Eeeer..."
    e"Você quer...fazer uma Visual Novel comigo?"
    show Sylvie surpresa
    
    label naofalar:
    e"Eeer...esquece..."
    "Melhor deixar isso para depois."

Re: expected menuitem

Posted: Tue Jan 15, 2019 5:23 pm
by DannX
The code doesn't seem wrong, I suspect the error might be because identation, but it's hard to tell for sure since the code you posted is not formatted, it would be better that when you post code, you enclose it between code brackets, like this:

[code]
Your code here
[/code]

It will look like this:

Code: Select all

label start:

    "Dialogue"

    menu:
        "O que eu faço?"

        "Fazer a pergunta.":
            jump fazer
        "não falar nada.":
            jump naofalar

label fazer:
    e"Eeeer..."
    e"Você quer...fazer uma Visual Novel comigo?"

label naofalar:
    e"Eeer...esquece..."
    "Melhor deixar isso para depois."    
That previous code snippet is also how it should look like in your projects, including all the spaces, since Python (and therefore Ren'Py) uses those spaces to organize code (that's what I mean with identation).

Re: expected menuitem

Posted: Wed Jan 16, 2019 10:35 am
by Nawmie
Thanks for the heads up. I posted it right,now.

Re: expected menuitem

Posted: Wed Jan 16, 2019 10:55 am
by IrinaLazareva
Indentation is important.

Image

Code: Select all

label start:
    
    show Sylvie sorrindo
    "Ela se vira para mim e sorri. Ela parece tão acolhedora que eu logo sinto a minha ansiedade desaparacer."
    menu:
        "O que eu faço?"
        "Fazer a pergunta.":
            jump fazer
        "não falar nada.":
            jump naofalar
    
label fazer:
    e"Eeeer..."
    e"Você quer...fazer uma Visual Novel comigo?"
    show Sylvie surpresa
    
label naofalar:
    e"Eeer...esquece..."
    "Melhor deixar isso para depois."

Re: expected menuitem(SOLVED)

Posted: Thu Jan 17, 2019 9:39 am
by Nawmie
Oh, it worked. Thank you!