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.


Conditional Hyperlinks

Maybe you want to be able to turn hyperlinks on or off for some reason. Putting this code into a Python init block will show hyperlinks only when persistent.hyperlinks_on is True:

    import re
    expr = re.compile(r'{a=.*?}|{/a}')
    def remove_hyperlinks(input):
        global expr
        if persistent.hyperlinks_on:
            return input
        else:
            return re.sub(expr, "", input)

    config.say_menu_text_filter = remove_hyperlinks

Of course, by tweaking the regular expression and using naming conventions for hyperlink labels, it's possible to filter only certain hyperlinks while leaving others in. This, for example, will only suppress hyperlinks beginning with "opt_":

    expr = re.compile(r'{a=opt_.*?}|{/a}')