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
eironia
Beginner


Joined: 24 Jul 2006
Posts: 11

PostPosted: Mon Aug 28, 2006 6:46 pm   

Pattern Matching
 
I was wondering if anybody would be able to help me with pattern matching for a trigger? Group info on the mud I play looks like this:
Code:
Characters            Rank    Pos    In room  Follow    H     ME    PE 
Xuearu                Leader  22:M2  Yes      No      100%   19%  100%
Cyrlin                Member  13:F3  Yes      Yes      98%   78%   96%
Gruenthinel           Member  32:B2  Yes      Yes     100%   84%  100%
Arenwul               Member  11:F1  Yes      Yes     100%   51%   99%
A earth elemental     Member  12:F2  Yes      Yes      93%  100%   99%


I've tried a dozen ways to nab the character name, position, and hp into variables, but I can't seem to get the spacing right - it just doesn't recognize anything I'm doing.

I'd very much appreciate any nudges in the right direction - especially if they were explained as though to a half-wit.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Mon Aug 28, 2006 9:50 pm   
 
#TR {(*)%s{Leader|Member}%s(%x)%s{Yes|no}%s{Yes|No}%s(%d)}

name is %1
position is %2
health percentage is %3
_________________
Discord: Shalimarwildcat
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