|
eironia Beginner
Joined: 24 Jul 2006 Posts: 11
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|