Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
teylos
Newbie


Joined: 26 Dec 2007
Posts: 5

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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-.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net