I'm trying to match on the following:
(A|An) @target (male|female) <wildcard2> in from the <wildcard3>.
My problem is that I don't know how to only partially match my target in this trigger. For example, let's say that the variable @target is currently set to "snow". I'd like to have the trigger match on "snow-pelted" as well.
Furthermore, I'd like this trigger to send "follow snow" to the world, and "o all bash snow" to the command line, and also highlight the text of the line on which the match was found.
Thus, if the world gives me:
A snow-pelted male centaur walks in from the east.
Then the client does the following:
Highlight line on which trigger matches. Send "follow @target" to world. Send "o all bash @target" to the command line.
Here's what I have so far:
(A|An) @target (male|female) <wildcard2> in from the <wildcard3>.
My problem is that I don't know how to only partially match my target in this trigger. For example, let's say that the variable @target is currently set to "snow". I'd like to have the trigger match on "snow-pelted" as well.
Furthermore, I'd like this trigger to send "follow snow" to the world, and "o all bash snow" to the command line, and also highlight the text of the line on which the match was found.
Thus, if the world gives me:
A snow-pelted male centaur walks in from the east.
Then the client does the following:
Highlight line on which trigger matches. Send "follow @target" to world. Send "o all bash @target" to the command line.
Here's what I have so far:
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="(A|An) @target (male|female) (.*) in from the (.*). "
regexp="y"
send_to="2"
sequence="100"
>
<send>
send "follow @target"
wildcard 4 = %4
wildcard 5 = %5
</send>
</trigger>
</triggers>