Ren’Py + Python: Part 5: Custom Text Tags

1_Logo

Working with Ren’Py:

Advanced Ren’Py:

Customizing Ren’Py:

Ren’Py + Python:

Ren’Py is a engine for creating visual novels. It comes with a suite of tools for taking code and transforming it into programs that can be run on Windows, Mac, Linux, and even, with a little more work, mobile platforms like Android and iOS.

Beyond the showing of text and images, Ren’Py can also be extended through introducing new user interface elements, changing its defaults images, and combining Python with its own code to create even more interactive projects.


 

Custom Text Tags

Like Displayables and Statements, custom text tags can also be created. Like other text tags, user-defined tags change the size, layout, or other aspects of the visual presentation of text within dialogue.

screenshot-2018-07-26-06-32-16-e1532601172610.png

Functions used for custom text tags use three arguments: tag, the name of the text tag; argument, any arguments passed to the text tag; and contents, the text between the text tags.

Screenshot 2018-07-26 06.36.55

GitHut Gist Version: