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've been experimenting with random generating in renpy, I was wondering if I could extract the text results? Preferably what the the text says on the screen, rather than the exact code, but I'll take either.
Ah yes I believe that's what I meant! And where should I put the python code? After all this time on renpy I barely know much code even less about python haha!
The first part you'd put just before you first use the sentence - you'll need to substitute the "who" part of the renpy.say function with whichever character is speaking. It basically creates a string of your sentence and stays the same for the remaining time in the game unless you change it.
The exporting part of the code can come straight after.
Since they're all python statements, you'll want to put it inside a python: block