|
Syn Newbie
Joined: 15 May 2002 Posts: 2
|
Posted: Wed May 15, 2002 4:35 am
Trigger Troubles.. |
I've had a bit of trouble lately with some triggers I've been making for arena battles..
The trigger looks something like this..
Pattern: "You see (%w) close by (%w)."
Value : "sk1 %2 %1"
which works with my in game alias:
"sk1 $2;stun $1;back $2"
basicly I scan, and see for instance:
"You see Armand close by west"
and I go one west, stun and backstab armand..
The problem occurs when I'm in a looping arena.. or a mirror maze.
So when I scan I see something like:
"You see Armand close by west
You see Armand close by east
You see Armand far off to the south"
I end up stuning and backstabing armand.. but right afterwards I go east and 2 south.
What I want to know is this, is there a way to make a trigger only respond to one pattern in a designated amout of time.. or perhaps there's another way to circumvent this problem.
thanks,
-Synthetic |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Wed May 15, 2002 5:29 am |
#ALIAS scan {#T+ scankill;scan}
#TR {You see (%w) close by (%w).} {sk1 %2 %1;#T- scankill} scankill
#TR {You see (%w) far off to the (%w).} {sk2 %2 %1;#T- scankill} scankill
That should do it.Basically what it is, you put your current triggers into a class folder(scankill in my example).Then when ever you use the scan command it makes sure the class is enabled, and after the first pattern fires it will disable the class before it can get to any other possible pattern matches.It will stay disable until the next time you type scan, when it will reenable the class...etc. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed May 15, 2002 1:17 pm |
The alias will loop. Change it to
#ALIAS scan {#T+ scankill;~scan}
LightBulb
Vague questions get vague answers |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Wed May 15, 2002 1:51 pm |
opps, thanks Lightbulb. Forgot about that
|
|
|
|
Syn Newbie
Joined: 15 May 2002 Posts: 2
|
Posted: Thu May 16, 2002 2:32 am |
w00! thank you guys!
|
|
|
|
|
|