So, getting quickly to the point,
I have a label that's a hallway and I want some of the door imagebutton to show a dialogue when clicked.
For example, now I got:
In the hallway buttons screen:
imagebutton ... action (Show(day_1_button_ban)
And another screen
screen day_1_button_ban:
window id "window"
xbox:
mc "(I should go take a shower first.)"
After launching it says "mc" isnt a valic xbox statement. I get that it's not recognizing the defined Character "mc" but I don't know how to do it. I know I can put:
text "(I should go take a shower first.)"
But, how do I show that it's the mc that's thinking it? (I also defined a color into the "mc" Character so I want it to be shown here to.)
I went through documentation but didn't find anything exatcly like this. Also, if there's another way of doing this, I'm all ears.
[SOLVED]Dialogue in a screen
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.
[SOLVED]Dialogue in a screen
Last edited by rebellare on Mon Nov 26, 2018 8:15 am, edited 1 time in total.
Re: Dialogue in a screen
Is the mc's name in a different box from the text or is it just beside it?
If it's simply in this format:
MC : I should go take a shower first
You can just simply supply the variable within the text displayable as so.
You can also create a style to apply to your text displayable if you'll keep re-using it over and over again. Likewise, if the name is separated from the text then just create a window where the name should be and position it accordingly. There are more ways but it's really what you prefer in the end.
If it's simply in this format:
MC : I should go take a shower first
You can just simply supply the variable within the text displayable as so.
Code: Select all
screen day_1_button_ban:
window id "window"
xbox:
text '[name]: I should go take a shower first.'
Re: Dialogue in a screen
Good enough, thanks =)
Who is online
Users browsing this forum: No registered users