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


Joined: 04 May 2002
Posts: 1

PostPosted: Sat May 04, 2002 7:05 pm   

Newbie coloring question
 
Hi!
I'd like to see group members mana, health and edurance points colored and maybe players whose health is getting low. But I'm really not good programmer and don't know how I could do that. Nothing I've tried works so I was hoping if someone could help me out.
This is how i'd like to make it show:


,--------------------------------------------------------------------.
| 1.1 player1 ta 421( 921) 19( 19) 110(318) | 894 |
| 1.2 player2 ta 72( 792) 46( 46) 234(235) | 2122 |
| 1.3 player3 lr 553( 632) 246( 246) 34(313) | 2354 |
| 2.1 player4 mg 332( 332) 46(1002) 256(256) | 143 |
`--------------------------------------------------------------------'



¤ Heidi, mistress clad in light ¤
Reply with quote
Slink
Newbie


Joined: 04 May 2002
Posts: 2

PostPosted: Sat May 04, 2002 7:43 pm   
 
Here is something similar that may be of use: It basically color codes a stat based on its value-
#TRIGGER {%d Stm}
#sub %if( %1>100, %ansi( low, blue)%1 Stm, %if( %1>70, %ansi( high, green)%1 Stm, %if( %1>40, %ansi( 6)%1 Stm, %if( %1>20, %ansi( high, red)%1 Stm, %ansi( blink, red)%1 Stm))))
As you can see, above 100/130 its blue, then green, yellow, red and finally flashing red.
My maxstats are static in the Mud, but I'm sure this could easily be converted into percentages instead of static values.

Hope that helps.
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