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?
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?