I am trying to make a trigger that matches this:
Cutting open the corpse of a Mhun guard, you begin to rummage around the innards
to find an appropriate place to remove the kidneys. Your sharp eye immediately
sees a spot and you excise the lovely organ.
The problem is that the target "Mhun guard" changes and so does the formatting of the three lines. Sometimes the "to find" from the second line is on the first line, and sometimes "rummage" is on the second line. If it all stays in one place, I know how to make this trigger, but I can't make it work with shifting text.
I know I could make quite a few single line triggers that just try to match the variation of the middle line (which is the only line I really need), but I'd rather find a way just to make one trigger that looks for all of those words and doesn't care of the line order.
Here's the XML for me catching one line:
<trigger
enabled="y"
match="^innards to find an appropriate place to remove the (\w*)\. Your sharp eye $"
regexp="y"
script="gotOrgan"
send_to="12"
sequence="100">
</trigger>
Cutting open the corpse of a Mhun guard, you begin to rummage around the innards
to find an appropriate place to remove the kidneys. Your sharp eye immediately
sees a spot and you excise the lovely organ.
The problem is that the target "Mhun guard" changes and so does the formatting of the three lines. Sometimes the "to find" from the second line is on the first line, and sometimes "rummage" is on the second line. If it all stays in one place, I know how to make this trigger, but I can't make it work with shifting text.
I know I could make quite a few single line triggers that just try to match the variation of the middle line (which is the only line I really need), but I'd rather find a way just to make one trigger that looks for all of those words and doesn't care of the line order.
Here's the XML for me catching one line:
<trigger
enabled="y"
match="^innards to find an appropriate place to remove the (\w*)\. Your sharp eye $"
regexp="y"
script="gotOrgan"
send_to="12"
sequence="100">
</trigger>