Gagging Two Lines with a Trigger

Posted by Chik on Mon 30 Jul 2012 02:09 AM — 4 posts, 16,405 views.

#0
How can I gag a matching line and the next line as well with a trigger?
If I check the omit output, it only gags the matching line.
Thanks,
Australia Forum Administrator #1
You could make a trigger that matches everything (ie. "*") which omits from output. Have it disabled initially.

When the trigger for the first line matches, in enables the other trigger. This will then omit the next line. This trigger then disables itself, so it doesn't keep omitting lines.
#2
That's a really great idea.
I assume I need to put a script for the second trigger to disable itself?
Also, if I want to gag more than 2 line, I need the second trigger to count every time it fires and disable when it reaches certain number?
Australia Forum Administrator #3
Yes, a one-line script will disable itself.

Template:function=EnableTrigger
EnableTrigger

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



Slightly more complex to do a count, but not much.