This tutorial is best if you are having the royal family panel enabled mod in use.
Basically what we will do is to both define the Royal Family Tree as well as any Non-Family Claimants.
To do so we will load our startpos,esf and first navigate to the CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/FACTION_ARRAY/FACTION_ARRAY/FACTION/FAMILY of the faction you wish to modify their starting family tree.
In this section you will see 10 MONARCHY_INFO_CHARACTER. Each of these is a slot in the Royal Family Panel. The first entry is always the king followed by his wife and then his 4 children slots. Next come the 4 non-claimant slots.
I believe for most of the factions their initial startpos settings have just the king and 1 non-family claimant. A few have 2 non-family claimants.
To enable the other slots to be visible we will need to understand what each value means:
- boolean - gender
- boolean - enabled? (not for sure)
- byte - # children (0-4)
- int - leadership rating (# of stars)
- int - age
- int - ordinal pair??? (matchs this for king for all others always 1)
- int - age had first child (not used for king/wife)
- int - age had second child (not used for king/wife)
- int - age had third child (not used for king/wife)
- int - age had fourth child (not used for king/wife)
- utf16 string - religion of the person (if the religion of the person does not match the faction they come from a little totem pole will show in their top right corner)
- uint - Faction ID this character is from (changes the little flags in the portraits, might cause wars of succession)
- uint - Faction ID of this faction (0 for all children of the king; 3rd to 6th slots)
So basically we can use this to edit each MONARCHY_INFO_CHARACTER keeping in mind that the order is:
- King
- Wife
- Royal Child #1
- Royal Child #2
- Royal Child #3
- Royal Child #4
- Claimant #1
- Claimant #2
- Claimant #3
- Claimant #4
You will also need to give each person a name and portrait. You do so by adding the localized string for their name to the CAMPAIGN_LOCALISATION Then you add the tga's of your choosing into the portrait settings of the character. Only the King will have a tga in the second option of the portrait all others will stay blank.
After doing so you should have the ability to make more historically accurate starting family trees.




Reply With Quote











