I have the following trigger:
<triggers>
<trigger
custom_colour="17"
enabled="y"
group="combat"
ignore_case="y"
match="^(\w+) slowly raises (his|her) head and you see (his|her) eyes glowing bright white.$"
regexp="y"
send_to="12"
sequence="100"
other_text_colour="white"
>
<send>local target
target = GetVariable("target")
if target == "%1" then
SetVariable ("target", "nothing")
else
end</send>
</trigger>
</triggers>
What I want is: if the current value of my variable "target" is George, and I see "George slowly raises his head and you see his eyes glowing bright white.", I want to change the target to "nothing" instead. But it doesn't seem to work.
I know the trigger is firing generally (I tested adding a line saying to execute some other command if something other than George was the value of "target" and it worked) and I clicked the 'Ignore case' box, so case isn't the issue. I'm guessing the problem is that it's interpreting %1 as the actual target name I'm asking for, rather than as a wildcard calling whatever the word was in the trigger line. Is there any way to make this work?
<triggers>
<trigger
custom_colour="17"
enabled="y"
group="combat"
ignore_case="y"
match="^(\w+) slowly raises (his|her) head and you see (his|her) eyes glowing bright white.$"
regexp="y"
send_to="12"
sequence="100"
other_text_colour="white"
>
<send>local target
target = GetVariable("target")
if target == "%1" then
SetVariable ("target", "nothing")
else
end</send>
</trigger>
</triggers>
What I want is: if the current value of my variable "target" is George, and I see "George slowly raises his head and you see his eyes glowing bright white.", I want to change the target to "nothing" instead. But it doesn't seem to work.
I know the trigger is firing generally (I tested adding a line saying to execute some other command if something other than George was the value of "target" and it worked) and I clicked the 'Ignore case' box, so case isn't the issue. I'm guessing the problem is that it's interpreting %1 as the actual target name I'm asking for, rather than as a wildcard calling whatever the word was in the trigger line. Is there any way to make this work?