Skip to content

Instantly share code, notes, and snippets.

@videlais

videlais/script.rpy Secret

Created Jul 26, 2018
Embed
What would you like to do?
Custom text tags
init python:
def big_tag(tag, argument, contents):
size = int(argument) * 20
return [
(renpy.TEXT_TAG, u"size={}".format(size)),
] + contents + [
(renpy.TEXT_TAG, u"/size"),
]
config.custom_text_tags["big"] = big_tag
label start:
"This is {big=3}BIG!{/big}"
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.