Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ I lost a note while matching a whole line.

I lost a note while matching a whole line.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Tue 30 Sep 2003 06:28 PM (UTC)
Message
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?

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 30 Sep 2003 10:10 PM (UTC)
Message
Is something omitting that line from output? That would do it.

Try using world.AppendToNotepad instead to display your debugging stuff.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #2 on Wed 01 Oct 2003 04:39 AM (UTC)
Message
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?

It is much easier to fight for one's ideals than to live up to them.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,461 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.