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.
deltadidirac
Regular
Posts: 123 Joined: Fri Nov 30, 2018 5:00 am
Projects: Artworks and Comics
Tumblr: deltadidirac
Deviantart: Deltadidirac67
Location: Europe
Contact:
#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.
Alex
Lemma-Class Veteran
Posts: 3094 Joined: Fri Dec 11, 2009 5:25 pm
Contact:
#2
Post
by Alex » Sat Oct 26, 2019 6:02 pm
Screen elements (buttons, hotspots, areas) can have Jump and Call actions.
xavimat
Eileen-Class Veteran
Posts: 1461 Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:
#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
deltadidirac
Regular
Posts: 123 Joined: Fri Nov 30, 2018 5:00 am
Projects: Artworks and Comics
Tumblr: deltadidirac
Deviantart: Deltadidirac67
Location: Europe
Contact:
#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
Users browsing this forum: Ahrefs [Bot] , DewyNebula , Majestic-12 [Bot]