You're not making your character unicode compatible -- recognizing your language's characters. You have to place a "u" before your names. Like this:
That should keep the second error from happening.
For the first error, changing styles for characters only is a little more difficult because you have to put "say_" or "what_" or "who_" before your property, when outside of Character definements, you don't. To change the background of a specific character, you have to say:
Code: Select all
define s = Character(u'上官零', window_background=Frame("GUI//Message1.png", 15, 15))
Or just "window_background="GUI//Message1.png"" like you had before.
There isn't a better way to finding styles than using the Style Inspector and reading the wiki on properties, sorry ... I guess the best way is to just ask someone here.
If you want to just change the game's text box for ALL characters, not just for 上官零, then you should be altering these lines of code already in your options.rpy file:
Code: Select all
## These settings let you customize the window containing the
## dialogue and narration, by replacing it with an image.
## The background of the window. In a Frame, the two numbers
## are the size of the left/right and top/bottom borders,
## respectively.
# style.window.background = Frame("frame.png", 12, 12)
## Margin is space surrounding the window, where the background
## is not drawn.
# style.window.left_margin = 6
# style.window.right_margin = 6
# style.window.top_margin = 6
# style.window.bottom_margin = 6
## Padding is space inside the window, where the background is
## drawn.
# style.window.left_padding = 6
# style.window.right_padding = 6
# style.window.top_padding = 6
# style.window.bottom_padding = 6
## This is the minimum height of the window, including the margins
## and padding.
# style.window.yminimum = 250
You'll have to uncomment them to use them. That means remove the # mark.
Margin is how far the screen is away from the text box. Padding is how far the text in the text box is away from the edge of the box.