|
LPMala Beginner
Joined: 24 Feb 2003 Posts: 13 Location: USA
|
Posted: 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 |
|
|
|
LPMala Beginner
Joined: 24 Feb 2003 Posts: 13 Location: USA
|
Posted: Wed Mar 05, 2003 2:08 am |
Nevermind, I got it.
#trig {Susceptible: (*)} {say &BSUSCEPT: %1} |
|
|
|
|
|
|
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
|
|