Jump to content

Followers: Skill/Attribute Calculation question


FelesNoctis

Recommended Posts

(Skip to the end for the TL;DR, lots of calculation fails ahead)

 

-----

 

So I've been trying to remake an old and abandoned follower mod, and I've gotten all the spells and passives stuff down, but something bothered me. The companion has awfully high attributes and skills, both in base and offset. We're talking like...

 

Magicka: 604

Magicka Offset: 450

Magicka Class Weight: 3

 

For the moment I've been editing this all in TES5Edit, not the CK, but if I'm understanding this correctly that means that the follower has a starting Magicka value of... 1054? So I wanted to try and turn that down a bit, get them roughly on the same level as other followers. Maybe with a small bonus due to their race, but still. But then I started trying to figure out how other followers' stats level. Here's what I know, or at least read:

 

NPCs gain 8 skill points per level.

NPCs gain 10 attribute points per level.

NPCs always gain 5 Health per level, before attribute points are spent.

Skills and attributes are weighted by priority.

 

I decided to pick what I thought was an easy example to get my facts straight, Sven.

http://www.uesp.net/wiki/Skyrim:Sven

http://elderscrolls.wikia.com/wiki/Sven

 

Immediately something's up. Those two different wikis produce completely different information. The wikia one has his base attributes correct (91/67/67), UESP has 50s across the board. The UESP calculations don't match anywhere near the Wikia ones. Consider he's level 20, so Health=6.2*20+50=174? In fact, using that calculation but replacing the 50 with 91 works out better (6.2*20+91=215, or for sake of argument if you d, 6.2*19+91=208.8, where the Wikia says 208). And then skills... how does the weighting work exactly? Sven is considered a Lumberjack. I would have thought weighting would have been dividing the skill value up by the total skills, distributed in equal parts. So Lumberjack is 2+2+2+3+1+1+3+1+3=18, 8/18=0.4 (rounded off) per weight point. Enchanting is a 3, so 1.2 per level? So, if we don't count level 1, 1.2*19=22.8, then add his base value, so 22.8+22 = 44.8. The Wikia claims that his max enchanting is 40. What? I'm way off here somehow, but I'm not sure what I'm missing. Either these numbers on the Wikia/UESP aren't accurate, or I'm completely off-base with how these calculations work.

 

-----

 

So to reiterate the question, how the heck does Skyrim calculate NPC per-level skill and attribute gains? Considering the total weights are much higher than the given points to spend (or in the case of attributes cause them to be unevenly distributed), how does it determine what goes where each level? Am I correct with the (Points/TotalClassWeight)*StatWeight calculation, and the Wikia numbers are just wrong?

 

Seems like no matter what I put into a google search, I just get responses of "followers didn't used to level their stats but now they do, yay!" Not very helpful. :tongue: At least I've figured out how to create and give them a custom perk that levels their destruction spell damage with their destruction skill, I think.

 

EDIT:

No, my calculations are definitely wrong. I just tested the follower in-game, level 10 (minimum), getav Destruction was 67. NPC has a base of 49, and with my calculations for the class (with gains for 9 levels) it should have come out to 70.6. I can not for the life of me figure out how it determines where to put what with each level!

Edited by UltimateZero
Link to comment
Share on other sites

  • 1 year later...

So I don't know if you ever found your answers elsewhere on the web; but, I've been playing with my own numbers from UESP page and using AFT on the console and I think I have the numbers showing marginally close to what they should be. I believe I am still missing something to make it exact. I hope this will be of some use to you or others that are seeking this.

 

https://1drv.ms/x/s!AvTuC6XgdEbCahSAPD9TvvOj6AM

 

If you or anyone else has some correction or input on this let me know.

Link to comment
Share on other sites

Skyrim rounds everything down, so you should do the same with your calculations.

 

I've been working on this for days before giving up since without being able to obtain the stat weights through math, there was no point to continue with it. Basically was trying to work out a formula to return the stat weights from the points put into the stats, to avoid having to look the weights up on wikis or the CK. Other than that, I can get some accurate results. For NPCs who aren't set to scale with the player's level, getting accurate results is very easy. Stat weights are always a 6th of the total points.

 

As a quick example.. If health, magicka and stamina are 3 0 3, you would do 3 / 6 * 10 (if the NPC was level 2). That's 5 points that will go into health.

Base health would be.. 12(race value). Add 5 and then add the NPC bonus of 5. Calculated value is 22. Do the same with Stamina, obviously without the health bonus. For situations like 3 1 2, you do the highest first, second highest second, and the last one. The last gets the remaining points from the ratio of the first two stats.

 

But the UESP is using the base values that are set the on the NPC's race. Their actor forms then calculate the final value from this number. The other wiki is using the calculated value.

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

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