Need help with a simple trigger

Post Reply
Arjuna
Posts: 1
Joined: Fri Jun 05, 2015 5:49 pm

Need help with a simple trigger

Post by Arjuna »

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?

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: Need help with a simple trigger

Post by demonnic »

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])

Post Reply