<triggers>
<trigger
group="TargetTrigger"
match="* attacks you *"
sequence="100"
>
<send>attacker = "%1"
SetVariable("Target", attacker)
testTarget = GetVariable("Target")
Note("Target is " .. testTarget)
</send>
</trigger>
</triggers>
Above is a trigger I have. The goal is to pull everything from the first * and store it into a string so I can use another alias to 'attack target'.
However, in the mud I'm playing, the info in that first * could range from a single name like 'Mike' to a short description, like 'a fluffy white poodle'.
I can't seem to get it to work. The alias I have is simple enough, and if I use a string, rather than 'testTarget', it fires correctly. The only thing I can think is that the first wildcard is not correctly being saved to the testTarget / Attacker variables.
Basically, this is just a way for me to quickly respond to aggressive mobs and/or PVP situations. Can anyone tell me what I'm missing?
<trigger
group="TargetTrigger"
match="* attacks you *"
sequence="100"
>
<send>attacker = "%1"
SetVariable("Target", attacker)
testTarget = GetVariable("Target")
Note("Target is " .. testTarget)
</send>
</trigger>
</triggers>
Above is a trigger I have. The goal is to pull everything from the first * and store it into a string so I can use another alias to 'attack target'.
However, in the mud I'm playing, the info in that first * could range from a single name like 'Mike' to a short description, like 'a fluffy white poodle'.
I can't seem to get it to work. The alias I have is simple enough, and if I use a string, rather than 'testTarget', it fires correctly. The only thing I can think is that the first wildcard is not correctly being saved to the testTarget / Attacker variables.
Basically, this is just a way for me to quickly respond to aggressive mobs and/or PVP situations. Can anyone tell me what I'm missing?