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

miloilgufo

Captain
17 Badges
Nov 10, 2011
357
63
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Victoria 2
  • Crusader Kings II: Way of Life
  • Stellaris Sign-up
I'm very new to modding and I am planning to make a do-over on a republic, but before I start I want to know if it even possible to do the changes I am after.

-Can I take away the ability to build tradeposts?

-Change the name of titles such as Patrician into Priest and instead of calling it House I want it to say Clan.

-Put in a requirment that you need a specific trait to be the head of your House and the same for the designated heir.

-Increase the likehood of Patricians plotting against eachother. I don't want to put in negative opinion values because I want the plotting to increase, not the revolts.

1) I think it's not possible.
2) You have to find the localisation and overwrite them in a new localisation file.
3) You have to edit the title_patrician_heir found in 00_minor_titles.txt into something like

Code:
title_patrician_heir = {
    dignity = 0.05
    realm_in_name = yes
    grant_limit = 1
    opinion_effect = 50
   
    patrician_heir = yes
   
    monthly_salary = 0.01
    monthly_prestige = 0.002
   
    allow = {
        is_female = no
        dynasty = FROM
        NOT = { trait = bastard }
        FROM = {
            is_patrician = yes
        }
        trait = YOUR_TRAIT
    }
   
    gain_effect = {
    }
    lose_effect = {
    }

    message = yes
}

4)You should add a modifier to chance for plots in 00_plots.txt... something like

Code:
        modifier = {
            factor = 3.0
            plot_target_char = {
                is_patrician = yes
                same_realm = FROM
            }
            FROM = {
                is_patrician = yes
            }
        }
 

miloilgufo

Captain
17 Badges
Nov 10, 2011
357
63
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Victoria 2
  • Crusader Kings II: Way of Life
  • Stellaris Sign-up
Is there a mod-able ranking system for the Great Holy Wars?

Umh, what do you mean with ranking...?


how whould i go about creating an event that activates upon the creation of a certain title? (with a culture condition)

Look at the on_create_title in on_actions and create and event triggered by it with what you want.. something like

Code:
on_create_title = {
    events = {
       MY_NAMESPACE.1
        CM.1501
    }
}

and then an event triggered only, with an extra trigger that would be the title you want for it to fire...
 

KhoiDangDang

Sergeant
56 Badges
Mar 14, 2014
97
15
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Jade Dragon
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sword of Islam
  • Sengoku
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Stellaris Sign-up
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Crusader Kings III
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
Is there anyway to create more level of title? Ex: I want to create playable title under level of count different from baron.
Is there anyway to mod baron playable?
Is there anyway to create a different set of title that parallel exist with vanilla title set?
Is title always tick with a province even it is titular?
Sum of what I want to know: Can we mod how the title work?
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Is there anyway to create more level of title? Ex: I want to create playable title under level of count different from baron.
Is there anyway to mod baron playable?
Is there anyway to create a different set of title that parallel exist with vanilla title set?
Is title always tick with a province even it is titular?
Sum of what I want to know: Can we mod how the title work?
No
No
What do you mean?
What do you mean?
Not really
 

Froxis

Sergeant
41 Badges
Feb 3, 2015
86
14
  • Crusader Kings II: Legacy of Rome
  • Humble Paradox Bundle
  • Crusader Kings II
  • Sword of the Stars
  • Ship Simulator Extremes
  • Sengoku
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Impire
  • Hearts of Iron III
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • King Arthur II
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Age of Wonders: Planetfall
  • Stellaris: Apocalypse
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Stellaris
  • Knights of Pen and Paper 2
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Mount & Blade: With Fire and Sword
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
  • Teleglitch: Die More Edition
I mean that there is a ranking system on the wiki about which kingdom will be used in a Great Holy War (Crusade/Jihads). Can we change the ranking/ add in more kingdoms to attack?
 

Dewion86

Captain
5 Badges
Sep 9, 2014
300
16
  • Arsenal of Democracy
  • Crusader Kings II
  • Hearts of Iron III
  • Europa Universalis IV
  • Victoria 2
Is there a way to quickly check are there one county duchies?
I see no point having them so i want to merge them to a nearest duchy.
And I'm hoping to have better way to check them than going through the landed_titles file :D
 

bram51

Second Lieutenant
49 Badges
Jan 29, 2011
171
6
  • Hearts of Iron IV: No Step Back
  • Imperator: Rome - Magna Graecia
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis III Complete
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Semper Fi
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Sword of the Stars II
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Majesty 2 Collection
  • Rome Gold
  • Cities in Motion
  • Sword of the Stars
I have been wrirting an event , but it keeps crashing when it loads. Idk why , anyone wanne help?




character_event = {
id = slann.1
title = APPRENTICE
desc = slann1desc
picture = "GFX_evt_lustria_slann"

only_rulers = yes





option = {
name = OK

create_character = {
random_traits = yes
dynasty = ROOT
religion = ROOT
culture = lizardman
female = no
age = 800
trait = creature_slann
trait = lizardman_sleepingslann
}
new_character = {
set_father = ROOT
dynasty = ROOT

}


}


}
 

jursamaj

General
125 Badges
Aug 20, 2012
2.360
216
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Rome: Vae Victis
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Magicka 2 - Signup Campaign
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Pillars of Eternity
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: No Step Back
I have been wrirting an event , but it keeps crashing when it loads. Idk why , anyone wanne help?
Code:
character_event = {
    id = slann.1
    title = APPRENTICE
    desc = slann1desc
    picture = "GFX_evt_lustria_slann"

    only_rulers = yes

    option = {
        name = OK

        create_character = {
            random_traits = yes
            dynasty = ROOT
            religion = ROOT
            culture = lizardman
            female = no
            age = 800
            trait = creature_slann
            trait = lizardman_sleepingslann
        }

        new_character = {
            set_father = ROOT
            dynasty = ROOT
       }
}

}
Did you put namespace=slann at the top of that event file?
Did you define traits creature_slann & lizardman_sleepingslann?
Did you define culture lizardman?
Did you make the APPRENTICE & slann1desc localizations?
 

SirRitter

First Lieutenant
1 Badges
Oct 1, 2014
299
301
  • Crusader Kings II
Is there a way to change coats of arms if baronies? It annoys me that they are all randomly generated and have weird colors and such. I would like to mod a few baronies/cities/temples with actual historical coa's for my playthroughs.
 

jursamaj

General
125 Badges
Aug 20, 2012
2.360
216
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Rome: Vae Victis
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Magicka 2 - Signup Campaign
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Pillars of Eternity
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: No Step Back
Is there a way to change coats of arms if baronies? It annoys me that they are all randomly generated and have weird colors and such. I would like to mod a few baronies/cities/temples with actual historical coa's for my playthroughs.
You could set up you own landed titles file that extends the vanilla one, just adding CoAs to baronies. This would take the coat_of_arms data format, as b_cluny does in vanilla.

Alternately, you could add a b_xxx.TGA file to gfx/flags, as most custom county thru empire CoAs are done. Paradox didn't do this simply because there are thousands of baronies, but I know the AGOT mod does it.
 
  • 1
Reactions:

bram51

Second Lieutenant
49 Badges
Jan 29, 2011
171
6
  • Hearts of Iron IV: No Step Back
  • Imperator: Rome - Magna Graecia
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis III Complete
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Semper Fi
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Sword of the Stars II
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Majesty 2 Collection
  • Rome Gold
  • Cities in Motion
  • Sword of the Stars
Did you put namespace=slann at the top of that event file?
Did you define traits creature_slann & lizardman_sleepingslann?
Did you define culture lizardman?
Did you make the APPRENTICE & slann1desc localizations?


thanks for responding , this is a bit of a submod for ck 2 warhammer
I defined the traits creature_slann and lizardman_sleepingslann
the culture lizardman is defined
slanndesc 1 is localized.


I did not put a namespace , but looking at similar events of the ck 2 warhammer I do not see other namespaces for the events.

I must note the event appears for me but as it appears it crashes.

Is my problem that while I might not have seen it that lizardman was the name space for that folder I worked in?
I'll try to perhaps either add a namespace or change the ID ofrom slan to lizardman.

thanks for your advice , *beginning to mod stuff*. I'll try it out and probaply let you know than
 

omega20056

Basileus Basileon
94 Badges
Dec 27, 2012
4.463
2.009
  • Crusader Kings III: Royal Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Nemesis
  • March of the Eagles
  • Europa Universalis IV
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Green Cities
  • Stellaris: Federations
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Mare Nostrum
  • Imperator: Rome Deluxe Edition
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Third Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: El Dorado
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • 500k Club
  • Stellaris: Ancient Relics
  • Victoria 2
  • Imperator: Rome
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Synthetic Dawn
  • Stellaris: Lithoids
The modifiers from the following events are being applied and removed constantly and I've on idea why.

Code:
namespace = indep

character_event = { # Contingent Territory Check Part 1
    id = indep.1

    hide_window = yes

    trigger = {
        independent = yes
        capital_scope = {
            NOT = { has_province_modifier = contingent_territory }
        }
    }

    mean_time_to_happen = {
        days = 1
    }

    immediate = {
        set_global_flag = contingent_territory1
        any_realm_province = {
            remove_province_modifier = contingent_territory
        }
        capital_scope = {
            add_province_modifier = { name = contingent_territory duration = -1 }
        }
        any_independent_ruler = {
            random_realm_province = {
                limit = {
                    NOT = { has_province_modifier = contingent_territory }
                    any_neighbor_province = {
                        owner = {
                            OR = {
                                character = PREVPREVPREV
                                same_realm = PREVPREVPREV
                            }
                        }
                        has_province_modifier = contingent_territory
                    }
                }
                add_province_modifier = { name = contingent_territory duration = -1 }
            }
        }
    }
}

character_event = { # Contingent Territory Check Part 2
    id = indep.2

    hide_window = yes

    trigger = {
        independent = yes
    }

    mean_time_to_happen = {
        days = 1
    }

    immediate = {
        set_global_flag = contingent_territory2
        any_independent_ruler = {
            random_realm_province = {
                limit = {
                    NOT = { has_province_modifier = contingent_territory }
                    any_neighbor_province = {
                        owner = {
                            OR = {
                                character = PREVPREVPREV
                                same_realm = PREVPREVPREV
                            }
                        }
                        has_province_modifier = contingent_territory
                    }
                }
                add_province_modifier = { name = contingent_territory duration = -1 }
            }
        }
    }
}

character_event = {
    id = indep.3

    hide_window = yes

    trigger = {
        independent = yes
        has_global_flag = contingent_territory1
        has_global_flag = contingent_territory2          
        any_realm_province = {
            NOT = { has_province_modifier = contingent_territory }
        }
    }

    mean_time_to_happen = {
        days = 1
    }

    immediate = {
        save_event_target_as = independent_ruler
        any_realm_province =  {
            limit = {
                NOT = { has_province_modifier = contingent_territory }
            }
            province_event = { id = indep.5 }
            clear_event_target = independent_ruler
        }
    }
}

character_event = {
    id = indep.4

    hide_window = yes

    trigger = {
        independent = yes  
        any_realm_province = {
            has_province_modifier = enclaved_territory
            OR = {
                has_province_modifier = contingent_territory
                any_neighbor_province = {
                    owner = {
                        OR = {
                            character = PREVPREVPREV
                            same_realm = PREVPREVPREV
                        }
                    }
                    has_province_modifier = contingent_territory
                }
            }
        }
    }

    mean_time_to_happen = {
        days = 1
    }

    immediate = {
        any_realm_province =  {
            limit = {
                OR = {
                    has_province_modifier = contingent_territory
                    any_neighbor_province = {
                        owner = {
                            OR = {
                                character = PREVPREVPREV
                                same_realm = PREVPREVPREV
                            }
                        }
                        has_province_modifier = contingent_territory
                    }
                }
            }
            remove_province_modifier = enclaved_territory
        }
    }
}

province_event = {
    id = indep.5

    hide_window = yes

    is_triggered_only = yes

    immediate = {
        if = {
            limit = {
                NOT = {
                    sea_zone = {
                        always = yes
                    }
                }
            }
            add_province_modifier = { name = enclaved_territory duration = -1 }
            break = yes
        }
        if = {
            limit = {
                owner = {
                    any_liege = {
                        is_merchant_republic = yes
                        character = event_target:independent_ruler
                    }
                }
                has_trade_post = yes
                trade_post_owner = {
                    any_liege = {
                        is_merchant_republic = yes
                        character = event_target:independent_ruler
                    }
                }
            }
            add_province_modifier = { name = contingent_territory duration = -1 }
            break = yes
        }
        if = {
            limit = {
                sea_zone = {
                    any_neighbor_province = {
                        NOT = {
                            province = ROOT
                        }
                        owner = {
                            same_realm = FROM
                        }
                        has_province_modifier = contingent_territory
                    }
                }
            }
            add_province_modifier = { name = contingent_territory duration = -1 }
            break = yes
        }
        if = {
            limit = {
                sea_zone = {
                    any_neighbor_province = {
                        is_land = no
                        any_neighbor_province = {
                            NOT = {
                                province = ROOT
                            }
                            owner = {
                                same_realm = FROM
                            }
                            has_province_modifier = contingent_territory
                        }
                    }
                }
            }
            add_province_modifier = { name = contingent_territory duration = -1 }
            break = yes
        }
        if = {
            limit = {
                sea_zone = {
                    any_neighbor_province = {
                        is_land = no
                        any_neighbor_province = {
                            is_land = no
                            any_neighbor_province = {
                                NOT = {
                                    province = ROOT
                                }
                                owner = {
                                    same_realm = FROM
                                }
                                has_province_modifier = contingent_territory
                            }
                        }
                    }
                }
            }
            add_province_modifier = { name = contingent_territory duration = -1 }
            break = yes
        }
        add_province_modifier = { name = enclaved_territory duration = -1 }
    }
} 

character_event = {
    id = indep.6

    hide_window = yes

    trigger = {
        independent = yes  
        any_realm_province = {
            has_province_modifier = contingent_territory
            OR = {
                has_province_modifier = contingent_territory
                any_neighbor_province = {
                    owner = {
                        OR = {
                            character = PREVPREVPREV
                            same_realm = PREVPREVPREV
                        }
                    }
                    NOT = { has_province_modifier = contingent_territory }
                }
            }
        }
    }

    mean_time_to_happen = {
        days = 1
    }

    immediate = {
        any_realm_province =  {
            limit = {
                OR = {
                    has_province_modifier = contingent_territory
                    any_neighbor_province = {
                        owner = {
                            OR = {
                                character = PREVPREVPREV
                                same_realm = PREVPREVPREV
                            }
                        }
                        NOT = { has_province_modifier = contingent_territory }
                    }
                }
            }
            remove_province_modifier = contingent_territory
        }
    }
}
 

SirRitter

First Lieutenant
1 Badges
Oct 1, 2014
299
301
  • Crusader Kings II
You could set up you own landed titles file that extends the vanilla one, just adding CoAs to baronies. This would take the coat_of_arms data format, as b_cluny does in vanilla.

Alternately, you could add a b_xxx.TGA file to gfx/flags, as most custom county thru empire CoAs are done. Paradox didn't do this simply because there are thousands of baronies, but I know the AGOT mod does it.

I tried adding b_xxx.TGA files to the gfx/flags on my mod folder but sadly it did not work. Do I have to do something else for this method to work?