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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Moab
Beginner


Joined: 02 Aug 2008
Posts: 25

PostPosted: Sat Aug 02, 2008 12:18 am   

Pattern Matching
 
hey, I was trying to set up a pattern match trigger to colorize a line of text and couldn't quite figure out how to do it. Seems things have changed a little from Zmud?

Sample Text:

102 102 116 sneaking>sip mug
You sip from your chipped, red-clay mug.
This tastes like ordinary ale.

102 102 116 sneaking>l
A Cramped, Blackened Room [EWU]
An overpowering smell of burnt flesh and wood stiffles the air in this

End Sample
What I would like is to get the "102 102 116 sneaking>" matched and colorized to yellow.

I tried a trigger like this:
%d %d %d %w>
#co yellow
(this is in the package editor)

What am I doing wrong?

Thanks!
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Sat Aug 02, 2008 2:19 am   
 
#TR {^%d %d %d %w~>} {#CW yellow}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Aug 02, 2008 10:06 am   
 
You need to set the trigger to operate on a prompt instead of a new line.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Moab
Beginner


Joined: 02 Aug 2008
Posts: 25

PostPosted: Sat Aug 02, 2008 11:48 am   
 
thanks folks!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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