|
Manx Apprentice
Joined: 10 Oct 2000 Posts: 152 Location: USA
|
Posted: Tue Oct 16, 2001 8:05 pm
Simple, yet Useful Highlight Script |
This code is very simple. However, I found I use it very much. It is used to highlight words from the MUD output.
Usage: highlight <word or phrase>
The code is below:
Alias highlight:
Command:
#IF (%ismember( %-1, @highlight)) {
#SAY %-1 is no longer highlighted.
#DELITEM highlight {%-1}
} {
#SAY %-1 will now be highlighted.
#ADDITEM highlight {%-1}
}
Trigger:
Pattern: {@highlight}
Command: #CW yellow
That's it.
|
|
|
|
Hello Sailor Newbie
Joined: 18 Oct 2001 Posts: 2
|
Posted: Thu Oct 18, 2001 4:44 am |
If you use more than one highlight list (highlight1, highlight2, etc) with a different color for each, you can (for instance) separate PCs' names into friends and enemies categories.
|
|
|
|
Manx Apprentice
Joined: 10 Oct 2000 Posts: 152 Location: USA
|
Posted: Thu Oct 18, 2001 4:48 am |
Yeah, you're right. I guess this script is pretty expandable.
|
|
|
|
|
|