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
Spectrum
Beginner


Joined: 13 Feb 2003
Posts: 13
Location: Philippines

PostPosted: Thu Sep 18, 2003 10:55 am   

Body Parts diagram
 
I tried making a body part diagram of 6 body parts: head, torso, left/right arm, right/left leg.

I used 6 buttons of different sizes to create a simple model for each part.

Now I want the buttons to change color according to amount of damage they receive example. When the mud says my left arm is injured. The button representing the left arm would change its color to yellow then if it says critically injured then it would change its color to red. If no damage sustained to the body part then just gray or colorless. How do I make buttons change color 3 times?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Sep 19, 2003 5:00 am   
 
ok not to toot my own horn but I have an example of changing button colors with this finished script:

http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=12876

studi that and I will be back later with a scriot EXAMPLE for you, since you did not leave the triggers for the guages.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Sep 19, 2003 5:54 am   
 
Here you go, my own version.

#CLASS {BodyDamage}
#TRIGGER {You have been healed.} {#NOOP %btncol(Head,grey,grey);#NOOP %btncol(Rightarm,grey,grey);#NOOP %btncol(Torso,grey,grey);#NOOP %btncol(Leftarm,grey,grey);#NOOP %btncol(Rightleg,grey,grey);#NOOP %btncol(Leftleg,grey,grey)}
#TRIGGER {Your head is injured.} {#NOOP %btncol(Head,yellow,yellow)}
#TRIGGER {Your head is criticaly injured.} {#NOOP %btncol(Head,red,red)}
#TRIGGER {Your right arm is injured.} {#NOOP %btncol(Rightarm,yellow,yellow)}
#TRIGGER {Your right arm is criticaly injured.} {#NOOP %btncol(Rightarm,red,red)}
#TRIGGER {Your left arm is injured.} {#NOOP %btncol(Leftarm,yellow,yellow)}
#TRIGGER {Your left arm is critically injured.} {#NOOP %btncol(Leftarm,red,red)}
#TRIGGER {Your torso is injured.} {#NOOP %btncol(Torso,yellow,yellow)}
#TRIGGER {Your torso is criticaly injured.} {#NOOP %btncol(Torso,red,red)}
#TRIGGER {Your left leg is injured.} {#NOOP %btncol(Leftleg,yellow,yellow)}
#TRIGGER {Your left leg is criticaly injured.} {#NOOP %btncol(Leftleg,red,red)}
#TRIGGER {You right leg is injured.} {#NOOP %btncol(Rightleg,yellow,yellow)}
#TRIGGER {Your right leg is criticaly injured.} {#NOOP %btncol(Rightleg,red,red)}
#BUTTON 4 {H} {} {} {} {} {} {} {Size} {21} {23} {Pos} {1} {28} {119} {} {} {} "" {} {} {Head}
#BUTTON 5 {RA} {} {} {} {} {} {} {Size} {19} {37} {Pos} {23} {1} {119} {} {} {} "" {} {} {Rightarm}
#BUTTON 6 {T} {} {} {} {} {} {} {Size} {37} {30} {} {} {} {119} {} {} {} "" {} {} {Torso}
#BUTTON 7 {LA} {} {} {} {} {} {} {Size} {19} {37} {} {} {} {119} {} {} {} "" {} {} {Leftarm}
#BUTTON 8 {RL} {} {} {} {} {} {} {Size} {19} {37} {Pos} {52} {19} {119} {} {} {} "" {} {} {Rightleg}
#BUTTON 9 {LL} {} {} {} {} {} {} {Size} {19} {37} {} {} {} {119} {} {} {} "" {} {} {Leftleg}
#CLASS 0

hey thanks I had fun doing this and I found a way to update my direction pad.
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