I am new to mudlet, having used Zmud in the past.
My question is how can i write a trigger to kill whoever does a certain action? For example, if James picks up gold coins, how can i set a trigger to kill James?
Need help with a simple trigger
Re: Need help with a simple trigger
Assuming the line is
James picks up gold coins
and the command you want it to run is
kill James
you would use a trigger of type regex, and the pattern would be
^(\w+) picks up gold coins
and the code would be
send("kill " .. matches[2])
James picks up gold coins
and the command you want it to run is
kill James
you would use a trigger of type regex, and the pattern would be
^(\w+) picks up gold coins
and the code would be
send("kill " .. matches[2])