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


Joined: 15 May 2002
Posts: 2

PostPosted: 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
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Wed May 15, 2002 1:51 pm   
 
opps, thanks Lightbulb. Forgot about that
Reply with quote
Syn
Newbie


Joined: 15 May 2002
Posts: 2

PostPosted: Thu May 16, 2002 2:32 am   
 
w00! thank you guys!
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