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
DavidEdwards
Newbie


Joined: 29 Oct 2002
Posts: 2
Location: United Kingdom

PostPosted: Tue Oct 29, 2002 11:00 pm   

IF & Colour
 
Can I use the IF statement in ZMUD to work out what the colour of a line is?

like:
%if("%1-colour"="yellow",DO-A,DO-B)

Thanks,
David Edwards
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 01, 2002 6:44 am   
 
According to the helpfile on predefined variables, %linecol contains the color attribute of the first character in the line.

LightBulb
Senior Member
Reply with quote
DavidEdwards
Newbie


Joined: 29 Oct 2002
Posts: 2
Location: United Kingdom

PostPosted: Sat Nov 02, 2002 7:50 pm   
 
ahhhh, thanks a lot!
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