 |
ililili Newbie
Joined: 28 Jan 2012 Posts: 3
|
Posted: Sat Feb 18, 2012 2:50 pm
Retaining original colors with #PSUB |
How do you retain colors when using #PSUB?
#TRIGGER {(%w) tells you} {#PSUB {[%1]} %x1}
This will strip the original MUD colors. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Feb 18, 2012 4:26 pm |
You need to use an ANSI trigger, which means you need to also include the ansi colorcode pattern to match.
#trigger {(%e[36m%w) tells you}...
If tell color is configurable, you can use wildcards instead of literal colorcodes:
#trigger {(%e[[%d;]m%w) tells you}... |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
ililili Newbie
Joined: 28 Jan 2012 Posts: 3
|
Posted: Sun Feb 19, 2012 3:36 am |
How do you prevent PSUB/SUB from removing the carriage return for an entire line? It's wrapping the next line for me.
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4769 Location: Pensacola, FL, USA
|
Posted: Sun Feb 19, 2012 2:03 pm |
you use a trigger state for any additional lines
|
|
_________________ Discord: Shalimarwildcat |
|
|
 |
ililili Newbie
Joined: 28 Jan 2012 Posts: 3
|
Posted: Mon Feb 20, 2012 12:15 am |
Can you explain a bit more? I want to treat each line individually, regardless of what other lines come after it.
|
|
|
 |
|
|