This part covers the editing of characters in family tree.
If you played M2 for enough time, you may noted no character can have more of 4 sons\daughters. This number is set in descr_campaign_db.xml, in this line:
Code:
<max_number_of_children uint="4"/>
You can lower this number but you cannot raise it. If you set a higher number, the game will not be able to read more than 4 children in descr_strat (the satring family tree).
New children may born (but will not shown in the tree) but the game will crash when they'll come of age.
There is a way to force male offspring and having more than four children (but remember that hard-coded upper limit is 4 males even with this system)
; Furin wrote a tutorial about this some time ago:
http://www.twcenter.net/forums/showthread.php?t=158912
This said, let's move on the starting family tree of a faction. You set it in descr_strat.txt.
Basically there are 2 classes of chracters, dead and alive ones, and the latters are divided in adult and under-age ones.
Alive family members need to be defined in descr_strat in this form:
Code:
character Mors Umber, named character, male, age 58, x 98, y 276, portrait umber_mors, battle_model umber_mors
traits ...
ancillaries ...
army
unit...
for generals while agents (spies, assassins, princesses, diplomats) in this way:
Code:
character Catelyn, princess, female, age 39, x 47, y 216, label catelyn1
traits ...
ancillaries ...
in the relative faction's section after the settlements' list. You can notice that the only difference is, the generals must have an army attached. Now, let's examine the entries.
The first entry "
character" specifies for a character entry; it is followed by a TAB and the name (and eventual surname) of the character in question.
The second entry specifies for the charachter type (as per descr_character.txt). character_type's are hardcoded tought, generals and captains must be listed as "
named character", princesses as "
princess". Other legit entries are "
admiral", "
spy", "
assassin", "
diplomat", "
heretic", "
witch", "
inquisitor". The properties of each of them are mostly hardcoded, some are set in descr_character.txt. Just know you cannot have any agent in your family tree but princesses. Witches are not suitable and kick you back to menu when starting a campaign.
Third entry is the sex, this is IMHO a redundant thing since sex is hard-coded with character_type, and is maybe a leftover code from character_records section (maybe CA wanted to allow agents to be both male and female but then ended otherwise). It may be followed by the "
leader\
heir" entry (only for male named characters) setting the charachter as faction leader or faction heir (or both. see later).
Also avaiable is the entry "
non_family". It removes the status of a character from family tree, and cannot be appointed as Leader or Heir, nor adopted or married. It seems not working in via-script spawns but it works fine in descr_strat.
Then we have
"age" and map
x-
y co-ordinates.
The entries "
portrait" and "
battle_model" are optional, they specify for custom portrait folder_name (UI\custom_portraits\folder_name) and battle model (as per battle_models.modeldb). No hardcoded limit of custom portraits or battle models is known.
Another optional entry is "
off_map", wich brings off_map your character at campaign start. At least one co-ordinate must be expressed in the co-ordinates section, otherwise the general will be locked in low left corner of the map (even if it is sea). Can be unlocked with the move_character command via script tought.
Finally, there is the "
label" wich is an alpha-numeic code you can assign to a character to identify him\her univocally in the campaign. Can be referenced in script and has no use out of it.
Next line is optional, is the "
trait" lines and lists the character's traits as per export_descr_character_traits (trait name, level, comma)
Same applies to "
ancillaries" line.
Male generals must be linked to an army, the fist unit is the general's unit while others are optional and are the generals' army.
A strange bug affects princesses custom_portraits and makes them un-usable: the portrait specified in descr_strat is shown whe clicking on the agent scroll, while when opening family tree it is shown the generic "adult woman" one.
A weird bug affects pricesses with the off_map attribute: in this case the portrait is a little vanilla one (william the conqueror). Strange indeed, this happens even in mods like TATW where UI has been completely replaced. I can't understand why this happens, but I guess that both off_map and custom_portrait attributes were made for generals, not princesses, so engine goes ballastic.
Dead and underage characters are listed in a successive section of the file, in this way:
Code:
character_record Harwood Karstark, male, age 65, dead 15, never_a_leader
the fist entry (
character_record) indicates the start of the records' section, followed by the charachter's name and surname. Then comes the sex and age of the character at start of campaign.
Next entry can have two values, "
alive" for alive characters (does not work with adult males, who need to be listed as generals) and "
dead" for dead characters. "dead" can be followed by the time they are dead (how many years ago?); in the example, Harwood Karstark died 15 years ago, hence at the age of 50.
Last entry can have several values:
current_leader: underage character is the faction leader
current_heir: underage character is the faction heir
never_a_leader: default one
past_leader: the character was faction leader in his life.
Finally, at the bottom of the faction's section, comes the relatives part, each line introduced by "
relative"
Code:
relative Eddard Stark, Catelyn, Robb Stark, Brandon Stark, Rickon Stark, end
Here all the components of the family tree are listed, in the following order:
male character - female spouse - 1st son\daughter - 2nd son\daughter - 3rd son\daughter - 4th son\doughter.
A TAB is after "
relative" and after each family member, the line is conluded by "
end".
Please note that, despite the spouse being usually listed in the "character_record" section, she can also be a princesses (active on the map), but will be considered married by the engine and will not be able to perform seduction missions.
One more thing : all names and surnames used must be owned by the faction the character belongs to. Theese names are listed in descr_names.txt and are a separate entry per faction. The file itself is very intuitive and easy to modify, just remember it can only use ASCII characters and export to the text\names.txt file. In the latter each entry specifies how the name will be shown in-game.
This detail is the reason why, when a princess of yours seduces a foreign general, their children will not have the foreign surname but some random ones picked up by the engine. This is no doubt a CA fail and cannot be fixed, unless you allow all faction to have access to all surnames in descr_names.txt.
Last important thing, please note what defines if a general will belong or not in the family tree is his status as son of some other family member, OR having a wife listed in the relatives section. So if a character has no relatives but was included with his army, he will be a petty general and not a family member.
This allows you to have multiple family trees (giving each general a wife) wich can be separate each other. In this case, when opening the "family tree" panel in-game, you'll be able to see only the Faction Leader's tree. Again an hardcoded limit, no way to switch to secondary family trees is known.
I read somewhere this feature was already present in RomeTW but cannot find the source now.
There is an interesting option, I found in vanilla unpacked descr_battle.txt, wich is maybe a leftover from old RTW (Asterix and Obelix are set as father and son in the CA sample, lol), to make a family tree with a father and no spouse. Instead of putting the spouse name after the character, you write down "
none". Example:
Code:
relative Tytos Lannister, none, Tywin Lannister, Kevan Lannister, Tygett Lannister, end
This will generate a tree with a father (Tytos) and 3 sons, with no female character in.
For a more detailed explanation on how to extensively modify your family trees, check Advanced family trees by
GrnEyedDvl:
http://www.twcenter.net/forums/showthread.php?t=187293
Also this tutorial, made by
Hellenikon, may come handy understanding the difference between "general" and "family member":
http://www.twcenter.net/forums/showthread.php?t=431932