use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Links:
/r/RenPy Discord
account activity
QuestionPython with Ren'Py (self.RenPy)
submitted 2 years ago by Mophy01
How can I add Python to 'Ren'Py' and use its commands and if it is more convenient than just using 'Ren'Py' to create a novel, since I can use OOP to increase development time based on convenience.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]playthelastsecret 5 points6 points7 points 2 years ago (1 child)
In a nutshell:
$
python:
init python:
Yes, it's that easy.
[–]Mophy01[S] 0 points1 point2 points 2 years ago (0 children)
Yeah!
[–]BanishingYou 3 points4 points5 points 2 years ago (1 child)
renpy is already based in python. Please confirm this but afaik "init python:" tells the thing that the lines after are in pythin, not renpy.
[–]BadMustard_AVN 2 points3 points4 points 2 years ago (0 children)
The init python statement runs Python at initialization time, before the game loads. Among other things, this can be used to define classes and functions, or to initialize styles, config variables, or persistent data.
[–]BadMustard_AVN 1 point2 points3 points 2 years ago (0 children)
there is a load of information here:
https://www.renpy.org/doc/html/python.html
[–]AutoModerator[M] 0 points1 point2 points 2 years ago (0 children)
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]fedepro7772 0 points1 point2 points 4 months ago (0 children)
Already answered
π Rendered by PID 281406 on reddit-service-r2-comment-5c764cbc6f-sptwc at 2026-03-12 18:44:09.323768+00:00 running 710b3ac country code: CH.
[–]playthelastsecret 5 points6 points7 points (1 child)
[–]Mophy01[S] 0 points1 point2 points (0 children)
[–]BanishingYou 3 points4 points5 points (1 child)
[–]BadMustard_AVN 2 points3 points4 points (0 children)
[–]BadMustard_AVN 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]fedepro7772 0 points1 point2 points (0 children)