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
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Tue Feb 26, 2002 12:56 am   

Wildcards in Variables
 
I'd like to create a variable called Speech, which will hold all the ways that speech can be relayed in DR (%w says, You say, %w asks, etc.). How do I get the wildcards to work in variables so that #TRIG {{@Speech}} {#CW 12} will work?

Belmyrddyn
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 26, 2002 1:00 am   
 
Nope, the syntax of
{stringlist}

won't accept wildcards. It only accepts literal strings. What you need to do, is to try and create a pattern that will match all of these with the wildcards outside of any {stringlist} pattern. Example:
#TRIGGER {%w {say|says|asks}} {#CW 12}

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