|
teylos Newbie
Joined: 26 Dec 2007 Posts: 5
|
Posted: Mon Dec 31, 2007 3:13 am
Using #CAPTURE to grab multiple lines? |
So I'm playing a MUD where you get tells like this:
Soandso tells you, "Sally sells
sea shells by the
sea shore".
Using #capture on "tells you," only grabs the first line. Is there a way to make the capture continue until the ". at the very end is received? I noticed the #C+ and #C- commands but I'm not sure exactly how to use these to accomplish this. There is apparently no way to turn off the word-wrapping from the MUD. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Dec 31, 2007 3:32 am |
Change MUD to one that lets you turn off word-wrapping ;P Seriously, though - it's the single most frustrating thing MUDs do wrong.
I prefer to use an enabled/disabled trigger rather than #C+, but the principle is similar:
#trig {^%w tells you, ~"} {#t+ cap;#cap whatever}
#cond {."$} {#t- cap;#cap whatever}
#trig "cap" {*} {#cap whatever} "" {disable}
You could do this with #C+ just by removing the cap trigger and the #T+/- commands and replacing the two #caps with #C+ and #C-. |
|
|
|
|
|