Changing text color multiple times with zMUD

by Unknown

Back to Mechanic's Corner.

Unknown2005-05-28 17:46:39
Hi ya'll. I'm really not very good with zMUD, always cured things manually with a relatively simple system. I'm pretty creative though and have made some manual systems that aren't like what you normally see and have been pretty happy with. However, I've had a new idea for a system type that I would need some help with.

Basically, it would send text to another window, which I know how to do. The idea however is that this text in said window would change colors depending on what I've done. I know how to change the color of text once of course, but how do you get it to change again?

Also, is there a way to have it automatically change the size of a new window so that I don't have to resize it every time I start it up?

spoton.gif
Sylphas2005-05-28 18:29:27
Have the window display variables. Instead of sending text to the window, send it into those variables. To change color, put an ansi code in front of the string in the variable, and to change it again, strip the code, add another, and put it all back in. Or you could have a seperate color variable, and have the window show %ansi(@colour)@text.

That's how I would do it, at least.
Unknown2005-05-29 03:38:41
By jove, that just might work. Thanks smile.gif