Stop dialogue box from being hidden during choice?

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
gamajorbatistan
Regular
Posts: 35
Joined: Sun Mar 04, 2018 3:57 am
Contact:

Stop dialogue box from being hidden during choice?

#1 Post by gamajorbatistan »

This is what my choice code looks like

Code: Select all

    label menu01:
    menu:
        "Man, Tracer's a weirdo when she's alone...":
            jump weirdo
            with slowdissolve

        "Poor Tracer just had a rough day...":
            jump roughday
            with slowdissolve
pretty normal, beginner choice code I'd say. However since that's where the question on which the decision is based stands, I'd like the player to be able to read the question without having to click back. Surely that's not too hard to do?

I tried putting this in options file

Code: Select all

define config.window = "show"
But unsurprisingly it doesn't do anything. Would be really grateful for any help.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Stop dialogue box from being hidden during choice?

#2 Post by rayminator »

put this into your script.rpy

Code: Select all

window show
below label start and make sure you indent it

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Stop dialogue box from being hidden during choice?

#3 Post by Donmai »

Put the last dialogue line inside the menu label.

Code: Select all

menu:
     "What should I do?"

     "Drink coffee.":
         "I drink the coffee, and it's good to the last drop."

     "Drink tea.":
         $ drank_tea = True
         "I drink the tea, trying not to make a political statement as I do."
https://www.renpy.org/doc/html/menus.html#in-game-menus
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

gamajorbatistan
Regular
Posts: 35
Joined: Sun Mar 04, 2018 3:57 am
Contact:

Re: Stop dialogue box from being hidden during choice?

#4 Post by gamajorbatistan »

Oh my god! THANK YOU!!!!!!!!!!

User avatar
Tayruu
Regular
Posts: 141
Joined: Sat Jul 05, 2014 7:57 pm

Re: Stop dialogue box from being hidden during choice?

#5 Post by Tayruu »

An alternate method is to put extend "" inside the menu block.

Code: Select all

    inu "I'm going to..."
    menu:
        extend ""
        "Help out in the server room.":
        #
        "Go scout around the area.":
        #
        "Stay in the camp here.":
        #
I personally prefer this method, as it allows the dialogue to display, and then the key press at the end displays the menu prompt.

Post Reply

Who is online

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