Code: Select all
init:
$ flash = Fade(.25, 0, .75, color="#fff")
$ redflash = Fade(.25, 0, .75, color="#FF0000")
$ mood = 0
$ e = Character('Parker', color='#009933', \
show_side_image=ConditionSwitch('mood==0', 'par_smile',
'mood==1', 'par_surp_frown', \
'mood==2', 'par_smile_talk', \
'mood==3', 'par_frown', \
'mood==4', 'par_blush_smile', \
'mood==5', 'par_open_mad', \
'mood==6', 'par_surp_smile', \
'mood==7', 'par_blush', \
'mood==8', 'par_sheep_blush', \
'mood==9', 'par_determined', \
'mood==10', 'par_norm_frown', \
'mood==11', 'par_closedeye_blush', \
'mood==12', 'par_lidded_blush_smile', \
'mood==13', 'par_sleepy', \
'mood==14', 'par_sleepy_frown', \
'mood==15', 'par_crying', \
'mood==16', 'par_bitter', \
'mood==17', 'ke_frown', \
'mood==18', 'ke_smile', \
'mood==19', 'ke_surp', \
'mood==20', 'ke_open_surp', \
xalign=0, yalign=1.0), window_left_padding=210)
label start:
$mood = 17
e "Test"
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 189, in script
e "test"
Exception: Switch could not choose a displayable.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 189, in script
e "test"
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\ast.py", line 558, in execute
renpy.exports.say(who, what, interact=self.interact)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\exports.py", line 925, in say
who(what, interact=interact)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\character.py", line 817, in __call__
self.do_display(who, what, cb_args=self.cb_args, **display_args)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\character.py", line 683, in do_display
**display_args)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\character.py", line 462, in display_say
what_text = show_function(who, what_string)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\character.py", line 667, in do_show
**self.show_args)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\character.py", line 272, in show_display_say
return renpy.display.screen.get_widget(screen, "what", layer)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\screen.py", line 646, in get_widget
screen.update()
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\screen.py", line 296, in update
self.child.visit_all(lambda c : c.per_interact())
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\core.py", line 306, in visit_all
d.visit_all(callback)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\core.py", line 306, in visit_all
d.visit_all(callback)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\core.py", line 308, in visit_all
callback(self)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\screen.py", line 296, in <lambda>
self.child.visit_all(lambda c : c.per_interact())
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\layout.py", line 1013, in per_interact
child, _ = self.function(self.st, self.at, *self.args, **self.kwargs)
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\layout.py", line 1079, in condition_switch_show
return condition_switch_pick(switch), None
File "C:\Users\egg\Documents\renpy-6.17.6-sdk\renpy\display\layout.py", line 1076, in condition_switch_pick
raise Exception("Switch could not choose a displayable.")
Exception: Switch could not choose a displayable.
Windows-post2008Server-6.2.9200
Ren'Py 6.17.6.512