[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  triggers on linefeedless output

triggers on linefeedless output

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Dsm   (2 posts)  [Biography] bio
Date Mon 15 Mar 2004 12:24 AM (UTC)
Message
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?
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #1 on Mon 15 Mar 2004 12:39 AM (UTC)
Message
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

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Dsm   (2 posts)  [Biography] bio
Date Reply #2 on Mon 15 Mar 2004 12:58 AM (UTC)
Message
That should do it. Gracias.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,555 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]