These questions are 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.)
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"
