Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I'm making a glossary and want to make textbuttons that change the character's picture. Atm I have a different set of buttons for each character but I'd like to make only 1 set for all of them. Just to tidy up.
It looks like this atm:
I made a class with the selectedCharacter variable and this is how I tried to 'automate' the whole thing. The first part works fine. What bricks it is finding the file.
File "renpy/display/image.py", line 577, in _scope
return self.find_target(scope, update)
File "renpy/display/image.py", line 652, in find_target
raise Exception(error)
Exception: DynamicImage u'[selectedCharacter.imageName]': could not find image. (u'gui/custom/glossary/selectedCharacter_glossary1.webp')