Omit from output and note

Posted by Poromenos on Sun 31 Oct 2004 09:10 PM — 7 posts, 24,666 views.

Greece #0
The following trigger does not display the note, am I missing something obvious?


<triggers>
  <trigger
   enabled="y"
   match="test"
   omit_from_output="y"
   send_to="12"
   sequence="100"
  >
  <send>note &quot;This is not displayed&quot;</send>
  </trigger>
</triggers>
Australia Forum Administrator #1
Yes, that is a known feature. :)

Immediate execution of scripts tacks notes onto the end of the lines in the output window, which are then omitted from output. Basically it remembers where the output started and omits from there on.

To work around this you need to call a script in your script file. The execution of that script is deferred until after the lines have been omitted, and thus the world.note will work.

Conceivably you could do a DoAfterNote to put the line there a second later, if that was acceptable.
Amended on Sun 31 Oct 2004 09:39 PM by Nick Gammon
USA #2
You could also send to output, assuming thats all you want to do (just the note, not anything else).
Amended on Sun 31 Oct 2004 09:44 PM by Flannel
Australia Forum Administrator #3
No, that will have the same problem.
USA #4
No it wont. It works. Try it. (I tested before I posted) however, sending to execute DOES have the same problem.
Greece #5
Nah, I need to do some other scripting stuff too there... Any chance of getting a fix? (And not in the drug addict sense :P)
Greece #6
Why not just omit the MUD line? It doesn't make sense to omit the rest, and since there's no multiline omitting you could just have it remove the first line and print the rest.