[a]hello[/a]. These attributes can be used by your game to do things like change the formatting of the text, add animations, and more.
[this], and closed like
[/]is the close-all marker. It closes all currently open attributes. For example:
]characters to your player. To prevent the markup parser from treating as special characters, you can escape them. Text that has been escaped will be treated as plain text, and will not be interpreted by the parser.
\in front of it:
nomarkupattribute. This attribute makes the parser ignore any markup characters inside it.
], wrap them in the
characterattribute is used to mark the part of the line that identifies the character that's speaking.
:(and any trailing whitespace after it) with the
characterattribute. This attribute has a property,
name, which contains the text from the start of the line up to the
:. If a
:isn't present, or a
characterattribute has been added in markup, it won't be added.
selectmarker uses the value of a variable to choose an outcome.
pluralmarker uses the value of a number to decide on the plural class for that number.
ordinalmarker uses the value of a number to decide on the ordinal class for that number.
value, and use this to decide what text should be used in the line.
selectmarker is the simplest of the built-in replacement markers. It takes the value of the
valueproperty, and uses that to choose a replacement.
ordinalmarkers take a number in its
valueproperty, and use that to determine the plural or ordinal number class of that value.
ordinalhave a property called
value, just like
select. They then have a property for each of the current locale's plural classes. These can be:
pluralselects a number's cardinal plural class.
ordinalselects a number's ordinal plural class.
%character. This character will be replaced with the value provided to the
ordinalmarker works similarly, but uses the ordinal plural class: