Page 1 of 1

how do i continue my visual novel after a choices menu?

Posted: Sat Oct 14, 2017 10:40 am
by friend
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

Re: how do i continue my visual novel after a choices menu?

Posted: Sat Oct 14, 2017 10:52 am
by Divona

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

Re: how do i continue my visual novel after a choices menu?

Posted: Thu Feb 08, 2018 9:36 am
by friend
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:

Re: how do i continue my visual novel after a choices menu?

Posted: Thu Feb 08, 2018 12:38 pm
by starshine001
You'll need to use label and jump statements.

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.
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....

Re: how do i continue my visual novel after a choices menu?

Posted: Thu Feb 08, 2018 1:14 pm
by xavimat
starshine001 wrote: Thu Feb 08, 2018 12:38 pmYou'll need to use label and jump statements.
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.