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
Rycal
Newbie


Joined: 04 Jul 2008
Posts: 8

PostPosted: Fri Jul 04, 2008 2:48 am   

Delineating String List
 
I've been trying to solve this for awhile now, and I've trolled through forums and the help file for anything that could help me, but I couldn't find anything. I'm trying to create a basic Comm Capture, my trigger looks like this

Code:
^(%w) @comm '*'$
#capture Comm
#gag


The @comm variable is a string list that contains most of the things my mud uses for communication. I did not create this list using the command line. This list contains "chats, tells you, replies" etc. etc. The problem I've found when testing the trigger, is that it will not respond to each of these communiques individually, but instead looks for them as a whole. Instead of capturing:

Abdc chats 'This is a test'

It will ignore this, and instead looks for

Abdc chats|tells you|replies 'This is a test'

I discovered this by manually checking the script/pattern in that option and copying the test pattern directly. Any help would be appreciated.[/code]
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jul 04, 2008 10:48 am   
 
^(%w) {@comm} '*'$
#capture Comm
#gag
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Rycal
Newbie


Joined: 04 Jul 2008
Posts: 8

PostPosted: Fri Jul 04, 2008 2:47 pm   
 
Hahaha. Of course it would be something that simple. It worked Very Happy Thanks very much Vijilante.
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