Perhaps a little late considering that RTW will (hopefully) be here soon, but I finally got curious about the common problem of favored generals and royalty suddenly becoming inbred and perverts, a cruel outcome for a carefully groomed general.
So with a little bit of mental judo, a hex editor & too much time on my hands I've discovered how to edit V & Vs. So far my method is a bit of a kludge, having to manually search for the hex values of the general's/royalty's V & Vs, then making a change to see that I've found the correct guy.
The hex values for each V & V are fairly easy to work out, starting with Great Warrior with a value of 0100h, Natural Leader is 0400h, Killer Instinct is 0800h, etc. I did it the hard & boring way, editing a single unit again & again until I had the full list, although I believe it follows the same order as the list of V & V descriptions in events.txt.
The first V & V for each general/royalty will generally start at hex address nnn2h, where nnn is the rest of the address, eg. 442h or 1A6D2h. There is a quirk where a prince will instead have his V & Vs start at nnn4h - in these cases I suspect that the value that is at nnn2h is linked to tracking the prince's place in the royal family tree, ie. so the system knows when to make the prince a normal general after a nephew becomes king, dropping the prince from the royal line. There is then space for about a dozen V & Vs, but only the first 10 will be displayed when you view the general, although the others will still have an effect. As an example, if you wanted to go way over the top & have a Legendary Leader/Specialist Attacker/Field Defense Specialist/Specialist Sieger/Unbribable Jedi Master, you'd overwrite the current values with 0700 3600 3900 3C00 8400 starting at address nnn2h.
There is another quirk that I haven't worked out yet where the values 0010h, 0020h or 0030h are added to the hex value of a V & V but it still works correctly, eg. Brave Beyond Belief is normally 2101h, but can occasionally be 2111h, 2121h, etc. I haven't fully investigated, but I would speculate this tracks something like marriage status or maybe the increased/decreased likelyhood of the V & V progressing up the chain, ie. Natural Leader to Legendary Leader - I'm just guessing really, trying to think of possible reasons.
Another oddity is that in the space to add V & Vs, instead of the usual null value of 0000h, you'll occasionally see 0004h. I'm not 100% sure about these values, but I'm beginning to suspect that they're markers for the system to add 'random' vices to that general as some form of 'game balance' when certain triggers are reached in the campaign - of course it could just be that I'm suspicious & paranoid.
As far as I can tell editing V & Vs has immediate effects on most, maybe all, traits except for the definite exception of valour, which is tracked independantly for each warrior in the unit. Command, Piety, Accumen, etc definitely change, but I haven't investigated Happiness, trade income, etc.
I also found how to edit valour & unit type, but it's now lunchtime so that explanation will have to wait... besides that, my boss does expect me to do some work today, which is most inconsiderate of him!
Bookmarks