Hello all,
I'm hoping someone can help me figure out this if/then trigger I am trying to make work. I have a feeling I'm mixing scripting languages (but I am trying to use Lua, I believe) when I'm trying to do this, so any help/direction would be appreciated.
This is the trigger I am trying to use:
I feel like this is wrong and won't work correctly? Effectively, I want the trigger to look at the MOB name after (a|an), and if it is part of variable table @nokill, then it should do nothing, but if nothing in the variable table @nokill is matched, then it should send a command targeted at the MOB.
Any help is much appreciated! Thank you.
I'm hoping someone can help me figure out this if/then trigger I am trying to make work. I have a feeling I'm mixing scripting languages (but I am trying to use Lua, I believe) when I'm trying to do this, so any help/direction would be appreciated.
This is the trigger I am trying to use:
<triggers>
<trigger
group="Hunt"
keep_evaluating="y"
match="^Also here: (an|a) ([^,]*?), and Shazbo the Human"
regexp="y"
send_to="12"
sequence="100"
>
<send>If "%2" = "@nokill" Then
Send "0"
Else
Send "command"
Endif</send>
</trigger>
</triggers>
I feel like this is wrong and won't work correctly? Effectively, I want the trigger to look at the MOB name after (a|an), and if it is part of variable table @nokill, then it should do nothing, but if nothing in the variable table @nokill is matched, then it should send a command targeted at the MOB.
Any help is much appreciated! Thank you.