Trigger Question

Posted by Rezinfrost on Sun 27 Sep 2020 10:08 PM — 2 posts, 10,166 views.

#0
The MUD I am playing utilizes a bulletin board system for player suggestions, announcements from the IMMs, etc.
Currently I have a trigger set to to hide these lines from output if the number of new notes = 0.
It merely compares the string and if it matches hides it from output.
I'd like to have the trigger do a comparison and and if new notes = 0 hide from output, else show output and play a youvegotmail.wav.

My current trigger is:

  <trigger
   enabled="y"
   group="Hide Lines"
   match="^\( 2\)        Ideas [   0] Suggestion for improvement$"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >

It hides this line from output:
( 2) Ideas [ 0] Suggestion for improvement

Is it possible to do this as a single trigger?
Could someone point me in the right direction please?
Any help would be appreciated.

Thank you.
Amended on Sun 27 Sep 2020 10:09 PM by Rezinfrost
Australia Forum Administrator #1
Make the number of new notes a wildcard. Make the trigger send to script. In the script test that wildcard to see if it is zero or not. Depending on that test you can do this, or that.

The problem part is conditionally omitting from output. You could still omit from output, but if there are more than zero new posts, just re-echo the output.