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


Joined: 24 Feb 2003
Posts: 13
Location: USA

PostPosted: Wed Mar 05, 2003 1:50 am   

Pattern matching
 
In the mud I play, there's a spell called 'analyze' it gives this output

Malathar appears to be between level 50 and 55.
Malathar looks like a Goblin, and follows the ways of the Assassin.
Resistant: fire cold pierce slash poison hold plus4 paralysis song psi
poison hold plus4 paralysis song psi
Immune: fire cold poison paralysis
Susceptible: cold

I want to make a trigger to fire off of Resistant, Immune, and Suscept. To say what each is, like

say &RRESIST: fire cold pierce slash poison hold plus4 paralysis song

but, since how many affects there will be will vary, I want to set it up to be able to say up to 9 affects, but still fire when there are less than 9. I've tried something but can't get it to work...

#trig {Resistant: (*) (*) (*) (*) (*) (*) (*) (*) (*)} {say &RRESISTS: %1 %2 %3 %4 %5 %6 %7 %8 %9}

Any ideas
Reply with quote
LPMala
Beginner


Joined: 24 Feb 2003
Posts: 13
Location: USA

PostPosted: Wed Mar 05, 2003 2:08 am   
 
Nevermind, I got it.

#trig {Susceptible: (*)} {say &BSUSCEPT: %1}
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