i made a menu: with four choices they dont impact the story
i wanted to have just four different dialogue's u can choose from and then it continues like normally
what do i type after a choices menu to continue my script
any help would be appreciated thank you
how do i continue my visual novel after a choices menu?
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.
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.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: how do i continue my visual novel after a choices menu?
Code: Select all
label start:
"This is story before choices."
menu:
"Choice 1":
pass
"Choice 2":
pass
"Choice 3":
pass
"Choice 4":
pass
"Story continues..."
return
- friend
- Newbie
- Posts: 16
- Joined: Fri Jul 29, 2016 6:26 am
- Completed: no life
- Projects: nothing
- Soundcloud: witchfiend
- itch: witchfiend
- Location: New York
- Discord: justinn#5186
- Contact:
Re: how do i continue my visual novel after a choices menu?
thats how you do it? i had two seperate two answer menus and i did this and it worked
label start:
"i love you"
menu:
"choice 1":
p "lalalalal"
s "falalalala"
"choice 2":
p "neederdeeter"
s "leederteeder"
label after_menu:
p "daniduwajd"
s "ddmaoiwdi"
p "mdaiooiawjd"
s "diaowdwioaj"
p "dmaoiwdiwa"
s "dmajwiowjd"
s "dmwaiojdiaj"
menu:
"choice 1":
p "dmiwoja"
s "miawojdw"
"choice 2":
p "dmaiwodw"
s "dwiajdwij"
label another_menu:
label start:
"i love you"
menu:
"choice 1":
p "lalalalal"
s "falalalala"
"choice 2":
p "neederdeeter"
s "leederteeder"
label after_menu:
p "daniduwajd"
s "ddmaoiwdi"
p "mdaiooiawjd"
s "diaowdwioaj"
p "dmaoiwdiwa"
s "dmajwiowjd"
s "dmwaiojdiaj"
menu:
"choice 1":
p "dmiwoja"
s "miawojdw"
"choice 2":
p "dmaiwodw"
s "dwiajdwij"
label another_menu:
- starshine001
- Newbie
- Posts: 23
- Joined: Fri Feb 02, 2018 9:16 am
- Completed: None
- Projects: The Nightfall [Vampire Thriller]
- Organization: None
- Contact:
Re: how do i continue my visual novel after a choices menu?
You'll need to use label and jump statements.
Here's what I mean:
That's how you make a choice and continue afterwards. Alternatively, for large chunks of text, you can jump to a label immediately, but you won't be needing that for just a few senctences.
Hope I could help!
PS: Apologize for probably faulty indentation, I'm pretty bad at doing that properly in the forum....
Here's what I mean:
Code: Select all
e "So, how are you doing?"
menu:
"Fine, thanks!":
#Here, you can either put the text or a jump statement. We'll put the text here since it's not much
m "Fine, thanks!"
e "That's great!"
jump after_menu #This ensures that the game jumps to after_menu after these lines of dialogue
"Leave me alone.":
m "Leave me alone."
e "Oh. Uhm..."
e "I want to talk to you though!"
jump after_menu
label after_menu: #Here, we define the label after_menu (Call this whatever you want) for the game
#Your game continues here.
Hope I could help!
PS: Apologize for probably faulty indentation, I'm pretty bad at doing that properly in the forum....
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: how do i continue my visual novel after a choices menu?
Not really.
Divona's example should work. If it doesn't in your code, probably is an indentation error.
It's necessary to understand how indentation and blocks work. Indentation defines blocks, that start always with : and the next line must have larger indentation. So blocks are defined inside blocks in several levels.
In Divona's example, the line "Story continues" belongs to the block defined by "label start:" So, when the mini block inside the menu options is finished (in that example the miniblock contains only the "pass" statement, but can contain more lines), the control goes to "Story continues"
In your example, if the indentation is correct, it should work too. When a label ends and there is no "jump" nor "return", Renpy goes to the next line, in your case, is a new label.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Who is online
Users browsing this forum: No registered users