• 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.

oakshield

First Lieutenant
Jul 29, 2020
259
482
Hi, I'm back to this game since I'm a little tired of CK3. I've downloaded most mods I used in the past and did other changes I used to use. One of them was a custom decision I found on reddit that removes dead infants from the screen, saving you some space. Unfortunately the person who made this and posted it didn't post it in code format.
Back in the day I managed to get it to work but now I've lost the ability to do so. I gave it a few goes and couldn't get it to work, could someone please help me make the following work? Thank you.


Code:
decisions = {
    kids_be_gone = {
        potential = {
            ai = no
            any_child_even_if_dead = {
                is_alive = no
            NOT = {
                any_child_even_if_dead = {
                    always = yes
                    }
                }
            }
        }
        allow = {
            any_child_even_if_dead = {
                is_alive = no
            }
        }
        effect = {
            any_child_even_if_dead = {
                limit = {
                    is_alive = no
                NOT = {
                    any_child_even_if_dead = {
                        always = yes
                        }
                    }
                }
                set_father = 0
                set_mother = 0
                }
            }
                ai_will_do = {
                    factor = 0
        }
    }
}
 
This one works for me:
Code:
decisions = {
    kids_be_gone = {
        potential = {
            ai = no

            any_child_even_if_dead = {
                is_alive = no
                has_children = no
            }
        }

        allow = {
            any_child_even_if_dead = {
                is_alive = no
            }
        }

        effect = {
            any_child_even_if_dead = {
                limit = {
                    is_alive = no
                    has_living_children = no
                }

                set_father = 0
                set_mother = 0
            }
        }

        ai_will_do = {
            factor = 0
        }
    }
}
 
  • 1Like
Reactions: