Europa Universalis V

Europa Universalis V

139 个评价
Auto Child Education
3
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
280.418 KB
11 月 16 日 下午 5:27
11 月 24 日 上午 12:00
13 项改动说明 ( 查看 )

订阅以下载
Auto Child Education

描述
Automatically assigns a matching education to all children in your country based on their traits.

Heir Assignment:
  1. Heirs are excluded so you can pick for the most important kid

  2. Any children of your heir automatically get Admin while they are grandkids relative to Ruler. Once their parent becomes ruler, they enter the normal ruleset (heir excluded, and continuing below for the rest).

    This felt like a reasonable balance: basically as soon as kids become important (heir of ruler), you can pick if they should continue in Admin or do something else. It also leaves plenty of Crown Estate kids to do cabinet roles: they just need to not be in the direct line.

  3. This means that your heir will already be assigned Admin in many cases. However, you can change the heir to whatever you desire.

There is an annoying edge case where if your heir rules another country, he is out of bounds for the "Ruler" checks to make this script run only for the player (and not every kid on earth). This means that sometimes your heir of heir gets a balanced AI education, but that would have been happening with or without this mod as they're not in your court. Be careful marrying off your only daughter!

For everyone else:
New children are distributed evenly across admin/diplomatic/military by a counter that rotates through each education type.

Every month, children are checked by comparing their education modifiers (trait value minus the current education bonus) to figure out if a different education would be better for them.

If so, they switch:
  • Military education + Ambitious(+0.33 adm/dip) → switches to Administrative
  • Administrative education + Gregarious (+0.5 dip) → switches to Diplomatic
  • Diplomatic education + Rowdy (+0.5 mil) → switches to Military

The two-stat traits aren't in perfect shape, they have a slight bias towards Admin/Diplo (the first equality check they pass), but Children will switch off of Balanced/off-trait education to one of the on-trait educations.

Expensive Education:
You'll have to manually manage it, automating it wasn't working very well so I have removed it as of Nov 18.

I do exclude children with expensive education from having the script ran on them, so you can manually assign Expensive education if desired and Auto Child Education wont switch off of it.

Links
Fully open-source, contributions welcome:
Github - https://github.com/victoria-riley-barnett/autoChildEducation


I have yet to test every edge case, it's my first Clausewitz mod and I have not found a great debug flow -- please let me know of any errors!
热门讨论 查看全部(2)
14
11 月 29 日 下午 9:51
Bug report
victoriaposting
3
11 月 18 日 下午 7:09
Feature Work
victoriaposting
77 条留言
victoriaposting  [作者] 3 小时以前 
Hi @8bitwizard, I’ve gotten that report before yeah, I’m going to look into if there’s a new-birth trigger or something I can hook into to prevent that from popping up. I might also be able to lighten the logic by running it less often if so, can take a look this week.
victoriaposting  [作者] 3 小时以前 
Hi @Tommi - sorry, had lots of issues with expensive education ballooning folks costs too much that I decided to never automate it. That said, if you pay for expensive education for a child, I don’t swap them off of that.

I might be able to add some configuration over time, but I do like the idea of this allowing the system to fully disappear into the background in most cases
victoriaposting  [作者] 3 小时以前 
@LDiCesare the rationale is Admin stat for rulers has been meta due to proximity, and other quick hacks to select heir of heir hadn’t been working yet. I could include heirs kids in the filter or not balance them at all, but had feedback otherwise. There isn’t a one-size fits all solution for heir of heir other than full exclusion or just picking the meta option that I’ve found so far.

I’ve been in finals but I can take a look at compatibility with 1.0.9 this week — first report I’ve gotten on that, thanks. I’ll look at the heir of heir logic again and see if there’s a better option.
LDiCesare 12 月 7 日 上午 3:03 
This doesn't seem to work in 1.0.9:
Error: "Unknown trigger type: check_variable, near line: 106" in file: "common/scripted_effects/child_education_effects.txt" near line: 106

Furthermore, it would be great if children of heir weren't excluded. As it is, the heir rule is next to useless to me as heirs tend to be adults all the time.
For instance something like:
is_heir = yes
OR = {
exists = father
father = {
is_ruler = yes
}
}
OR = {
exists = mother
mother = {
is_ruler = yes
}
}

What's the rationale for child of heir becoming admin anyway?
Azazel Is That U 12 月 5 日 上午 8:58 
does it change checksum
Tommi69 12 月 5 日 上午 6:27 
Would be nice to have this mod be configurable. I'm currently running a hindu campaign, with an inherticance where the best son becomes crown prince. Would be nice to set it so all sons that are no idiots get expansive education.
8bitWizard 12 月 4 日 下午 3:23 
This mod is an absolute godsend. For the better part of a century I was marrying into every daimyo I could, my dynasty had over 150 members. Stopping to set education for everyone was becoming a chore.

The only issue I've had is sometimes when the Better Education alert tab pops up top of screen, mousing over it will cause a huge lag spike that has sometimes crashed my game. The script kicks in next month anyway and the tab goes away, but I thought I'd let you know. Could just be because of my absurdly large dynasty.
Aligtl 12 月 3 日 下午 10:52 
Is this ironman compatible?
victoriaposting  [作者] 12 月 1 日 下午 9:45 
Yea @Lake I’ve played two campaigns on the beta so far without noticing anything amiss, I will update the logic to explicitly match the beta values (working despite that rn) when it’s live
Lake 12 月 1 日 上午 7:43 
I presume by the lack of commentary on 1.0.8 open beta (currently hotfix 5) that this is working for anyone who has tried it.