There is no "match_text_colour" option documented for SetTriggerOption.
If you had tried this:
world.note world.SetTriggerOption ("ClanPKTrigger", "match_text_colour", "y")
You would have got the number 30025 displayed.
(eUnknownOption (30025) Option name not found)
Looking more closely at the source code, all of those options are stored in a single field "match_style".
/*
Trigger iMatch flag will be as follows:
TBFS
T = what style to test, see below
B = background colour, see below
F = foreground colour, see below
S = what style bits are wanted, see below
*/
NORMAL 0x0000 // normal text
HILITE 0x0001 // bold
UNDERLINE 0x0002 // underline
BLINK 0x0004 // italic (sent to client as blink)
INVERSE 0x0008 // need to invert it
MATCH_TEXT 0x0080 // match on text colour?
MATCH_BACK 0x0800 // match on background colour?
MATCH_HILITE 0x1000 // match on bold bit?
MATCH_UNDERLINE 0x2000 // match on underline?
MATCH_BLINK 0x4000 // match on blink?
MATCH_INVERSE 0x8000 // match on inverse?
Colours
BLACK = 0
RED = 1
GREEN = 2
YELLOW = 3
BLUE = 4
MAGENTA = 5
CYAN = 6
WHITE = 7
The simple way of using this is to set up an example trigger and then do something like this:
/world.note GetTriggerOption ("ClanPKTrigger", "match_style")
This will show you the number to use in subsequent scripts.
However to explain exactly how it works, we'll set up an example and work through it.
I've set up a trigger with the "match" line reading:
Match: Red on Green - [X] Bold - [X] Italic - [ ] Inverse
In other words, match on red text on green background, bold must be set, italic must be set, inverse must not be set.
Typing this line:
/world.note GetTriggerOption ("ClanPKTrigger", "match_style")
gives:
55957
However it is easier to see the results in hex:
/world.note hex (GetTriggerOption ("ClanPKTrigger", "match_style"))
which gives:
DA95
Breaking this number up into 4 lots of 4 bits, we get this:
- D - what styles to test (MATCH_BLINK + MATCH_HILITE + MATCH_INVERSE) (8 + 4 + 1 = 13 which is "D" in hex)
Note, in this context "blink" means italic and "hilite" means bold.
- A - background match (MATCH_BACK + GREEN) (8 + 2 = 10 which is "A" in hex)
- 9 - foreground match (MATCH_TEXT + RED) (8 + 1 = 9)
- 5 - Wanted style (BLINK + HILITE) (4 + 1 = 5)
In the above we are *testing* blink+hilite+inverse (D) however we want to get the result 5, which would only happen if inverse was *off*.
To sum that up, you could do this to achieve the settings I have above:
/world.SetTriggerOption "ClanPKTrigger", "match_style", 55957
Having explained all that, you can see that doing an example and working off that would be easier. Also you could do what Flannel suggested and use ImportXML instead.