Random generation of troop attributes/skills

正在查看此主题的用户

Mydienon

Sergeant
I've read the documentation on Module_Troops.py, and found this:

...
Note that, in addition to the attributes and skills you've defined, the troop also gets 1 random attribute point and 1 random skill point per character level.

However, recent testing has proven that troops do not have total attributes = defined attributes + level.  Typically, they have a few more points.

Troops also do not have total skill points = defined skills + level.  Typically, they have a lot less points.

I wasn't able to find any other topic or information on this.  I posted a similar question in the Apprentice Guild here: http://forums.taleworlds.com/index.php/topic,20514.msg476482.html#msg476482

However, I decided that since this is a game-code question, rather than a game-playing question, it really belongs in The Forge.

Thanks--
Mydienon
 
Er....yes, you're absolutely right... :oops:

So, ah, my question is:
How are the attributes and skills generated for troops at a given level? 

Most units have the "common" skills:  riding(1), trade(2), inventory management(2), prisoner management(1), and leadership(1)

Most units have minimum attributes set at Strength(5), Agility(5), Intelligence(4), and Charisma(4)


So, assuming a unit has those skills and those attributes, what happens when the unit is given level 5?  Level 10?  Level 58? 

The documentation states that a Level 10 unit would gain +10 skill points and +10 attribute points, randomly distributed.  But the reality is that units tend to receive a few more attribute points, and a lot less skill points.

Does anyone know what the true formula is for randomly generated troops in .808 Native?

Thanks...

--Mydienon

EDIT: 
I've been testing this, and it looks like all units have total attributes = 20 + level.  This is true for all of the units I've checked (about half of them).  This is also regardless of the number of defined attributes.  For example, if a level 1 unit is set to have STR 10, it will still have total attributes equal to 21.

I don't know what happens if the defined attributes are higher than 20+unit level.  I suspect that the defined attributes are set, and no additional attribute points are randomly distributed.

Also, this is still a theory.  I'm looking for better information, so if anyone can confirm my results, or disprove them, or (of course) provide the true random generation formula, it would be extremely helpful.

------
As for skills, my tests show that almost all units have total skill points = 3 + level.  This is true for all of the units I've checked with the exception of the Caravan Master, which has 2 extra skill points.

The Caravan Master has defined skill points higher than 3+unit level.  Caravan Master is level 9; 3+9 = 12 skill points.  Caravan Master has 13 defined skill points. 

I would expect the Caravan Master to have the 13 defined skill point assigned, and no additional skill points randomly distributed.  However, the Caravan Master has a total of 14 skill points.

Again, any information to help clarify my results or provide better information would be appreciated. 
 
Did you check the effect of Int (defined, randomly generated, or both) on the skill points?  I thought I had observed at one point, a while back, that the skill points were equal to some constant, plus Int, plus level.  Which was previous to 0.8xx, I think, but that might still explain it if true.
 
I did look at INT to see if it had any affect on skill points.  It doesn't.  Both the auto-generated troops and Borcha/Marnid have the same number of skill points regardless of INT.  (Of course, B&M get the advantage of increases to INT once they are under your control).

Only the player's character has total skill points equal to 11 + INT + Level.  Twelve of those skill points are automatically assigned when the character is created, based on the character's background.

--Mydienon


EDIT:  Sorry it took so long for me to respond.  My ISP tends to periodically forget what the 'S' stands for.
 
后退
顶部 底部