Jump to content

How to change the hp value displayed on the pipboy and the hud?


Nexusmodsaccountno2

Recommended Posts

I have made a mod that changes the way you die (basically it is a similar death mechanic to Dark Souls).

 

To get the system working I buffed the player's health by twenty thousand extra hit points. The extra hp is to make sure the player never actually dies and triggers an auto load.

 

The extra hp has made the system work but now I have the problem of hp not displaying correctly when the player will "die".

The easiest way of correcting this would be to minus 20000 from the hp value displayed, but I have no idea where to even start.

 

Is this possible through scripting? Do I need to edit the hud and pipboy with some other program? (I have seen mods that completely overhaul the look of the pipboy so it seems possible.)

Edited by Nexusmodsaccountno2
Link to comment
Share on other sites

Reworking the HUD to display just your one adjusted stat seems not only "not appealing" to most people, but also counter-productive. There are multiple HUD mods. At issue is just how you are saving your adjusted HP value, and what value is used by the HUD display. If you avoid them being the same, there should be no need to adjust the HUD.

 

To determine the value as used by the HUD display, you need to examine the XML files used to display the HUD. They are located under the "Data\Menus" folder tree. (I suspect you need ".\Main\hud_main_menu.xml", but the '<rect name="HP_Wrap">' section only refers to '<copy src="child(HitPoints)" trait="height" />'. Not clear to me what variable is providing "HitPoints".)

 

Not many modders are versed in XML, and there is not much documentation available on it for FNV. What little has been found is in the "> XML" entry under the "Miscellaneous" section of the wiki "Getting started creating mods using GECK" article. The only mod creator active in HUD work at the moment I am aware of is Axonis.

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...