Text Variables

The text variables system allows you to bake a line of formatted text or any text in general into a simple variable that you can input when editing a card, and then have it automatically re-format when displayed on cards. To access the variables panel, hover your mouse in the top-right, and select “Variables”.

When creating a new variable, perhaps you prefer some structure, for example {faction_undead} as the variable, or a less structured variable like simply factionundead. For the formatting field, you can input something like:

  • <b>UNDEAD </b><size=130%<voffset=0.3em><sprite=”custom_img2”></voffset></size>

Now, when you simply input {faction_undead} when editing a text element, it will format to UNDEAD with the 5th icon in the text icon picker embedded in the text that is slightly larger than normal, and slightly offset vertically. To learn more about text formatting like <size=150%>, see Text Formatting.