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


Joined: 20 May 2004
Posts: 3
Location: USA

PostPosted: Sat May 29, 2004 6:56 am   

matching on a string list with wildcards
 
I have the following list and trigger:

#VAR diagMessageList {snaps %w fingers in front of you.|You are confused as to the effects of the venom.}
#TRIGGER {{@diagMessageList}} {diag}

however the trigger only ignores the wildcard and looks for the "%w" literaly.

How can I make this trigger match on the string:
"snaps her fingers in front of you."?

Thanks!
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Sat May 29, 2004 8:01 am   
 
Have you tryed using () around the %w?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat May 29, 2004 3:56 pm   
 
Use literal strings.
#VAR diagMessageList {snaps her fingers in front of you.|snaps his fingers in front of you.|snaps its fingers in front of you.|You are confused as to the effects of the venom.}
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat May 29, 2004 5:04 pm   
 
I think cravo's *might* be possible by allowing wildcards in {}

VIEW->settings->general->script parsing and check wildcards in {} triggers
I havn't tested this so I can't say for sure if it works you also might need to use %%w but as I said not tested
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