Below is my select screen. [name1] and [class1] are being used in dialogue after the character is chosen, however that doesn't persist through saving and reloading, or rolling back and then forward again. When I do, the name or class is changed to <class 'ren'py.display.layout.null'>. Is there anything I'm missing, or that I can add to make the character choice stick?
Code: Select all
screen character_select:
imagemap:
ground "menu/character_select.png"
hover "menu/character_select_frames.png"
alpha False
# Gemini
hotspot(19,16,238,568) action [SetVariable("name1", "Gemini"), SetVariable("class1", "Healer"), Return("smth")]
# Orin
hotspot(286,15,238,568) action [SetVariable("name1", "Orin"), SetVariable("class1", "Queen"), Return("smth")]
# Vyvian
hotspot(548,15,240,567) action [SetVariable("name1", "Vyvian"), SetVariable("class1", "Black Widow"), Return("smth")]