|
spectacle1982 Newbie
Joined: 17 Apr 2004 Posts: 3 Location: USA
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
|
|
|
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
|
|