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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Sun May 01, 2011 5:10 pm   

Unwrapping
 
I had a thought about this, in some cases the blocks of text are in a separate color..

Code:
#COND {^{%s|}(%x)} {
$tagged=%yesno("Is the color tag still open from a different line?")                 //%yesno is not the best way to find this, surely
#IF (%1!=%proper(%1) AND $tagged) {
#CALL some way to append to previous line with no more than a single character of whitespace
#STATE 1
}
} {Within|Param=1}


Something equitable to that could well work, at least in some cases.
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun May 01, 2011 5:44 pm   
 
Just add the lines to a stringlist, gagging as you go until you reach a point you can define as a print point. When you reach that point, either use a replace to turn "|" into " " or a #forall loop to put together a temporary variable that you print after the loop.
_________________
EDIT: I didn't like my old signature
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