[SOLVED] how call in a screen a part of dialogue?

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
deltadidirac
Regular
Posts: 102
Joined: Fri Nov 30, 2018 5:00 am
Projects: Slip Over Time
Tumblr: deltadidirac
Deviantart: Deltadidirac67
Location: Europe
Contact:

[SOLVED] how call in a screen a part of dialogue?

#1 Post by deltadidirac » Sat Oct 26, 2019 10:00 am

HI

If it is possible....

I would like to signal a part of a dialogue (with some command or particoular "script form") , so I can after call it as a text in a screen...

explication:

Code: Select all

label test:
       a" bla bla bla, [b]THIS IS THE TEXT I WANT RE-CALL[/b] , bla bla bla"
       b " yes you are right"
       jump elsewhere
after a screen will call the text I had signed:

Code: Select all

screen text_text:
              add generic bg
              vbox:
                    xpos 1 ypos 1
                    text "[b]THIS IS THE TEXT I WANT RE-CALL[/b]"
                   etc....
                   etc....
is it possible do something like that?
Thanks
Last edited by deltadidirac on Mon Oct 28, 2019 3:57 am, edited 1 time in total.

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

Re: how call in a screen a part of dialogue?

#2 Post by Alex » Sat Oct 26, 2019 6:02 pm

Screen elements (buttons, hotspots, areas) can have Jump and Call actions.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1433
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: how call in a screen a part of dialogue?

#3 Post by xavimat » Sun Oct 27, 2019 3:36 am

You can put the text inside a variable, and use that variable wherever (dialogue, screens...)
https://www.renpy.org/doc/html/text.htm ... ating-data
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
deltadidirac
Regular
Posts: 102
Joined: Fri Nov 30, 2018 5:00 am
Projects: Slip Over Time
Tumblr: deltadidirac
Deviantart: Deltadidirac67
Location: Europe
Contact:

Re: how call in a screen a part of dialogue?

#4 Post by deltadidirac » Mon Oct 28, 2019 3:56 am

Thanks to you 2

I solved my problem changing the logic on what I was doing, and all it's run for now.
Anyway thanks for the answers.

see you

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]