Cannot make name box and dialogue box appear [SOLVED]
Posted: Sun Jan 17, 2016 3:43 am
I'm a newbie that's learning how to use ren'py to tell stories like everyone else. But I have a lot of questions and issues.
These questions are solved
My scrypt code
My options code
My screens code
Can anyone shed some light on what I'm doing wrong?
These questions are solved
1: How do I change my font size? I keep trying to change the default font size but whenever I try to preview the game I keep getting an error. [SOLVED]
2: How do I change the default text box (Not just the text but the box itself) colour depending on who is speaking? Surely there has to be a way.
3: How do I make a type writter effect on my text? Instead of the text just appearing there?
4: How to change character names in the middle of the game? (I want characters who have not been introduced yet to have "???" until their name is mentioned, then I want the text box to change to their name the next time they speak.)
EDIT: I now have new issues. I have figured out how to make name boxes, but my custom name boxes and my custom speech boxes can't seem to coexist, It's either one works while the other doesn't no mater what I do. This is the result of following various tutorials that people have linked to.2: How do I change the default text box (Not just the text but the box itself) colour depending on who is speaking? Surely there has to be a way.
3: How do I make a type writter effect on my text? Instead of the text just appearing there?
4: How to change character names in the middle of the game? (I want characters who have not been introduced yet to have "???" until their name is mentioned, then I want the text box to change to their name the next time they speak.)
My scrypt code
Code: Select all
define n = Character('Neptune', color="#ffffff", window_background="Lblue.png")
define u = Character('Uranus', color="#ffffff", window_background="Green.png")
define a = Character('???', color="#ffffff", window_background="anonbox.png")
$ n = Character('Neptune', color = "#ffffff", show_two_window=True)
$ u = Character('Uranus', color = "#ffffff", show_two_window=True)
$ a = Character('???', color = "#ffffff", show_two_window=True)
$ n = Character("Neptune", color = "#ffffff", window_background="Lbluename.png", what_xpos=0, what_ypos=5, who_xpos=2, who_ypos=0.0, show_two_window=True, show_who_window_style="say_who_window2")
$ a = Character("???", color = "#ffffff", window_background="Aname.png", what_xpos=0, what_ypos=5, who_xpos=2, who_ypos=0.0, show_two_window=True, show_who_window_style="say_who_window1")
$ u = Character("Uranus", color = "#ffffff", window_background="Greenname.png", what_xpos=0, what_ypos=5, who_xpos=2, who_ypos=0.0, show_two_window=True, show_who_window_style="say_who_window3")
Code: Select all
style.say_who_window2 = Style ('say_who_window')
style.say_who_window2.background = Frame("Lbluename.png", 15, 15)
style.say_who_window2.xalign = 0.0
style.say_who_window2.yalign = 1.0
style.say_who_window2.xpos = 2
style.say_who_window2.ypos = 49
style.say_who_window2.left_padding = 15
style.say_who_window2.top_padding = 15
style.say_who_window2.right_padding = 15
style.say_who_window2.bottom_padding = 15
style.say_who_window1 = Style ('say_who_window')
style.say_who_window1.background = Frame("Aname.png", 15, 15)
style.say_who_window1.xalign = 0.0
style.say_who_window1.yalign = 1.0
style.say_who_window1.xpos = 2
style.say_who_window1.ypos = 49
style.say_who_window1.left_padding = 15
style.say_who_window1.top_padding = 15
style.say_who_window1.right_padding = 15
style.say_who_window1.bottom_padding = 15
style.say_who_window3 = Style ('say_who_window')
style.say_who_window3.background = Frame("Greenname.png", 15, 15)
style.say_who_window3.xalign = 0.0
style.say_who_window3.yalign = 1.0
style.say_who_window3.xpos = 2
style.say_who_window3.ypos = 49
style.say_who_window3.left_padding = 15
style.say_who_window3.top_padding = 15
style.say_who_window3.right_padding = 15
style.say_who_window3.bottom_padding = 15
Code: Select all
if not two_window:
# The one window variant.
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
else:
# The two window variant.
vbox:
style "say_two_window_vbox"
if who:
window:
style "who_window_style"
text who:
id "who"