[Circle] Health Percentage...

From: Bruce, Ray, Phil (bherbert@ns.technonet.com)
Date: 11/16/96


I'm editing my PROMPT and I was thinking of making the Health, Mana, and
Movement points change color from GREEN to YELLOW and RED according to
their percentage from their Maximum. Could someone direct me on how to
calculate that? I can do the color and formatting myself... I'm just not
sure on how to do the math.
I would want to do it at 33.3% for each so:
out of 100 HP
100 - 66 GREEN
66  - 33 YELLOW
33  - 0  RED

Get it?

	      *Frostiana*  BETA
		http://www.durand.net/Frostiana
		telnet://206.31.114.50:5000

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST