Triggers

Posted by Keoke on Sun 02 Jan 2005 10:11 PM — 2 posts, 11,579 views.

#0
I made a trigger that when you 'scan' it looks for:
*a small Shteran boy*-- a little to the *
Then sends: %<3>

The last * is a direction, so I'll move to where the mob is. The problem is when I scan it might match several lines, and I'll end up with, north, south, east. Being entered, instead of just north. Is there a way to tell the trigger to stop after the first match...or some other way to do this?

Keoke
Australia Forum Administrator #1
Change the "send to" to "send to script" and then put in the "send field"

Send "%3"
EnableTrigger "mytrigger", 0


Then name your trigger "mytrigger" (that goes in the Label field).

That will disable the trigger the first time it fires. Then you need to re-enable it, eg. on the alias that does the scan, or perhaps as soon as you enter a new room.