Matching multi-line prompt

Posted by Cbond on Sun 13 Sep 2009 07:59 PM — 5 posts, 22,422 views.

USA #0
I started playing God Wars II again and I've got my prompt set up to look like this:
<1036/1036hp 386/386m 2100/2100ap 1027/2332pr Boosts: 2>
<None: Age: N/A HP: N/A Dist: 100 feet>

I'd like to get a miniwindow set up for each individual line, but the problem is I can't seem to get my trigger(s) to match either one as it comes from the mud. It can grab one after something forces the output from the game to scroll up the screen, but that's not all that useful.

I've tried using the following for the target, second line:
^\<(.*?)\: Age\: (N/A|\d+) HP\: (N/A|\d+\%) Dist\: (\d+) feet\>$
It triggers just fine but again, only after some scrolling in the buffer. Any idea on how to get it to fire when sent from the mud?

Here's an example of what it should be triggering on with a target: <the minor fire elemental: Age: 50 HP: 100% Dist: 0 feet>
There's a slight difference for the Age: spot when targeting players but I'm not too concerned with that right now.
USA #1
Players of Iron Realms MUDs tend to have the same problem; you might want to go to Game -> Configure -> Output and ensure that "Convert IAC EOR/GA to newline" is checked. Triggers are only checked after a newline is reached, and some MUDs put a different sequence of characters at the ends of their prompts and lack a newline.

Hope that works for you!
USA #2
Got it triggering properly. Needed to tell the game to add a newline to the end of the prompt. Still shows up the same, with no actual new line created but it works to trick the trigger.

Now to get working on setting up the mini-windows for each line.
Germany #3
GW2 has a "config Prompt Go Ahead" option which may help. It was added at the request of another MUSHclient user.
USA #4
I got it, thanks. Just had to add a trailing $* to the end of my prompt and it's working perfectly. Now I just need to figure out these mini-windows/hotspots and I'll be a happy camper.