OnPluginScreenDraw+Send to output+Omit speaking twice

Posted by Tspivey on Sun 23 Sep 2007 01:53 AM — 2 posts, 12,609 views.

Canada #0
I'm not sure if this is a bug, but it seems like one. if I run something through this trigger, it gets passed through OnPluginScreendraw twice, but only shows up in the output once as it should:
<triggers>
<trigger
enabled="y"
match="test: *"
omit_from_output="y"
send_to="2"
sequence="100"
>
<send>%1</send>
</trigger>
</triggers>
Australia Forum Administrator #1
Yes, it looks like if you send to output, like you did, it goes to OnPluginScreenDraw twice - once as the "extra output" (with the first argument to OnPluginScreenDraw being 0) and once as the note (with the first argument to OnPluginScreenDraw being 1).

I will fix that in the next version, however in the meantime, a reworking will get around it. Use "send to script (after omit)" and do a scripted Note instead, like this:


<triggers>
  <trigger
   enabled="y"
   match="test: *"
   omit_from_output="y"
   send_to="14"
   sequence="100"
  >
  <send>Note ("%1")</send>
  </trigger>
</triggers>