Trigger doesn't match immediately problem

Posted by Vls87 on Sun 09 Jul 2006 09:00 AM — 2 posts, 12,014 views.

#0
I'm facing a problem:when a trigger's pattern appear,the trigger will not match and send the commands in the "send box".At this time,in "Edit Trigger" windows,it tells the trigger doesn't match.

It will be matched after a new line come out.

How can I make it match and send the commands at the moment the trigger's pattern appears?
Amended on Sun 09 Jul 2006 09:04 AM by Vls87
Australia Forum Administrator #1
This has been discussed many times on this forum. An explanation of the trigger matching process is here:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6554

Basically, data that arrives from the MUD may be in multiple packets, it isn't feasible for all trigger matching to occur when a partial line arrives.

However if you really want to, look at the plugin callback OnPluginPartialLine described on this page:

http://www.gammon.com.au/scripts/doc.php?general=plugin_callbacks

Using this you can match before a newline arrives.