Matching on my MUD's prompt, not just on the newline

Posted by Daved on Fri 21 Nov 2008 07:06 AM — 2 posts, 10,946 views.

#0
I'm playing Aetolia, and I can't seem to get this prompt trigger:

^H\:(.*?) M\:(.*?) E\:(.*?)\% W\:(.*?)\% B\:(.*?)\% Dev\:(.*?)\% XP\:(.*?)\% \[(.*?)\]$

To match on the prompt, it does match if there's a linebreak following the prompt, but the MUD doesn't automatically give you such a linebreak, and often times adds more to the prompt line than just the prompt. Any way I can have MUSH match a line without waiting for the linebreak?
Netherlands #1
Some self-advertisements might be in order. *eyeshift*

I wrote a number of scripts for MUSHclient, one of them is to tackle this plugin. Some of them were more or less inspired by works of others at the time, so I can't honestly say how much me or others there is in there anymore, but that's besides the point. At:

http://forums.aetolia.com/index.php?showtopic=7982

you'll find a page with numbers of plugins listed. Ignore the credits stuff, and go a few posts down to find the free Prompt Pack. You essentially will want the PromptCleanup plugin combined with the MUSHclient 'Convert EOR/GA to newline' option. This makes sure you can trigger the prompt while the plugin makes sure the side-effect of an extra blank line for each prompt is taken care of.

(The PromptTweak plugin might or might not be useful to you, it supports a number of different prompts although devotion and experience are not supported, so you might as well ignore that one.)