Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Manx
Apprentice


Joined: 10 Oct 2000
Posts: 152
Location: USA

PostPosted: 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.

Reply with quote
Hello Sailor
Newbie


Joined: 18 Oct 2001
Posts: 2

PostPosted: 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.
Reply with quote
Manx
Apprentice


Joined: 10 Oct 2000
Posts: 152
Location: USA

PostPosted: Thu Oct 18, 2001 4:48 am   
 
Yeah, you're right. I guess this script is pretty expandable.

Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net