[PATCH] Tactical health bar changes color based on health

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
magelike
Halfling
Posts: 109
Joined: Mon Sep 26, 2011 4:31 am

[PATCH] Tactical health bar changes color based on health

#1 Post by magelike »

Patched against b34 as usual - UPDATE: Added Mithril's suggestion

Patch: http://pastebin.com/GcbL2bSS

This patch changes the behavior of actors' health bars (the ones that appear on the map, not the status pane) as follows:

Full Health/Mana/Stamina/Psi = Health bar is blue
Greater than 85% health = Health bar is green (like it is currently)
Greater than 60% health = Health bar is yellow
Greater than 35% health = Health bar is orange
Greater than 0% health = Health bar is red

Especially since health bars are often obscured by tactical borders or the actor's graphic, this patch allows players an immediate and much clearer understanding of how close they and their targets are to dying.
Last edited by magelike on Tue Nov 08, 2011 12:30 am, edited 3 times in total.

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: [PATCH] Health bar changes color based on current health

#2 Post by Grey »

I'd personally prefer the limits to be 0/25/50/75. 35 and 85 are odd numbers to think about, whilst "half dead" or "quarter dead" are much simpler.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

Mithril
Archmage
Posts: 327
Joined: Fri Oct 01, 2010 5:43 pm

Re: [PATCH] Health bar changes color based on current health

#3 Post by Mithril »

A special color just for the player when 100% rested would be nice. This is order to quickly see when resting is needed. This would include not only having 100% health but also having 100% stamina and so on.

magelike
Halfling
Posts: 109
Joined: Mon Sep 26, 2011 4:31 am

Re: [PATCH] Health bar changes color based on current health

#4 Post by magelike »

Grey wrote:I'd personally prefer the limits to be 0/25/50/75. 35 and 85 are odd numbers to think about, whilst "half dead" or "quarter dead" are much simpler.
I tried that, but due to the way health bars are drawn on the player, you almost can't see when you go red at 25% health. Also, a green bar at 76% health is a little bit deceptive, because that implies (close to) perfect health in the new system. I found it to be much more intuitive with the way it is currently.
Last edited by magelike on Mon Nov 07, 2011 10:21 pm, edited 1 time in total.

magelike
Halfling
Posts: 109
Joined: Mon Sep 26, 2011 4:31 am

Re: [PATCH] Health bar changes color based on current health

#5 Post by magelike »

Mithril wrote:A special color just for the player when 100% rested would be nice. This is order to quickly see when resting is needed. This would include not only having 100% health but also having 100% stamina and so on.
I like that. Maybe your health bar takes on some sort of blue color when all of the resources you regenerate by resting are at full capacity.

magelike
Halfling
Posts: 109
Joined: Mon Sep 26, 2011 4:31 am

Re: [PATCH] Health bar changes color based on current health

#6 Post by magelike »

Added your suggestion, Mithril. Now when a party member's health and his applicable mana/stamina/psi bars are full, his health bar will turn blue.

bricks
Sher'Tul
Posts: 1262
Joined: Mon Jun 13, 2011 4:10 pm

Re: [PATCH] Health bar changes color based on current health

#7 Post by bricks »

magelike wrote:I tried that, but due to the way health bars are drawn on the player, you almost can't see when you go red at 25% health. Also, a green bar at 76% health is a little bit deceptive, because that implies (close to) perfect health in the new system. I found it to be much more intuitive with the way it is currently.
Perhaps a supplementary patch for drawing the health bars over the tactical borders? Except at very high tile sizes the health bars are already pretty much invisible.
Sorry about all the parentheses (sometimes I like to clarify things).

Mithril
Archmage
Posts: 327
Joined: Fri Oct 01, 2010 5:43 pm

Re: [PATCH] Health bar changes color based on current health

#8 Post by Mithril »

bricks wrote:
magelike wrote:I tried that, but due to the way health bars are drawn on the player, you almost can't see when you go red at 25% health. Also, a green bar at 76% health is a little bit deceptive, because that implies (close to) perfect health in the new system. I found it to be much more intuitive with the way it is currently.
Perhaps a supplementary patch for drawing the health bars over the tactical borders? Except at very high tile sizes the health bars are already pretty much invisible.
The tactical borders take up a lot of real estate space at least when using tiles. Their main function is to indicate hostility or not? Maybe this could be achieved in way that takes up less space.

Drawing the health bar over the tactical borders seems like a good idea.

Post Reply