Dialog in Two Places

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
poppyfish
Newbie
Posts: 1
Joined: Sun Jan 27, 2019 12:54 pm
Contact:

Dialog in Two Places

#1 Post by poppyfish » Sun Jan 27, 2019 1:02 pm

Is it possible to have dialog show up in two different places? For example, narration & dialog aimed at the player show up in the usual bottom position, and background or overheard dialog show up somewhere else?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 718
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1 & 2
itch: per-k-grok
Location: Sverige
Contact:

Re: Dialog in Two Places

#2 Post by Per K Grok » Sun Jan 27, 2019 3:08 pm

poppyfish wrote:
Sun Jan 27, 2019 1:02 pm
Is it possible to have dialog show up in two different places? For example, narration & dialog aimed at the player show up in the usual bottom position, and background or overheard dialog show up somewhere else?
Yes it is possible.
You have script for where the dialog window (say) is placed in screens.rpy

find 'screen say(who, what):'

under that you will find the settings for the window under
'style window:'

You copy that and the block of text under that, and past it under the original block.
Change the name of the new block to
'style window2:'
and change the values for the position to what you want to have.

You now have two styles for the window position, 'style window' which is the default style, and style 'window2' that you could use as an alternative.

Let's say you have a character called Paul you could now define two characters for Paul. One to use when he is talking directly to the player and one where he is overheard
define P = Character("Paul", image="Pl")
define Poh = Character("Paul", image="Pl", window_style="window2")

P "This is Paul speaking to the player."
Poh "This is Paul being overheard of the player."

Post Reply

Who is online

Users browsing this forum: Google [Bot], Karrion