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


Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Matching multi-line prompt

Matching multi-line prompt

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


Posted by Cbond   USA  (19 posts)  [Biography] bio
Date Sun 13 Sep 2009 07:59 PM (UTC)
Message
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.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Sun 13 Sep 2009 09:20 PM (UTC)
Message
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!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Cbond   USA  (19 posts)  [Biography] bio
Date Reply #2 on Mon 14 Sep 2009 01:48 PM (UTC)
Message
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.
[Go to top] top

Posted by KaVir   Germany  (117 posts)  [Biography] bio
Date Reply #3 on Mon 14 Sep 2009 02:12 PM (UTC)
Message
GW2 has a "config Prompt Go Ahead" option which may help. It was added at the request of another MUSHclient user.
[Go to top] top

Posted by Cbond   USA  (19 posts)  [Biography] bio
Date Reply #4 on Mon 14 Sep 2009 03:40 PM (UTC)
Message
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.
[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.


16,475 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]