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


Joined: 05 Jun 2003
Posts: 2

PostPosted: Fri Jun 06, 2003 12:22 am   

Triggers fire too much
 

This is part of a tracking script I have written, and it essentially moves me to a certain location where I begin a travel trigger. The only problem with this trigger is it will fire east twice and then twice again (a total of four times). I have no idea why it is doing this when the trigger only completes one cycle. As best as I can tell, it either firing east twice for each one, or it is not waiting for the conditions to trigger.


#TRIGGER "findquarry" {^But the scarecrow is already here with you!} {
#T- track
east
}
#COND {{^Obvious paths|You can't go there}} {east}
#COND {{^Obvious paths|You can't go there}} {#SET tracktohole 0}

[Arthe Dale, Community Garden]
A large section of the garden plot has been set aside for the small shrubs of deep green glossy leaves that bear the village's beloved taffelberries. The branches of the low-growing bushes are laden with juicy black berries. You also see a tiny kitten who is sitting and a scarecrow.
track scarecrow
Obvious paths: east, west.
>
But the scarecrow is already here with you!
east
east
>
But the scarecrow is already here with you!
east
east
You refocus on tracking the scarecrow.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Jun 06, 2003 10:49 pm   
 
#TRIGGER "findquarry" {^But the scarecrow is already here with you!} {
#T- track
east
}
1 count of east

Obvious paths: east, west.
>
2nd count of east

both triggers are firing a east for you at the same time

the triggers can act off of the same trigger line if you do not script it the right way. try modifiyng one of the triggers to see if that helps.

megamog75
Keeper of the only printable help files for Zmud.
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