desrtucted Posted December 8, 2020 Posted December 8, 2020 How do I mod the game so children would get personality traits faster? Let's say all 3 of them by 10.
nugerumon Posted December 9, 2020 Posted December 9, 2020 Unfortunately, the ages where characters get traits are hardcoded, so you'd have to copy the code that gives the traits, and make it trigger at a younger age. Vanilla events only give more traits if the character has less than three, so you won't end up with too many traits if you do it like that.
SamIAmHam Posted December 9, 2020 Posted December 9, 2020 Make a copy of the 00_defines.txt found in \Program Files (x86)\Steam\steamapps\common\Crusader Kings III\game\common\defines. Do a search for NChild and you'll see this line: HISTORY_CHILD_PERSONALITY_TRAITS = { 9 11 13 } # Ages where the children will gain each of the historical traits. That's where you can change when a child gets personality traits by specifying how old they are.
bunt776 Posted December 9, 2020 Posted December 9, 2020 1 hour ago, SamIAmHam said: Make a copy of the 00_defines.txt found in \Program Files (x86)\Steam\steamapps\common\Crusader Kings III\game\common\defines. Do a search for NChild and you'll see this line: HISTORY_CHILD_PERSONALITY_TRAITS = { 9 11 13 } # Ages where the children will gain each of the historical traits. That's where you can change when a child gets personality traits by specifying how old they are. That likely only applies to historical children, those that already exist at gamestart. The on_birthday_education_events routine calls court_maintenance.0003 with those same ages. So it can be changed there and children in ongoing games should be able to get their 3 events by 10. It will exclude some traits though, as some events have trigger checks for age.
SamIAmHam Posted December 9, 2020 Posted December 9, 2020 3 hours ago, bunt776 said: That likely only applies to historical children, those that already exist at gamestart. The on_birthday_education_events routine calls court_maintenance.0003 with those same ages. So it can be changed there and children in ongoing games should be able to get their 3 events by 10. It will exclude some traits though, as some events have trigger checks for age. If you read the note attached to the script it doesn't say that. It applies to all children in the game since most of them are not in the history files. This is why PC children get their personality events. If this line wasn't there then the other two files won't work. If you want to change the ages of when the events fire you'll need to change all three files to get it to work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.