A simple trigger question

Posted by Arklier on Thu 30 Oct 2003 05:15 AM — 5 posts, 17,272 views.

#0
The MUSH I play on uses slightly different formats for in character transmissions: wide radio broadband, and direct radio two way transmisssions. Unfortunately, they're both the same color. When 20 people are ICly arguing over something inane over the broadband channel, then it gets difficult to weed out the direct two way radio transmissions. I would like to map the direct two way to a custom color, but all my efforts have ended in frustration. Can anyone lend a hand? The * represent where variable info starts and stops.

This shows up in the output window when sending:

[Radio] You send *name* a direct message: "Testing"

And this is what you see when receiving:

[Radio] *name* sends you a tightbeam radio transmission: "Testing"

For contrast, the broadband looks like this:

[Radio: (*channel letter*) *channel title*] *name* transmits, "*Testing."

You can also pose on both with : or ;.
Australia Forum Administrator #1
For the first one, just make a trigger that matches:

[Radio]*

Then you can make the trigger "change colour" to X.

For the broadband one, a trigger like this:

[Radio: *]*

... would do the trick. That could colour the line a different colour.
#2
Still comes out as white, I'm afraid. For the trigger, I have all the defaults, just changing the color and adding 'Keep evaluating' checked. It even comes up with matches when I go into it. I'm not sure what could be wrong.
Greece #3
OK, I read over your post quickly and didn't understand it, but this is my coloring trigger:
<trigger
match_text_colour="y"
text_colour="14"
custom_colour="14"
enabled="y"
keep_evaluating="y"
match="[A-Za-z]+ (quests|quest) \'(.*?)\'$"
regexp="y"
sequence="100"
>
</trigger>

Works flawlessly for me, just substitute the wildcards wherever you want.
Australia Forum Administrator #4
To debug this, first post a line or two that *should* match the trigger.

Then copy and paste the actual trigger. You can select it in the trigger dialog (list) and then click the copy button. You should then be able to post it into the forum looking a lot like the one Poromenos did.

Minor differences will matter, for instance:

[ Radio ]

(with the spaces) is not the same as:

[Radio]