[SOLVED] Alternative dialogue when a CG appears.

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
alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

[SOLVED] Alternative dialogue when a CG appears.

#1 Post by alexei »

My game's default dialogue is like this.
Image

But when a cg appears, I want it to look like this.

Image

Any idea as to how I should approach it?
Last edited by alexei on Sat Oct 08, 2022 3:14 am, edited 1 time in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2434
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Alternative dialogue when a CG appears.

#2 Post by Ocelot »

Make an alterantive say screen (with quock menu moved, background and side images removed) for use with CG and use say with arguments to select it during CG:

Code: Select all

ano "of course. Make yourself comfortable."
# . . .
show cg of_some_kind
higa Let me help you with the cooking!" (screen="your_new_screen")
https://www.renpy.org/doc/html/dialogue ... -arguments
< < insert Rick Cook quote here > >

alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

Re: Alternative dialogue when a CG appears.

#3 Post by alexei »

Ocelot wrote: Thu Sep 22, 2022 5:22 pm Make an alterantive say screen (with quock menu moved, background and side images removed) for use with CG and use say with arguments to select it during CG:

Code: Select all

ano "of course. Make yourself comfortable."
# . . .
show cg of_some_kind
higa Let me help you with the cooking!" (screen="your_new_screen")
https://www.renpy.org/doc/html/dialogue ... -arguments
let's say I named the new screen like this

Code: Select all

screen say_cg(who, what):
I should define it like this in the script?

Code: Select all

higa Let me help you with the cooking!" (screen="say_cg")

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2434
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Alternative dialogue when a CG appears.

#4 Post by Ocelot »

Pretty much, yes.
< < insert Rick Cook quote here > >

alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

Re: Alternative dialogue when a CG appears.

#5 Post by alexei »

Thanks everyone for the replies!

Post Reply

Who is online

Users browsing this forum: No registered users