|
Pr0fiT Beginner
Joined: 11 Jun 2002 Posts: 10 Location: USA
|
Posted: Tue Jun 11, 2002 1:10 am
Trail Trigger |
This is a trigger I had back when I used 5.55. The MUD I play went through HEAVY revamping so I switched classes. Now I am back into the thief class, and I am stuck with my trail trigger. I need it to go faster, like automated. I want to type in trail playername, and it will go off after them, then backstab when on sight.
Heres how it looks, and the triggers I have so far.
You start to trail Odie.
That is what you see when you first enter the command, trail odie.
I wanted to capture the characters name, so I tried.
You start to trail %1.
var target={%1} <---as command line
Then you see this.
You sense Odie's trail northwest from here.
So I had.
You sense %1's trail %2 from here.
%2 <---as command line
You sense them close by!
This is what you see when you are in the same room, so I wanted this to trigger the attack. I had
You sense them close by!
bs @target <----command line
Ummmm, it doesnt work. I think I am messing up on the You start to trail $1. part, I don't know if it's syntax or what. I can get it to go quickly with just the one for which direction the person is it, but it will not auto stab :( Help, please
Pr0fiT
www.phidar.com |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Jun 11, 2002 1:27 am |
Try entering this into the command line:
#ALIAS trail {#VAR target %1;#T+ trailing;~trail %1}
#TRIGGER {You sense @{target}'s trail (%w) from here.} {#EXEC %1} "trailing"
#TRIGGER {You sense them close by!} {bs @target;#T- trailing}
So with this script, you just type trail playername and it all begins. It is set up so that when you type this, it captures the name of the target, enables the triggers that will do the trailing and then sends the real trail command to the MUD. The triggers will just keep following until you find the target and then they are disabled.
Kjata |
|
|
|
Pr0fiT Beginner
Joined: 11 Jun 2002 Posts: 10 Location: USA
|
Posted: Tue Jun 11, 2002 1:31 am |
...
.
You sense them close by!
bs
A large board hangs on the wall with some writing on it.
A beautiful marble statue of a woman sits in the center of a
same problem i had before :(
it tries to backstab, but theres nothign after it :(
Pr0fiT
www.phidar.com |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Jun 11, 2002 1:36 am |
I just tested this. It works fine, with no problems. It just needs a little change which has nothing to do with the bs command appearing blank. However, you should check the rest of your settings because it appears that somehow the @target variable is being set blank by some other trigger or setting. Here is the corrected script again, just in case:
#ALIAS trail {#VAR target %1;#T+ trailing;~trail %1}
#TRIGGER {You sense @{target}'s trail (%w) from here.} {#EXEC %1} "trailing"
#TRIGGER {You sense them close by!} {bs @target;#T- trailing} "trailing"
Kjata |
|
|
|
Pr0fiT Beginner
Joined: 11 Jun 2002 Posts: 10 Location: USA
|
Posted: Tue Jun 11, 2002 1:44 am |
Nod nod, thank you very much, I noticed the same problem and fixed it. I much appreciate the help. HAIL KJATA!
Pr0fiT
www.phidar.com |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Jun 11, 2002 1:48 am |
I'd recommend restricting the {#EXEC %1} with directions or matching from the
left ^You sense @{target}'s trail (%w) from here. etc.
Although you are "open" to risk to just a word.. its just a bad habit.
TonDiening
Beta Upgrading to 6.26 |
|
|
|
|
|