This is the select screen. The SetVariable("char_choice", "g") appears to be doing nothing so far, even in conjunction with the next bit of code.
Code: Select all
screen character_select:
imagemap:
ground "menu/character_select.png"
hover "menu/character_select_frames.png"
alpha False
hotspot(19,16,238,568) action [SetVariable("name1", "Gemini"), SetVariable("class1", "Healer"), SetVariable("char_choice", "g"), Return("smth")]
hotspot(286,15,238,568) action [SetVariable("name1", "Orin"), SetVariable("class1", "Queen"), Return("smth")]
hotspot(548,15,240,567) action [SetVariable("name1", "Vyvian"), SetVariable("class1", "Black Widow"), Return("smth")]
Code: Select all
image char = ConditionSwitch(
char_choice==o,"avatars/handsomeo.png",
char_choice==g,"avatars/handsomeg.png",
char_choice==v,"avatars/handsomev.png")
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/declared.rpy", line 30, in script
image char = ConditionSwitch(
File "game/declared.rpy", line 31, in <module>
char_choice==o,"avatars/handsomeo.png",
NameError: name 'char_choice' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/declared.rpy", line 30, in script
image char = ConditionSwitch(
File "C:\Program Files (x86)\RenPy\renpy\ast.py", line 921, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\Program Files (x86)\RenPy\renpy\python.py", line 1788, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/declared.rpy", line 31, in <module>
char_choice==o,"avatars/handsomeo.png",
NameError: name 'char_choice' is not defined
Windows-7-6.1.7601-SP1
Ren'Py 6.99.13.2919
The Dark Court's Apprentice 0.0