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.
Found this while trying to do the same sort of thing this evening and was concerned because I was getting TypeError notices when trying it out, and I wasn't sure if I was seeing anything about this in the Screen Actions documentation or not.
Was just about to post a question about it when I noticed one last thing to try out—and it started working.
TL;DR: If adding the named arguments isn't working for you, make sure that the screen definition includes those arguments! Once I added the parameters to my screen it started working.
=> This will fail and produce a TypeError because the screen doesn't know what to do with the values:
Kaji wrote: ↑Thu Jan 19, 2023 8:20 pm
Found this while trying to do the same sort of thing this evening and was concerned because I was getting TypeError notices when trying it out, and I wasn't sure if I was seeing anything about this in the Screen Actions documentation or not.
Actually, you can just simply pass the arguments without keywords, if you remind yourself, that the second argument has to be the transition that is used when showing the screen. In the case you don't want to pass the transition argument, you can just use keyword arguments of course. There is also a mistake in your example.