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 ➜ omit_from_output and notes

omit_from_output and notes

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


Posted by Avariel   Portugal  (55 posts)  Bio
Date Fri 31 Oct 2003 11:55 PM (UTC)

Amended on Fri 31 Oct 2003 11:58 PM (UTC) by Avariel

Message
if i omit_from_output with a trigger i cant send a note replacing the match text?

ive made this trigger and it omits everything even my note :/


  <trigger
   match="(?:\w+) (.+) noses its way cautiously out of the shadows\.$"
   omit_from_output="y"
   regexp="y"
   enabled="y"
   send_to="2"
   sequence="100"
  >
   <send>
    ------------------------------------------------------------------  %1
   </send>
  </trigger>


thank you

The Avariel Wind Lord
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 01 Nov 2003 07:46 PM (UTC)
Message
There is a bit of a bug, or design idiosyncracy, that omitting from output omits everything (backwards) up to the start of the line being omitted, including any world.notes you have done.

However this problem goes away if you call a separate script, because script execution is deferred until after the omitting is done.

So, put the name of a script routine in the "script" box (don't do "send to script"), and in that script you can do world.notes.

- Nick Gammon

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

Posted by Avariel   Portugal  (55 posts)  Bio
Date Reply #2 on Mon 03 Nov 2003 12:48 AM (UTC)
Message
thank you Nick

The Avariel Wind Lord
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.


12,448 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.