i wanted this character zephyr to switch their original expression (normal) to a second expression (sad)
but i am getting this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 411, in script
zeph sad "\"Your fault for not paying attention.\""
Exception: Say has image attributes (u'sad',), but there's no image tag associated with the speaking character.
Code: Select all
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 411, in script
zeph sad "\"Your fault for not paying attention.\""
File "renpy/ast.py", line 721, in execute
renpy.exports.say(who, what, *args, **kwargs)
File "renpy/exports.py", line 1419, in say
who(what, *args, **kwargs)
File "renpy/character.py", line 1189, in __call__
old_attr_state = self.handle_say_attributes(False, interact)
File "renpy/character.py", line 1001, in handle_say_attributes
if self.resolve_say_attributes(predicting, attrs):
File "renpy/character.py", line 927, in resolve_say_attributes
raise Exception("Say has image attributes %r, but there's no image tag associated with the speaking character." % (attrs,))
Exception: Say has image attributes (u'sad',), but there's no image tag associated with the speaking character.
i used this code to define my character callbacks and stuff:
Code: Select all
define zeph = Character("Zephyr",
who_color="#795d3d",
callback=active_Zephyr)
Code: Select all
#Zephyr
init python:
def active_Zephyr(event, interact=True, **kwargs):
global current_speaker
if not interact:
return
if event == "begin":
current_speaker = 'Zephyr'
renpy.music.play("audio/softestblip.wav", channel="blips")
if event == "slow_done":
renpy.music.stop(channel="blips")
image zephyr normal = ConditionSwitch(
"current_speaker == 'Zephyr'", "zephyr normal.png",
"current_speaker != 'Zephyr'", im.MatrixColor("zephyr normal.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)),
"current_speaker == 'Max'", im.MatrixColor("zephyr normal.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)))
image zeph sad= ConditionSwitch(
"current_speaker == 'Zephyr'", "images/zephyr sad.png",
"current_speaker != 'Zephyr'", im.MatrixColor("images/zephyr sad.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)),
"current_speaker == 'Max'", im.MatrixColor("images/zephyr sad.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)))
aaaaaaaaaaand
Code: Select all
show athena happy at placement2
show arthur happy at placement3
show zephyr normal at placement4
with dissolve
mc "{i}I nearly jump out of my skin and turn my head to see my younger brother looking at us.{/i}"
mc "{i}He has his phone in his hand, but he looks sleepy.{/i}"
mc "\"Jesus Christ, Zeph, don't spook me like that.\""
zeph sad "\"Your fault for not paying attention.\""
zeph normal "\"Anyway, mom and dad want us in the car already. Going home in a few, apparently.\""
---
i have checked the names of the files and it matches with the supposed image tag (zephyr sad.png) but i still get the same exception
i have tried:
- switching the names of the tag (zephyr frown.png / zephyr lookaway.png / zephyr side.png) as well as the corresponding code
- putting @ before the tag in the script (zeph @ sad / zeph @ normal) so it would switch from normal, to sad but it didnt work
thank you!