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.
-
Nawmie
- Newbie
- Posts: 3
- Joined: Tue Jan 15, 2019 4:29 pm
- Tumblr: nawmie
- itch: Nawmie
-
Contact:
#1
Post
by Nawmie » Tue Jan 15, 2019 5:01 pm
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."
Last edited by
Nawmie on Thu Jan 17, 2019 9:38 am, edited 2 times in total.
-
DannX
- Regular
- Posts: 99
- Joined: Mon Mar 12, 2018 11:15 am
-
Contact:
#2
Post
by DannX » Tue Jan 15, 2019 5:23 pm
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).
Last edited by
DannX on Wed Jan 16, 2019 12:04 pm, edited 1 time in total.
-
Nawmie
- Newbie
- Posts: 3
- Joined: Tue Jan 15, 2019 4:29 pm
- Tumblr: nawmie
- itch: Nawmie
-
Contact:
#3
Post
by Nawmie » Wed Jan 16, 2019 10:35 am
Thanks for the heads up. I posted it right,now.
-
IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
-
Contact:
#4
Post
by IrinaLazareva » Wed Jan 16, 2019 10:55 am
Indentation is important.
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."
-
Nawmie
- Newbie
- Posts: 3
- Joined: Tue Jan 15, 2019 4:29 pm
- Tumblr: nawmie
- itch: Nawmie
-
Contact:
#5
Post
by Nawmie » Thu Jan 17, 2019 9:39 am
Oh, it worked. Thank you!
Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_