Hi,
I really need a much better way to handle these regular expressions...
I have some RE's that I need to trigger on my mud and there are so many different ones, that they just keep triggering, and getting the wrong matches in different triggers and stuff.
Here's what i need to match...
id really appreciate some help here cuz its been like this for years and i just don't know how to do it better:
Also the sequences seem to be screwed...
Please help
trigger 1:
match="^.* (flaming|clawed|fiery|freezing|icy|venomous|poisonous) (bite|chop|snatch|crush|fiery slash|slap|kick|pierce|pound|punch|slash|slice|leaping attack|hack|claw|blast|foot|leaping attack|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight2"
group="combat"
send_to="14"
sequence="50"
2
match="^.* (bite|chop|snatch|crush|fiery slash|slice|hack|claw|foot|splat|sweep|spit|stomp|slap|kick|pierce|pound|punch|slash|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight22"
sequence="51"
group="combat"
<trigger
match="^.* (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight3"
sequence="51"
group="combat"
match="^Your (bite|slap|slice|chop|crush|kick|pierce|pound|punch|slash|leaping attack|hack|claw|blast|foot|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (.*?)[!.]$"
regexp="y"
script="fight1"
sequence="50"
group="combat"
match="^Your (.*)\s*(bite|slap|slice|chop|crush|kick|pierce|pound|punch|slash|leaping attack|hack|claw|blast|foot|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (.*?)[!.]$"
regexp="y"
script="fight4"
send_to="14"
sequence="49"
and the group fight trig...
For when someone in the group fights something
<trigger
match="^(.*)'s (.*) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (\w+)[!.]$"
regexp="y"
script="gfight"
omit_from_output="y"
sequence="100"
enabled="y"
I really need a much better way to handle these regular expressions...
I have some RE's that I need to trigger on my mud and there are so many different ones, that they just keep triggering, and getting the wrong matches in different triggers and stuff.
Here's what i need to match...
id really appreciate some help here cuz its been like this for years and i just don't know how to do it better:
Also the sequences seem to be screwed...
Please help
trigger 1:
match="^.* (flaming|clawed|fiery|freezing|icy|venomous|poisonous) (bite|chop|snatch|crush|fiery slash|slap|kick|pierce|pound|punch|slash|slice|leaping attack|hack|claw|blast|foot|leaping attack|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight2"
group="combat"
send_to="14"
sequence="50"
2
match="^.* (bite|chop|snatch|crush|fiery slash|slice|hack|claw|foot|splat|sweep|spit|stomp|slap|kick|pierce|pound|punch|slash|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight22"
sequence="51"
group="combat"
<trigger
match="^.* (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) you[!.]$"
regexp="y"
script="fight3"
sequence="51"
group="combat"
match="^Your (bite|slap|slice|chop|crush|kick|pierce|pound|punch|slash|leaping attack|hack|claw|blast|foot|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (.*?)[!.]$"
regexp="y"
script="fight1"
sequence="50"
group="combat"
match="^Your (.*)\s*(bite|slap|slice|chop|crush|kick|pierce|pound|punch|slash|leaping attack|hack|claw|blast|foot|splat|sweep|spit|stomp|stab|whip) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (.*?)[!.]$"
regexp="y"
script="fight4"
send_to="14"
sequence="49"
and the group fight trig...
For when someone in the group fights something
<trigger
match="^(.*)'s (.*) (scratches|hits|wounds|injures|mauls|decimates|devastates|maims|MUTILATES|DISMEMBERS|DISEMBOWELS|MASSACRES|\*\*\* MASSACRES \*\*\*|\*\*\* DEVASTATES \*\*\*|\*\*\* OBLITERATES \*\*\*|\*\*\* DEMOLISHES \*\*\*|\*\*\* ANNIHILATES \*\*\*|\*\*\* DESTROYS \*\*\*) (\w+)[!.]$"
regexp="y"
script="gfight"
omit_from_output="y"
sequence="100"
enabled="y"