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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum Goto page Previous  1, 2
Zugg Posted: Wed Apr 30, 2008 4:51 pm
Testing wildcards within {} trigger patterns
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Tue Jun 03, 2008 8:12 pm   
 
Well obviously I didn't go into complete detail the final product would look more like this:

Code:

#TR {^{%%dbkeys(@dbvar)}$} {#VAR wildcardword %1
#SHOW %db(@dbvar,%replace(%trigger,%1,"(%w)"))}

#VAR dbvar {This is a (%w) test string.=val1|key2=val2}


This is more of what I want. I'm hoping on an output of:

This is a good string.

Ill get a trigger fire of:

val1

From what I can tell this 'should' work. I don't have cmud for another couple hours to test.
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Tue Jun 03, 2008 11:16 pm   
 
The above DOESN't work, unfortunatly. Any other ideas on how to get the wildcarded word in the dbkey to assign to %1?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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