This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.


When you wish to distribute your game to a wider audience than just hentai fans, why not make hentai optional? Using the following code, a "Hentai" option is added to the preferences. It defaults to False, so that your game would be teen-safe from the start.

Add this to any file.

init python:

    # Set the default value.
    if persistent.hentai is None:
        persistent.hentai = False

Add this to the preferences screen, in screen.rpy:

            frame:
                style_group "pref"
                has vbox

                label _("Transitions")
                textbutton _("All") action Preference("transitions", "all")
                textbutton _("None") action Preference("transitions", "none")

#### Begin new code.
            frame:
                style_group "pref"
                has vbox

                label _("Hentai")
                textbutton _("Enabled") action SetField(persistent, "hentai", True)
                textbutton _("Disabled") action SetField(persistent, "hentai", False)

#### End new code.
            frame:
                style_group "pref"
                has vbox

                label _("Text Speed")
                bar value Preference("text speed")

Then when it comes time for a hentai scene:

if persistent.hentai:
    # Let's get it on.
else:
    # Holding hands is more than enough.