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


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Fri Mar 12, 2004 11:25 pm   

Zmud Status Line/Bar
 
Ive checked all help files, tried alot of different commands but nothing seemes to work. Is it possible to put colors in the status line or that cant be done? I would appriciate a fast answer when Im in a hurry to solve this problem! [}:)]
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Mar 13, 2004 12:03 am   
 
Yes. The newer versions of zMUD support MXP (HTML) commands in the status bar. So, you can use the <COLOR> tag to add color. For example:

#ST {Hp: <COLOR red>@hp</COLOR>}

would display the @hp variable in color on the status line.

You might need to turn off the "Parse <> for expansion" option in the Parse preferences.

Using MXP you can also put hyperlinks and <SEND> menus in your status bar as desired. It's very powerful.
Reply with quote
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Sat Mar 13, 2004 12:41 am   
 
THANKS ALOT! =)
Been working my ass off to get that to work, thanks for the help mate! Very Happy
Reply with quote
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Sat Mar 13, 2004 12:41 am   
 
THANKS ALOT! =)
Been working my ass off to get that to work, thanks for the help mate! Very Happy
Reply with quote
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Sat Mar 13, 2004 12:42 am   
 
Oh sorry for spam there, just another question! Is it possible to use #if commands in status line so if Hp goes under a certain amount it get red and even lower it get red,bold?
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Sat Mar 13, 2004 2:32 am   
 
Yes. Since I've never used MXP, my example will use the %ansi function, but it will work the same way.

#ST {HP: %if(@hp<@bleeding,"red",%if(@hp<@dying,"high, red","green"))}

This also uses a couple of nested %if functions. Try it out. Substitute whatever numbers you want for the @bleeding and @dying variables.
Reply with quote
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Sat Mar 13, 2004 4:06 am   
 
Oh thanks, gonna try to check that out later when Im back to scripting again. Thanks alot for the help! [8D]
Reply with quote
insipid
Newbie


Joined: 09 Jan 2003
Posts: 6

PostPosted: Thu Apr 15, 2004 6:49 pm   
 
Would someone please post the MXP tag to increase the size of the font within the status bar if possible please?

Thanks in advance,
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Apr 16, 2004 1:04 am   
 
Sure

#HELP MXP
and all of its related helpfiles

<font name size fore back>
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