|
Omit from output and note
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Poromenos
Greece (1,037 posts) bio
|
| Date |
Sun 31 Oct 2004 09:10 PM (UTC) [ quote
] |
| Message |
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 "This is not displayed"</send>
</trigger>
</triggers>
|
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Sun 31 Oct 2004 09:38 PM (UTC) [ quote
] Amended on Sun 31 Oct 2004 09:39 PM (UTC) by Nick Gammon
|
| Message |
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Flannel
USA (1,230 posts) bio
|
| Date |
Reply #2 on Sun 31 Oct 2004 09:43 PM (UTC) [ quote
] Amended on Sun 31 Oct 2004 09:44 PM (UTC) by Flannel
|
| Message |
| You could also send to output, assuming thats all you want to do (just the note, not anything else). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #3 on Mon 01 Nov 2004 12:49 AM (UTC) [ quote
] |
| Message |
| No, that will have the same problem. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Flannel
USA (1,230 posts) bio
|
| Date |
Reply #4 on Mon 01 Nov 2004 04:35 AM (UTC) [ quote
] |
| Message |
| No it wont. It works. Try it. (I tested before I posted) however, sending to execute DOES have the same problem. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | top |
|
| Posted by |
Poromenos
Greece (1,037 posts) bio
|
| Date |
Reply #5 on Mon 01 Nov 2004 07:09 AM (UTC) [ quote
] |
| Message |
| 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) |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | top |
|
| Posted by |
Poromenos
Greece (1,037 posts) bio
|
| Date |
Reply #6 on Tue 02 Nov 2004 05:33 PM (UTC) [ quote
] |
| Message |
| 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. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | 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.
1,775 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )