 |
iqqi Newbie
Joined: 12 Jan 2002 Posts: 4 Location: USA
|
Posted: 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 |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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. |
|
|
|
 |
iqqi Newbie
Joined: 12 Jan 2002 Posts: 4 Location: USA
|
Posted: 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 |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
 |
iqqi Newbie
Joined: 12 Jan 2002 Posts: 4 Location: USA
|
Posted: Sun Jan 13, 2002 1:59 am |
I set it up, it targets but doesn't follow or bs, :(
bam |
|
|
|
 |
iqqi Newbie
Joined: 12 Jan 2002 Posts: 4 Location: USA
|
Posted: Sun Jan 13, 2002 5:37 am |
That did it, thx!
bam |
|
|
|
 |
|
|
|