|
sepe Novice
Joined: 09 Feb 2002 Posts: 39 Location: USA
|
Posted: Tue Dec 02, 2003 1:06 am
Return line and multi lines |
I use a trigger to send all tells to a seperate window....
pattern = tells you
Command is:
#CAP tell
#GAG 0
(I put the 0 in there cause I saw it while looking through other posts for this answer, but that didn't work either)
First problem - If the tell is more than one line, only the first line goes to the new windo the rest goes back to the main window.
Second - Even small lines where all the text goes to the tell window, I still get a return line in the main window. In other words, just the prompt then a blank line. like such
830h, 0m cdei([{-}])
This is a copy of what I mean
In main window I see
830h, 0m cdei([{-}])
I'll get some nice ones".
In the Tells windo I got
Somebody tells you, "True! I'm having surgery on the 16th... Hopefully
I hope that enough info, thanks.
Oh and by the way, I have this same gag problem (with the return line that is)even if I don't send it to anouther window or such, quite a pain. |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Dec 02, 2003 1:55 am |
#gag
then
:tell:"%1"
should solve most of your problems
then searc this site for multiple line triggers for the rest it has been talked to death over and i think it has even been in the finished med scripts |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Dec 02, 2003 4:45 am |
Actually, the reason you have that "extra" return is because the mud double-spaces the output. #GAG will gag everything on that line up to and including ONE return (the second return used to space lines is left alone).
Using $ as a place-holder, this is how it looks:
This line gets gagged.$ <--#GAG eats this return
$ <--#GAG doesn't touch this one
Fortunately, you do have an easy and elegant option in multi-state triggers, unless your mud coders are rather forgetful or evil.
#trigger {your original pattern} {your original code}
#condition {^$} {#gag}
The first condition (what you orginally had) does what you want, and the second condition catches the leftovers. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|