About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Wed Mar 23, 2005 4:42 am   

{a|b|c|ect...} trigger question
 
I have a trigger with several different mobs in it, pattern looks like {A bird|A cat|A dog|A skunk}, and what i want to do is to make it so whenever is triggered it sends to the mud as kill (blah). any ideas? and also, anyway to make it only send the last word? so like kill skunk instead of kill a skunk.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Wed Mar 23, 2005 4:51 am   
 
Assuming it would be at the start of the line (the A is capital heheh)

#TRIGGER {^A (%w)} {#IF (%ismember(%1,"bird|cat|dog|skunk")) {kill %1}}

Think that should work
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net