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
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Mon Jun 14, 2004 2:51 am   

different values different colors... how?
 
I have set up 3 different triggers that color my "current hp" depending on the value (< 1200 #color aqua, < 900 #color red, < 500 #color bold,red).

I wonder if it's possible to set up this with 1 trigger (instead of the three I'm using)? I guess I could something with #EVAL but I'm not sure how exactly...

Cheers,
Mikael
Reply with quote
Oddyfish
Newbie


Joined: 13 Jun 2004
Posts: 9
Location: United Kingdom

PostPosted: Mon Jun 14, 2004 2:56 am   
 
Can't ye jus use

#IF (@yarg < 900) {#COLOR peuce} {
#IF (@yarg < 1200) {#COLOR jelly} {#COLOR cow_green}
}

You're probably going to have to give examples of the code you have at the moment - especialy at this time of night
Reply with quote
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Mon Jun 14, 2004 3:01 am   
 
Nod, I just wrote a nestled #IF trigger (like you suggested) but it made me wonder if there could be a performance issue.

I mean, how much computing juice does nestled #IF triggers consume? Or is that rarely an issue with Zmud?
Reply with quote
Oddyfish
Newbie


Joined: 13 Jun 2004
Posts: 9
Location: United Kingdom

PostPosted: Mon Jun 14, 2004 3:04 am   
 
Its about as light as it gets - the pattern matching algorithms are probably horrendous.

I mean - I'm not getting any command lag yet and I have masses of scriptage.

Ok - and on that note, I'm going to bed. Because the sooner you get to sleep - the sooner Santa brings you the answers to your posts :D

nn and good luck with the continued coding
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