X
XYN
Guest
One line summary of your issue
AI has no constrains on changing child's focus to heritage
Game Version
2.8.2
What expansions do you have installed?
Monks & Mystics,
The Reapers Due,
Conclave,
Horse Lords,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
https://forum.paradoxplaza.com/foru...-automatic-educator-assignment-fixed.1100002/
It is an old issue which occasionally can cause heirs to be educated in a weird way (e.g. heir of a Catholic empire becomes Norse Germanic).
I am not sure whether it is "bug" per se, but from the event's code it seems that the AI can unconstrained possibility of changing the focus to heritage even if it would educate heir in a different culture or religion.
The decision change_wards_focus_to_heritage
and the code is
As I understand, it might be an overlook - and there should be another modifier which sets the factor to 0 if the educator is of wrong culture/religion. Something like this:
The decision code:
Steps to reproduce the issue.
Upload Attachment
AI has no constrains on changing child's focus to heritage
Game Version
2.8.2
What expansions do you have installed?
Monks & Mystics,
The Reapers Due,
Conclave,
Horse Lords,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
https://forum.paradoxplaza.com/foru...-automatic-educator-assignment-fixed.1100002/
It is an old issue which occasionally can cause heirs to be educated in a weird way (e.g. heir of a Catholic empire becomes Norse Germanic).
I am not sure whether it is "bug" per se, but from the event's code it seems that the AI can unconstrained possibility of changing the focus to heritage even if it would educate heir in a different culture or religion.
The decision change_wards_focus_to_heritage
and the code is
Code:
ai_will_do = {
factor = 1
modifier = {
factor = 0.5
}
}
As I understand, it might be an overlook - and there should be another modifier which sets the factor to 0 if the educator is of wrong culture/religion. Something like this:
Code:
ai_will_do = {
factor = 1
modifier = {
NOT = {
educator = {
culture = FROM
religion = FROM
}
}
factor = 0
}
}
The decision code:
Code:
change_wards_focus_to_heritage = {
only_playable = yes
filter = court
ai_target_filter = court
ai_check_interval = 12
from_potential = {
is_playable = yes
has_dlc = "Zeus"
}
potential = {
is_adult = no
NOR = {
has_character_flag = guardian_asked_to_change_focus
has_focus = focus_ch_heritage
character = FROM
}
host = { character = FROM }
OR = {
liege = { character = FROM }
prisoner = yes
}
OR = {
is_landed = no
is_liege_or_above = FROM
prisoner = yes
}
NOT = {
educator = {
culture = ROOT
religion = ROOT
}
}
}
allow = {
NOT = {
age = 10
}
}
effect = {
set_character_flag = guardian_asked_to_change_focus
if = {
limit = {
OR = {
liege = { character = FROM }
prisoner = yes
}
}
hidden_tooltip = {
clear_focus = yes
}
set_focus = focus_ch_heritage
break = yes
}
hidden_tooltip = {
liege = {
letter_event = { id = ZE.2130 days = 5 }
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
modifier = {
factor = 0.5
}
}
}
Steps to reproduce the issue.
Upload Attachment
Last edited by a moderator:
Upvote
0