Author Topic: How to get HP remaining instead of text descriptor & color change?  (Read 324 times)

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0


               

I've been wondering about this for years but since it didn't really directly affect the game, I never followed up. I also don't know if this would be a scripting issue or some sort of custom utility that would need to be installed.  Let me know if there is a better posting location than here, please. But on to the topic...


 


Is there a way to get the total HPs remaining on a monster (I'm interested mainly in hostile factions in this case) appear above their head instead of the colored text shown?  I've never seen such a device though it would make combat choices a bit easier for players, like deciding which flanker to attack next to get a kill and reduce the opposing forces quicker.  The closest I've seen is Diablo-esque with a graduated horizontal or vertical color bar that gets shorter as damage is taken. In some apps the bar will change color, but in others, not.


 


Seems like HP remaining value printout should be easy to do because the game must be keeping track of all the dynamic values if it is deciding when to change the text name and color during combat.  I'd even settle for the HP status report on the R-click creature description pop-up screen, if nothing else, but above the head would be best.


 


I'd really love to have this information reported in-game if possible. Even combat debugging doesn't provide this in log form... just the damage as it occurs and not even the heal amount when applicable.  Has anyone heard of a utility or project that addresses something like this?


 


TIA



               
               

               
            

Legacy_Tchos

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +0/-0
How to get HP remaining instead of text descriptor & color change?
« Reply #1 on: June 13, 2014, 05:56:37 pm »


               

One way, which would be brute force but would certainly work, would be to display it as a floating text over the character, driven by the character's heartbeat.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to get HP remaining instead of text descriptor & color change?
« Reply #2 on: June 13, 2014, 05:59:01 pm »


               

It seems to me that this would be a nice project for NWNCX, with a server side option to turn it off.



               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
How to get HP remaining instead of text descriptor & color change?
« Reply #3 on: June 13, 2014, 09:22:06 pm »


               

While an NWNCX solution would be ideal, you can use Magical Master's UpdateHP Script System. It displays enemy health as a percentage, but I imagine it would be easy to convert to showing flat HP.



               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
How to get HP remaining instead of text descriptor & color change?
« Reply #4 on: June 14, 2014, 01:20:08 am »


               

Thanks all for giving me some hope on this subject.  I'd be happy to do testing should something get pieced together.


 


In the meantime, I'll try to integrate MM's HP system, though my scripting skills are more trial 'n error than an organized undertaking.  Appreciate the Vault link, El Squatto!



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
How to get HP remaining instead of text descriptor & color change?
« Reply #5 on: June 14, 2014, 02:00:36 am »


               

If you know what a script is I'm confident you can set my system up.  Literally just need to import the script, copy/paste one line to OnSpawn, and copy/paste six lines into OnPerception.


 


Let me know if you run into any issues.  And, as SM said, it should be entirely doable to convert it to raw numbers if you prefer that, can give you a hand if needed.