Say screen inside a screen

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
dasauto1
Newbie
Posts: 21
Joined: Sun Oct 31, 2021 2:26 pm
Contact:

Say screen inside a screen

#1 Post by dasauto1 » Wed Dec 08, 2021 8:13 am

Is there anyway I could call a say screen from inside another screen?

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Say screen inside a screen

#2 Post by Alex » Wed Dec 08, 2021 11:28 am

You can call a label where a character will say something.
What exactly you trying to achieve?

dasauto1
Newbie
Posts: 21
Joined: Sun Oct 31, 2021 2:26 pm
Contact:

Re: Say screen inside a screen

#3 Post by dasauto1 » Wed Dec 08, 2021 12:38 pm

Do you know how to call it?
I just want for a button I have inside a screen to trigger a simple dialogue.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Say screen inside a screen

#4 Post by Alex » Wed Dec 08, 2021 12:49 pm

Well, if you need a simple button player should click to see dialogue, you could make it like

Code: Select all

screen button_scr():
    # we'll call this screen, so button should Return something
    textbutton "Click to talk" action Return() align(0.5, 0.2)
    
# The game starts here.
label start:
    "..."
    
label some_location:
    scene black
    show char at left
    "blah-blah-blah"
    # let's call a screen to force player interact with it
    call screen button_scr
    "char" "talk-talk-talk"
    "?!"
https://www.renpy.org/doc/html/screens.html
https://www.renpy.org/doc/html/screen_actions.html

dasauto1
Newbie
Posts: 21
Joined: Sun Oct 31, 2021 2:26 pm
Contact:

Re: Say screen inside a screen

#5 Post by dasauto1 » Wed Dec 08, 2021 1:10 pm

Thank you so much!

Post Reply

Who is online

Users browsing this forum: No registered users