Hi, I'm pretty new to Mudlet and scripting and for my guild I have to be able to set a leader and grab the target that specific person calls for over our guild channel. I searched through the forum and the best that I could come up with is what's below but it's not working. Can someone help me out here?
I have two Aliases one sets my target and one sets the leader. I've echoed the commands so I know they work when I set them. They are "target" and "leader".
So for my trigger I have it set to perl regex and it looks like this:
^(Serenguard): (\w+) says, "Target (\w+)."\.$
And below I have:
if
matches[2] == leader
then
target = matches[3]
echo("Now targeting ".. matches[3] )
end
Trigger help?
Re: Trigger help?
Your regex pattern is wrong. You need to escape all regex tokens e.g. \(Serenade\) instead of (Serenade).