Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
ennye
Novice


Joined: 17 Dec 2007
Posts: 49

PostPosted: Sun Mar 07, 2010 2:15 am   

[3.14a] %ansi issue
 
problem:
Code:
#ec %ansi(black,white)this is a test %ansi(yellow) this a test

should look like:
Code:
#say %ansi(black,white)this is a test %ansi(yellow,black) this is a test

another %ansi command in line is not reseting previous one %ansi command any more
is this a bug or should we rewrite the script?
Reply with quote
Martaigne
Wanderer


Joined: 05 Jan 2002
Posts: 88
Location: Atlanta, GA

PostPosted: Sun Mar 07, 2010 5:44 pm   
 
Try placing an %ansi(reset) before your color change?
_________________
Unwritten Legends
Reply with quote
ennye
Novice


Joined: 17 Dec 2007
Posts: 49

PostPosted: Sun Mar 07, 2010 10:43 pm   
 
I know how to avoid it, the question is if it is going to be changed ;)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Mar 08, 2010 2:49 pm   
 
Actually, I think this is the correct effect. If I set the background color, I wouldn't want another %ansi() to change the background unless I specifically asked it to. %ansi(yellow) should only affect the foreground color, in my opinion.
Reply with quote
ennye
Novice


Joined: 17 Dec 2007
Posts: 49

PostPosted: Mon Mar 08, 2010 2:59 pm   
 
May be. But its been working that way since the begining of zmud/cmud.
%ansi always reset color from its position.
And i prefer it working that way.
Since this update i have all new colorfull script effects ;)
However no problem rewriting it, adding background color where its ommited.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Mar 08, 2010 4:35 pm   
 
From the 3.14 version history:
Quote:
%ansi(textcolor) no longer also returns the string for a black background color

So I guess it was a deliberate change. Looks like previously it wasn't merely resetting the background color, it was specifically setting it to black. I never noticed that previous behavior because I always use black background.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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