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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
MadBomber
Beginner


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: Tue Nov 12, 2002 12:07 pm   

Capturing gossip channel with 2-3 word char names
 
I've got the following being captured:
Razak gossips, 'they are dead now'
with this pattern:
* gossips, '*'$
But sometimes I get people with multiple names that will still work, but if they gossip something with "says" in it, it captures to my says window.
says, '*'$
So if I were to get
Darth Malcolm gossips, 'look what he Storm said. Storm says, 'dear god I suck''
that would #CAP the line to my gossip window AND my says window.

I was thinking of a pattern that would see if it was a name that consisited of one, two, or three words, and then cap it:
^{%w|%w %w|%w %w %w} gossips, '*'
Though this looks for "%w" and not an actual word of some type. Anyone have any ideas?

Thanks,
MadBomber

--------------------
Currently Using zMUD 6.37aBeta
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Nov 12, 2002 1:05 pm   
 
Try these two patterns:
^[a-zA-Z ] gossips, '*'$
^[a-zA-Z ] says, '*'$

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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