Probably the most common trigger that I used in zmud is for groups, and I have no idea how to make it here. I want a basic trigger that makes it so that when another player tells the group to attack a target, my character does so.
EXAMPLE:
Annie tells the group 'whack wolfman'
kill wolfman
How do I translate that into the proper syntax for mudlet, with the name of the player and the name of the mob as wildcards?
Total newbie, trigger question
Re: Total newbie, trigger question
trigger type would be regex, pattern would be:
^\w+ tells the group 'whack (\w+)'$
and the code would be
send("kill " .. matches[2])
^\w+ tells the group 'whack (\w+)'$
and the code would be
send("kill " .. matches[2])
Re: Total newbie, trigger question
Nah, matches[2]. The first w is non capturing due to a lack of parentheses.
Re: Total newbie, trigger question
What tarkenton said. They didn't specify they wanted to hold on to the person sending the message, just that it should be a wildcard.
Re: Total newbie, trigger question
Well I never knew that about the brackets! Every day a school day
Mapper of Bedlam