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


Joined: 17 Apr 2004
Posts: 3
Location: USA

PostPosted: Sun Apr 18, 2004 7:27 pm   

Button color control....again
 
Just for the knowledge, what trigger would you use to change the background of a button based on your number of hp/mvt points?

Again, my trigger is:
#TR {(%d)h/(%d)H} {#VAR @hp %1;@Mhp %2}
the movement trigger is the same with different variables

It would be better to use a trigger based on a percentage of hp/mvt points rather than the actual number. How would I do that?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 18, 2004 7:59 pm   
 
#TR {(%d)h/(%d)H} {#VAR @hp %1;@Mhp %2;#IF ((%1 * 2) < %2) {#CALL %btncol( 1, red)} {#CALL %btncol( 1, gray)}}

Vijilante already told you about %btncol. There was no need to start another topic.
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