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


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Wed Sep 04, 2002 6:31 pm   

Help with a trigger pattern
 
Hi

I need some help with a trigger pattern when running on 6.16.

Current trigger pattern %d%s-%s(*)%s(%d)%s(*)%s(%d)$

Output from mud
1 - The avatar 51 Ultima 38
2 - The violet master 51 The Mirror Realm 35
3 - The master of light 51 The Mirror Realm 21
1 - Teutonian guard 52 Earth Plane 4 24


The problem is with lines like the last one, that is there is a digit in the name of the area. "Earth Plane 4" this messes with the pattern and you get
%1 = Teutonian guard 52 Earth Plane
%2 = 4
%3 = ""
%4 = 24




Zaf
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Sep 04, 2002 7:04 pm   
 
How about this pattern:
%d%s-%s([A-Za-z ])%s(%d)%s(*)%s(%d)$

Kjata
Reply with quote
Zafrusteria
Wanderer


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Wed Sep 04, 2002 7:53 pm   
 
That will be the answer. :-)

Thanks


Zaf
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