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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Sat Feb 21, 2004 4:37 pm   

Variables and Parsing
 
I am trying to build a string list of certain triggers and use ismember
to determine what to do with that variable.

It works fine so long as its strictly text in the stringlist, but
what I want to know is if there is a way to have like
Variable
DoThis
(a+) Waves hello
Hi There
Bounces

in the list and have it pattern match

(.*) is my trigger

#IF (%ismember (%1, @dothis)) {Do this}

now if (a+) Waves hello is in the list it doesnt work.. and
I would really like to know how to make it work if I can
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Feb 21, 2004 6:05 pm   
 
Try using the %regex function.
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