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.
In Python . I'm in a big python loop so I can't suddenly pull out some Ren'Py code. But I made it work using call_in_new_context since it accepts arguments and does send back the return value. I only noticed one little strange thing : making the returned variable dynamic (with renpy.dynamic) prevents the variable from being returned (it tries to return a variable with the same name from the global scope). Of course, this is all using 6.3.0d, so... maybe it was fixed ^^;.
Hm... this bug was present in the current version of Ren'Py as well, but it will be fixed in the next. Let me know if you want the updated file, so you can develop assuming then new behavior.
Supporting creators since 2004 (When was the last time you backed up your game?)
Mm, it's okay. I'm using a single variable named "dres" that I'll be sure not to use anywhere else ^_^. And if it does annoy me, I'm sure the next version will have been released by then .