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


Joined: 05 Mar 2009
Posts: 2

PostPosted: Thu Mar 05, 2009 1:35 pm   

pattern matching
 
i ran iinto something weird


I made the following trigger.

Code:
North            ~:  (*) ~[~*~*~> PK ~<~*~*~]

it will pick up the this line
Code:
North          : Deep Well [**> PK <**]

but not this one
Code:
North          : A desert path [**> PK <**]

Any ideas where i might have gone wrong?

all the trigger will do is chage the var to north_pk var to on

thank you
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Mar 05, 2009 3:51 pm   
 
Change your trigger to:

#TRIGGER {^North%s:%s(*)%s~[~*~*> PK <~*~*~]}

That should match what you're wanting. The difference can be in the spaces.

Charneus
Reply with quote
altloo
Newbie


Joined: 05 Mar 2009
Posts: 2

PostPosted: Thu Mar 05, 2009 4:07 pm   
 
it works sweet now
thank you very much for the help
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