Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ A simple trigger question
A simple trigger question
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Arklier
(3 posts) Bio
|
Date
| Thu 30 Oct 2003 05:15 AM (UTC) |
Message
| 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 ;. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 02 Nov 2003 08:14 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Arklier
(3 posts) Bio
|
Date
| Reply #2 on Mon 03 Nov 2003 10:36 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #3 on Mon 03 Nov 2003 11:53 AM (UTC) |
Message
| 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. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Tue 04 Nov 2003 04:01 AM (UTC) |
Message
| 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]
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,259 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top