Thaemorn2005-08-31 07:53:00
Alright, I'm having another stab at dealing with warrior combat...
So far I've come up with a way to capture the multiple lines of stuff a warrior can throw at me and put it all in one variable (without the line breaks).
Is there any way to then to check the variable (in all it's no-line-breaks glory) for patterns that'll match my triggers - WITHOUT displaying it?
So far I've come up with a way to capture the multiple lines of stuff a warrior can throw at me and put it all in one variable (without the line breaks).
Is there any way to then to check the variable (in all it's no-line-breaks glory) for patterns that'll match my triggers - WITHOUT displaying it?
Unknown2005-08-31 10:24:02
You might want to look at the %regex function and use regular expression patterns to match the string you've captured.
Terenas2005-08-31 18:31:05
Heh, I had something like this before, I would highly discourage against using this method, once you get into 20+ knight messages, or with multiple knights attacking, then you'll be really lagged.