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

Jaol

Kapudan Pasha
56 Badges
Jan 24, 2011
3.755
313
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • For the Motherland
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: First Colony Edition
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Victoria 2 Beta
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
This mod limits how you can use the Holy War CB. The CB is now only valid on neighboring duchies or nearby coastal duchies. The serves to prevent things like France taking over Iberia without preventing historically appropriate overseas cases, such as Denmark expanding into the Baltic. It is similar to wertu234's mod that restricts the holy war CB to adjacent duchies, but also allows holy wars over predefined sea-routes.

For example, in 1066, the King of Leon can use the regular holy war CB on the Emir of Valencia to capture the Duchy of Toledo, because it borders his kingdom. He cannot, however, use it to capture the Duchy of Valencia, from the Emir, because his kingdom does not border that particular duchy. Here's a screenshot: http://cloud.steampowered.com/ugc/506891565262300351/CFD98EBD0B4DFB304D6AF56D865E5126F5F15A02/

For example, any character with a holding or vassal in Denmark will be able to use the CB against pagan-held duchies on the Baltic coast: http://cloud.steampowered.com/ugc/506891565262682802/2F44CC4A56AAAD84F4072201BDB969FBA4A4E1F4/. Note that the King of Denmark has a CB on the Duchy of Prussia, but not the Duchy of Pomerania. That is because the part of the Duchy of Pomerania that in the Prutherian realm does not border the Baltic.

The predefined regions where overseas holy wars are allowed are:
  • Denmark/Sweden to the Baltic coast and vice versa.
  • Aragon to the Balearics and vice versa.
  • Sicily to Malta and Africa and vice versa.

The mod originally included more sea-routes, but I found they didn't add much to gameplay, and in some cases seemed to cause problems (Byzantium leapfrogging Georgia), so I removed them. If you think I'm missing an important route, please let me know.

Download the cb file here:
View attachment Geographically Limited Holy Wars.zip
 
Last edited:
Hmm, well, I'm not sure that's something we want to stop. France leapfrogging the Iberian minors = bad, but France completing to the reconquista if they get wiped out is different.

Anyway, here's a version of the mod that is compatible with wertu234's. Kings and Emperors require higher centralization to use the CB if they don't have any demesne provinces on their borders. Perhaps that will help.

In this version, the base Holy War CB is exactly the same as in wertu234's mod, but there is another CB for overseas Holy Wars (limited by predefined regions). This way Denmark can still use a Holy War CB in the Baltic despite not bordering the duchies in question.

Although the latest patch improves upon France in Africa, etc. by lowering the naval distance at which the AI will use the Holy War CB, I think it still works better to completely prevent overseas Holy Wars except in certain predefined regions. Limiting the CB by distance alone blocks some historically appropriate cases (i.e. Denmark to Finland), while allowing other more questionable cases (ERE in Libya). With predefined regions, we can try to match invasion routes to trade routes, control things for the sake of gameplay, etc.

Download:
View attachment Geographically Limited Holy Wars.zip
 
I agree with Jaol, this is not a bad scenario. Imo, France would and should step in if Barcelona is overran by Muslims. After all, the county was a Frankish creation.
 
Somehow it doesn't work - I'm king of italy under HRE, one of my vassals is the count of corsica, and I can't declare war on Sicilian muslims.

Which version are you using? For the one that's compatible with wertu234's mod, you need a demense province in the right area to go overseas. Sorry, I forgot to mention that change.

By the way, does anyone have any suggestions for where overseas holy wars should be possible? I'm thinking perhaps it should be more limited, to keep Sardinia from being so important.
 
Last edited:
Is the muslims limited by this as well? If they are, do you think it can be modded that these restrictions is only for the christians? I'm tired of always seeing Iberia overrun by the christians with their overpowerd holy orders.
 
I am downloading this immediately. This looks great!

I found an error in the code. France can declare war on the Sheikhdom of Lleida even though they aren't adjacent. I think this is because they are adjacent to the duchy of Barcelona, and this sheikhdom is a de jure part of Barcelona.

I'm trying to figure out a way to fix it now.
 
Last edited:
I am downloading this immediately. This looks great!

I found an error in the code. France can declare war on the Sheikhdom of Lleida even though they aren't adjacent. I think this is because they are adjacent to the duchy of Barcelona, and this sheikhdom is a de jure part of Barcelona.

I'm trying to figure out a way to fix it now.
Thanks for reporting it. I've fixed it and tweaked the cbs a bit. The basic cb is the same as in wertu234's mod. The 2nd cb now only allows holy-wars in the Baltic, between Aragon and Mallorca, and between Sicily, Malta, and Africa.

Is there anything obviously missing?

Here is the latest version. Just paste this into your cbs. I'll also update the links at the top.
Code:
religious = {
	name = CB_NAME_RELIGIOUS
	war_name = WAR_NAME_RELIGIOUS
	sprite = 9
	truce_days = 1095
	is_permanent = yes
	check_dejure_duchies = yes
	
	can_use = {
		ROOT = {
			NOT = { religion_group = pagan_group }
			NOT = { same_realm = FROM }
			OR = {
				NOT = { religion_group = FROM }
				is_heresy_of = FROM
				is_parent_religion = FROM
			}
			top_liege = {
				religion = PREV
			}
			
			OR = {
				AND = {
					OR = {
						primary_title = { tier = EMPEROR }
						primary_title = { tier = KING }
					}
					crownlaw_title = {
						has_law = centralization_4
					}
					any_vassal = {
						any_demesne_province = {
							any_neighbor_province = {
								owner = {
									top_liege = { 
										character = FROM
									}
								}
							}
						}
					}
				}
					
				AND = {
					primary_title = { tier = DUKE }
					any_vassal = {
						any_demesne_province = {
							any_neighbor_province = {
								owner = {
									top_liege = { 
										character = FROM
									}
								}
							}
						}
					}
				}
			
			any_demesne_province = {
					any_neighbor_province = {
						owner = {
							top_liege = { 
								character = FROM
							}
						}
					}
				}
			}
			
		}
	}
				
	can_use_title = {
		ROOT = {
				any_realm_province = {
					any_neighbor_province = {
						de_jure_liege = PREVPREVPREV
						}
					}
				}
			}


		
	is_valid = {
		ROOT = {
			NOT = { religion_group = pagan_group }
			NOT = { same_realm = FROM }
			OR = {
				NOT = { religion_group = FROM }
				is_heresy_of = FROM
				is_parent_religion = FROM
			}
			OR = {
				AND = {
					OR = {
						primary_title = { tier = EMPEROR }
						primary_title = { tier = KING }
					}
					crownlaw_title = {
						has_law = centralization_4
					}
					any_vassal = {
						any_demesne_province = {
							any_neighbor_province = {
								owner = {
									top_liege = { 
										character = FROM
									}
								}
							}
						}
					}
					}
					
				AND = {
					primary_title = { tier = DUKE }
					any_vassal = {
						any_demesne_province = {
							any_neighbor_province = {
								owner = {
									top_liege = { 
										character = FROM
									}
								}
							}
						}
					}
					}
			
			any_demesne_province = {
					any_neighbor_province = {
						owner = {
							top_liege = { 
								character = FROM
							}
						}
					}
				}
			}
		}
	}
	
	
	on_success_title = {
		ROOT = {
			piety = 50
			gain_settlements_under_title = {
				title = PREV
				enemy = FROM
			}
		}
	}

	on_fail = {
		ROOT = {
			piety = -50
			prestige = -100
		}
	}

	on_reverse_demand = {
		ROOT = {
			piety = -150
			prestige = -200
		}
	}

	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
}

religious2 = {
	name = CB_NAME_RELIGIOUS
	war_name = WAR_NAME_RELIGIOUS
	sprite = 9
	truce_days = 1095
	is_permanent = yes
	check_dejure_duchies = yes
	
	can_use = {
		ROOT = {
			NOT = { religion_group = pagan_group }
			NOT = { same_realm = FROM }
			OR = {
				NOT = { religion_group = FROM }
				is_heresy_of = FROM
				is_parent_religion = FROM
			}
			top_liege = {
				religion = PREV
			}
			
			OR= {
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 170 #Aragon
							province_id = 171
							province_id = 172
							province_id = 173
							province_id = 204
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 827 #Mallorca
								province_id = 826
							}
						}
					}
				}
					
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 827 #Mallorca
							province_id = 826
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 170 #Aragon
								province_id = 171
								province_id = 172
								province_id = 173
								province_id = 204
							}
						}
					}
				}
				
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 340 #Sicily
							province_id = 341
							province_id = 342
							province_id = 343

							province_id = 812 #Malta
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 812 #Malta
								
								province_id = 817 #Africa
								province_id = 816
								province_id = 813
								province_id = 811
							}
						}
					}
				}
				
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 812 #Malta
								
							province_id = 817 #Africa
							province_id = 816
							province_id = 813
							province_id = 811
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 340 #Sicily
								province_id = 341
								province_id = 342
								province_id = 343

								province_id = 812 #Malta
							}
						}
					}
				}
				
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 266 #Denmark
							province_id = 303
							province_id = 305
							province_id = 6
							
							province_id = 298 #Sweden
							province_id = 300
							province_id = 301						
							province_id = 293
							province_id = 292						
							province_id = 290
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 262 #Lubeck
							
								province_id = 260 #Mecklenburg
								province_id = 306
								province_id = 304
								province_id = 307
								
								province_id = 308 #Pommerania
								province_id = 366
								
								province_id = 367 #Pomerilia
								province_id = 368
								
								province_id = 370 #Prussia
								province_id = 371
								
								province_id = 372 #Samagotia
								province_id = 422
								
								province_id = 421 #Lithuania
								
								province_id = 373 #Courland
								province_id = 374
								
								province_id = 375 #Livland
								province_id = 376
								province_id = 377
								
								province_id = 378 #Estland
								province_id = 380
							}
						}
					}
				}
				
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 262 #Lubeck
							
							province_id = 260 #Mecklenburg
							province_id = 306
							province_id = 304
							province_id = 307
							
							province_id = 308 #Pommerania
							province_id = 366
							
							province_id = 367 #Pomerilia
							province_id = 368
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 266 #Denmark
								province_id = 303
								province_id = 305
								province_id = 6
								
								province_id = 298 #Sweden
								province_id = 300
								province_id = 301						
								province_id = 293
								province_id = 292						
								province_id = 290
							
								province_id = 370 #Prussia
								province_id = 371
								
								province_id = 372 #Samagotia
								province_id = 422
								
								province_id = 421 #Lithuania
								
								province_id = 373 #Courland
								province_id = 374
								
								province_id = 375 #Livland
								province_id = 376
								province_id = 377
								
								province_id = 378 #Estland
								province_id = 380
							}
						}
					}
				}
				
				AND = {
					any_demesne_province = {
						OR = {
							province_id = 370 #Prussia
							province_id = 371
							
							province_id = 372 #Samagotia
							province_id = 422
							
							province_id = 421 #Lithuania
							
							province_id = 373 #Courland
							province_id = 374
							
							province_id = 375 #Livland
							province_id = 376
							province_id = 377
							
							province_id = 378 #Estland
							province_id = 380
						}
					}
					FROM = {
						any_realm_province = {
							OR = {
								province_id = 266 #Denmark
								province_id = 303
								province_id = 305
								province_id = 6
								
								province_id = 298 #Sweden
								province_id = 300
								province_id = 301						
								province_id = 293
								province_id = 292						
								province_id = 290
							
								province_id = 262 #Lubeck
								
								province_id = 260 #Mecklenburg
								province_id = 306
								province_id = 304
								province_id = 307
								
								province_id = 308 #Pommerania
								province_id = 366
								
								province_id = 367 #Pomerilia
								province_id = 368
							}
						}
					}
				}
			}
		}
	}
		
	
		
	can_use_title = {
		OR= {
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 170 #Aragon
							province_id = 171
							province_id = 172
							province_id = 173
							province_id = 204
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 827 #Mallorca
							province_id = 826
						}					
						de_jure_liege = PREVPREV
					}
				}
			}
					
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 827 #Mallorca
							province_id = 826
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 170 #Aragon
							province_id = 171
							province_id = 172
							province_id = 173
							province_id = 204
						}					
						de_jure_liege = PREVPREV
					}	
				}
			}
			
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 340 #Sicily
							province_id = 341
							province_id = 342
							province_id = 343

							province_id = 812 #Malta
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 812 #Malta
							
							province_id = 817 #Africa
							province_id = 816
							province_id = 813
							province_id = 811
						}					
						de_jure_liege = PREVPREV
					}
				}
			}
				
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 812 #Malta
								
							province_id = 817 #Africa
							province_id = 816
							province_id = 813
							province_id = 811
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 340 #Sicily
							province_id = 341
							province_id = 342
							province_id = 343

							province_id = 812 #Malta
						}					
						de_jure_liege = PREVPREV
					}
				}
			}
				
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 266 #Denmark
							province_id = 303
							province_id = 305
							province_id = 6
							
							province_id = 298 #Sweden
							province_id = 300
							province_id = 301						
							province_id = 293
							province_id = 292						
							province_id = 290
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 262 #Lubeck
							
							province_id = 260 #Mecklenburg
							province_id = 306
							province_id = 304
							province_id = 307
							
							province_id = 308 #Pommerania
							province_id = 366
							
							province_id = 367 #Pomerilia
							province_id = 368
							
							province_id = 370 #Prussia
							province_id = 371
							
							province_id = 372 #Samagotia
							province_id = 422
							
							province_id = 421 #Lithuania
							
							province_id = 373 #Courland
							province_id = 374
							
							province_id = 375 #Livland
							province_id = 376
							province_id = 377
							
							province_id = 378 #Estland
							province_id = 380
						}					
						de_jure_liege = PREVPREV
					}			
				}
			}
			
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 262 #Lubeck
							
							province_id = 260 #Mecklenburg
							province_id = 306
							province_id = 304
							province_id = 307
							
							province_id = 308 #Pommerania
							province_id = 366
							
							province_id = 367 #Pomerilia
							province_id = 368
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {
							province_id = 266 #Denmark
							province_id = 303
							province_id = 305
							province_id = 6
							
							province_id = 298 #Sweden
							province_id = 300
							province_id = 301						
							province_id = 293
							province_id = 292						
							province_id = 290
						
							province_id = 370 #Prussia
							province_id = 371
							
							province_id = 372 #Samagotia
							province_id = 422
							
							province_id = 421 #Lithuania
							
							province_id = 373 #Courland
							province_id = 374
							
							province_id = 375 #Livland
							province_id = 376
							province_id = 377
							
							province_id = 378 #Estland
							province_id = 380
						}	
						de_jure_liege = PREVPREV
					}
				}
			}
			
			AND = {
				ROOT = {
					any_demesne_province = {
						OR = {
							province_id = 370 #Prussia
							province_id = 371
							
							province_id = 372 #Samagotia
							province_id = 422
							
							province_id = 421 #Lithuania
							
							province_id = 373 #Courland
							province_id = 374
							
							province_id = 375 #Livland
							province_id = 376
							province_id = 377
							
							province_id = 378 #Estland
							province_id = 380
						}
					}
				}
				FROM = {
					any_realm_province = {
						OR = {								
							province_id = 266 #Denmark
							province_id = 303
							province_id = 305
							province_id = 6
							
							province_id = 298 #Sweden
							province_id = 300
							province_id = 301						
							province_id = 293
							province_id = 292						
							province_id = 290
						
							province_id = 262 #Lubeck
							
							province_id = 260 #Mecklenburg
							province_id = 306
							province_id = 304
							province_id = 307
							
							province_id = 308 #Pommerania
							province_id = 366
							
							province_id = 367 #Pomerilia
							province_id = 368
						}	
						de_jure_liege = PREVPREV
					}
				}
			}
		}
	}


		
	is_valid = {
		ROOT = {
			NOT = { religion_group = pagan_group }
			NOT = { same_realm = FROM }
			OR = {
				NOT = { religion_group = FROM }
				is_heresy_of = FROM
				is_parent_religion = FROM
			}
		}
	}
	
	on_success_title = {
		ROOT = {
			piety = 50
			gain_settlements_under_title = {
				title = PREV
				enemy = FROM
			}
		}
	}

	on_fail = {
		ROOT = {
			piety = -50
			prestige = -100
		}
	}

	on_reverse_demand = {
		ROOT = {
			piety = -150
			prestige = -200
		}
	}

	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
}