Gammon Forum
Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
MUSHclient
General
Replacement
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Unregistered user
(72 posts) bio
|
Date
| Sat 24 Feb 2001 (UTC) |
Message
| say you have this line of output:
"A Drow Elf starts casting an offensive spell."
how would i change it to:
"A Drow Elf starts casting an OFFENSIVE SPELL."
and possibly change the color of "OFFENSIVE SPELL."
so that i might see it better in spam
- Borixanon | top |
|
Posted by
| Nick Gammon
Australia (23,043 posts) bio
Forum Administrator |
Date
| Reply #1 on Sun 25 Feb 2001 (UTC) |
Message
| The simplest thing is to change the colour, because changing the text is more complex.
Make a trigger like this:
Match on: offensive spell
Regular expression: checked
Colour: (Choose a custom colour)
Then go into the custom colour configuration screen and make the custom colour really stand out, eg white on bright red, or something like that.
You could also get the trigger to play a sound (eg. a siren or bell) to warn you about this situation.
You *can* change the wording, by doing something like this:
Match on: *offensive spell*
Send: %1 OFFENSIVE SPELL %2
Send to: Output
Regular expression: unchecked
Omit from output: checked
What this does is:
1. Omit the incoming line from the output window
2. Instead, send its own version with OFFENSIVE SPELL in capitals to the output window
However the problem here is that you cannot also change the colour, it is one or the other.
Personally I think the colour change is simpler and less messy.
|
- 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.
10,462 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.