• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
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

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

Dragatus

Knight of the Toxic God
35 Badges
Jul 29, 2015
6.462
6.267
  • Crusader Kings III
  • Stellaris
  • Crusader Kings II
  • Age of Wonders III
I just discovered this issue myself after playing my first proper game with Conclave enabled in which crusades were triggered when the kingdom of France was inherited by an Ashkenazi Jew and in which the Mongol empire turned into the empire of Tibet precisely because of this issue.

A little craziness is fun and all, but given how the AI can initially pick neither the Heritage nor the Faith focus if the child's religion and/or culture match the liege, the decision to switch to those two foci should be prohibited for the AI as well.
 
X

XYN

Guest
I just discovered this issue myself after playing my first proper game with Conclave enabled in which crusades were triggered when the kingdom of France was inherited by an Ashkenazi Jew and in which the Mongol empire turned into the empire of Tibet precisely because of this issue.

A little craziness is fun and all, but given how the AI can initially pick neither the Heritage nor the Faith focus if the child's religion and/or culture match the liege, the decision to switch to those two foci should be prohibited for the AI as well.
Luckily it should be fairly easy to mod.

But weird to see that nobody else notices this, to me it looks like an extremely immersion-breaking feature which makes AI even less capable of posing a threat to the player.
 

Rene2410

Second Lieutenant
29 Badges
Apr 1, 2017
125
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • War of the Roses
  • Imperator: Rome Sign Up
  • Europa Universalis III: Collection
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Rome: Vae Victis
  • Victoria 2
  • Victoria 2: A House Divided
  • Europa Universalis IV
  • Europa Universalis III
  • Sengoku
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
yea its weird had it too