 |
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: 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.
|
|
|
 |
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: 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 |
|
|
 |
|
|
|
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
|
|