"Omit from output" in Multi-line triggers

Posted by Eurotool on Mon 12 Sep 2016 02:07 AM — 2 posts, 13,671 views.

#0
Why is the option blanked out? Is there any alternative to this?

Thanks in advance.
Australia Forum Administrator #1
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).