![](templates/Classic/images/spacer.gif) |
EZE Beginner
Joined: 04 Sep 2002 Posts: 21 Location: USA
|
Posted: Wed Jan 08, 2003 4:50 pm
Stripes!! |
How can I get the Zmud to automatically insert a color code to a certain column number that, when looked at as a paragraph that has stipes of two different colors?
The codes my mud uses are:
> help color
[Game help] ANSI color
Syntax: color will toggle color on and off
$x where x is any of the below will set that option
Foreground Color Codes Background Color Codes
$0 Black $F Red
$1 Blue $f Green
$2 Green $G Brown
$3 Cyan $g Blue
$4 Red $H Magenta
$5 Magenta $h Cyan
$6 Brown $i Light gray
$7 Light gray
$0$I Dark gray Special Codes
$1$I Bright blue $I Intense
$2$I Bright green $R Reverse
$3$I Bright cyan $A Normal
$4$I Bright red $B Blink
$5$I Bright magenta
$6$I Yellow
$7$I White
I want to make stripes that are alternating brown($6) and dark grey($0$I). I am not sure exactly how wide the stripes would be, but I have found that every six to ten characters looks best. I would only use this for when I am changing descriptions for my character, though I am sure I could make alias(es) to toggle the scripting on and off, I just cant figure out how to insert the codes without c&p or long drawn out frustrating typing.
I have been experimenting with different #oninput and similar commands, without the intended results.
Thanks for any ideas...
E
Shattered Kingdoms |
|
|
![](templates/Classic/images/spacer.gif) |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jan 08, 2003 5:32 pm |
#AL stripes {#LOOP 1,%eval(%len("%-1")/12 + 1) {#SENDP ~$6;#SENDP %copy("%-1", ((%i * 12) - 11), 6);#SENDP ~$0~$1;#SENDP %copy("%-1", ((%i * 12) - 5), 6)};#SENDP ~$A;#CR}
LightBulb
Senior Member |
|
|
![](templates/Classic/images/spacer.gif) |
EZE Beginner
Joined: 04 Sep 2002 Posts: 21 Location: USA
|
Posted: Wed Jan 08, 2003 5:55 pm |
Yay!!
Thanks again!
E
Shattered Kingdoms |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
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
|
|