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

Astronot

Recruit
1 Badges
Feb 26, 2019
7
0
  • Crusader Kings II
Code:
title_decisions = {
    seize_title = {
        only_playable = yes
        filter = realm_owned
        ai_target_filter = realm_owned
        
        from_potential = {
            ai = no
            tier = EMPEROR
        }
        potential = {
            is_titular = no
            temporary = no
            tier = COUNT
            has_holder = yes
        allow = {
            FROM = {
                NOT = { has_claim = ROOT }
                wealth = 100
                prestige = 100
                piety = 50
            }
        }
        effect = {

            FROM = { wealth = -100 }
            FROM = { prestige = -100 }
            FROM = { piety = -50 }

            usurp_title = FROM
        }

        ai_will_do = {
            factor = 0
        }
    }
}

I'm trying to make this decision only fire on titles which are in the players realm (in the empire of the player since it only works for emperors), but I can add any filter I want it doesn't change anything. filter = owned still allows you to use it on any title in the world.

What's going on here?