Jump to content

Berserker damage boost mod -- How to do it?


AlternaBase

Recommended Posts

So I've got an old mod I decided to come back to and fix up and make it actually work. There were a bunch of issues with how I did it before, but they're still coming back even after refactoring the code. Here's what's going on:

 

I want the player to get a damage boost equal to how much health they've lost from their max HP. To do this, I first check base HP (I know it's not max but I needed a place to start) and subtract it by their current HP. If it's less than the Base, then I modify the actor values. Here's the problem: If I do meleedamage or unarmeddamge actor values, it works fine until you start healing or use a potion. Then it goes into the negatives on damage. This leads me to believe that base HP is calculated somehow from current HP state, i.e. if you're damaged base HP is changed somehow. I'm not sure.

 

I also tried switching the actorvalues to skills (like onehanded, twohanded, block, etc.) but this had it's own problems, primarily that it wasn't as noticeable a damage boost, and once it ticked over to a new skill level it stayed at that level, even when lowering itself back down to base. Again, I think base is getting changed.

 

What would be the best way to modify damage? For right now, I only want to modify non-magic damage (melee, bows, and unarmed). What would be the best way to check for the Max HP?

 

Any help would be greatly appreciated. Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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