Skip to content

Instantly share code, notes, and snippets.

@videlais
Created July 26, 2018 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/76b16d82a743f865f8950da49d6e0d77 to your computer and use it in GitHub Desktop.
Save videlais/76b16d82a743f865f8950da49d6e0d77 to your computer and use it in GitHub Desktop.
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