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
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Tue Apr 22, 2003 6:40 pm   

loot trigger
 
this pattern doesnt seem to work

^{(%w) is DEAD|(%w) (%w) is DEAD|(%w) (%w) (%w) is DEAD}

trying to match those mobs with two names in their short desc eg. big dog is dead or bif red dog is dead or dog is dead
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Apr 22, 2003 7:16 pm   
 
To my knowledge, variable pattern matching doesn't work.
quote:

Help Pattern Matching
{val1|val2|val3|...} match any of the specified strings can not use other wildcard inside this



A solution for this is to grab it all in a pattern and examine it. In this case try and autoloot from the last word of the pattern.

#TRIGGER {^(*) is DEAD} {get all %word({%1},%numwords({%1}))}

Ton Diening
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 22, 2003 8:10 pm   
 
If you're only going to use the last word of the mob's name, you don't really need to match the earlier words.
#TR {(%w) is DEAD!} {get all %1}

BEWARE! Some people will get extremely angry when your trigger causes you to loot their kills. They may decide to PK you to get the loot you stole.

In many cases, you could just use "get all corpse" and not even need to know what it was you killed.

LightBulb
Advanced Member
Reply with quote
layzee
Beginner


Joined: 10 Feb 2003
Posts: 11
Location: United Kingdom

PostPosted: Wed Apr 23, 2003 1:50 pm   
 
I used to trigger off gaining experience points, that way I didnt loot anyone elses kill.
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