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.
Wow! Could you upload a little example so that users like me can try it out? I'm not firm with python classes but I can imagine that there is a solution not to always write default. Perhaps this can even be solved in the callback function. But I need to fiddle with it
absolutely! i had to fix some things because i wrote that code at 2am
attachment for the game is here
inkacorn wrote: ↑Fri Dec 01, 2023 7:01 pm
absolutely! i had to fix some things...
This works like a charm, no need to change the code because you don't need to write eileen default like thought.
Tested with Ren'Py 7.5.3 which uses Python 2. but I had to uncommend the 'new' config variable in gui.rpy
## Enable checks for invalid or unstable properties in screens or transforms
# define config.check_conflicting_properties = True
Ren'Py complaint that config.check_conflicting_properties is unknown (also in Renpy 8 )
In Version 8 which uses Python 3 I got an error from screens.rpy in line 894:
Invalid Syntax -> raise TypeError, "Input parameter must be list, set or tuple"
So i changed it and got it to work with brackets instead of a comma: