DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.86k stars 468 forks source link

Health overlay widget #2350

Open myk002 opened 1 year ago

myk002 commented 1 year ago

Suggested by Ozzatron

I think that a body injury readout with a little stickman would be useful.

In the MechWarrior games, you pilot a giant combat robot. One of the corners of the screen shows you an image of your BattleMech, with the various parts colored based off of how damaged they are.

The issue that I have in adventure mode is that what you get on the bottom bar is mostly symptomatic instead of the root causes. For example, it'll say Winded or Bleeding! Winded... I could have ran too much. Or I could have my lungs perforated by steel bolts. Similarly, Bleeding and Bleeding! are both pretty unhelpful. The only thing you know for sure is that if it doesn't have an exclamation point it won't kill you. But even bleeding with an exclamation point often isn't fatal. I would put in a little stickman and color the parts based on level of damage, based on DF's standard "severity" color codes: white, blue, yellow, red, purple, absent. purple would be pulped, red would be nerve damage, bone damage or organ failure, yellow would be bleeding, blue would be bruising or other minor flesh wounds Another thing DF does a very bad job of telling you, is whether you are poisoned or otherwise Syndromed. If you wanted to continue this idea of the player health widget, you could have various additional notes like good ol' Pokemon purple [PSN].

OH, right, I forgot. You could also use flashing between light and dark red. DF uses flashing between light and dark purple for Pale for dwarves that are quite literally about to die of blood loss.

If clicked, the widget would take you to z->h

Full-heal has code that deals with wounds.

myk002 commented 1 year ago
>O<
/T\
 |
/ \

where the >< only appear for creatures with wings. This should cover the vast majority of creatures. Injuries to the neck and throat are shown on the head. It didn't seem feasible to add a neck segment.

Optionally place an underscore to the left of the lower body for a tail.

Likewise, injuries to the hands or feet are shown on the arms and legs respectively.

rafaelkb commented 12 months ago

I can 100% do a graphical overlay on the same style as Project zomboid image

myk002 commented 12 months ago

Remember that anything you do has to also be reasonable in ascii

maxinfet commented 10 months ago

I think it would be interesting to add a panel under the minimap (if this is possible) showing the representation of the body of the currently selected creature. Going to the Health -> Description tab of the creature and trying to switch between dwarves and what you are fighting can be slow/tedious, and it would make combat more fluid if you could quickly get an overview of the health/damage creatures have taken by switching the focused creature.

This would be a smaller area, so it might not be feasible to show the detail you can get from the Health -> Description tab since it shows damage to internal organs and parts of parts, but it would be useful for a quick overview and maybe showing the Health -> Status text under the representation of the body.