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, 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 ➜ "Omit from output" in Multi-line triggers

"Omit from output" in Multi-line triggers

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


Posted by Eurotool   (14 posts)  Bio
Date Mon 12 Sep 2016 02:07 AM (UTC)
Message
Why is the option blanked out? Is there any alternative to this?

Thanks in advance.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 13 Sep 2016 08:06 PM (UTC)
Message
There are technical difficulties with omitting multiple lines, so "omit from output" is not enabled in such cases. There is a DeleteLines function which may help you.

Template:function=DeleteLines DeleteLines

The documentation for the DeleteLines script function is available online. It is also in the MUSHclient help file.



An alternative is to make a 3-trigger set and omit that way. See FAQ 37.

Template:faq=37 Please read the MUSHclient FAQ - point 37.


You basically have this:


  • Detect the start of the multi-line group (and omit it)
  • Detect and process the rest of the group (and omit them)
  • Detect the end of the group. Whether or not you omit that depends on whether you detect the last in the group, or the first not-in-group.


As a side-effect you can do things with each line (eg. an inventory or "who" listing).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


10,449 views.

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

Go to topic:           Search the forum


[Go to top] top

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