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

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.447
2.862
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 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: Charlemagne
Does anyone know why this code is not working?
I want it to play music when the capital is in a specific region.
It is showing "now playing" when using nextsong in console.

song = {
name = "some music.ogg"
song_name = "some music"
...

i'd think it's potentially because of the space in the song file name.
 

Ixal

Banned
77 Badges
Apr 5, 2008
2.730
4.607
  • Crusader Kings II: Jade Dragon
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Parklife
  • BATTLETECH - Backer
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Tyranny - Bastards Wound
  • Tyranny - Tales from the Tiers
  • Stellaris: Distant Stars
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Prison Architect
  • Stellaris: Nemesis
  • Europa Universalis 4: Emperor
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Stellaris: Federations
  • Prison Architect: Psych Ward
  • Stellaris: Ancient Relics
  • Surviving Mars: First Colony Edition
  • Stellaris Sign-up
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Art of War
  • Warlock: Master of the Arcane
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Majesty 2 Collection
  • King Arthur II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
Is there a way to give the increased capture chance you can get with warrior lodges to specific cultures or traits to represent slaver and to modify the chance yourself?

From a quick look at the society that functionality looks rather hardcoded and I fear what would happen if a character gets this toggle twice (culture/trait + lodge)
 

Kregritt

Sergeant
2 Badges
Jul 19, 2016
70
0
  • Crusader Kings II: Holy Fury Pre-order
  • Crusader Kings II: Holy Fury
Which files handle the new society progress mechanic?

EDIT: also another question - if I define a scripted trigger in my mod with the same name as a trigger in vanilla, does that append my code to vanilla, or does it overwrite the vanilla trigger completely? I just always assumed that it would overwrite the trigger, but I recently noticed that it isn't the case, and the game checks both my own and vanilla scripted triggers.
 
Last edited:

Admiral Boysen

Captain
72 Badges
Jan 21, 2012
429
257
  • Crusader Kings II: Charlemagne
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Crusader Kings III
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome - Magna Graecia
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Stellaris: Lithoids
I'm trying to make an elective succession where commanders are elected for two year terms (This part is already functional through an event), and are then the electors and candidates in the title succession, as a form of parliamentary republic government.

Code:
additive_modifier = {
    value = 10
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    any_dejure_liege = { title = FROMFROM }
}

This is the code I'm using to add commanders (and landed characters) as electors, and it does work for commanders in the home court as well as for landed characters. The problem I'm having is that only commanders in the court of the title itself are eligible to vote, any vassal commander is ineligible.

Code:
additive_modifier = { #The rulers and commanders of all de jure vassal titles are also electors.
    value = 10
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    OR = {
        any_dejure_liege = { title = FROMFROM } #One step down from lord.
        any_dejure_liege = { any_dejure_liege = { title = FROMFROM } } #Two steps down from lord.
        any_dejure_liege = { any_dejure_liege = { any_dejure_liege = { title = FROMFROM } } } #Three steps down from lord.
    }
}

This is my ugly attempt at including everyone down to count tier (from an emperor), but it doesn't work, giving only the same list of characters as the first block. I don't suppose I've made some very easy to notice mistake somewhere? I'm having the same problem with available candidates, for which I use the below, very similar, block.

Code:
FROM = { #Title holders and commanders are eligible.
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    OR = { #Eligible locations.
        any_dejure_liege = { title = ROOT_FROMFROM } #Any de jure vassal of the title.
    }
}
Does your title actually have de jure vassals?
 

Andrelvis

The Last Ghibelline
76 Badges
Apr 30, 2006
5.598
9.962
  • 500k Club
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings III
  • 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: 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
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
I'm trying to make an elective succession where commanders are elected for two year terms (This part is already functional through an event), and are then the electors and candidates in the title succession, as a form of parliamentary republic government.

Code:
additive_modifier = {
    value = 10
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    any_dejure_liege = { title = FROMFROM }
}

This is the code I'm using to add commanders (and landed characters) as electors, and it does work for commanders in the home court as well as for landed characters. The problem I'm having is that only commanders in the court of the title itself are eligible to vote, any vassal commander is ineligible.

Code:
additive_modifier = { #The rulers and commanders of all de jure vassal titles are also electors.
    value = 10
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    OR = {
        any_dejure_liege = { title = FROMFROM } #One step down from lord.
        any_dejure_liege = { any_dejure_liege = { title = FROMFROM } } #Two steps down from lord.
        any_dejure_liege = { any_dejure_liege = { any_dejure_liege = { title = FROMFROM } } } #Three steps down from lord.
    }
}

This is my ugly attempt at including everyone down to count tier (from an emperor), but it doesn't work, giving only the same list of characters as the first block. I don't suppose I've made some very easy to notice mistake somewhere? I'm having the same problem with available candidates, for which I use the below, very similar, block.

Code:
FROM = { #Title holders and commanders are eligible.
    OR = {
        has_minor_title = title_commander
        higher_real_tier_than = BARON
    }
    OR = { #Eligible locations.
        any_dejure_liege = { title = ROOT_FROMFROM } #Any de jure vassal of the title.
    }
}

"any_dejure_liege" is not in the wiki, so it may not be a valid scope.
 

Cryoshakespeare

Second Lieutenant
55 Badges
May 19, 2015
170
129
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Stellaris: Megacorp
  • Crusader Kings III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
I have a small CB I'm trying to make, just one that allows you grant independence to all vassals in a given de jure kingdom.

It doesn't seem to be showing up however. The script is relatively small, does anyone know what the issue with it is?

Code:
# commands - set_defacto_liege = THIS

<release_vassal> = {
    name = CB_NAME_RELEASE_VASSAL
    war_name = WAR_NAME_RELEASE_VASSAL
   
    is_permanent = yes
    check_de_jure_tier = KING
   
    # other special flags go here
   
    # scopes go here
   
    can_use_gui = {
        FROM = {
            show_scope_change = no
            conditional_tooltip = {
                trigger = {
                    tier = DUKE
                }
                ROOT = {
                    show_scope_change = no
                    prestige = 500
                }
            }
            conditional_tooltip = {
                trigger = {
                    tier = KING
                }
                ROOT = {
                    show_scope_change = no
                    prestige = 1500
                }
            }
            conditional_tooltip = {
                trigger = {
                    tier = EMPEROR
                }
                ROOT = {
                    show_scope_change = no
                    prestige = 2500
                }
            }
        }
    }
   
    can_use = {
        ROOT = {
                NOT = { is_liege_or_above = FROM }
                #de_jure_liege_or_above = FROM
        }
        FROM = {
            is_landed = yes
            controls_religion = no
            holy_order = no
        }
        # If same realm support inter-vassal wars, otherwise must always be declared on top liege of the realm.
        OR = {
            AND = {
                ROOT = { NOT = { same_realm = FROM } }
                FROM = { independent = yes }
            }
            ROOT = { same_realm = FROM }
        }
    }
   
    can_use_title = {
        is_primary_type_title = no
        temporary = no
        higher_tier_than = COUNT      
    }
   
    is_valid = {
        always = yes
    }
   
    is_valid_title = {
        FROM = { has_landed_title = PREV }
    }
   
    on_add = {

    }
   
    on_success_title = {
        any_direct_de_jure_vassal_title = {
            set_defacto_liege = THIS
        }
    }
}

I'm entirely new to CB modding so I decided to copy and modify one used in a different mod that allowed you to destroy the top tier title of the target. However, I don't know if any artifacts of that script are messing with my own.
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • 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 IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
I think the angle brackets around the CB tag are messing up the parsing.

I also think your on_success_title has to check to make sure the holders of the released titles are, in fact, de facto vassals of the disputed title holder.
 

Satcharna

Corporal
45 Badges
Sep 30, 2015
44
4
  • Crusader Kings II: Charlemagne
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • Stellaris: Nemesis
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Hearts of Iron IV: Colonel
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris - Path to Destruction bundle
Does your title actually have de jure vassals?
I've tried it with multiple titles all of which had de jure vassals that should have qualified.
"any_dejure_liege" is not in the wiki, so it may not be a valid scope.
It's a new one, used all over Holy Fury in the same way I'm using it here. The wiki is unfortunately severely outdated in most places.
The issue isn't limited to this particular scope, when I use for instance top_liege I still get the same issue, as do I with a stock game and the tanistry election. I suspect it might be that the new election mechanic is hardcoded or bugged so that only immediate vassals are eligible, even when vassals of vassals should be allowed based on the actual code.
 

Cryoshakespeare

Second Lieutenant
55 Badges
May 19, 2015
170
129
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Stellaris: Megacorp
  • Crusader Kings III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
I think the angle brackets around the CB tag are messing up the parsing.

I also think your on_success_title has to check to make sure the holders of the released titles are, in fact, de facto vassals of the disputed title holder.

Thank you very much for the help. I've definitely made progress, however I'm finding that all vassals of the kingdom are made independent of their lieges, when I mean for it to only be direct vassals of the liege (so dukes with counts will retain them), also, it's releasing baronies too. I've attached the on_success_title operation I have below, I don't yet have an on_success operation and I wonder if the scopes for my conditions are being messed with because it's considering the title in the scope. Anyone have a diagnosis? :)

Code:
on_success_title = {
    any_de_jure_vassal_title = {
        if = {
            AND = {
                owner = { is_vassal_or_below_of = ROOT }
                owner = { primary_title = { higher_tier_than = BARON } }
            }
        set_defacto_liege = THIS
        }
    }
}
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
Thank you very much for the help. I've definitely made progress, however I'm finding that all vassals of the kingdom are made independent of their lieges, when I mean for it to only be direct vassals of the liege (so dukes with counts will retain them), also, it's releasing baronies too. I've attached the on_success_title operation I have below, I don't yet have an on_success operation and I wonder if the scopes for my conditions are being messed with because it's considering the title in the scope. Anyone have a diagnosis? :)

Code:
on_success_title = {
    any_de_jure_vassal_title = {
        if = {
            AND = {
                owner = { is_vassal_or_below_of = ROOT }
                owner = { primary_title = { higher_tier_than = BARON } }
            }
        set_defacto_liege = THIS
        }
    }
}

Some adjustments:
  • You can't use "if" to filter a scope, you need "limit".
  • set_defacto_liege = THIS has to be outside the condition
  • AND is the default in a trigger, can be omitted.
  • owner is rarely used in vanilla in this context (but should work), holder_scope is preferred

Code:
on_success_title = {
    any_de_jure_vassal_title = {
        limit = {
            holder_scope = {
                is_vassal_or_below_of = ROOT
                primary_title = { higher_tier_than = BARON } 
            }
        }
       set_defacto_liege = THIS
    }
}

Don't hesitate to use the validator tool https://forum.paradoxplaza.com/foru...-errors-quickly-and-with-minimal-pain.597480/ , will be faster than asking here :)
 

Cryoshakespeare

Second Lieutenant
55 Badges
May 19, 2015
170
129
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Stellaris: Megacorp
  • Crusader Kings III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
Some adjustments:
  • You can't use "if" to filter a scope, you need "limit".
  • set_defacto_liege = THIS has to be outside the condition
  • AND is the default in a trigger, can be omitted.
  • owner is rarely used in vanilla in this context (but should work), holder_scope is preferred

Code:
on_success_title = {
    any_de_jure_vassal_title = {
        limit = {
            holder_scope = {
                is_vassal_or_below_of = ROOT
                primary_title = { higher_tier_than = BARON }
            }
        }
       set_defacto_liege = THIS
    }
}

Don't hesitate to use the validator tool https://forum.paradoxplaza.com/foru...-errors-quickly-and-with-minimal-pain.597480/ , will be faster than asking here :)

Extremely helpful, thank you, and I'll be sure to give that a try! :)

Also released I was checking if the vassal was below ROOT, which I believe means the character declaring war, when it should be FROM. Oh, to be a noob.
 
Last edited:

damanamana

First Lieutenant
55 Badges
Sep 1, 2014
297
53
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Warlock: Master of the Arcane
  • Stellaris: Ancient Relics
  • Europa Universalis III: Collection
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Sign Up
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun: Dragonfall
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Victoria 2
  • Stellaris: Federations
  • Stellaris: Necroids
  • Europa Universalis IV
  • Cities in Motion 2
  • Victoria 2: Heart of Darkness
  • 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
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Majesty 2 Collection
  • Magicka 2
  • Europa Universalis IV: Res Publica
If I have an event with a trigger condition that isn't present in my game, will that crash the game?

Specifically: I'm making a narrative event where one of multiple options is as follows:

option = {
name = EVTOPTX_HMSKH_104 #Heretics!
trigger = {
religion = samaritan
religion = karaite​
}​
}

I want this mod to be compatible with another mod that removes the Samaritan religion entirely. If that separate mod were also enabled, there will be no characters that are { religion = samaritan }. Will that bork my event?
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • 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 IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
If I have an event with a trigger condition that isn't present in my game, will that crash the game?

Specifically: I'm making a narrative event where one of multiple options is as follows:



I want this mod to be compatible with another mod that removes the Samaritan religion entirely. If that separate mod were also enabled, there will be no characters that are { religion = samaritan }. Will that bork my event?
Yes. You'll have to provide a compatch for compatibility with the no Samaritan mod, which compatch removes all references to the Samaritan religion.