|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: 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 |
|
|
|
Oddyfish Newbie
Joined: 13 Jun 2004 Posts: 9 Location: United Kingdom
|
Posted: 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 |
|
|
|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: 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? |
|
|
|
Oddyfish Newbie
Joined: 13 Jun 2004 Posts: 9 Location: United Kingdom
|
Posted: 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 |
|
|
|
|
|