[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
User avatar
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 » Thu Sep 22, 2022 4:59 pm

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
Eileen-Class Veteran
Posts: 1882
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 » 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
< < insert Rick Cook quote here > >

User avatar
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 » Fri Sep 23, 2022 12:58 am

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
Eileen-Class Veteran
Posts: 1882
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 » Fri Sep 23, 2022 3:50 pm

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

User avatar
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 » Sat Oct 08, 2022 3:13 am

Thanks everyone for the replies!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]