I nailed about changing text box to custom made one, but I want to change the text box in occasions such as when the Bad End or Good End is executed.
but how?
changing text box
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.
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.
- DebiruHaato
- Newbie
- Posts: 4
- Joined: Thu May 21, 2015 9:34 am
- Completed: None.
- Projects: Five Nights at Freddy's Meets Anime
- Tumblr: Aria-inthestarless-night
- Deviantart: DebiruHaato
- Contact:
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: changing text box
Use a variable. Then change the text box graphic based on a conditional branch in the "say screen" in screens.rpy
- DebiruHaato
- Newbie
- Posts: 4
- Joined: Thu May 21, 2015 9:34 am
- Completed: None.
- Projects: Five Nights at Freddy's Meets Anime
- Tumblr: Aria-inthestarless-night
- Deviantart: DebiruHaato
- Contact:
Re: changing text box
Can you explain it? I'm new to Renpy, so I don't quite understand...
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: changing text box
Everytime you want to change the dialogue window background you can do it by simply having several versions of the same character, each one with a different dialogue box.
Confused?
Okay, I will try to explain. So, imagine you have three different text boxes for three different occasions. Let's say you have a character named John Doe. You declare that character several times:Now if you want the first text box to appear when John Doe speaks, just use the first character definition:Then suddenly the weather change. Let's say your third dialogue box will look better on a rainy scene:Understood? Yes, it's a dirty trick.
Confused?
Okay, I will try to explain. So, imagine you have three different text boxes for three different occasions. Let's say you have a character named John Doe. You declare that character several times:
Code: Select all
init:
define jd1 = Character('John Doe', color = '#99FF33', window_background="jd_sunny.png")
define jd2 = Character('John Doe', color = '#99FF33', window_background="jd_moonlight.png")
define jd3 = Character('John Doe', color = '#99FF33', window_background="jd_rainy.png")
Code: Select all
jd1 "Oh, what a beautiful morning! I think I'll go for a walk."
Code: Select all
jd3 "Oh, no! It started to rain!
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]