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, 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 ➜ Subsition w/out losing colors.

Subsition w/out losing colors.

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


Posted by Drauk   Russia  (7 posts)  Bio
Date Mon 26 Apr 2004 03:27 PM (UTC)

Amended on Mon 26 Apr 2004 07:04 PM (UTC) by Drauk

Message
I know i can write a trigger that will call a World.AnsiNote, allowing me to make colored notes. But this is a lot of tedious work, and not all situation can be handled like this, e.g. mobs or items with names in non-standart color, etc.

I know this theme has been discussed a lot of times, but i dont have time to burrow thru forum archives, so the question is - it possible to substitute word (or several words) in text output, while retaining its original colors?

Top

Posted by Shadowfyr   USA  (1,792 posts)  Bio
Date Reply #1 on Mon 26 Apr 2004 07:02 PM (UTC)

Amended on Mon 26 Apr 2004 07:03 PM (UTC) by Shadowfyr

Message
Well. Nick says it is complicated. I still don't see however why the client couldn't automatically buffer any line that matches, so you can use commands like:

GetMatchedLineInfo
GetMatchedLineStyle
etc.

Then you can fiddle with it all you want, since you can still use 'omit from output' to kill the original, but also correctly retrieve all the color and style information.

The other possibility that occured to me is to have two triggers, one with a low sequence number to 'capture' the styles and temporarilly store them, then a second to omit the line and call a script to reproduce the line with stuff changed/added. I haven't tried that yet though. But I agree, this is one serious annoyance.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 26 Apr 2004 09:40 PM (UTC)
Message
The short answer is that simple word substitution is not possible. The closest you can get is to omit the original line and recolour the new line with world.ColourNote.

- 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,287 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.