Meta AI Education for CK2+ by BLKCandy

If you liked this item, please rate it up on Steam Workshop page.

Author: BLKCandy

Last revision: 18 Apr, 2018 at 17:47 UTC

File size: 81.92 KB

On Steam Workshop

Description:

Because I hate it when I found that AI wasted a character with awesome traits with horrible education planing. Player have this big advantage just by planning education for their courtiers. You could have a court full of brilliant strategist commanders while AI struggle to get skilled tacticians.

This mod add new event scripts to set focus and proper guardian for all children. The selection AI use "meta education plan" like using guardian with traits for training fighter trait during childhood to train better fighters, then repick a proper education guardian when they turn 12 to get good education trait. Using heritage or faith focus to convert children to the top liege culture and religion. Or prefer guardian with good trait progression intervention trait like diligent, brave, gregarious, and kind over guardian without.

This apply to all children in the game, including yours and your wards. To manually manage a child, use right click on the child you want to manage and use ‘Toggle Manual Education’ to diasble the mod for the child. To manually manage all children of a character or yourself, use targetted decision (right click) on the character and use ‘Toggle Manual Children Education’ To exclude a character from guardian pool, use ‘Toggle Manual Guardian’

Generally, all AI should produce better educated characters and better fighters, much better. Children converted to the top liege culture and religion. Larger and older realms are better at educating their children as they have more and better guardians to select from. There should be LV4 character everywhere after a few generations.

The mod does not create any pop up or notification. The only way to see if it work or not is to look at the children in your realm (or others) and their guardians. The mod might seems to be unreliable early on due to the insufficient proper guardian. It will get better as the world become more educated.

You also might experience performance drop until the world have enough valid guardian for everyone (which could take awhile) because children with no proper guardian will keep looking for one. (Shattered world at dejure duke or count would probably be even worse, since most children will have very small number of guardian.to select from.

If you think the mod need tweak or there is something weird, tell me about it in the comment. I play CK2+ with many, many mods. My game does not accurately reflect the actual experience with just CK2+.

The mod is created for CK2+. For vanilla version go here: https://steamcommunity.com/sharedfiles/filedetails/?id=1354562793

The mod works as follows:

============================================

Childhood Focus:
AI will automatically pick childhood focus for 5+ years old.

AI will automatically pick culture/religion focus for all children with different culture/religion from the top liege. Automatically pick conscientious for genius children, and thrift for the rest, because thrift is a pretty safe childhood focus with many good traits.

============================================

Childhood Guardian
AI will try to pick a guardian of the top liege culture and religion with good traits for teaching fighter traits and good intervention trait (diligent, brave, gregarious, kind) at 5+ years old. The selection logic prioritize giving good fighter trait education to the children and guardian must NOT have a LV4 education. I prioritize fighter trait because it is something you can train at very young age in CK2+, and no LV4 educations because you need those to for more advanced education.

It will select the guardian with highest score with scoring criteria below:

+4 if the guardian has ANY trait which unlock fighter training
+2, 4, 6, 8 for fighter trait from LV1 – 4 (Weighted more because guardian need to have equal or better fighter trait level than the child, otherwise the trait progression suffers)
+1, 2, 3 for martial education trait from LV1 – 3 (Boost fighter trait progression)
+1 for martial cleric (Boost fighter trait progression)
+1 for duelist (Boost fighter trait progression)
+1 for each intervention trait (diligent, brave, gregarious, kind)

============================================

Education Focus:
AI will choose education focus when the child is 12 or older. Education focus use scoring system! Preferring focus with multiple positive traits instead of just picking first valid focus on logic check order. Attributes are now considered too! Though at much smaller weight. The scoring works in this order:
+5 Positive education focus trait
+3 Traits which give bonus to the relevant attribute.
+1 Per point of attribute
-6 Traits which give penalty to the relevant attribute.
-7 Traits which give penalty to the education focus.

You can adjust mess around the modifiers in the BEDU.2 event to change the selection preference a bit. I have made a weight adjustment block there.
The current default weight adjustment is:
+3 for Diplomacy and Learning
+2 for Martial (Lowered because of the fighter traits will give extra attribute score)
+1 for Stewardship and intrigue (Lowered because every child took thrift childhood focus which is a focus for steward/intrigue.)

The reason I put so much weight on traits, especially the bad ones, because events often check for traits. Bad traits could significantly increase the chance of bad thing happening. Many bad events are even only possible if you have the bad trait. (Like craven for commander)

I highly doubt the current weight adjustment give the best ‘balance’ of education focus since I only tested this in a heavily modded game while I breed strong men in an eugenic program. So please give some feedback.

============================================

Education Guardian:
AI will pick a new education guardian for a child without guardian, or without the ‘Auto Educator Set’ modifier (Children which this mod already assigned a guardian once), or if the guardian doesn’t have the proper trait.

The AI will prioritize a guardian with high level education, high fighter trait level, and as much intervention traits as possible. The martial education put much more weight on the fighter trait over any intervention trait. This is because after looking in the CK2+ mod file, a child in martial education has better fighter trait progression. Martial education trait also help with being fighter tutor. And, the one who is going to go out and fight for you or anyone is probably the martial child. So, developing good fighter trait for martial education child takes priority.

Only ‘skilled fighter’ and ‘formidable fighter’ are taken into account as the child probably have at least a trained fighter trait before 12 and having more levels means more check and this thing takes thousands of lines already.

Non-martial has scoring criteria below:
+7, 14 for education LV3, 4 (For education)
+1, 2 for fighter trait LV3, 4 (Further fighter trait progression)
+1 for each intervention trait (diligent, brave, gregarious, kind)

For martial education:
+15, 30 for martial education LV3, 4 (For education)
+5, 10 for fighter trait LV3, 4 (Further fighter trait progression)
+1 for each intervention trait (diligent, brave, gregarious, kind)

============================================

The mod file is BEDUPLUS.zip. The only file you need to edit is the event file. It is no longer small and tidy like in earlier edition though.