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


Joined: 12 Jan 2002
Posts: 4
Location: USA

PostPosted: Sat Jan 12, 2002 2:14 pm   

How can I set up trigger to chase/backstab fleers?
 
I have been trying to set up a combination of alias/variable/triggers so that the person I backstab is targeted and I will chase them when they flee and backstab them again. I have read the forums and tried all of the suggested methods, none has worked.
The mud output when a target flees is like this:
Chiali leaves east.
Chiali has fled!
I don't understand all of the help files, I am not the most computer literate person on the planet, please help me!

I am using vers. 6.24 on a ROM mud, if that is relevent
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Jan 12, 2002 9:03 pm   
 
#AL BS {Target="%1";backstab "%1";#T+ AutoHunt}
#CLASS AutoHunt
#VAR Target ""
#VAR FleeDir ""
#TR {@Target leaves (%w).$} {FleeDir="%1";@FleeDir}
#TR {@Target has died.$} {FleeDir="";Target="";#T- AutoHunt}
#TR {You have died.$} {FleeDir="";Target="";#T- AutoHunt}
#CLASS 0

You will have to change the last 2 patterns to match your mud.
Reply with quote
iqqi
Newbie


Joined: 12 Jan 2002
Posts: 4
Location: USA

PostPosted: Sat Jan 12, 2002 11:13 pm   
 
quote:

I have been trying to set up a combination of alias/variable/triggers so that the person I backstab is targeted and I will chase them when they flee and backstab them again. I have read the forums and tried all of the suggested methods, none has worked.
The mud output when a target flees is like this:
Chiali leaves east.
Chiali has fled!
I don't understand all of the help files, I am not the most computer literate person on the planet, please help me!

I am using vers. 6.24 on a ROM mud, if that is relevent

#CLASS AutoHunt
I already have an autohunt, will this interfere with it? It is for hunting ppl I haven't attacked, I tried to adapt it for chasing, it didn't work:P


bam
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jan 13, 2002 1:52 am   
 
So change the name of the class to something else. I'd recommend changing the first trigger to use the parameter directly instead of going through a variable. And since the #ALIAS creates a global-level variable @Target, I don't think you should create either variable after the #CLASS statement. Modified script:

#AL BS {Target=%1;backstab %1;#T+ Backstabber}
#CLASS Backstabber
#TR {@Target leaves (%w)} {%1;bs @Target}
#TR {@Target has died.$} {Target="";#T- Backstabber}
#TR {You have died.$} {Target="";#T- Backstabber}
#CLASS 0





LightBulb
All scripts untested unless otherwise noted
Reply with quote
iqqi
Newbie


Joined: 12 Jan 2002
Posts: 4
Location: USA

PostPosted: Sun Jan 13, 2002 1:59 am   
 
I set it up, it targets but doesn't follow or bs, :(


bam
Reply with quote
iqqi
Newbie


Joined: 12 Jan 2002
Posts: 4
Location: USA

PostPosted: Sun Jan 13, 2002 5:37 am   
 
That did it, thx!

bam
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