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

Maldenman

Private
53 Badges
Jan 7, 2018
10
11
  • Hearts of Iron IV: Expansion Pass
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • 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
  • Crusader Kings III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Mare Nostrum
  • 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: Charlemagne
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
Is it possible to make a change to the files or a sub-mod or something that adds restrictions for AI joining a Crusade? Like making it so they can't join if they are a craven or cynical, or adding a limit to the number of people that can join a crusade? Maybe there could be a system where Kingdoms can only join in on a crusade every 3 crusades or so, so that every kingdom in Europe won't march down their entire male population to the holy land (how the hell don't they ever take any significant attrition damage btw?) EVERY SINGLE crusade. Maybe this could be an addition to the mod, but I dunno how difficult it is to mod. I'd give it a shot myself but I suck at coding and such.
 
There are actually modifiers for that in the HFP_crusade_event file. So it wouldn't be very difficult to add a negative modifier for traits like craven.

Code:
## Pledge and Beneficiary Events
# Pledge preperation start event - AI only
character_event = {
    id = HFP.41005
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        uses_new_crusade = yes
        holy_order = no
    }

    immediate = {
        crusade_target_title = {
            if = {
                limit = {
                    NOT = {
                        empire = {
                            title = e_null
                        }
                    }
                }
                empire = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
            else = {
                kingdom = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
        }
        any_playable_ruler = {
            limit = {
                is_adult = yes
                religion = ROOT
                check_if_alternate_crusades_trigger = yes
                OR = {
                    independent = yes
                    higher_tier_than = COUNT
                    OR = {
                        holy_order = yes
                        is_landed = yes
                    }
                }
                rightful_religious_head_scope = {
                    character = ROOT
                    NOT = {
                        war_with = PREV
                    }
                }
                mercenary = no
                is_within_diplo_range = ROOT
            }
            random = {
                chance = 20
                modifier = {
                    factor = 1.5
                    trait = zealous
                }
                modifier = {
                    factor = 1.5
                    trait = holy_warrior
                }
                modifier = {
                    factor = 1.25
                    ai_zeal = 0
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 10
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 20
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 30
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 40
                }
                modifier = {
                    factor = 0.1
                    trait = cynical
                }
                modifier = {
                    factor = 0.2
                    is_patrician = yes
                }
                modifier = {
                    factor = 0.1
                    tier = COUNT
                }
                modifier = {
                    factor = 0.3
                    tier = DUKE
                }
                modifier = {
                    factor = 1.5
                    tier = EMPEROR
                }
                modifier = {
                    factor = 0.5
                    war = yes
                }
                modifier = {
                    factor = 100
                    primary_title = {
                        holy_order = yes
                    }
                }
                modifier = {
                    factor = 4
                    primary_title = {
                        de_jure_liege_or_above = event_target:crusade_target_empire_liege
                    }
                }
                character_event = { id = HFP.41007 days = 5 random = 15 }
            }
        }
    }
}
 
There are actually modifiers for that in the HFP_crusade_event file. So it wouldn't be very difficult to add a negative modifier for traits like craven.

Code:
## Pledge and Beneficiary Events
# Pledge preperation start event - AI only
character_event = {
    id = HFP.41005
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        uses_new_crusade = yes
        holy_order = no
    }

    immediate = {
        crusade_target_title = {
            if = {
                limit = {
                    NOT = {
                        empire = {
                            title = e_null
                        }
                    }
                }
                empire = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
            else = {
                kingdom = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
        }
        any_playable_ruler = {
            limit = {
                is_adult = yes
                religion = ROOT
                check_if_alternate_crusades_trigger = yes
                OR = {
                    independent = yes
                    higher_tier_than = COUNT
                    OR = {
                        holy_order = yes
                        is_landed = yes
                    }
                }
                rightful_religious_head_scope = {
                    character = ROOT
                    NOT = {
                        war_with = PREV
                    }
                }
                mercenary = no
                is_within_diplo_range = ROOT
            }
            random = {
                chance = 20
                modifier = {
                    factor = 1.5
                    trait = zealous
                }
                modifier = {
                    factor = 1.5
                    trait = holy_warrior
                }
                modifier = {
                    factor = 1.25
                    ai_zeal = 0
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 10
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 20
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 30
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 40
                }
                modifier = {
                    factor = 0.1
                    trait = cynical
                }
                modifier = {
                    factor = 0.2
                    is_patrician = yes
                }
                modifier = {
                    factor = 0.1
                    tier = COUNT
                }
                modifier = {
                    factor = 0.3
                    tier = DUKE
                }
                modifier = {
                    factor = 1.5
                    tier = EMPEROR
                }
                modifier = {
                    factor = 0.5
                    war = yes
                }
                modifier = {
                    factor = 100
                    primary_title = {
                        holy_order = yes
                    }
                }
                modifier = {
                    factor = 4
                    primary_title = {
                        de_jure_liege_or_above = event_target:crusade_target_empire_liege
                    }
                }
                character_event = { id = HFP.41007 days = 5 random = 15 }
            }
        }
    }
}

Niccce, I'll be messing around with this

Why exclude cynics? I mean, the most cynical event in history is the 4th Crusade.

It's something to cut down the number of participants at least. More immersion is gained than lost here imo
 
Nice find regarding the joining modifiers. HF made Crusades even more horrifyingly overpowered. Maybe other modifiers can be applied which relate to location, time period, culture etc. The last thing on your mind if playing as Egypt in 1337 should be seriously worrying about Crusades.

Wonder if there are modifiers for the defenders too? Daft to see the Volga Bulghars and Delhi Sultanates send doom stacks to defend the Holy Land.
 
Niccce, I'll be messing around with this

Nice find regarding the joining modifiers. HF made Crusades even more horrifyingly overpowered. Maybe other modifiers can be applied which relate to location, time period, culture etc. The last thing on your mind if playing as Egypt in 1337 should be seriously worrying about Crusades.

Wonder if there are modifiers for the defenders too? Daft to see the Volga Bulghars and Delhi Sultanates send doom stacks to defend the Holy Land.

I feel like a lot more could be considered, for example distance, empty state coffers / bankruptcy, relations with the pope, impending military threats at home (invasion being prepared against you) etc. Also, if the ruler is either crazy or an idiot, it might negate some of the aforementioned restrictions. Edit 2: Just thought of one more thing: you'd be probably a lot more reluctant to join a crusade against someone who's religion you're sympathetic to (say the crusade target is muslim and you have the Sympathy for Islam trait), or worse, who's your friend (unlikely, but not unheard of -- think of fellow Hermetic society members).

That being said, it wouldn't make much sense to just modify HFP.41005 without revisiting HFP.41006 and the corresponding counter-pledge events HFP.41070 and HFP.41073. The thing is if the combined crusader army is smaller than the defending one (crusade_preparation_strength <= 0.75), just about any able ruler with a modicum of ai_zeal is forced to pledge to join the crusade. A similar check is made for the defenders (crusade_preparation_strength >= 1.2). Edit: It's actually worse than that: more rulers are added until crusade_preparation_strength <= 1.75, just with more restricted ai_zeal requirements.

There's a lot more wrong with the crusades than the inflated number of participants though. So I guess it would require a more closer look from the development team.
 
Last edited:
That being said, it wouldn't make much sense to just modify HFP.41005 without revisiting HFP.41006 and the corresponding counter-pledge events HFP.41070 and HFP.41073. The thing is if the combined crusader army is smaller than the defending one (crusade_preparation_strength <= 0.75), just about any able ruler with a modicum of ai_zeal is forced to pledge to join the crusade. A similar check is made for the defenders (crusade_preparation_strength >= 1.2). Edit: It's actually worse than that: more rulers are added until crusade_preparation_strength <= 1.75, just with more restricted ai_zeal requirements.

There's a lot more wrong with the crusades than the inflated number of participants though. So I guess it would require a more closer look from the development team.

I've been editing around these events in a sub-mod and the crusades have been much smaller. I've been replaying on the Third Crusade bookmark with and without the sub-mod and the crusades are about half of what they normally are. The catholics have around the same total strength as usual, but they only usually get around 20 participants. The muslims have less than 10 usually. I have turned down the frequency of counts, dukes, kings, and emperors (counts most significantly), added a lot of traits that lower the frequency. I turned down crusade preparation strength for HFP.41006 to < 0.5 and HFP.41073 to 1.2.
 
I've been editing around these events in a sub-mod and the crusades have been much smaller. I've been replaying on the Third Crusade bookmark with and without the sub-mod and the crusades are about half of what they normally are. The catholics have around the same total strength as usual, but they only usually get around 20 participants. The muslims have less than 10 usually. I have turned down the frequency of counts, dukes, kings, and emperors (counts most significantly), added a lot of traits that lower the frequency. I turned down crusade preparation strength for HFP.41006 to < 0.5 and HFP.41073 to 1.2.

Can you share your sub-mod please? I'm also interested :)
 
Can you share your sub-mod please? I'm also interested :)

The tricky thing is that I copied the file from HIP and made edits to it. I don't know the rules about posting a sub-mod and can't find them anywhere. Parts of the file give credits to the mod makers and stuff and I'm not sure if I would get into trouble or not for posting it. I'll send the code for you to copy and paste into a submod (or directly into the files if you want).

Code:
## Pledge and Beneficiary Events
# Pledge preperation start event - AI only
character_event = {
    id = HFP.41005
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        uses_new_crusade = yes
        holy_order = no
    }

    immediate = {
        crusade_target_title = {
            if = {
                limit = {
                    NOT = {
                        empire = {
                            title = e_null
                        }
                    }
                }
                empire = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
            else = {
                kingdom = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
        }
        any_playable_ruler = {
            limit = {
                is_adult = yes
                religion = ROOT
                check_if_alternate_crusades_trigger = yes
                OR = {
                    independent = yes
                    higher_tier_than = COUNT
                    OR = {
                        holy_order = yes
                        is_landed = yes
                    }
                }
                rightful_religious_head_scope = {
                    character = ROOT
                    NOT = {
                        war_with = PREV
                    }
                }
                mercenary = no
                is_within_diplo_range = ROOT
            }
            random = {
                chance = 20
                modifier = {
                    factor = 0.5
                    trait = zealous
                }
                modifier = {
                    factor = 0.8
                    trait = holy_warrior
                }
                modifier = {
                    factor = 0.85
                    ai_zeal = 0
                }
                modifier = {
                    factor = 0
                    ai_zeal = 10
                }
                modifier = {
                    factor = 0.15
                    ai_zeal = 20
                }
                modifier = {
                    factor = 0.25
                    ai_zeal = 30
                }
            modifier = {
                    factor = -0.5
                    trait = slothful
                }
            modifier = {
                    factor = -10.5
                    trait = craven
                }
            modifier = {
                    factor = -1.5
                    trait = shy
                }
                modifier = {
                    factor = 0.75
                    ai_zeal = 40
                }
                modifier = {
                    factor = -1.25
                    trait = cynical
                }
                modifier = {
                    factor = -10.0
                    is_patrician = yes
                }
                modifier = {
                    factor = -0.8
                    tier = COUNT
                }
            modifier = {
                    factor = -0.6
                    tier = king
                }
                modifier = {
                    factor = 0.125
                    tier = DUKE
                }
                modifier = {
                    factor = -0.6
                    tier = EMPEROR
                }
                modifier = {
                    factor = 0.5
                    war = yes
                }
                modifier = {
                    factor = 100
                    primary_title = {
                        holy_order = yes
                    }
                }
                modifier = {
                    factor = 4
                    primary_title = {
                        de_jure_liege_or_above = event_target:crusade_target_empire_liege
                    }
                }
                character_event = { id = HFP.41007 days = 5 random = 15 }
            }
        }
    }
}
Code:
# Pledge monthly event - AI only
character_event = {
    id = HFP.41006
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        if = {
            limit = {
                  crusade_preparation_strength < 0.5
                is_preparing_crusade = yes
            }
Code:
## Counter Pledge Events
# Getting AI defense pledges
character_event = {
    id = HFP.41070
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        uses_new_crusade = yes
        is_preparing_crusade = yes
    }

    immediate = {
        crusade_target_title = {
            if = {
                limit = {
                    NOT = {
                        empire = {
                            title = e_null
                        }
                    }
                }
                empire = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
            else = {
                kingdom = {
                    save_event_target_as = crusade_target_empire_liege
                }
            }
        }
        crusade_target_char = {
            save_event_target_as = crusade_defender
        }
        any_playable_ruler = {
            limit = {
                is_adult = yes
                religion = event_target:crusade_defender
                OR = {
                    independent = yes
                    higher_tier_than = BARON
                    holy_order = yes
                }
                mercenary = no
                is_within_diplo_range = event_target:crusade_defender
            }
            random = {
                chance = 5
                modifier = {
                    factor = 1.5
                    trait = zealous
                }
                modifier = {
                    factor = 1.5
                    trait = holy_warrior
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 10
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 20
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 30
                }
                modifier = {
                    factor = 1.5
                    ai_zeal = 40
                }
                modifier = {
                    factor = 0
                    trait = cynical
                }
                modifier = {
                    factor = 0
                    is_patrician = yes
                }
                modifier = {
                    factor = 0
                    tier = COUNT
                }
                modifier = {
                    factor = 0.1
                    tier = DUKE
                }
                modifier = {
                    factor = 1.5
                    tier = EMPEROR
                }
            modifier = {
                    factor = -0.5
                    trait = craven
                }
            modifier = {
                    factor = -0.5
                    trait = greedy
                }
                modifier = {
                    factor = 0.5
                    war = yes
                }
                modifier = {
                    factor = 100
                    primary_title = {
                        holy_order = yes
                    }
                }
Code:
# Defense severely outmatched - AI only
character_event = {
    id = HFP.41073
    hide_window = yes
    is_triggered_only = yes
    trigger = {
        is_preparing_crusade = yes
        crusade_preparation_strength >= 1.2
    }

Basically just find the parts and plug them into the crusading file at C:\Users\person\Documents\Paradox Interactive\Crusader Kings II\mod\Historical Immersion Project\events and find the HFP_crusade_events file and find all of the parts that I've edited with CTRL F and paste these into the corresponding parts. As I've stated I'm an absolute amateur at the mod/submod making business and this is the best I can do. Hopefully someone with an understanding of this stuff can come along and make this into an actual submod.
 
  • 1Like
Reactions: