• Victoria 3 - Sign up now!

    The journey begins, sign up now and get a special in-game item when the game is released.


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning
  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


Aerotinge

Gouverneur van Torkia
40 Badges
Aug 1, 2018
522
155
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings III Referal
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • 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 IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
You can explicitly scope to the title, and since you know which title it's going to be for which religion (and can check if HF-reformed pagans reformed with a rel head or not) you can create a scripted_effect containing if/else_ifs that simplifies the script in any file where you need to do the scoping.

Code:
find_rel_head_title_scope_effect = {
    if = {
        limit = {
            religion = catholic
        }
        k_papal_state = {
            save_event_target_as = my_rel_head_title_scope
        }
    }
    <Etc.>
}
Thanks, so I end up have to enumerate these titles first. :/

Update:
Code:
any_title = {
    limit = {
        controls_religion = yes
        has_holder = no
        # more conditions...
    }
}
works for me, but it's CPU heavy and bad for trigger block like law and governent.
 
Last edited:

kiannameiou

Corporal
1 Badges
Apr 27, 2021
35
3
  • Crusader Kings II
Is there any way to create a dynamic mercenary band that will persist after it goes independent. Currently it seems the dynamic band will disband when the captain dies.
 

Silversweeeper

Ichi no Hito
57 Badges
Aug 24, 2012
3.579
2.256
  • Crusader Kings II: Monks and Mystics
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Common Sense
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis III Complete
  • Stellaris: Necroids
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • 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 Complete
  • Magicka
  • Europa Universalis III
Is there any way to create a dynamic mercenary band that will persist after it goes independent. Currently it seems the dynamic band will disband when the captain dies.

You could probably fire an on_death event for the captain that makes him abdicate to a freshly generated character (or a courtier, if you'd prefer that).
 

jursamaj

General
120 Badges
Aug 20, 2012
2.330
201
  • 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
  • Stellaris: Necroids
I am trying to fire an event whenever somebody is no longer involved in a war. I have the event working for the 4 ways wars can end, but people can also be removed from a war during inheritance. Is there a better way to fire my event than using on_death and an event with is_ruler = yes as a pre-trigger that calls my event on their heirs after 1 day? I suppose I need to fire the event for everyone who inherits any titles; is that just "any_demense_title = {current_heir = {character_event = {id = <event id> days = 1}}}"?

Also, am I missing any ways people can stop being involved in wars? Is there a way to leave a crusade after it starts beyond inheriting as someone who either hadn't joined or is the wrong religion?
Probably best to use one or more of the new holder actions: on_new_holder, on_new_holder_inheritance, and on_new_holder_usurpation. In all 3, ROOT is the character, FROM is the title, FROMFROM is the old holder.
 

Thanatos27

Recruit
42 Badges
May 27, 2019
3
0
  • Crusader Kings II
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Wealth of Nations
Hi everyone, i have a question. I'm making a mod with a new kingdom and vassals and their dynasties with a long history. The ducal titles were created by the first king and then granted to the vassals.
20210720214528_1.jpg

I want the creator of the title to be present in the title history, but the title must not be accounted to his titles in death.
In the title history i have set the passage of the title before the king's death, however the title is still accounted among the king's titles.(The king died in 516)
20210720214517_1.jpg

Can i remove the title from the king's titles owned at death, without removing the king from the title's history?
 

gza1991

Recruit
Apr 7, 2019
9
0
Hello! I am having an issue and was hoping someone could assist. I am currently tying to add crowns (that can be seen on the portrait) to the game but keep the old crowns as well. I have tried to combine the graphics together into one long gfx, but the crowns are not appearing in game. Would anyone know what I am doing wrong?
 

Aerotinge

Gouverneur van Torkia
40 Badges
Aug 1, 2018
522
155
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings III Referal
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • 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 IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
Hello! I am having an issue and was hoping someone could assist. I am currently tying to add crowns (that can be seen on the portrait) to the game but keep the old crowns as well. I have tried to combine the graphics together into one long gfx, but the crowns are not appearing in game. Would anyone know what I am doing wrong?
For a crown protrait modding, you'll need:
modify interface\portrait_properties\00_portrait_properties.txt: p18 and p19 with corresponding trigger
modify interface\portraits\portrait_sprites.gfx: noOfFrames
modify gfx\characters\shared\special_crowns.dds
modify gfx\characters\shared\special_crowns_behind.dds

Since you did not provide solid files, I can only give out these step for your debugging.
 

neutrondecay

Colonel
23 Badges
Oct 1, 2015
985
587
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Holy Fury Pre-order
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
Hello! I am having an issue and was hoping someone could assist. I am currently tying to add crowns (that can be seen on the portrait) to the game but keep the old crowns as well. I have tried to combine the graphics together into one long gfx, but the crowns are not appearing in game. Would anyone know what I am doing wrong?
How wide is your combined file? There is a maximum number of frames allowed.

nd
 

neutrondecay

Colonel
23 Badges
Oct 1, 2015
985
587
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Holy Fury Pre-order
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
There are 42 in all in the combined file. What is the limit? And how would i put a second file in for crowns?
That would be it, then - the maximum number of frames is 26. (This corresponds to the use of letters for character DNA entries.)

You would need to add a separate file, a separate corresponding sprite definition, and then add a clause to the portrait properties file so that there was a new layer corresponding to your crowns, and suppressing the existing crown layer and displaying yours instead where appropriate. You might also have to add the new layer to all the portrait definitions in the game, but I'm less certain of that bit. @Nendur is the true expert here.

nd
 

gza1991

Recruit
Apr 7, 2019
9
0
Wow that sounds more complicated than I thought. Guess I will try it. Would you happen to know a step by step guide to do this? Or a video?
 

GodModder

Corporal
21 Badges
May 10, 2021
34
0
  • Stellaris
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun Returns
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II
  • Crusader Kings II: Conclave
  • Magicka 2
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Majesty 2 Collection
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Modding some buildings. Made a custom fort building and a custom hospital building, they work fine. The trouble is when I try to restrict them to being built only in my capital province or my direct vassal's capital province.

I was previously using this format to restrict buildings to my capital holding and my direct vassals' capital holdings:

For me:
Code:
potential = {
                AND = {
                    FROM = {
                        capital_holding = {
                            title = FROMFROM
                        }
                    }
                    FROM = { trait = imperial_ruler }  #trait only player has
                }
        }
For my direct vassals:
Code:
potential = {
                AND = {
                    FROM = {
                        capital_holding = {
                            title = FROMFROM
                        }
                    }
                    FROM = { trait = imperial_governor }  #trait only player's direct vassals have
                }
        }

This isn't allowing them to be built, and I realized that this is because the capital_holding restriction is their capital barony rather than the fort or hospital in their capital province.

I'm scratching my head trying to figure out how to construct it differently so it can be built in their capital province. FROM is settlement holder and FROMFROM is the holding (which would be a fort or a hospital, depending on the building), but how do I tell the game to apply it only to a fort in the capital province of someone with the given trait?

Edit. After fiddling with it some more, I managed to crack the code.
Code:
county = {
                        location = {
                            FROM = {
                                is_capital = PREV
                            }
                        }
                }

Edit again. I'm making other buildings (for castles, cities, and temples) that I want to be buildable only in the capital provinces of my direct vassals (who have the imperial_governor trait). But it turns out the above code only works in holdings that the character directly holds, not vassal barons. I tried changing the code to this:
Code:
county = {
                        any_direct_de_jure_vassal_title = {
                            location = {
                                FROM = {
                                    is_capital = PREV
                                }
                            }
                        }
                    }
But that still doesn't allow the buildings to be constructed in vassal baronies. Any suggestions?
 
Last edited:

kiannameiou

Corporal
1 Badges
Apr 27, 2021
35
3
  • Crusader Kings II
For bloodline buildings, will the building still be usable by a duke, if their emperor has the bloodline? Or must it be direct liege, the king?
 

GodModder

Corporal
21 Badges
May 10, 2021
34
0
  • Stellaris
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun Returns
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II
  • Crusader Kings II: Conclave
  • Magicka 2
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Majesty 2 Collection
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Is there any way to change it so that you can usurp titles from a ruler of another religion who still holds titles within that land? Or is it hard coded?
 

Whizzer

CKPlus Triumvirate
76 Badges
Jun 17, 2014
1.081
267
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
For bloodline buildings, will the building still be usable by a duke, if their emperor has the bloodline? Or must it be direct liege, the king?

If you're asking about the vanilla bloodline buildings, any liege will do. You can change that of course, if you wish.

Is there any way to change it so that you can usurp titles from a ruler of another religion who still holds titles within that land? Or is it hard coded?

Entirely hardcoded. Generally, the only way to change anything about unscriptable features are defines and I can't find anything related to this in there.
 

GodModder

Corporal
21 Badges
May 10, 2021
34
0
  • Stellaris
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun Returns
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II
  • Crusader Kings II: Conclave
  • Magicka 2
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Majesty 2 Collection
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
If you're asking about the vanilla bloodline buildings, any liege will do. You can change that of course, if you wish.



Entirely hardcoded. Generally, the only way to change anything about unscriptable features are defines and I can't find anything related to this in there.
Thanks. Yes, I looked in the defines too and found nothing.

I bet you could whip up a targeted diplomatic decision, and use it on someone to usurp a title from them if you control 51% of the land in the title, but I don't have the first clue how to construct that. Maybe something checking if they have any_title with 51% of the province controlled_by the player or something? But then I don't know how to construct that, especially not how to tell the game what "51%" of a title is, since every title has a different amount of provinces in it.
 

kiannameiou

Corporal
1 Badges
Apr 27, 2021
35
3
  • Crusader Kings II
1627265865537.png


The % to create/usurp titles.

Mods to take titles are available in workshop. There is no condition to trace % of control, only N countys which would not work.