My Side Image Won't Stay...
Posted: Sat Oct 10, 2015 12:33 pm
Hello.
I tried using this topic (http://lemmasoft.renai.us/forums/viewto ... =8&t=17939) to help me make my side image stay, but my code doesn't seem to work at all.
In my "say" screen, I have:
And in my script, I have:
When I start the game to see if it worked, I keep getting traceback files that say:
...when the character, Sariya, isn't even supposed to speak there.
Can someone tell me what I'm doing wrong?
I tried using this topic (http://lemmasoft.renai.us/forums/viewto ... =8&t=17939) to help me make my side image stay, but my code doesn't seem to work at all.
In my "say" screen, I have:
Code: Select all
# If there's a side image, display it above the text.
default noMC = False
if noMC:
if side_image:
add side_image
else:
add SideImage() xalign 1.0 yalign 1.0
else:
add "sariya_side" xalign 1.0 yalign 1.0
Code: Select all
init:
image sariya_side = ConditionSwitch(
"sa == 'wnormal'", "Sariya/Sari_W_Normal.png"
"sa == 'whappy'", "Sariya/Sari_W_Happy.png"
"sa == 'wderp'", "Sariya/Sari_W_Derp.png"
"sa == 'wlove'","Sariya/Sari_W_Love.png"
"sa == 'wmad'", "Sariya/Sari_W_Mad.png"
"sa == 'wangry'", "Sariya/Sari_W_Angry.png"
"sa == 'wsad'", "Sariya/Sari_W_Sad.png"
"sa == 'wyay'", "Sariya/Sari_W_Yay.png"
"sa == 'wsorry'", "Sariya/Sari_W_Sorry.png"
"sa == 'wupset'", "Sariya/Sari_W_Upset.png"
"sa == 'wproud'", "Sariya/Sari_W_Proud.png"
"sa == 'welated'", "Sariya/Sari_W_Elated.png"
"sa == 'wcute'", "Sariya/Sari_W_Cute.png"
"sa == 'wconfused'", "Sariya/Sari_W_Confused.png"
"sa == 'wemba'", "Sariya/Sari_W_Embarrassed.png"
)
# Declare characters used by this game.
##Sariya
define sa = Character('Sariya', color="#FFFFFF", what_prefix='"',
what_suffix='"', show_two_window=True)
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 195, in script
centered "{color=#fff}{i}RING-DING DING-DONG.{/i}{/color}"
NameError: name 'Sariya' is not defined
Can someone tell me what I'm doing wrong?