[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

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.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Replacement

Replacement

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Unregistered user   (72 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (23,043 posts)  [Biography] 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
[Go to top] 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] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]