This tutorial will show you how to colour parts of text, like in the actual campaign.
This is most commonly done in quests as updates etc. So we’ll jump right into the deep end with the action, then I will explain how to use colour.
Create a new action as follows:
A Quest Message:
Quest – Display to (All Players) the Quest Update message: MAIN QUEST Find an…
The message value being as follows:
MAIN QUEST
Find and Kill Joe Bloggs before raiding his house
– Kill Joe Bloggs
– Get to his house
Now, we want to make the text ‘MAIN QUEST’ gold. To do this, we have to add some complicated scripting in.
In the end, the message value will look like this:
|cffffcc00MAIN QUEST|r
Find and Kill Joe Bloggs before raiding his house
– Kill Joe Bloggs
– Get to his house
Right now, you’re probably thinking how the **** did I come up with that? Well, let me explain.
The line with ‘MAIN QUEST’ in is split up into many parts:
- ‘|cff’
- This is just here to show the start of the colour, begin it with a pipe |
- ‘ffcc00’
- This part is the colour written in hex.
- ‘MAIN QUEST’
- This is simply the text that you want to be in a different colour
- ‘|r’
- This ends the coloured section, and returns the rest of the text to the default colour (white).
That is all there is to it, apart from actually understanding the colour.
The colour is made up of three different colours: Red, Green, and Blue. The first two figures represent red, the second two green, and the last two are blue.
This could be represented as:
RRGGBB
The colour coding is hexadecimal, and for those of you that do not know, the numbers go as follows:
00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0a, 0b, 0c, 0d, 0e, 0f,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1a, 1b, 1c, 1d, 1e, 1f, …
And so on, until it gets to:
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 9a, 9b, 9c, 9d, 9e, 9f,
a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, …
The maximum number is 256, represented by ‘ff’.
Here are a few examples of colours:
000000 – Black
ffffff – White
ff0000 – Red
00ff00 – Green
0000ff – Blue
ffff00 – Yellow
ff00ff – Pink
00ffff – Cyan
Useful Colours
888888 – Grey (for completed quests)
ffcc00 – Gold (for titles of quests)