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

ModsNewbie

Sergeant
14 Badges
Jun 13, 2019
64
2
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
Hi, I am playing as King of Ireland and I just invaded France.

To my displeasure and great horror, I found out that idiot AI Charlemagne has been building two churches in Paris.

I want to create a mod that will enable me to destroy that useless extra church and build something else-like a castle or city.

How can I achive this? Please help!
 
Hi, I am playing as King of Ireland and I just invaded France.

To my displeasure and great horror, I found out that idiot AI Charlemagne has been building two churches in Paris.

I want to create a mod that will enable me to destroy that useless extra church and build something else-like a castle or city.

How can I achive this? Please help!
You can write something like this in a new text file in the decisions directory :
Code:
settlement_decisions = {
    destroy_temple = {
        only_rulers = yes
        filter = realm_owned
        ai_target_filter = owned
        
        from_potential = {
            ai=no
            is_ruler = yes
        }
        
        potential = {
            holding_type = temple
        }
        
        allow = {
        }
        
        effect = {
            destroy_settlement = THIS
        }
        
        revoke_allowed = { always = no }
        ai_will_do = { factor = 0 }
    }
}
It create a settlement decision you can use by right clicking the coats of arms of the barony you want to destroy.
 
thanks for the swift reply. so just to be sure, if I want to destory any type of holding, do I just add holding_type = city and holding_type = castle under the potential section?
Yes, either with a different decision or you can set various type in potential, in a "OR" block
Code:
        potential = {
            OR = {
                holding_type = temple
                holding_type = castle
            }
        }