Hello everyone
this is a tutorial showing how to mod and create a custom family tree (historical or not, it is up to you!). All you need to make this work is the Assembly Kit.
1. Definitions
Before we start, we need to clarify a few things first. The most important is kinship by blood and kinship by marriage. Why is this important? If for example someone, who is not in the family by blood, but by marriage, loses his/her spouse will appear in the "other nobles" section instead. Now how do you know if someone is in the family by blood or by marriage? Simply look at the family tree and see which characters have their name below their portrait. Those whose name shows up are in the family by blood, those whose name does not show up are in the family by marriage.
Spoiler Alert, click show to read:
The second important thing that we need to define is the "progenitor". The progenitor is the person that the family tree starts on, each family tree needs one progenitor.
2. Preperations
So now that we cleared some definitions, it is time to prepare the family tree. So do your historical research (if you want to make a historical family tree) or come up with your characters (if you want to make a fantasy family tree) and make somewhere a draft (a piece of paper will do just fine). Make sure to know which characters are in the family by marriage. It is also recommended in the faction that you are modding to have 0 characters, therefore having to create new ones, this will make searching for them in startpos_characters and startpos_family_relationships much much easier.
3. Modding
3.0 Creating a character
There are multiple ways to create a character, but the way I prefer to do that is by going on View > form_launcher > starting_positions, then selecting the campaign and to find the faction I want to edit the family tree. There click the "new" box, select the name on the respective bar. To make a female character, uncheck the "is male" box on the right. The reason I prefer this method is that on starting_positions, the names are sorted correctly compared to startpos_characters where it is a bit of a mess. If the character you just created will be dead in the family tree, leave his position X,Y as 0,0 and do not assign him to any settlement. If he is alive, then either assign him to a settlement as a politican, or give him a force to command, all up to you.
Spoiler Alert, click show to read:
3.1 Setting up a progenitor, dead characters
Now that we have plan on what we want to make, it is time to start by setting up a progenitor. For this, go to startpos_characters and find the character you want to have as a progenitor (ideally the first character you make). He should be around the bottom. Once you found him scroll to the right and change the value on the "progenitor" column for that character to true.
If the progenitor has already died, then this is no problem. To set up dead characters (this applies for everyone), go to the column "turns_died_before_start". Now this "turns" corresponds to 1 year, regardless of the calendar of the campaign you are modding. So 5 "turns" correspond to death 5 years before the start.It is also required to set a "death cause" on the "death_type" column, though the different options do not seem to make much of a difference. "Old age", "disease", "killed in action" all do just fine.
Spoiler Alert, click show to read:
3.2 Family Relations
This is the most important part of the family tree modding. For that go to startpos_family_relationships. On the right there is a column called "relationship". There are three options, "spouse", "child", "sibling". Needed are only the first two. To set up a parent-child relationship, put the child on the left column, the parent on the right and select "child" in the "relationship" column. For adopted or bastard children, tick the respective boxes on the right. For that, it is important to put as a parent the person who is in the family by blood. For the spouse relationship, choose the characters you want (in that case it is not imporant who is in the first column and who in the second) and select the "spouse" relationship.
Spoiler Alert, click show to read:
Once you are done, process startpos with BoB and add the .esf file generated in your mod pack
3.3 Advanced Techniques
As stated above, persons who are in the family by marriage will not appear in the family tree if their spouse dies. If we want them to appear regardless in the family tree, next to their dead spouse, we need to set them as "dead" as well.
These are the important things you need to know to mod the family tree. The best way to learn yourself is by trying it out. Good luck