Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ triggers on linefeedless output
triggers on linefeedless output
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Dsm
(2 posts) 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? | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) 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! | Top |
|
Posted by
| Dsm
(2 posts) Bio
|
Date
| Reply #2 on Mon 15 Mar 2004 12:58 AM (UTC) |
Message
| That should do it. Gracias. | 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.
13,230 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top