triggers on linefeedless output

Posted by Dsm on Mon 15 Mar 2004 12:24 AM — 3 posts, 16,527 views.

#0
Attempting to make a stat-roller script for a MUD I play,
I ran into a problem: triggers just won't fire on lines that
aren't terminated with linefeeds from the MUDs end, meaning
it's impossible to make a properly working stat-roller
script, or to colorize/edit the game's prompts properly.
Is there any way around this (and I don't think hitting
enter every time to get the triggers to fire is an
option :P)?

Here's an example: mud sends the stat line saying
18str 17int 18wis 14dex 19con 15chr Accept these stats? [Yes No]
which is not terminated by a linefeed, like the prompt lines
from the mud in general aren't.
My regexp trigger is set to match on
(.*?)str (.*?)int (.*?)wis (.*?)dex (.*?)con (.*?)chr
and it doesn't match until I have actually sent the mud an
answer, which defeats the whole point of the trigger.

Or should I just give up?
Greece #1
There are many threads that deal with that problem, in the last version it's easy to do it. Unfortunately, I have never followed any one of those threads because i didn't need it, so i can't tell you :p But if you search a bit you will find one. Ah, look at this:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3774&page=1
#2
That should do it. Gracias.