 |
mstorrie Beginner
Joined: 04 Oct 2002 Posts: 10 Location: United Kingdom
|
Posted: 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? |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: 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.
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sun May 18, 2003 4:49 pm |
#VAR Room_Desc %concat( @Room_Desc, %stripansi("%1"))
|
|
|
 |
|
|