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
meyn
Beginner


Joined: 06 Mar 2008
Posts: 27

PostPosted: Fri Apr 04, 2008 4:30 pm   

help with trigger plz
 
Is it possible to set up a trigger that fires if the pattern is not detected in a page i.e.


#TR {being ridden by you~.$} {#COLOR blueviolet}


This trigger picks up that I'm riding a horse, and colors the line purple each time I change room, sometimes I will lose the horse though can a trigger be set so if it is not detected in the roompage when loaded it alerts me.

Thanks in advance for any help
Reply with quote
JQuilici
Adept


Joined: 21 Sep 2005
Posts: 250
Location: Austin, TX

PostPosted: Fri Apr 04, 2008 5:09 pm   
 
Not exactly. What you can do is have two triggers:

Code:
#TR {being ridden by you~.$} {#COLOR blueviolet;#var riddenSeen true}
#TR {<some pattern to detect the end of the room page>} {#if (!@riddenSeen) {<do something>};#var riddenSeen false }

Fill in the <> sections with the appropriate things. Basically, the second trigger just checks to see if the first one fired. If not, it does whatever you need to do.

(NOTE: Code written off the top of my head, and untested. YMMV)
_________________
Come visit Mozart Mud...and tell an imm that Aerith sent you!
Reply with quote
meyn
Beginner


Joined: 06 Mar 2008
Posts: 27

PostPosted: Fri Apr 04, 2008 5:54 pm   
 
thanks i all ready use an exits trigger that fire just before room contents and is same on each page so i can tag a #wait 100 then your test afterwards
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