Jump to content

Hit point modifiers


xaechireon

Recommended Posts

I'm trying to alter the way Endurance affects your total hit points. As it is, Endurance only grants you a greater base health and doesn't affect how many hit points you gain upon leveling up. I've been searching geck.bethsoft.com for the appropriate values to alter, but I can't find them. Any help would be mostly appreciated.
Link to comment
Share on other sites

After messing around with a couple things under the Gameplay tab, I found that in Settings there are values that affect how much HP Endurance gives and how much you gain per level.

 

fAVDHealthEnduranceMult (set to 20.00 by default) controls how much HP each point of Endurance awards.

 

fAVDHealthLevelMult (set to 5.00 by default) controls how much max HP you gain each level.

 

If it is possible to make fAVDHealthLevelMult use a variable (like something that is derived from an equation similar to this: [bonus = x + Endurance * y],) then you could have Endurance affect how much health you gain by leveling up.

Link to comment
Share on other sites

Thanks to documn at the Fallout3Nexus forum, I have a working solution.

 

Modifying the script he suggested a bit, I wrote a script that even works retroactively provided the player levels up at least once:

 

scn ThromHealthProgressionSCRIPT
short level

Begin MenuMode 1027

       if Player.GetLevel != level
               short newPlayerHealth
               set newPlayerHealth to 100 + (Player.GetLevel - 1) * 5 + Player.GetActorValue Endurance * 2 * (Player.GetLevel - 1) + Player.GetActorValue Endurance * 20
               Player.ForceAV health newPlayerHealth
               set level to Player.GetLevel
       EndIf

End

 

As it is above, each point of Endurance would grant the player an extra two health each level.

Refer to documn's answer in this thread for more info.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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