Name | Color HP Monitor v1.0 |
Rating | |
Author | Ralph Churchill |
For | NetHack 3.4.3 |
Description | Change the color of your HP depending on how much HP you have left. |
If your Hp is lower than maxhp but more than 2/3 of max, it is shown green. If it is less than that, but more than 1/3 of max, it is yellow. If it's less than 1/3 of max, the color is red. And with values less than 1/10 of max, it is highlighted, blinking or whatever your screen shows with the ATR_BLINK attribute.
TTY only. Remember to add #define HPMON in include/config.h | |
Download | http://www.iki.fi/jslahti/nh/hpmon.diff (2 Kb) |
Added | January 30, 2005 18:39 |
Changed | October 20, 2012 12:57 |
Submit an update to this patch |
5 | nonni | April 17, 2012 23:39 |
Great Patch.
But I really missed food/weight coloring, and the link to Madox's patch is broken, so I altered the hpmon patch myself and added colors for food/weight statues. The color sheme is as follows: Hungry - Yellow Weak - Orange Fainting/Fainted - Red Burdened/Tested/.. - Magenta It should not "bleed" colors like Madox's patch allegedly did ;). You can get it at https://github.com/nonni/nethackstuff Use patches/hpmon_addon_vanilla.diff for vanilla nethack (after applying hpmon.diff) there is also a version for a nethack with the NAO diff applied.[Quote] | ||
5 | paxed | January 04, 2009 17:23 |
While this patch is excellent, it relies on some rather specific behaviour of the tty windowing routines; namely that only changed parts of the status lines are drawn. The patch first draws the status line, then changes color, and draws it again.
This works as long as the patch doesn't draw any colors for the parts that might get drawn beyond the last column, such as burden or hunger. This is why madox's patch causes "bleeding" colors.[Quote] | ||
5 | Dargor | September 13, 2008 23:59 |
madox, there is a bug with your diff which cause the status line to be all yellow while burdened (maybe other burden states as well). maybe because you're using the same variable that original patch, hpcolor ? I don't know the nethack codebase enough to be sure, so I can't fix it myself.
Was on vanilla nethack 3.4.3 with hpmon, your patch and menucolors.[Quote] | ||
5 | person-a | September 09, 2008 23:14 |
I'm compiling just for this!! This was the only thing I liked in the GUI version.[Quote] | ||
5 | Lokathor | August 30, 2008 01:49 |
The added coloring of food/weight status is awesome.[Quote] | ||
5 | madox | August 10, 2008 22:46 |
I updated this patch to display hunger and burden in shades of yellow/orange/red. Is it better to submit an update to this patch or create a new one which will conflict with this one?
In the meantime, you can get a diff from http://madox.ca/extra/nh343-jcvcolor.diff. Apply this diff after applying hpmon.diff[Quote] | ||
5 | AnMaster | April 07, 2008 13:21 |
I agree with that. Hungry/weak/faint is most important for me.[Quote] | ||
5 | ai0 | February 07, 2008 22:48 |
The most valuable patch. I think it should be expanded to display Pw, Hungry, Burdened etc.[Quote] | ||
5 | bobbens | July 15, 2006 13:43 |
hpmon is BASIC! it definately saves my life all the time[Quote] | ||
5 | Andrea Reina | March 20, 2006 23:35 |
Love it, made a tiny little change before applying it: changed the blinking to happen at HPMAX/7, which is the point you can #(spoiler). Looking for a way to actually make it blink, my terminal just shows it as a lighter red -- tty, no windowing system used.[Quote] | ||
5 | Clumsy | March 16, 2006 11:16 |
A must have for absent-minded adventurers![Quote] |
The most valuable patch. I think it should be expanded to display Pw, Hungry, Burdened etc.