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
takke
Beginner


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: Fri Nov 01, 2002 2:53 pm   

Stw colors
 
A new day and new problems

So here I am again. I was wondering if there is a
way to get ansicolors into the stw? I know I can change
the color in the stw but I want to do it like this if
it's possible.

I have just variables in the stw and I need em to show
diffrent colors in diffrent stats. So if a @var is ON
it should show Highlighted color green and if the @var is OFF
it should show Highlighted red. Is this possible. I have tried
with #showansi but I can't get the stw to show the colors.
Anyone?
Reply with quote
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Fri Nov 01, 2002 4:32 pm   
 
Just add %ansi() codes into your text. I have a very colorful STW!

I guess you can somehow use them in variables to reflect your on/off stuff.

Have fun!

Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!

Core 2651: For those who prefer the future to the past.
Reply with quote
takke
Beginner


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: Fri Nov 01, 2002 4:53 pm   
 
That wasen't much help. As I said I know that I can use ansi
to get colors into the stw but I need em to change with the variable.
Something like this:

#If (var = on) {#cw yellow} {#cw red}

You get the point.
But I can't get it to work
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 01, 2002 6:03 pm   
 
#SHOWANSI??? You just made that up, right?

As Humpton said, you can use the %ansi function to change colors however you want in the status window. It helps if you take the time to actually investigate suggestions.

%if(@var="ON", %ansi(yellow), %ansi(red))

LightBulb
Senior Member
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