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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mstorrie
Beginner


Joined: 04 Oct 2002
Posts: 10
Location: United Kingdom

PostPosted: Sat May 17, 2003 10:23 pm   

Capturing multi lines without ansi
 
The mud I play (aetolia) embeds objects, and exits at the end of the description paragraph causing trouble with zmapper capturing the description (as the objects may move). The description, objects and exits are a different colour, so using ansi triggers and %concat with #TAGs I am able to capture the description, except I get any ansi codes within the description and all commas followed by space seem to be removed. an example trigger is;

#TRIGGER {%e[37m(*)$} {
#VAR Room_Desc %concat( @Room_Desc, {%1})
} "" {color}

Can anyone help?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat May 17, 2003 10:38 pm   
 
quote:

The mud I play (aetolia) embeds objects, and exits at the end of the description paragraph causing trouble with zmapper capturing the description (as the objects may move). The description, objects and exits are a different colour, so using ansi triggers and %concat with #TAGs I am able to capture the description, except I get any ansi codes within the description and all commas followed by space seem to be removed. an example trigger is;

#TRIGGER {%e[37m(*)$} {
#VAR Room_Desc %concat( @Room_Desc, {%1})
} "" {color}

Can anyone help?



Hmm, isn't there a %stripansi() function? I believe you'll want something like that

li'l shmoe of Dragon's Gate MUD
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Sat May 17, 2003 11:41 pm   
 
Since Aetolia is another version of Achaea...you might want to search the boards for any mapper questions about it.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sun May 18, 2003 4:49 pm   
 
#VAR Room_Desc %concat( @Room_Desc, %stripansi("%1"))
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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