|
meyn Beginner
Joined: 06 Mar 2008 Posts: 27
|
Posted: 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 |
|
|
|
JQuilici Adept
Joined: 21 Sep 2005 Posts: 250 Location: Austin, TX
|
Posted: 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! |
|
|
|
meyn Beginner
Joined: 06 Mar 2008 Posts: 27
|
Posted: 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
|
|
|
|
|
|