Color
You can apply color directly to words instead of just the entire body of text by adding \C[]
followed by a HEX color code. E.g. RED would be:FF0000
To learn what each HEX digit represents, see Web colors.
-
For example:
Find the \C[FFFF0000]Man\C[FFFFFFFF] in the \C[FF0000FF]Tavern\C[FFFFFFFF] to complete the quest
would appear like this: Find the Man in the Tavern to complete the quest.
The two additional digits at the start of the HEX color code, seen in the example above, represent optional alpha transparency which you’re free to exclude if you prefer.
You can also specify 12 and 16 characters for the top and bottom parts of the text (for creating linear gradients) however keep in mind that the color is modulated with the font color and as such, may not behave as expected.
For greater clarity, here are the four different forms that you can use again – with their differences:
-
RRGGBB
– 6 digit color code for solid color (no alpha) -
AARRGGBB
– 8 digit color code for solid color (with alpha) -
RRGGBBRRGGBB
12 digit color code for linear gradient (no alpha) -
AARRGGBBAARRGGBB
16 digit color code for linear gradient (with alpha)
Delay
You can delay the display part of text for a specified amount of time by adding \D[]
and the amount of delay, in milliseconds.
-
For example:
\D[1000]
would delay the text display by one second.
Variable
Please note: This section only applies when using either the “Message Box” or “Advanced Message Box” events. For Text / Graphic Fields, use the “Retrieve Text” Use Value instead.
You can display the value of a Global Variable, Local Variable or Switch by using \V[]
followed by the name of your Variable.
-
For example:
\V[X]
would display whatever value is inside Global Variable “X”.
You can also display the value of a Map/Interface Variable or Actor Variable by using \V[]
followed by Map(“Map_Name”).Variable(“Variable_Name”)
Replacing “Map” at the start with “Interface” or “Actor” respectively.
-
For example:
\V[Interface(“HUD”).Variable(“Test”)]
would display whatever value is inside Interface Variable “Test” on the “HUD” Interface.
You can also display the nth element in a Collection or an element in a Table by using \V[]
followed by Collection.Item
or Table.Item
and then (Collection_Name,Entry_Number)
or (Table_Name,X,Y,Z)
.
-
For example:
\V[Collection.Item(Col1,1)]
would display the first entry inside the Collection “Col1”.