I lost a note while matching a whole line.

Posted by Shaun Biggs on Tue 30 Sep 2003 06:28 PM — 3 posts, 9,898 views.

USA #0
I've been trying to make a script to keep track of bonuses that I get from various things. Each time, there's a list of possible output, but there's no definate last line. I set up a trigger to match anything with a sequence number higher than the other triggers. It seems to match fine and turn itself off, but it doesn't display the note that I have to help me debug.

Here is the trigger:

  <trigger
   group="hallowed_maker"
   keep_evaluating="y"
   match="^.*$"
   name="anyotherline"
   regexp="y"
   send_to="12"
   sequence="11"
   other_text_colour="black"
   other_back_colour="black"
  >
  <send>EnableTrigger( &quot;anyotherline&quot;, 0 );
world.Note( &quot;anyotherline called&quot; );</send>
  </trigger>


I have it continue to evaluate just in case the new line is important to other triggers down the line. Would that mess it up?
Australia Forum Administrator #1
Is something omitting that line from output? That would do it.

Try using world.AppendToNotepad instead to display your debugging stuff.
USA #2
Any function I have in there works perfectly fine. The problem is that anything I do in there that would display something to the screen doesn't show up. World.Note doesn't seem to have any affect at all. World.Send will send a command, but it doesn't echo it to the screen much like World.SendNoEcho would. The line that is usually caught is the prompt, which a trigger in another plugin omits, but would that affect a note or the display from a send?