##################################
## Non-landed titles
##
##
##
##################################
##
## EMPIRES
##
##################################

# Special

e_roman_empire = {
	color = { 167 10 100 }
	color2 = { 255 255 20 }
	capital = 333 # Rome
	culture = roman
	dynasty_title_names = no
	purple_born_heirs = yes
	dignity = 100
	short_name = yes
	title = "Emperor"
	title_female = "Empress"
	
	allow = {
		has_dlc = "Legacy of Rome"
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				culture = roman
				religion_group = hellenic_pagan_group
				prestige = 3000
				completely_controls = d_latium
				completely_controls = d_venice
				completely_controls = d_ferrara
				completely_controls = d_sicily
				completely_controls = d_genoa
				completely_controls = d_capua
				completely_controls = d_apulia
				completely_controls = d_thrace
				completely_controls = d_karvuna
				completely_controls = d_thessalonika
				completely_controls = d_turnovo
				completely_controls = d_antioch
				completely_controls = d_jerusalem
				completely_controls = d_alexandria
				completely_controls = d_athens
				completely_controls = d_tunis
				completely_controls = d_croatia
			}
		}
	}
	gain_effect = {
		if = {
			limit = {
				has_dlc = "Legacy of Rome"
				NOT = { has_global_flag = "rome_restored" }
			}
			narrative_event = { id = LoR.20 tooltip = EVTTOOLTIPLoR.20 }
		}
	}
}

e_hre = {
	color = { 155 155 155 }
	color2 = { 220 220 20 }
	dynasty_title_names = no
	short_name = yes
	creation_requires_capital = no

	allow = {
		custom_tooltip = {
			text = hre_formed
			hidden_tooltip = {
				FROM = { has_title_flag = hre_formed }
			}
		}
		e_roman_empire = { has_holder = no }
		may_create_empire_trigger = yes
		is_heretic = no
		custom_tooltip = {
			text = catholic_group_christian
			hidden_tooltip = {
				OR = {
					religion = chalcedonian
					religion = catholic
					religion = cathar
					religion = fraticelli
					religion = waldensian
					religion = lollard
					religion = adoptionist
				}
			}
		}
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
			}
		}
	}
}

e_karling = {
	color = { 250 250 250 }
	color2 = { 0 0 0 }
	culture = frankish
	dynasty_title_names = no
	creation_requires_capital = no
	short_name = yes
	capital = 90 # Julich

	allow = {
		e_roman_empire = { has_holder = no }
		may_create_empire_trigger = yes
		custom_tooltip = {
			text = catholic_group_christian
			hidden_tooltip = {
				OR = {
					religion = chalcedonian
					religion = catholic
					religion = cathar
					religion = fraticelli
					religion = waldensian
					religion = lollard
					religion = adoptionist
				}
			}
		}
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
	}
}

e_byzantium = {
	color = { 163 10 145 }
	color2 = { 255 0 0 }
	capital = 496 #Byzantion
	culture = greek
	dynasty_title_names = no
	has_top_de_jure_capital = yes # What does this do?
	purple_born_heirs = yes
	short_name = yes
	
	# Special Localization
	#roman = "East Roman Empire"
	
	allow = {
		e_roman_empire = { has_holder = no }
		may_create_empire_trigger = yes
		custom_tooltip = {
			text = byzantine_values
			hidden_tooltip = {
				OR = {
					ai = yes # The ai can blow up the empire on accident, the player shouldn't
					religion_group = hellenic_pagan_group
					religion = chalcedonian
					religion = orthodox
					religion = bogomilist
					religion = monothelite
					religion = iconoclast
				}
			}
		}
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
			}
		}
	}
}

e_latin_empire = {
	color = { 150 105 56 }
	capital = 496 # Byzantion
	short_name = yes
	
	allow = {
		e_roman_empire = { has_holder = no }
		e_byzantium = { has_holder = no }
		may_create_empire_trigger = yes
		custom_tooltip = {
			text = catholic_group_christian
			hidden_tooltip = {
				OR = {
					religion = chalcedonian
					religion = catholic
					religion = cathar
					religion = fraticelli
					religion = waldensian
					religion = lollard
					religion = adoptionist
				}
			}
		}
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				custom_tooltip = {
					text = controls_kaliopolis_thrake
					hidden_tooltip = {
						495 = { # Kaliopolis
							owner = {
								OR = {
									is_liege_or_above = ROOT
									character = ROOT
								}
							}
						}
						497 = { # Thrake
							owner = {
								OR = {
									is_liege_or_above = ROOT
									character = ROOT
								}
							}
						}
					}
				}
			}
		}
	}
}

e_china_west_governor = { #placeholder for the Chinese Empire Western Governor
	color={ 245 240 10 }
	color2={ 220 220 0 }
	
	capital = 1448 # Dunhuang
	
	title_female = "WESTERN_GOVERNOR_FEMALE"
	title = "WESTERN_GOVERNOR_MALE"
	foa = "WESTERN_GOVERNOR_TITLE_FOA"
	short_name = yes
	#location_ruler_title = yes
	
	# Always exists
	landless = yes
	
	# Cannot be vassalized
	independent = yes

	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	can_be_claimed = no
	can_be_usurped = no
	
	extra_ai_eval_troops = 7500
}

e_india = { # Created by special decision only if entire India is united
	color = { 255 110 0 }
	capital = 1365 # Delhi
	creation_requires_capital = no
	dynasty_title_names = no	# Will not be named "Seljuk", etc.
	title = "SAMRAT_CHAKRAVARTIN" # Sets ruler's title
	title_female = "SAMRAJNI_CHAKRAVARTIN" # Sets female ruler's title
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
	}
}

# Non-special
e_abyssinia = {
	color = { 198 30 93 }
	color2 = { 255 255 255 }
	capital = 883 #Gonder
	culture = ethiopian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = ethiopian
			}
		}
	}
}

e_alan = {
	color = { 135 128 128 }
	color2 = { 255 255 255 }
	capital = 603 # Alania
	creation_requires_capital = no
	culture = alan
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = alan
			}
		}
	}
}

e_andalusia = {
	color = { 201  191  122 }
	capital = 181 #Cordoba
	culture = andalusian_arabic
	dynasty_title_names = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = andalusian_arabic
			}
		}
	}
}

e_arabia = {
	color = { 204 51 51  }
	color2 = { 255 255 255 }
	capital	= 693 #Baghdad
	creation_requires_capital = no
	culture = bedouin_arabic
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		capital_scope = { region = world_middle_east_arabia }
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = arabic
			}
		}
	}
}

e_armenia = {
	color = { 135 35 201 }
	color2 = { 255 255 255 }
	capital = 681 #	Ani
	creation_requires_capital = no
	culture = armenian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = armenian
			}
		}
	}
}

e_austria = {
	color = { 178 21 26 }
	capital = 449 #Osterreich
	culture = german
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				german_cultures_trigger = yes
			}
		}
	}
}

e_assyria = {
	color = { 40 95 75 }
	color2 = { 0 204 210 }
	capital = 697 #Mosul
	creation_requires_capital = yes
	culture = assyrian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = assyrian
			}
		}
	}
}

e_bengal = {
	color = { 0 120 40 }
	color2 = { 255 255 20 }
	capital = 1151 # Laksmanavati
	creation_requires_capital = no
	culture = bengali
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = bengali
			}
		}
	}
}

e_bohemia = {
	color = { 185 125 45 }
	color2 = { 255 255 255 }
	capital = 437 # Praha
	creation_requires_capital = no
	culture = bohemian
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = bohemian
			}
		}
	}
}

e_breton = {
	color = { 155 55 205 }
	color2 = { 255 255 255 }
	capital = 106 #Nantes
	creation_requires_capital = no
	culture = breton
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = breton
			}
		}
	}
}

e_britannia = {
	color = { 198 30 93 }
	color2 = { 255 255 255 }
	capital = 32 #Middlesex
	short_name = yes
	
	allow = {
		e_great_britain = { has_holder = no }
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
			}
		}
		custom_tooltip = {
			text = BRITANNIA_CREATION_CONDITION
			hidden_tooltip = {
				OR = {
					has_landed_title = k_england
					has_landed_title = k_england_norman
					has_landed_title = k_england_saxon
					has_landed_title = k_englandnorwegian
				}
				has_landed_title = k_scotland
				any_demesne_title = {
					tier = KING
					NOT = { title = k_england_norman }
					NOT = { title = k_england_saxon }
					NOT = { title = k_englandnorwegian }
					NOT = { title = k_england }
					NOT = { title = k_scotland }
				}
			}
		}
	}
}

e_great_britain = {
	color = { 255 30 93 }
	color2 = { 255 255 255 }
	capital = 32 #Middlesex
	culture = english
	title = "TITLE_KING"
	title_female = "TITLE_QUEEN"
	title_prefix = "kingdom_of"
	#don't use name tier, that will frak itself up because of imperial government type

	allow = {
		e_britannia = { has_holder = no }
		custom_tooltip = {
			text = gb_formed
			hidden_tooltip = {
				FROM = { has_title_flag = gb_formed }
			}
		}
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = norse
					culture = english_norse
					culture_group = west_germanic
					culture_group = celtic
				}
			}
		}
		has_landed_title = k_england
		has_landed_title = k_scotland
		has_landed_title = k_wales
	}
}

e_bulgar = {
	color = { 223 208 23 }
	color2 = { 255 255 255 }
	capital = 610 # Bulgar
	creation_requires_capital = no
	culture = bolghar
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = bolghar
			}
		}
	}
}

e_bulgaria = {
	color = { 113 98 121 }
	color2 = { 255 255 255 }
	capital = 499 # Tyrnovo
	creation_requires_capital = no
	culture = bulgarian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = bulgarian
			}
		}
	}
}

e_carpathia = {
	color = { 210 115 35 }
	color2 = { 255 255 255 }
	capital = 522 # Pest
	
	# Crusade target weights
	tengri_pagan_reformed = 100
	slavic_pagan_reformed = 50

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
			}
		}
	}
}

e_carthage = {
	color = { 35 177 77 }
	capital = 817 # Tunis
	culture = maghreb_arabic
	dynasty_title_names = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = maghreb_arabic
					culture = vandalic
				}
			}
		}
	}
}

e_celtic = {
	color = { 0 153 0 }
	capital = 11 # Dublin
	creation_requires_capital = no
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = celtic
			}
		}
	}
}

e_chagatai = {
	color = { 193 132 27 }
	color2 = { 255 255 255 }
	capital = 903 # Samarkand
	culture = mongol
	landless = yes # Always exists
	religion = tengri_pagan
	
	allow = {
		ai = yes
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
		ROOT = { culture = mongol }
	}
}

e_common = { # Polish–Lithuanian Commonwealth
	color = { 176 81 111 }
	capital = 529 # Plock
	creation_requires_capital = no
	culture = polish
	short_name = yes
	title = "king"
	title_female = "king_female"
	#don't use name tier, that will frak itself up because of imperial government type

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				has_landed_title = k_poland
				has_landed_title = k_lithuania
			}
		}
	}
}

e_cornwall = {
	color = { 195 65 15 }
	color2 = { 185 48 15 }
	capital = 31 # Cornwall
	creation_requires_capital = no
	culture = cornish
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = cornish
			}
		}
	}
}
   
e_corsica = {
	color = { 90 65 128 }
	color2 = { 255 255 255 }
	capital = 324 # Corsica
	creation_requires_capital = no
	culture = corsican
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = corsican
			}
		}
	}
}

e_crimea = {
	color = { 224 90 20 }
	color2 = { 20 177 255 }
	capital = 560 # Cherson
	culture = old_gothic
	creation_requires_capital = yes
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = byzantine
					culture_group = latin
					culture_group = east_germanic
				}
			}
		}
	}
}

e_croatia = {
	color = { 205 185 205 }
	color2 = { 200 0 0 }
	capital = 465 # Zadar
	creation_requires_capital = no
	culture = croatian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = croatian
			}
		}
	}
}

e_cuman = {
	color = { 250 184 31 }
	color2 = { 255 255 20 }
	capital = 619 #Saray
	creation_requires_capital = no
	culture = cuman
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = cuman
			}
		}
	}
}

e_dalmatian = {
	color = { 60 114 186 }
	color2 = { 255 255 255 }
	capital = 465 #	Zadar
	creation_requires_capital = no
	culture = dalmatian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = dalmatian
					AND = {
						OR = {
							culture = croatian
							culture = yugoslavian
							culture = italian
						}
						completely_controls_region = custom_dalmatian_region
					}
				}
			}
		}
	}
}

e_danubia = {
	color = { 213 0 39 }
	color2 = { 255 255 255 }
	capital	= 499 #Turnovo

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
			}
		}
	}
}

e_deccan = {
	color = { 190 20 50 }
	color2 = { 200 0 0 }
	capital = 1210 # Manyaketha
	culture = bengali
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = indo_aryan_group
					culture_group = dravidian_group
				}
			}
		}
	}
}

e_denmark = {
	color = { 247 77 54 }
	color2 = { 156 117 23 }
	capital = 266 # Sjaelland
	creation_requires_capital = no
	culture = danish
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = danish
			}
		}
	}
}

e_dutch = {
	color = { 190 155 155 }
	color2 = { 255 255 255 }
	capital = 80 #Holland
	creation_requires_capital = no
	culture = dutch
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = franco_germanic
			}
		}
	}
}

e_egypt = {
	color = { 45 245 200 }
	color2 = { 255 255 255 }
	capital	= 796 # Cairo
	creation_requires_capital = no
	culture = egyptian_arabic
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = egyptian_arabic
					culture = coptic
				}
			}
		}
	}
}

e_emilian = {
	color = { 144 214 141 }
	color2 = { 255 255 255 }
	capital = 353 #	Ferrara
	creation_requires_capital = no
	culture = emilian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = emilian
					AND = {
						culture = italian
						completely_controls_region = custom_emilian_cultural_area
					}
				}
			}
		}
	}
}

e_england = {
	color = { 142 36 36 }
	color2 = { 255 255 255 }
	capital = 32 # Middlesex
	creation_requires_capital = no
	culture = english
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = saxon
					culture = english
				}
			}
		}
	}
}

e_finland = {
	color = { 180 95 95 }
	capital = 381 # Uusimaa
	creation_requires_capital = no
	culture = finnish
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = finno_ugric
			}
		}
	}
}

e_france = {
	color = { 45 47 207 }
	color2 = { 255 255 20 }
	capital = 112 # Ile de France
	creation_requires_capital = no
	culture = frankish
	short_name = yes
	
	frankish = "French Empire"
	norman = "French Empire"

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = frankish
					culture = old_frankish
					culture = norman
					culture = occitan
					culture = burgundian
				}
			}
		}
		custom_tooltip = {
			text = FRANCE_CREATION_CONDITION
			hidden_tooltip = {
				completely_controls_region = custom_france
				OR = {
					completely_controls_region = custom_aquitaine
					completely_controls_region = custom_lotharingia
				}
				any_demesne_title = {
					tier = KING
					NOT = { title = k_france }
					OR = {
						AND = {
							owner = { completely_controls_region = custom_aquitaine }
							NOT = { title = k_aquitaine }
						}
						AND = {
							owner = { completely_controls_region = custom_lotharingia }
							NOT = { title = k_lotharingia }
						}
					}
				}
			}
		}
	}
}

e_gaul = {
	color = { 255 128 0 }
	capital = 119 # Koln
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				culture_group = celtic
				has_empire_size_trigger = yes
			}
		}
	}
}

e_georgia = {
	color = { 102 10 108 }
	color2 = { 255 255 255 }
	capital = 679 # Kartli
	creation_requires_capital = no
	culture = georgian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = georgian
			}
		}
	}
}

e_germany = {
	color = { 160 95 95 }
	color2 = { 220 220 20 }
	capital = 314 # Nurnberg
	creation_requires_capital = no
	culture = imperial_german
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		custom_tooltip = {
			text = german_empire_requirements # I am unable to form the Holy Roman Empire
			hidden_tooltip = {
				OR = {
					is_heretic = yes
					has_holder_trigger = yes
					is_not_titular_trigger = yes
					NOT = { is_title_active = e_hre }
					AND = {
						religion = chalcedonian
						rightful_religious_head_scope = {							
							NOR = {
								has_landed_title = k_papal_state
								has_landed_title = k_papal_chalcedon
							}
						}
					}
					NOR = {						
						religion = chalcedonian
						religion = catholic
						religion = cathar
						religion = fraticelli
						religion = waldensian
						religion = lollard
						religion = adoptionist
					}
				}
			}
		}
		e_hre = { has_holder = no }
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				german_cultures_trigger = yes
			}
		}
	}
}

e_ghana = {
	color = { 189 103 43 }
	color2 = { 255 255 255 }
	capital = 913 #Koumbi Saleh
	creation_requires_capital = no
	culture = manden
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = manden
			}
		}
	}
}

e_golden_horde = {
	color = { 243 180 17 }
	color2 = { 255 230 127 }
	capital = 619
	culture = mongol
	landless = yes # Always exists
	religion = tengri_pagan
	short_name = yes
	dynasty_title_names = no

	allow = {
		may_create_empire_trigger = yes
		has_holder_trigger = yes
		ROOT = { culture = mongol }
	}
}

e_gothia = {
	color = { 174 204 55 }
	color2 = { 255 255 255 }
	capital = 560 #	Cherson
	creation_requires_capital = no
	culture = old_gothic
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = east_germanic
			}
		}
	}
}

e_hungary = {
	color = { 187 70 70 }
	color2 = { 255 255 255 }
	capital	= 444 # Esztergom
	creation_requires_capital = no
	culture = hungarian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = hungarian
			}
		}
	}
}

e_iceland = {
	color = { 225 225 225 }
	color2 = { 220 220 220 }
	capital = 1 #Vestisland
	creation_requires_capital = no
	culture = icelandic
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = icelandic
			}
		}
	}
}

e_il-khanate = {
	color = { 120 180 20 }
	color2 = { 165 255 127 }
	capital = 646 # Esfahan
	culture = mongol
	landless = yes # Always exists
	religion = tengri_pagan
	short_name = yes
	dynasty_title_names = no 
	allow = {
		may_create_empire_trigger = yes
		has_holder_trigger = yes
		ROOT = { culture = mongol }
	}
}

e_ireland = {
	color = { 16 107 2 }
	color2 = { 185 48 15 }
	capital = 11 #Dublin
	creation_requires_capital = no
	culture = irish
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = irish
			}
		}
	}
}

e_italy = {
	color = { 125  171  84 }
	culture = italian
	creation_requires_capital = no
	capital = 235 # Lombardy
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
				}
			}
		}
	}
}

e_jewish = {
	color = { 180 53 220 }
	capital = 774 # Jerusalem
	creation_requires_capital = no
	culture = ashkenazi
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					religion_group = jewish_group
					culture_group = israelite
				}
			}
		}
	}
}

e_jolof = {
	color = { 221 183 38 }
	color2 = { 185 48 15 }
	capital = 863 #Cayor
	creation_requires_capital = no
	culture = jolof
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = jolof
			}
		}
	}
}

e_khazaria = {
	color = { 22 102 225 }
	color2 = { 255 255 255 }
	capital = 620 #	Itil
	culture = khazar
	short_name = yes
	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = khazar
			}
		}
	}
}

e_kurdish = {
	color = { 100 100 228 }
	color2 = { 255 255 255 }
	capital = 697 #Mosul
	creation_requires_capital = no
	culture = kurdish
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = kurdish
			}
		}
	}
}

e_ligurian = {
	color = { 247 149 12 }
	color2 = { 255 255 255 }
	capital = 233 #	Genoa
	creation_requires_capital = no
	culture = ligurian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = ligurian
					AND = {
						culture = italian
						completely_controls_region = custom_ligurian_cultural_area
					}
				}
			}
		}
	}
}

e_lithuania = {
	color = { 125 175 6 }
	color2 = { 185 48 15 }
	capital = 420 # Aukshayts
	creation_requires_capital = no
	culture = lithuanian
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = lithuanian
					culture = lettigallish
				}
			}
		}
	}
}

e_lombard = {
	color = { 183 50 207 }
	color2 = { 255 255 255 }
	capital = 235 #	Lombardia
	creation_requires_capital = no
	culture = lombard
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = lombard
					AND = {
						culture = italian
						completely_controls_region = custom_lombard_cultural_area
					}
				}
			}
		}
	}
}

e_maghreb = {
	color = { 220  202  96 }
	color2 = { 255 255 255 }
	capital = 843 # Marrakech
	creation_requires_capital = no
	culture = maghreb_arabic
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = maghreb_arabic
			}
		}
	}
}

e_mali = {
	color = { 251 133 78 }
	color2 = { 185 48 15 }
	capital = 911 #Timbuktu
	culture = manden
	creation_requires_capital = no
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			AND = {
				has_empire_size_trigger = yes
				culture = manden
			}
			e_mali = {
				OR = {
					is_titular = no
					has_holder = yes
				}
			}
		}
	}
}

e_mexikha = {
	color = { 255 127 0 }
	short_name = yes
	culture = nahuatl
	religion = aztec
	allow = {
		may_create_empire_trigger = yes
		has_holder_trigger = yes
		ROOT = { culture = nahuatl }
	}
}

e_mongol_empire = {
	color = { 255 255 255 }
	color2 = { 255 20 20 }
	capital = 1457 # Kara-khorum
	culture = mongol
	religion = tengri_pagan
	
	# Always exists
	landless = yes
	short_name = yes
	allow = {
		may_create_empire_trigger = yes
		has_holder_trigger = yes
		ROOT = { culture = mongol }
	}
}

e_neapolitan = {
	color = { 43 34 214 }
	color2 = { 255 255 255 }
	capital = 334 #	Napoli
	creation_requires_capital = no
	culture = neapolitan
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					AND = {
						culture = italian
						completely_controls_region = custom_neapolitan_cultural_area
					}
					culture = neapolitan
				}
			}
		}
	}
}

e_norman = {
	color = { 145 74 226 }
	color2 = { 255 255 255 }
	capital = 100 #Avranches
	culture = norman
	short_name = yes

	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = norman
			}
		}
	}
}

e_norse = {
	color = {102 102 102 }
	color2 = {255 255 255}
	capital = 274 # Bergenshus
	creation_requires_capital = no
	culture = norse
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					religion = norse_pagan
					religion = norse_pagan_reformed
					culture_group = north_germanic
				}
			}
		}
	}
}

e_north_sea = {
	color = { 35 75 233 }
	capital = 32 #Middlesex
	culture = norwegian
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = north_germanic
					culture = english_norse
				}
			}
		}
	}
}

e_norway = {
	color = { 150 150 170 }
	color2 = { 220 220 220 }
	capital = 274 # Bergenshus
	culture = norwegian
	short_name = yes
	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = norwegian
			}
		}
	}
}

e_nubia = {
	color = { 172 161 56 }
	color2 = { 255 255 255 }
	capital = 793 # Makuria
	culture = nubian
	short_name = yes
	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = nubian
			}
		}
	}
}

e_occitan = {
	color = { 74 50 246 }
	color2 = { 255 255 20 }
	capital = 149 # Bordaeux
	short_name = yes
	creation_requires_capital = no
	culture = occitan

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = occitan
			}
		}
	}
}

e_ottoman = {
	color = { 247 145 30 }
	culture = turkish
	capital = 496 #Constantinople
	short_name = yes
	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = turkish
			}
		}
	}
}

e_outremer = {
	color = { 200 200 200 }
	color2 = { 255 255 255 }

	capital = 774 # Jerusalem
	culture = outremer
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				religion_group = christian
				OR = {
					culture = outremer
					culture = frankish
					culture = occitan
				}
			}
		}
	}
}

e_pecheneg = {
	color = { 173 150 43 }
	color2 = { 0 128 128 }
	capital = 545 # Torki
	culture = pecheneg

	creation_requires_capital = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = pecheneg
			}
		}
	}
}

e_persia = {
	color = { 204  119  31 }
	color2 = { 255 255 255 }

	capital = 646 #	Esfahan
	culture = persian
	creation_requires_capital = no
	short_name = yes
	
	zun_pagan_reformed = 500 # Crusade target weight

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = persian
			}
		}
	}
}

e_pirates = {
	pirate = yes
	landless = yes
	primary = yes

	culture = swedish
	color = { 0 0 0 }
	color2 = { 0 0 0 }
	
	allow = {
		ai = yes
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
	}
}

e_poland = {
	color = { 120 53 53 }
	color2 = { 200 0 0 }

	capital = 527 # Krakowskie
	culture = polish
	creation_requires_capital = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = polish
			}
		}
	}
}

e_prussia = {
	color = { 131 176 209 }
	color2 = { 255 255 255 }
	capital = 370 # Marienburg
	culture = prussian

	creation_requires_capital = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = prussian
					culture = teutonic
				}
			}
		}
	}
}

e_rajastan = {
	color = { 255 100 0 }
	color2 = { 255 255 255 }
	capital = 1356 # Kanyakubja
	culture = rajput
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = indo_aryan_group
					culture_group = dravidian_group
				}
			}
		}
	}
}

e_romania = {
	color = { 209 209 60 }
	color2 = { 255 255 255 }
	capital = 512 #Belgorod
	culture = romanian
	creation_requires_capital = no
	short_name = yes
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = romanian
			}
		}
	}
}

e_rebels = {
	rebel = yes
	landless = yes
	primary = yes

	culture = swedish
	

	color = { 0 0 0 }
	color2 = { 0 0 0 }
}

e_russia = {
	color = { 147 164 104 }
	color2 = { 255 255 255 }

	capital = 547 # Kiev
	culture = russian
	creation_requires_capital = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = east_slavic
			}
		}
	}
}

e_sardinian = {
	color = { 210 41 69 }
	color2 = { 255 255 255 }
	capital = 326 # Cagliari
	creation_requires_capital = no
	culture = sardinian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = sardinian
			}
		}
	}
}

e_scandinavia = {
	color = { 20 120 182 }
	color2 = { 255 255 255 }
	capital = 266 #Sjaelland
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = north_germanic
					culture = english_norse
				}
			}
		}
	}
}

e_scotland = {
	color = { 179 195 12 }
	color2 = { 255 255 255 }
	capital = 43 #Gowrie
	culture = scottish
	creation_requires_capital = no
	short_name = yes
	
	pictish = "Pictland"
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = scottish
					culture = pictish
					culture = scots
				}
			}
		}
	}
}

e_seljuk_turks = { # Seljuk Turks
	color = { 0 125 0 }
	color2 = { 200 200 0 }
	
	capital = 646 # Esfahan
	culture = turkish
	
	short_name = yes
	
	allow = {
		always = no
	}
}

e_serbia = {
	color = { 126 98 98 }
	color2 = { 255 255 255 }
	capital = 502 # Rashka
	culture = serbian
	short_name = yes

	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = serbian
			}
		}
	}
}

e_sicily = {
	color = { 205 250 50 }
	color2 = { 255 255 255 }
	capital = 340 #Palermo
	culture = sicilian
	short_name = yes

	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = sicilian
					culture = sicilian_greek
					culture = sicilian_arabic
					culture = neapolitan
				}
			}
		}
	}
}

e_songhai = {
	color = { 120 153 20 }
	capital = 914 # Gao
	culture = songhai

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = songhai
			}
		}
	}
}

e_spain = {
	color = { 243 209 23 }
	color2 = { 200 80 10 }

	capital = 197 #Toledo
	culture = castillan
	short_name = yes
	creation_requires_capital = no
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture_group = iberian
					culture_group = vasconic
					culture = vandalic
					culture = visigothic
				}
			}
		}
	}
}

e_steppe_wolfe = {
	color = { 118 118 118 }
	color2 = { 255 255 255 }
	capital = 598 #historical capital fanagoria, 4th rome
	culture = bolghar
	short_name = yes

	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					culture = bolghar
					culture = bulgarian
				}
			}
		}
		610 = {
			owner = {
				OR = {
					character = ROOT
					same_realm = ROOT
				}
			}
		}
		499 = {
			owner = {
				OR = {
					character = ROOT
					same_realm = ROOT
				}
			}
		}
	}
}

e_sweden = {
	color = { 62 142 209 }
	color2 = { 255 255 0 }
	capital = 290 # Uppland
	culture = swedish

	creation_requires_capital = no
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = swedish
			}
		}
	}
}

e_syria = {
	color = { 204 51 51  }
	color2 = { 255 255 255 }
	capital	= 728 #Damascus
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = arabic
			}
		}
	}
}

e_tartaria = {
	color = { 211 177 80 }
	color2 = { 255 255 255 }
	culture = cuman
	capital = 594 #	Sarkel
	
	# Creation/Usurp Trigger
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = cuman
			}
		}
	}
}

e_tibet = {
  color={ 250 40 0 }
  color2= { 255 255 255 }

	capital = 1596 # Lhasa

	han = "Tubo"
	
	# Creation/Usurp Trigger
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = tibetan_group
			}
		}
	}
}

e_timurids = {
	color = { 120 20 20 }
	color2 = { 255 255 0 }
	capital = 646
	short_name = yes
	
	culture = mongol
	religion = sunni
}

e_tuscan = {
	color = { 230 217 48 }
	color2 = { 255 255 255 }
	capital = 328 #	Firenze
	creation_requires_capital = no
	culture = tuscan
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					AND = {
						culture = italian
						completely_controls_region = custom_tuscan_cultural_area
					}
					culture = tuscan
				}
			}
		}
	}
}

e_umbrian = {
	color = { 166 28 18 }
	color2 = { 255 255 255 }
	capital = 333 #	Roma
	creation_requires_capital = no
	culture = umbrian
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR = {
					AND = {
						culture = italian
						completely_controls_region = custom_umbrian_cultural_area
					}
					culture = umbrian
				}
			}
		}
	}
}

e_veneto = {
	color = { 50 227 194 }
	color2 = { 255 255 255 }
	capital = 356 #	Venezia
	creation_requires_capital = no
	culture = veneto
	short_name = yes

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				OR ={
					AND = {
						culture = italian
						completely_controls_region = custom_veneto_cultural_area
					}
					culture = veneto
				}
			}
		}
	}
}

e_wales = {
	color = { 155 25 3 }
	color2 = { 255 255 255 }
	capital = 64 # Gwynedd

	culture = welsh
	short_name = yes
	creation_requires_capital = no
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = welsh
			}
		}
	}
}

e_wend = {
	color = { 160 160 80 }
	color2 = { 255 255 255 }
	capital = 260 #Mecklemburg
	culture = pommeranian
	short_name = yes

	creation_requires_capital = no

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = pommeranian
			}
		}
	}
}

e_yugoslavia = {
	color = { 221 0 0 }
	culture = serbian
	capital = 505 # Belgrade
	title = "king"
	title_female = "king_female"
	title_prefix = "kingdom_of"
	#don't use name tier, that will frak itself up because of imperial government type

	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture_group = south_slavic
			}
		}
	}
}

e_avaria = {
	color = { 250 120 90  }
	color2 = { 255 255 255 }
	capital	= 444
	culture = avar
	
	allow = {
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_empire_size_trigger = yes
				culture = avar
			}
		}
	}
}

##################################
##
## RELIGION HEADS
##
##################################

d_apostolic = {
	color = { 51 25 0 }
	color2 = { 230 220 108 }
	capital = 672 # Dwin
	
	title = "CATHOLICOS"
	foa = "POPE_FOA"
	
	allow = {
		always = no
	}

	# Always exists
	landless = yes
	short_name = yes
	dignity = 80 # Counted as having this many more counties than it does
	
	# Controls a religion
	controls_religion = apostolic
	religion = apostolic
	culture = armenian
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Aleksandr Ananias Aristaces Asdvadzadur Constantine Davit Dertad Eliazar Gevorg Giragos Grigor Isaiah Hacob Joab Hovhannes Hovsep
		Karapet Khachig Mashdotz Mekhitar Mesrop Mikayel Movses Nahabed Nerses Parsegh Petros Philippos Sarkis Sion Soghomon Stephan
		Thoros Vahan Yeghishe Zacharias
	}
}

d_aztec = {
	color = { 245 245 135 }
	color2 = { 220 220 0 }
	capital = 11 #Dublin
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	short_name = yes
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100 # Never want the Aztec High Priest to change titles
	
	# Controls a religion
	controls_religion = aztec
	religion = aztec
	
	allow = {
		religion = aztec
		ai = yes
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_baltic_pagan_reformed = {
	color = { 122 165 70 }
	color2 = { 220 220 0 }
	capital = 371 # Sambia
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	short_name = yes
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	dignity = 100 # Never want the Baltic High Priest to change titles
	
	# Controls a religion
	controls_religion = baltic_pagan_reformed
	religion = baltic_pagan_reformed
	
	creation_requires_capital = no
	
	allow = {
		religion = baltic_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_bektashi_head = { # Named _head to avoid potential conflicts with vanilla looking for d_bektashi as a holy order
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = bektashi
	
	# Controls a religion
	controls_religion = bektashi
	
	allow = {
		religion = bektashi
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}	
}

d_bogomilist = {
	color = { 236 112 254 }
	color2 = { 230 220 108 }	
	capital = 499 #Tyrnovo
	
	title = "ELDER"
	title_female = "ELDER"
	foa = "POPE_FOA"
	
	allow = {
		always = no # Only by special decision
	}
	
	# Always exists
	landless = yes
	short_name = yes
	dignity = 80 # Counted as having this many more counties than it does
	
	# Controls a religion
	controls_religion = bogomilist
	religion = bogomilist
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
}

d_cathar = {
	color = { 238 224 147 }
	color2 = { 230 220 108 }
	capital = 213 # Carcassone
	
	allow = {
		always = no # Only by special decision	
	}
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	title = "CATHAR_PATRIARCH"
	title_female = "CATHAR_MATRIARCH"
	foa = "POPE_FOA"
	short_name = yes
	
	religion = cathar
	
	# Controls a religion
	controls_religion = cathar
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	gain_effect = {
		if = {
			limit = { NOT = { trait = perfecti } }
			add_trait = perfecti
		}
	}
}

d_celtic_pagan_reformed = {
	color = { 122 165 70 }
	color2 = { 220 220 0 }
	capital = 64 # Gwynedd
	creation_requires_capital = no
	title = "ARCH_DRUID"
	title_female = "ARCH_DRUID"
	foa = "ARCH_DRUID_FOA"
	short_name = yes
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = celtic_pagan_reformed
	religion = celtic_pagan_reformed
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	allow = {
		religion = celtic_pagan
		has_holder_trigger = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_druze = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 770 # Beirut
	creation_requires_capital = no
	dignity = 100 # Counted as having this many more counties than it does
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes

	title = "SHAYKH"
	title_female = "SHAYKHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = druze
	# Controls a religion
	controls_religion = druze
	
	allow = {
		religion = druze
		is_adult = yes
		has_regent = no
		war = no
		piety = 1000
		trait = druze_ajawid
		num_of_holy_sites = 1
		higher_tier_than = DUKE
	}
	gain_effect = {
		if = {
			limit = {
				NOT = { has_global_flag = druze_shaykh }
			}
			hidden_tooltip = {
				narrative_event = { id = Plus.1968 }
			}
		}
	}
}

d_egyptian_pagan = {
	color = { 222 125 120 }
	color2 = { 120 120 0 }
	
	capital = 795 # Asyut
	
	title = "PARAGON_XROJ"
	title_female = "PARAGON_XROJ"
	
	short_name = yes
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = egyptian_pagan
	religion = egyptian_pagan
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	male_names = {
		Babaef Bakenkhonsu Bakenranef Baskakeren Baufra_Baufra Baufre_Baufra Bauefre_Baufra "Bay Irsu" Bebi Bebiankh_Bebiankh "Seuserenre Bebiankh" Bek_Bek Bak_Bek Buneb Chephren Cheops Dagi Dedi Dedumose_Dedumose Tutimaios_Dedumose Den Didia Djaty Djau Djedefhor Djedefptah Djedefre Djedhor Djedi Djediufankh "Djedkare Isesi" "Djedkare Shemai" Djedkhonsuefankh Djedptahiufankh Djehuty Djer Djet Djoser_Djoser Duaenhor Duaenre Hakor_Hakor Akoris_Hakor Hannu Hapuseneb Harkhuf "Harsiese Hedjkheperre Setepenamun" Harsiese Harsiotef Harwa Hemaka Hepu Heqanakht Herihor Hersy-Ra Hewernef Hor_Hor Hor-Aha_Hor Horbaef Horemheb_Horemheb Horemhab_Horemheb Haremhab_Horemheb Hori Hornakht Hotepibre Hotepsekhemwy Hsekiu_Hsekiu Seka_Hsekiu Hugronaphor Hunefer Huni Huy Huya Ibi Ibiau_Ibiau Ibiaw_Ibiau "Wahibre Ibiau"_Ibiau Imhotep  Imyremeshaw Inaros_Inaros Ienheru_Inaros Inarus_Inaros "Ini Menkheperre" Inkaef Intef Intefiqer Isesi-ankh Isu Itisen Iufaa Iufni Iunmin_Iunmin Yunmin_Iunmin Iuenmin_Iunmin Minuen_Iunmin Iunre_Iunre Yunre_Iunre Iuput Iynefer Ka_Ka "Sekhem Ka"_Ka Ka-Sekhen_Ka Kaemsekhem Kagemni Kakhent Kamose Kanefer Kashta Khaba Khabash Khabekhnet Khaemtir Khaemweset Khafra Khamudi Khasekhemwy Khawy Khay Khayu "Khendjer Userkare" Kheti Khnumhotep Khufu Khufukhaf Khyan Mahu Maiherpri Malewiebamani Masaharta Meketre Menes Menkare "Menkauhor Kaiu"_Menkauhor Menkaure_Menkauhor Menkheperraseneb Menkheperre Menna Mentuherkhepeshef Mentuhotep Merefnebef Merenhor "Merenre Nemtyemsaf" "Merhotepre Ini" Merikare Merit-Ptah "Merneferre Ay" Merneptah Meru Meryatum Merymose Meryptah Meryre Merysekhmet Meryteti_Meryteti Merytre-Hatshepsut_Meryteti Mindjedef Minkhaf Minmontu Minmose Minnefer Montuherkhopshef Nakht_Nakht Nakhthoreb Nakhtmin Nakhtnebef Nakhtpaaten_Nakht Narmer Nasakhma Nastasen Nebamun Nebemakhet Nebiriau_Nebiriau "Nebiriau Sewadjenre"_Nebiriau Nebmaatre "Nebneteru Tenry" Nebnuni Nebre Nebwenenef Neby Necho Nectanebo Nedjem Neferefre Neferhotep_Neferhotep "Neferhotep Sekhemre Sankhtawy"_Neferhotep Neferirkare_Neferirkare "Neferirkare Kakai"_Neferirkare Neferkahor Neferkamin_Neferkamin "Neferkamin Anu" Neferkara "Neferkare Iymeru" Neferkare "Neferkare Khendu" "Neferkare Neby" "Neferkare Pepiseneb" "Neferkare Tereru" Neferkau Neferkauhor Neferkaure Nefermaat Neferronpet Nefersheshemre Nehesy Nehi "Neitiqerty Siptah" Nekauba Nemtyemsaf Nepherites Neserkauhor "Neterkheperre Meryptah" Netjeraperef Netjerkare Nikare Nikaure Nimlot Nykara Nynetjer "Nyuserre Ini" Osorkon Paanchi Pabasa Pahemnetjer "Pami Usermaatre Setepenre" Panehesy Paraemheb Pareherwenemef Parennefer Paser Pashedu Paweraa Pawura Pebekkamen Pediamenopet Pediese Petiese Pedubast Pennesuttawy Pensekhmet Pentawer Penthu Pentu Pepi_Pepi "Pepi Meryre" Pepi "Pepi Neferkare" Perneb Petubastis Piankh Pihuri Pimay Pinedjem Pinehesy Pipi Piye Prehotep Psammuthes Psamtik_Psamtik "Psamtik Wahibre"_Psamtik Psusennes_Psusennes "Psusennes Titkheperure"_Psusennes Ptahhotep Ptahmose Ptahshepses Puimre Qa'a "Qakare Ibi" Qar Qen Qenna Raemka Raherka Rahotep Ramesses_Ramesses "Ramesses Menpehtyre" "Ramesses Usimare" "Ramesses Usermaatre Meryamun Setepenre" "Ramesses Usermare Akhenamun" "Ramesses-Meryamun-Nebweben" Ramesses Ramessesnakht Ramose Raneb Ranefer Rashepses Rawer Rehuerdjersen Rekhmire Renseneb Roma-Roi "Rudamun Usermaatre Setepenamun Meryamun" Sabef Sabu Sahure Sakir-Har Salitis Sanakht "Sankhenre Sewadjtu" "Sedjefakare Amenemhat" Sehetepre Sekhemib-Perenmaat Sekhemkare Sekhemkhet "Sekhemre Khutawy Sobekhotep" Semenkare Semenre Semerkhet "Senakhtenre Tao" Tao Seneb Senebhenaf Senebi Senedj Senedjemib_Senedjemib "Senedjemib Inti" "Senedjemib Mehi" Senedjemib Senenmut Senewosret-Ankh Senkamanisken Sennedjem Sennefer Senneferi Senusret "Seqenenre Tao" Serfka Setau Seth-Peribsen Seti_Seti "Seti Menmaatre" "Seti Userkheperure Setepenre" Seti-Merenptah_Seti "Setnakhte Userkhaure-Setepenre" Bebiankh Sewadjkare "Sewadjkare Hori" "Shabaka Neferkare" Shebitku Shedsu-nefertum Shepseska "Shepseskare Isi" Shepsesneb Shery "Sheshi Maaibre" Sheshonk_Sheshonk "Sheshonk Heqakheperre" "Sheshonk Usermaatre Setepenre" "Sheshonk Hedjkheperre Setepenre" Sheshonk Shoshenq_Sheshonk "Siamun Netjerkheperre-Setepenamun" Siamun Siaspiqa Siatum Siese Simut "Siptah Akhenre Setepenre" Smendes_Smendes "Smendes Hedjkheperre Setepenre"_Smendes Smenkhkare Sneferu_Sneferu Snefru_Sneferu Snofru_Sneferu Soris_Sneferu Sobekemhat Sobekemsaf_Sobekemsaf  "Sobekemsaf Sekhemrewadjkhaw"_Sobekemsaf Sobekhotep_Sobekhotep "Sobekhotep Khaankhre" "Sobekhotep Sekhemresewdjtawy" "Sobekhotep Khaneferre" Sobekhotep "Sobekhotep Sekhemre Susertawi" Sobeknakht Taharqa Takelot_Takelot "Takelot Hedjkheperre Setepenre" "Takelot Si-Ese Hedjkheperre Setepenre" "Takelot Si-Ese Usimare Setepenamun" Takelot Talakhamani Tantamani Tao_Tao "Tao Seqenenre" Tefnakht_Tefnakht "Tefnakht Shepsesre"_Tefnakht Teos Teta Teti Thamphthis Thutmose Tjanefer Tutankhamun "Tutkheperre Shoshenq" Tutu Unas Useramen Userhet Userkaf Userkare Usermontu Wadjmose "Wakhare Khety" Webensenu "Wegaf Khutawyre" Wehemka Weneg Weni Wentawat Wetka Yanhamu Yaqub-Har Yuny Yuya Zamonth Zannanza Zoser_Djoser
	}
	female_names = {
		Baketwernel Behenu Beket_Beket Beketamun_Beket Beketaten Benerib Betrest Bintanath_Bintanath Bentanath_Bintanath Bunefer Cleopatra Dakhamunzu Djefatnebti Djefatsen Djehuti_Djehuti Thuty_Djehuti "Djehuty Sekhemresementawy"_Djehuti Djeseretnebti Duatentopet_Duatentopet Tentopet_Duatentopet Duathathor-Henuttawy Gautseshen Gilukhipa Hatshepsut Hatshepsut-Merytre Hedjetnebu Hekenuhedjet Hemetre Hemiunu Henutmehyt Henutmire Henutsen Henuttaneb Henuttawy Henutwati Herneith Hetepheres Hetephernebti Hui Iaret Inenek-Inti Ineni_Ineni Ini_Ineni Inetkawes Ipu Iput Iry-Hor Isesu Iset "Iset Ta-Hemdjert" Isetemkheb Isetnofret Itet Kapes Karomama_Karomama "Karomama Meritmut"_Karomama Keminub Khamerernebty Khedebneithirbinet Khenemetneferhedjet_Khenemetneferhedjet "Khenemetneferhedjet Weret"_Khenemetneferhedjet Khensa Khentetka Khenthap Khentimeresh Khentkaus Khenut Khuit Kiya Maathorneferure Maatkare_Maatkare "Maatkare Mutemhat"_Maatkare Maia_Maia Matia_Maia Maya_Maia Mehytenweskhet Meketaten Menhet Mentuhotep Menwi Mereret Mereruka Meresamun Meresankh Meretseger Meritamen Meritaten_Meritaten "Meritaten Tasherit"_Meritaten Meritites Merneith Merti Meryteti_Meryteti Mutbenret Mutemwiya Mutnedjmet Mutnofret Nakhtneith Nakhtubasterau Naparaye Nauny Nebet Nebetah Nebetia Nebetiunet Nebetnehat Nebettawy Nebtu Nebtyemneferes Nebty-tepites Nedjeftet Nedjemib Neferetnebty Neferhetepes Neferneferuaten_Neferneferuaten  "Neferneferuaten Ankhkheperure" Neferneferuaten "Neferneferuaten Tasherit" Neferneferure Nefertari Neferthenut Nefertiabet Nefertiti Nefertkau Nefertnesu Neferu Neferuptah Neferure Nefrubity Neith Neithhotep Nesitanebetashru Nesitaudjatakhet Neskhons Nimaethap Nitocris Nofret Nubhetepti-khered Nubkhaes Nubkhesbed Nubwenet Pageti Patareshnes Pebatjma Peksater Penebui Persenet Peseshet Pyhia Qalhata Rekhetre Reptynub Reputnebty Satiah Scota Sekhmakh Semat Senseneb Serethor Seshemetka Sesheshet Setepenre Shepenupet Sitamun Sitdjehuti Sithathoriunet 	Sitre_Sitre "Sitre In"_Sitre Sobekneferu Tabekenamun Tabiry Tadukhipa Takahatenamun Takhat Takhuit Tashedkhonsu Tawerettenru Tentamun Tentkheta Tetisheri Tey Tia_Tia Tiaa_Tia Tiye_Tia Tiy-Merenese Tjuyu Tuya Twosret Tyti Udjebten
	}
	
	allow = {
		religion = egyptian_pagan
		has_holder_trigger = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_finnish_pagan_reformed = {
	color = { 240 240 220 }
	color2 = { 220 220 0 }
	
	capital = 381 # Uusimaa
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	
	short_name = yes
	
	# Always exists
	dignity = 100
	
	# Controls a religion
	controls_religion = finnish_pagan_reformed
	
	religion = finnish_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	allow = {
		religion = finnish_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
		OR = {
			trait = child_of_ukko
			AND = { piety = 1000
				num_of_holy_sites = 4
			}
		}
	}
}

d_fraticelli = {
	color = { 198 249 255 }
	color2 = { 220 220 0 }
	
	capital = 333 # Rome
	
	title = "POPE"
	foa = "POPE_FOA"
	short_name = yes
	
	allow = {
		always = no
	}
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = fraticelli
	
	religion = fraticelli
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		John Gregory Benedict Clement Innocent Leo Pius Stephen Boniface Urban Alexander Adrian Paul
		Celestine Martin Nicholas Sixtus Felix Sergius Anastasius Honorius Eugene Sylvester Victor
		Lucius Callixtus Julius Pelagius Adeodatus Theodore Marinus Agapetus Damasus Paschal
		Gelasius Marcellus "John Paul" Anacletus Evaristus Telesphorus Hyginus Anicetus Mark Hilarius 
		Simplicius Symmachus Hormisdas Silverius Vigilius Sabinian Severinus Vitalian Donus Agatho
		Conon Sisinnius Constantine Zachary Valentine Formosus Romanus Lando
	}
}

d_german_pagan_reformed = {
	color = { 120 25 25 }
	color2 = { 74 132 75 }
	capital = 257 # Braunschweig
	
	creation_requires_capital = no
	
	title = "KUNINGAZ"
	title_female = "KUNINGAZ"
	foa = "FYLKIR_FOA"
	
	allow = {
		religion = german_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
	
	short_name = yes
	
	dignity = 100 # Counted as having this many more counties than it does
	
	# Controls a religion
	controls_religion = german_pagan_reformed
	religion = german_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

#roman version has religion head, greek doesn't
d_pontifex_maximus = {
	color = { 155 155 235 }
	color2 = { 220 220 0 }
	
	capital = 333 #Roma
	
	title = "PONTIFEX_MAXIMUS"
	foa = "PONTIFEX_MAXIMUS_FOA"
	
	creation_requires_capital = no
	
	allow = {
		religion = roman_pagan
		has_holder_trigger = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
		piety = 500
		num_of_holy_sites = 3
	}
	short_name = yes
	primary = yes
	
	
	dignity = 100 # Counted as having this many more counties than it does
	
	# Controls a religion
	controls_religion = roman_pagan
	
	religion = roman_pagan
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

}

d_hurufi = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = hurufi
	
	# Controls a religion
	controls_religion = hurufi	
	
	allow = {
		religion = hurufi
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_ibadi = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = ibadi
	
	# Controls a religion
	controls_religion = ibadi
	
	allow = {
		religion = ibadi
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_iconoclast = {
	color = { 153 50 125 }
	color2 = { 220 220 0 }
	
	capital = 496 # Constantinople
	
	title = "ECUMENICAL_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	short_name = yes
	primary = yes
	dignity = 100
	
	allow = {
		always = no # Only by special decision
	}

	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = iconoclast
	
	religion = iconoclast
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Alexios Alexandros Anastasios Anthimos Athanasios Antonios Basileios Gabriel Dionysios Dositheos 
		Eustathios Eustratios Euthymios Gennadios Georgios Gerasimos Germanos Gregorios Ieremias 
		Ignatios Ioakeim Ioannes Ioseph Isidoros Kallinikos Kallistos Konstantinos Kosmas Kyrillos Leon 
		Leontios Loukas Makarios Manuel Markos Matthaios Maximos Meletios Methodios Metrophanes Michael 
		Neophytos Nephon Nikephoros Niketas Nikolaos Pavlos Petros Photios Polykarpos Sergios Stephanos 
		Sophronios Theodoros Theodosios Theodotos Theophylaktos Thomas Timotheos
	}
}

d_jewish = {
	color = { 0 80 255 }
	
	capital = 774 #	Jerusalem
	
	title = "HEAD_KOHEN_GADOL"
	foa = "POPE_FOA"
	
	short_name = yes
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = jewish
	
	religion = jewish
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_kharijite = {
	color={ 10 110 10 }
	color2={ 220 220 0 }
	
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = kharijite
	
	# Controls a religion
	controls_religion = kharijite

	coat_of_arms = {
		data = {
			0 0 0 8 0 2 2
		}
		religion = kharijite
	}

	allow = {
		religion = kharijite
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		OR = {
			custom_tooltip = { 
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_manichean = {
	color = { 180 120 40 }
	color2 = { 220 220 0 }
	
	capital = 693 #Baghdad
	
	title = "MANI_LEADER"
	foa = "POPE_FOA"
	
	allow = {
		is_title_active = FROM
		religion = manichean
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 1
		piety = 500
	}
	
	short_name = yes
	dignity = 80 # Counted as having this many more counties than it does
	# Always exists
	landless = yes	
	
	# Controls a religion
	controls_religion = manichean
	
	religion = manichean
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_mazdaki = {
	color = { 170 130 45 }
	color2 = { 220 220 0 }
	
	capital = 646 #	Esfahan
	
	title = "HEAD_MOABADAN_MOABAD"
	foa = "POPE_FOA"
	allow = {
		always = no # Only by special decision
	}
	
	short_name = yes
	dignity = 80 # Counted as having this many more counties than it does
	# Always exists
	landless = yes	
	
	# Controls a religion
	controls_religion = mazdaki
	
	religion = mazdaki
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_messalian = {
	color = { 150 107 67 }
	color2 = { 220 220 0 }
	
	capital = 764 # Antioch
	
	title = "EUCHITE_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = messalian
	
	religion = messalian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Aba Abraham Eliya Denha Emmanuel Giwargis Hnanisho Ishoyahb Makkikha 
		Maremmeh Pethion Sabrisho Shemon Sargis Surin Theodosios Timotheos Yahballaha Yohannan
	}
}

d_miaphysite = {
	color = { 217 155 177 }
	color2 = { 220 220 0 }
	
	capital = 802 # Alexandria
	
	title = "COPTIC_POPE"
	foa = "POPE_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = miaphysite
	
	religion = miaphysite
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Abanoub Abderahman Abianos Abijah Abisalom Ablarion Abraham Agathon Agathos Agathonikos Androus Anthinos Arsenios Ashraf Athanasios 
		Binyamin Bishoi Boutros Danyal Da’oud Ezra Gabri’el Georgios Habil Hanri Haroun Ilyas Jerje Khail Kyril Krystafer Markos Mikhael Milad Mina Musa Pamin 
		Tadros Touma Yared Yohannes Youssef Zaia
	}
}

d_monophysite = {
	color = { 200 115 167 }
	color2 = { 220 220 0 }
	
	capital = 802 # Alexandria
	
	title = "MONOPHYSITE_POPE"
	foa = "POPE_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = monophysite
	
	religion = monophysite
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Abanoub Abderahman Abianos Abijah Abisalom Ablarion Abraham Agathon Agathos Agathonikos Androus Anthinos Arsenios Ashraf Athanasios 
		Binyamin Bishoi Boutros Danyal Da’oud Ezra Gabri’el Georgios Habil Hanri Haroun Ilyas Jerje Krystafer Mikhael Milad Mina Musa Pamin 
		Tadros Touma Yared Youssef Zaia
	}
}

d_monothelite = {
	color = { 180 170 65 }
	color2 = { 220 220 0 }
	
	capital = 764 # Antioch
	
	title = "MONOTHELITE_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = monothelite
	
	religion = monothelite
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Alexios Antonios Athanasios Basileios Gabriel Dositheos Eustathios Eustratios Euthymios Gennadios 
		Georgios Gerasimos Germanos Gregorios Ioannes Iosephos Isidoros Kallistos Konstantinos
		Kosmas Leon Leontios Loukas Makarios Manuel Maximos Metrophanes Michael Neophytos Nephon Niketas
		Nikolaos Matthaios Paulos Sergios Theodoros Theodosios Theodotos Akakios Alexandros Anastasios 
		Anthimos Ieremias Ignatios Ioakim Kallinikos Kyriakos Kyrillos Makedonios Markos Meletios 
		Methodios Nikephoros Petros Photios Polykarpos Stephanos Sophronios Theophylaktos Thomas Timotheos
	}
}

d_nestorian = {
	color = { 180 137 97 }
	color2 = { 220 220 0 }
	
	capital = 764 # Antioch
	
	title = "PATRIARCH_IN_THE_EAST"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = nestorian
	
	religion = nestorian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Aba Abraham Eliya Denha Emmanuel Giwargis Hnanisho Ishoyahb Makkikha 
		Maremmeh Pethion Sabrisho Shemon Sargis Surin Theodosios Timotheos Yahballaha Yohannan
	}
}

d_norse_pagan_reformed = {
	color = { 155 155 235 }
	color2 = { 220 220 0 }
	
	capital = 290 #Uppland
	
	title = "FYLKIR"
	title_female = "FYLKJA"
	foa = "FYLKIR_FOA"
	
	creation_requires_capital = no
	
	allow = {
		religion = norse_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
	
	short_name = yes
	dignity = 100 # Counted as having this many more counties than it does
	
	# Controls a religion
	controls_religion = norse_pagan_reformed
	
	religion = norse_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_paulician = {
	color = { 195 130 157 }
	color2 = { 255 255 255 }
	
	capital = 706 # Coloneia
	
	title = "PAULICIAN_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	short_name = yes

	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = paulician
	
	religion = paulician
	culture = armenian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Alexios Alexandros Anastasios Anthimos Athanasios Antonios Basileios Gabriel Dionysios Dositheos 
		Epaphroditus Eustathios Eustratios Euthymios Gegnesius Gennadios Georgios Gerasimos Germanos Gregorios Ieremias 
		Ignatios Ioakeim Ioannes Ioseph Isidoros Kallinikos Kallistos Konstantinos Kosmas Kyrillos Leon 
		Leontios Loukas Makarios Manuel Markos Matthaios Maximos Meletios Methodios Metrophanes Michael 
		Neophytos Nephon Nikephoros Niketas Nikolaos Paul Pavlos Petros Photios Polykarpos Sergius Silvanus Stephanos 
		Sophronios Theodoros Theodosios Theodotos Theophylaktos Thomas Timotheos Titus
	}
}

d_promethean_pagan = {
	color = { 100 44 201 }
	color2 = { 201 97 108 }

	capital = 482 # Athens, location of Plato's Academy
	creation_requires_capital = yes
	short_name = yes
	
	title = "SCHOLARCH"
	title_female = "SCHOLARCH"

	allow = {
		religion = promethean_pagan
		num_of_holy_sites = 3
		piety = 500
	}

	dignity = 100
	controls_religion = promethean_pagan
	religion = promethean_pagan

	dynasty_title_names = no
}

d_qarmatian = {
	color = { 168 235 195 }
	color2 = { 240 240 0 }
	capital = 653 # Bahrein
	
	creation_requires_capital = no
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	dignity = 100 # Counted as having this many more counties than it does
	
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = qarmatian
	
	# Controls a religion
	controls_religion = qarmatian
	
	allow = {
		religion = qarmatian
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_quranist = {
	color = { 30 160 90 }
	color2 = { 240 240 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	dignity = 100 # Counted as having this many more counties than it does
	
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = quranist
	
	# Controls a religion
	controls_religion = quranist
	
	allow = {
		religion = quranist
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_samaritan = {
	color = { 0 80 255 }
	
	capital = 774 #	Jerusalem
	
	title = "HEAD_KOHEN_GADOL"
	foa = "POPE_FOA"
	
	short_name = yes
	
	# Always exists
	landless = yes
	primary = yes
	dignity = 100
	
	# Controls a religion
	controls_religion = samaritan
	
	religion = samaritan
	culture = mizrahim
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_shiite = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = shiite
	
	# Controls a religion
	controls_religion = shiite
	
	coat_of_arms = {
		data = {
			0 0 0 9 1 7 7
		}
		religion = shiite
	}
	
	allow = {
		religion = shiite
		is_heretic = no
		is_adult = yes
		has_regent = no
		custom_tooltip = {
			text = shia_creation_independent
			hidden_tooltip = {
				in_revolt = no
				OR = {
					independent = yes
					NOT = {
						any_liege = {
							OR = {
								in_revolt = yes
								NOT = { religion = shiite }
							}
						}
					}
				}
			}
		}
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			trait = shiite_claimant
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
	gain_effect = {
		if = {
			limit = { d_shiite = { NOT = { has_title_flag = shiite_followers } } }
			hidden_tooltip = {
				character_event = { id = Plus.1963 days = 5 }
			}
		}
	}
}

d_slavic_pagan_reformed = {
	color = { 175 50 136 }
	color2 = { 220 220 0 }
	
	capital = 515 # Tirgoviste
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	
	short_name = yes
	
	# Always exists
	dignity = 100
	
	# Controls a religion
	controls_religion = slavic_pagan_reformed
	
	religion = slavic_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	allow = {
		religion = slavic_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_sunni = {
	color = { 40 160 40 }
	color2 = { 220 220 0 }
	
	capital = 719 # Mecca
	
	creation_requires_capital = no
	
	dignity = 100 # Counted as having this many more counties than it does
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = sunni
	
	# Controls a religion
	controls_religion = sunni
	
	coat_of_arms = {
		data = {
			0 0 0 3 0 2 2
		}
		religion = sunni
	}
	
	allow = {
		religion = sunni
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		custom_tooltip = {
			text = sunni_creation_independent
			hidden_tooltip = {
				in_revolt = no
				OR = {
					independent = yes
					NOT = {
						any_liege = {
							OR = {
								in_revolt = yes
								NOT = { religion = sunni }
							}
						}
					}
				}
			}
		}
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = { 
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_tengri_pagan_reformed = {
	color = { 100 80 100 }
	color2 = { 220 220 0 }
	
	capital = 594 #	Sarkel
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	
	short_name = yes
	
	# Always exists
	dignity = 100
	
	# Controls a religion
	controls_religion = tengri_pagan_reformed
	
	religion = tengri_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	allow = {
		religion = tengri_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
}

d_west_african_pagan_reformed = {
	color = { 91 49 13 }
	color2 = { 220 220 0 }
	
	capital = 925 # Mali
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	
	short_name = yes
	
	# Always exists
	dignity = 100
	
	# Controls a religion
	controls_religion = west_african_pagan_reformed
	
	religion = west_african_pagan_reformed
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	allow = {
		religion = west_african_pagan_reformed
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites = 3
		piety = 500
	}
	
}

d_yazidi = {
	color = { 20 50 160 }
	color2 = { 220 220 0 }
	capital = 697 # Mosul
	
	title = "BABA_SHEIKH"
	foa = "POPE_FOA"
	
	short_name = yes
	caliphate = yes

	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = yazidi
	dignity = 80 # Counted as having this many more counties than it does
	
	religion = yazidi
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_zikri = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719 # Mecca
	
	creation_requires_capital = no
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	dignity = 100 # Counted as having this many more counties than it does
	
	caliphate = yes
	title = "CALIPH"
	title_female = "CALIPHA"
	foa = "CALIPH_FOA"
	short_name = yes
	
	religion = zikri
	
	# Controls a religion
	controls_religion = zikri
	
	allow = {
		religion = zikri
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		OR = {
			trait = mirza
			trait = sayyid
			piety = 1000
		}
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }
		OR = {
			AND = {
				trait = sayyid
				piety = 1000
			}
			custom_tooltip = {
				text = controls_mecca_medina
				hidden_tooltip = {
					719 = { # Mecca
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					718 = { # Medina
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad
				hidden_tooltip = {
					774 = { # Jerusalem
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					728 = { # Damascus
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					693 = { # Baghdad
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
	}
}

d_zoroastrian = {
	color = { 180 120 40 }
	color2 = { 220 220 0 }
	
	capital = 646 #	Esfahan
	
	title = "HEAD_MOABADAN_MOABAD"
	foa = "POPE_FOA"
	
	short_name = yes
	primary = yes
	dignity = 100
	
	# Always exists
	landless = yes	
	
	# Controls a religion
	controls_religion = zoroastrian
	
	religion = zoroastrian
	
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_zun_pagan_reformed = {
	color = { 220 255 0 }
	color2 = { 220 220 0 }
	
	capital = 1183 #	Bost
	
	title = "HEAD_PRIEST"
	title_female = "HEAD_PRIESTESS"
	foa = "HEAD_PRIEST_FOA"
	
	short_name = yes
	
	# Controls a religion
	controls_religion = zun_pagan_reformed
	
	religion = zun_pagan_reformed
	
	# Cannot be held as a secondary title
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	allow = {
		is_adult = yes
		has_regent = no
		war = no
		religion = zun_pagan_reformed
		num_of_holy_sites = 3
		piety = 500
	}
	
}

d_bon = {
	color = { 220 249 155 }
	color2 = { 220 220 0 }
	capital = 1596 # Lhasa
	
	title = "DALAI_LAMA"
	foa = "POPE_FOA"
	short_name = yes
	
	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = bon
	
	religion = bon
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

k_chalcedonian = {
	color = { 220 249 155 }
	color2 = { 220 220 0 }
	capital = 333 # Rome
	
	title = "HIGH_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	short_name = yes
	
	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = chalcedonian
	
	religion = chalcedonian
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}	

k_orthodox = {
	color = { 183 60 155 }
	color2 = { 220 220 0 }
	
	capital = 496 # Constantinople
	
	title = "ECUMENICAL_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	short_name = yes

	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = orthodox
	religion = orthodox
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Alexios Anastasios Arsenios Athanasios Antonios	Basileios Dositheos Eustathios Eustratios
		Euthymios Georgios Gerasimos Germanos Gregorios Ignatios Ioannes Ioseph Isaias Isidoros
		Kallistos Konstantinos Kosmas Leon Loukas Makarios Manuel Matthaios Maximos Methodios
		Metrophanes Michael Neophytos Nephon Nikolaos Nikephoros Nilos Pavlos Philotheos Photios
		Polyeuktos Sergios Sisinnios Stephanos Tarasios Theodoros Theodosios Theodotos Theoleptos
		Theophanes Theophylaktos Tryphon Zacharias
	}
}

k_papal_chalcedon = {
	color = { 255 249 198 }
	color2 = { 220 220 0 }
	capital = 333 # Rome
	
	title = "POPE"
	foa = "POPE_FOA"
	short_name = yes
	
	# Always exists
	# landless = yes

	religion = chalcedonian
	culture = roman
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Hadrianus Agapitus:20 Alexander Anastasius:50 Benedictus Bonifatius:10 Callistus Coelestinus Clemens Constantinus Damasus:10
		Eugenius:10 Formosus:20 Gelasius:50 Gregorius Innocentius:125 Ioannes:150 Landus:10 Leo:125 Lucius Marinus:50 Martinus:25 Nicolaus Honorius Paschalis:10
		Pius:10 Romanus:10 Sergius Silvester:50 Stephanus:125 Theodorus:25 Urbanus Valentinus:10 Victor:50
	}
}

k_interim_papacy = {
	color = { 255 249 198 }
	color2 = { 220 220 0 }
	capital = 333 # Rome
	
	allow = {
		always = no
	}
	
	title = "POPE"
	foa = "POPE_FOA"
	short_name = yes
	
	# Always exists
	landless = yes

	religion = chalcedonian
	culture = roman
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

k_papal_state = {
	color = { 255 249 198 }
	color2 = { 220 220 0 }
	capital = 333 # Rome
	
	title = "POPE"
	foa = "POPE_FOA"
	short_name = yes
	
	# Always exists
	landless = yes
	
	# Controls a religion
	controls_religion = catholic
	
	religion = catholic
	culture = roman
	
	# Cannot be held as a secondary title
	primary = yes
	dignity = 100
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Hadrianus Agapitus:20 Alexander Anastasius:50 Benedictus Bonifatius:10 Callistus Coelestinus Clemens Constantinus Damasus:10
		Eugenius:10 Formosus:20 Gelasius:50 Gregorius Innocentius:125 Ioannes:150 Landus:10 Leo:125 Lucius Marinus:50 Martinus:25 Nicolaus Honorius Paschalis:10
		Pius:10 Romanus:10 Sergius Silvester:50 Stephanus:125 Theodorus:25 Urbanus Valentinus:10 Victor:50
	}
}



##################################
##
## HOLY ORDERS
##
##################################


d_ansar = {
	color = { 90 150 0 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx
	
	capital = 753 # Ancyra
	
	title = "AMIRJIHAD"
	foa = "GRANDHEADMASTER_FOA"
	
	holy_order = yes

	# Always exists
	landless = yes
	
	culture = persian
	
	# Parent Religion 
	religion = sunni
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)

	mercenary_type = ansar_composition
}

d_anubis = {
	
	color = { 128 120 20 }
	color2 = { 255 255 255 }
	
	capital = 795 # Asyut

	title = "WARCHIEF"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = egyptian_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = egyptian_arabic
	
	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 0.33

	mercenary_type = anubis
}

d_army_light = {

	color = { 120 160 30 }
	color2 = { 255 255 255 }
	
	graphical_culture = holygfx
	
	capital = 693 # Baghdad

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	holy_order = yes
	
	# Parent Religion 
	religion = manichean
	
	culture = persian
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 3 # (Must be an integer between 1 and 512)

	mercenary_type = saint_addai_composition
	coat_of_arms = {
		data = { 2 0 3 4 7 11 11 }
		religion = manichean
	}
}

d_army_lucifer = {

	color = { 170 70 147 }
	color2 = { 255 255 255 }
	
	graphical_culture = holygfx
	
	capital = 693 # Baghdad

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	holy_order = yes
	
	# Parent Religion 
	religion = messalian
	
	culture = persian
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 3 # (Must be an integer between 1 and 512)

	mercenary_type = saint_addai_composition
}

d_ashokas_chosen = {
	color = { 205 100 0 }
	color2 = { 255 255 255 }

	capital = 1355 # Delhi
	
	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = marathi
	
	# Parent Religion 
	religion = buddhist
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)
	
	mercenary_type = ashokas_chosen_composition
}

d_braedralag = {

	color = { 50 50 50 }
	color2 = { 255 255 255 }
	
	graphical_culture = norseholygfx
	
	capital = 290 #Uppsala

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = norse_pagan
	
	culture = norse
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = braedralag_composition
}

d_bulls_rishabha = {
	color = { 255 100 0 }
	color2 = { 255 255 255 }

	capital = 1355 # Delhi
	
	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = kannada
	
	# Parent Religion 
	religion = jain
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)
	
	mercenary_type = bulls_rishabha_composition
}

d_chosen_perkunas = {
	color = { 200 45 45 }
	
	graphical_culture = balticholygfx
	
	capital = 374 # Zemgali

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = baltic_pagan
	
	culture = lettigallish
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = chosen_perkunas_composition
}

d_devotees_of_the_true_prophet = {

	color = { 100 100 0 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx
	culture = levantine_arabic

	capital = 697 # Mosul

	title = "IMAM"
	foa = "IMAM_FOA"

	holy_order = yes

	# Always exists
	landless = yes

	# Parent Religion
	religion = sunni
	
	# Extra income due to banking, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	

	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 1

	dignity = 10

	# Cannot be vassalized
	independent = yes

	mercenary_type = devotees_of_the_true_prophet_composition
}

d_disciples_of_the_old_gods = {
	color = { 220 220 220 }
	color2 = { 255 255 255 }
	
	graphical_culture = finnishholygfx
	culture = finnish

	capital = 390 # Savo

	title = "Warrior Priest"
	foa = "WARRIOR_PRIEST_FOA"

	# Always exists
	landless = yes

	holy_order = yes

	# Parent Religion
	religion = finnish_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)		

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1

	dignity = 10

	mercenary_type = disciples_of_the_old_gods_composition
}

d_fianna = {
	
	color = { 75 75 75 }
	color2 = { 255 255 255 }
	
	graphical_culture = celticgfx
	
	capital = 15 #Ormond

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = celtic_pagan
	
	# Extra income due to banking, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)		
	
	culture = irish
	
	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = fianna_composition
}

d_followers_arjuna = {
	color = { 255 0 0 }
	color2 = { 255 255 255 }

	capital = 1355 # Delhi
	
	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = hindustani
	
	# Parent Religion 
	religion = hindu
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)
	
	mercenary_type = followers_arjuna_composition
}

d_ghazi_shiite = {

	color = { 100 100 0 }
	color2 = { 255 255 255 }
	
	graphical_culture = hashshashingfx

	capital = 796 #Cairo

	title = "IMAM"
	foa = "IMAM_FOA"
	
	culture = egyptian_arabic

	holy_order = yes

	# Always exists
	landless = yes

	# Parent Religion
	religion = shiite
	
	# Extra income due to banking, etc
	monthly_income = 4 # (Must be an integer between 1 and 512)

	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 1

	dignity = 10

	# Cannot be vassalized
	independent = yes

	mercenary_type = ghazi_shiite_composition
}

d_ghazi_sunni = {

	color = { 100 100 0 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx
	culture = levantine_arabic

	capital = 693 # Baghdad

	title = "IMAM"
	foa = "IMAM_FOA"

	holy_order = yes

	# Always exists
	landless = yes

	# Parent Religion
	religion = sunni
	
	# Extra income due to banking, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 1

	dignity = 10

	# Cannot be vassalized
	independent = yes

	mercenary_type = ghazi_sunni_composition
}

d_great_host = {

	color = { 100 100 0 }
	color2 = { 255 255 255 }

	culture = cuman
	
	capital = 566 # Sugrov

	title = "Warlord"
	foa = "WARLORD_FOA"

	holy_order = yes

	# Always exists
	landless = yes

	# Parent Religion
	religion = tengri_pagan

	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	

	strength_growth_per_century = 0.33

	dignity = 10

	# Cannot be vassalized
	independent = yes

	mercenary_type = great_host_composition
}

d_guardians_of_the_sacred_flame = {
	color = { 220 220 220 }
	color2 = { 255 255 255 }

	graphical_culture = balticholygfx
	culture = lettigallish
	
	capital = 420 # Aukshayts

	title = "Warrior Priest"
	foa = "WARRIOR_PRIEST_FOA"

	# Always exists
	landless = yes

	holy_order = yes

	# Parent Religion
	religion = baltic_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1

	dignity = 10

	mercenary_type = guardians_of_the_sacred_flame_composition
}

d_gwydion = {
	color = { 75 75 75 }
	color2 = { 255 255 255 }
	
	graphical_culture = celticgfx
	
	capital = 64 #Gwynedd

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = celtic_pagan
	
	# Extra income due to banking, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = welsh
	
	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = gwydion_composition
}

d_hashshashin = {
	color = { 100 100 0 }
	color2 = { 255 255 255 }
	
	graphical_culture = hashshashingfx

	capital = 663 # Rayy

	title = "IMAM"
	foa = "IMAM_FOA"
	
	culture = persian

	holy_order = yes
	mercenary_type = hashshashin_composition

	# Always exists
	landless = yes

	# Parent Religion
	religion = shiite
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)	

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1
	dignity = 10
}

d_herculean = {
	
	color= { 255 0 42 }
	color2 = { 255 255 255 }
	
	capital = 476 # Achaia

	title = "WARCHIEF"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = hellenic_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = greek
	
	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 0.33

	mercenary_type = herculean
}

d_holy_sepulchre = {
	color = { 120 0 145 }
	
	graphical_culture = orthodoxholygfx
	
	capital = 774 # Jerusalem

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = orthodox
	
	culture = greek
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = holy_sepulchre_composition
}

d_horus = {
	
	color = { 128 120 20 }
	color2 = { 255 255 255 }
	
	capital = 795 # Asyut

	title = "WARCHIEF"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = egyptian_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = egyptian_arabic
	
	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 0.33

	mercenary_type = horus
}

d_huitzilopochtli = {
	color = { 255 200 0 }
	
	graphical_culture = aztecholygfx
	
	capital = 843 # Marrakech

	title = "HIGHPRIEST"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = aztec
	
	culture = nahuatl
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = huitzilopochtli_composition
}

d_harii = {
	color = { 50 0 0 }
	color2 = { 255 255 255 }	
	graphical_culture = norseholygfx
	
	capital = 257 # Braunschweig
	
	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = german_pagan
	
	culture = old_saxon
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = jomsvikings_composition
}

d_immortals = {
	color = { 180 205 20 }
	
	graphical_culture = immortalsgfx
	
	capital = 658 # Hamadan

	title = "SPAHBED"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = zoroastrian
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = persian
	
	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 0.33

	mercenary_type = zhayedan_composition
}

d_haruriyyah = {

	color = { 150 200 80 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx
	
	capital = 693 # Baghdad
	
	title = "DEDEBABA"
	foa = "GRANDHEADMASTER_FOA"
	
	holy_order = yes

	# Always exists
	landless = yes
	
	culture = bedouin_arabic
	
	# Parent Religion 
	religion = ibadi
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)

	mercenary_type = ansar_composition
}

d_jomsvikings = {

	color = { 50 50 50 }
	color2 = { 255 255 255 }
	
	graphical_culture = norseholygfx
	
	capital = 303 # Skane

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = norse_pagan
	
	culture = norse
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = jomsvikings_composition
}

d_knights_calatrava = {
	color = { 230 100 0 }
	
	graphical_culture = holygfx
	
	capital = 196 # Calatrava

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = castillan
	
	# Parent Religion 
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)

	mercenary_type = knights_calatrava_composition
}

d_knights_hospitaler = {
	color = { 180 180 180 }
	color2 = { 255 255 255 }
	
	graphical_culture = holygfx

	capital = 333 # Rome

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes

	holy_order = yes
	mercenary_type = knights_hospitaler_composition
	
	culture = occitan

	# Parent Religion
	religion = catholic

	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)	

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1
	dignity = 10
}

d_knights_saint_mark = {

	color = { 170 155 60 }

	graphical_culture = holygfx

	capital = 802 #Alexandria

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes

	holy_order = yes

	culture = egyptian_arabic
	
	religion = miaphysite

	# Cannot be held as a secondary title
	primary = yes

	# Extra income due to donations, etc
	monthly_income = 10

	mercenary_type = saint_anthony_composition
}

d_knights_santiago = {
	color = { 255 130 0 }
	
	graphical_culture = holygfx
	
	capital = 157 # Santiago

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = castillan
	
	# Parent Religion 
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 6 # (Must be an integer between 1 and 512)

	mercenary_type = knights_santiago_composition
}

d_knights_templar = {
	color = { 230 230 230 }
	color2 = { 255 255 255 }
	
	graphical_culture = holygfx

	capital = 138 # Orleans

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes

	holy_order = yes
	mercenary_type = knights_templar_composition
	
	culture = frankish

	# Parent Religion
	religion = catholic

	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to banking, etc
	monthly_income = 10 # (Must be an integer between 1 and 512)

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1
	dignity = 10
}

d_red_dragons = {

	color = { 75 0 75 }
	color2 = { 255 255 255 }
	
	capital = 64 #Gwynedd

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = celtic_pagan_reformed
	
	culture = welsh
	
	monthly_income = 4
	
	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = red_dragons_composition

	strength_growth_per_century = 0.33	

	dynasty_title_names = no	
}

d_sacred_band = {
	
	color = { 255 89 48 }
	color2 = { 255 255 255 }
	
	capital = 746 # Ephesos

	title = "WARCHIEF"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = hellenic_pagan
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)	
	
	culture = greek
	
	# Cannot be held as a secondary title
	primary = yes

	strength_growth_per_century = 0.33

	mercenary_type = sacred_band
}

d_saint_addai = {
	color = { 180 80 140 }
	
	graphical_culture = holygfx
	
	capital = 693 # Baghdad

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = nestorian
	
	culture = persian
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = saint_addai_composition
}

d_saint_anthony = {
	color = { 180 165 70 }
	
	graphical_culture = holygfx
	
	capital = 875 # Aksum

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = miaphysite
	
	culture = ethiopian
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = saint_anthony_composition
}

d_saint_blaise = {
	color = { 190 175 70 }

	graphical_culture = orthodoxholygfx

	capital = 672 #Dwin

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes

	holy_order = yes

	# Parent Religion
	religion = apostolic

	culture = armenian

	# Cannot be held as a secondary title
	primary = yes

	# Extra income due to donations, etc
	monthly_income = 2

	mercenary_type = saint_addai_composition
}

d_sky_lords = {
	color = { 220 200 140 }
	
	capital = 898 # Yaik

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = tengri_pagan
	
	culture = cuman
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = sky_lords_composition
}

d_sons_kaleva = {
	color = { 140 130 105 }
	
	graphical_culture = finnishholygfx
	
	capital = 392 # Kexholm

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = finnish_pagan
	
	culture = finnish
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = sons_kaleva_composition
}

d_sons_of_judea = {
	color = { 225 175 225 }
	color2 = { 255 255 255 }
	
	graphical_culture = jewishholygfx
	culture = ashkenazi

	capital = 774 #Jerusalem

	title = "Warrior Priest"
	foa = "WARRIOR_PRIEST_FOA"

	# Always exists
	landless = yes

	holy_order = yes

	# Parent Religion
	religion = jewish
	
	# Extra income due to banking, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)		

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1

	dignity = 10

	mercenary_type = sons_of_judea_composition
}

d_spirit_guardians = {
	color = { 120 120 55 }
	
	graphical_culture = westafricanholygfx
	
	capital = 925 # Mali

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = west_african_pagan
	
	culture = manden
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = spirit_guardians_composition
}

d_teutonic_order = {
	color = { 115 135 115 }
	color2 = { 255 255 255 }
	
	graphical_culture = holygfx

	capital = 258 # Luneburg

	title = "HOCHMEISTER"
	foa = "HOCHMEISTER_FOA"

	# Always exists
	landless = yes

	holy_order = yes
	mercenary_type = teutonic_order_composition
	
	# Parent Religion
	religion = catholic
	
	culture = teutonic

	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 4 # (Must be an integer between 1 and 512)	

	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 1
	dignity = 10
}

d_warriors_perun = {
	color = { 100 140 100 }
	
	graphical_culture = slavicholygfx
	
	capital = 547 # Kiev

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = slavic_pagan
	
	culture = russian
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = warriors_perun_composition
}

d_zealots = {
	color = { 20 100 255 }
	
	graphical_culture = jewishholygfx
	
	capital = 774 # Jerusalem

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	# Parent Religion 
	religion = jewish
	
	culture = ashkenazi
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = zealots_composition
}

d_zun_warriors = {

	color = { 230 255 0 }
	
	capital = 1185 # Kabul

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"
	
	# Always exists
	landless = yes
	
	holy_order = yes
	
	culture = afghan
	
	# Parent Religion 
	religion = zun_pagan_reformed
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Extra income due to donations, etc
	monthly_income = 2 # (Must be an integer between 1 and 512)

	mercenary_type = zun_warriors_composition
}

##################################
##
## MERCENARIES
##
##################################


d_abyssinian_band = {
	color = { 180 135 60 }
	color2 = { 255 255 255 }

	capital = 875 # Axum
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion_group = jewish_group
		}
	}
	
	# Parent Religion 
	religion = miaphysite
	culture = ethiopian
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = abyssinian_band_composition
}

d_alan_band = {
	color = { 245 210 90 }
	color2 = { 255 255 255 }

	capital = 603 # Alania
	
	# Hire Trigger
	allow = {
		always = yes
	}
	
	culture = alan
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
		
	mercenary_type = alan_band_composition
}

d_arabic_band = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 716 # Ar'Ar/Yamama

	# Hire Trigger
	allow = {
		religion = sunni
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = arabic_band_composition
}

d_baltic_transport_convoy = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 301 # Gotland

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_convoy_composition
}

d_baltic_transport_fleet = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 301 # Gotland

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_fleet_composition
}

d_band_of_the_broken_arrow = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 784 # Al 'Aqabah

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
			religion_group = zoroastrian_group
			religion = orthodox
			rightful_religious_head_scope = { trait = greek_rites }
			religion = monophysite
		}
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = band_of_the_broken_arrow_composition
}

d_band_of_the_burning_sun = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 877 # Kassala

	# Hire Trigger
	allow = {
		OR = {
			religion = orthodox
			religion = monophysite
			rightful_religious_head_scope = { trait = greek_rites }
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = band_of_the_burning_sun_composition
}

d_black_sea_merchant_convoy = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 562 # Korchev

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_convoy_composition
}

d_black_sea_band = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 510 # Constantia

	# Hire Trigger
	allow = {
		OR = {
			religion = orthodox
			rightful_religious_head_scope = { trait = greek_rites }
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = black_sea_band_composition
}

d_breton_band = {
	color = { 150 65 65 }
	color2 = { 255 255 255 }

	capital = 102 # Penthievre

	# Hire Trigger
	allow = {
		religion_group = christian
	}
	
	culture = breton
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = breton_band_composition
}

d_breton_company = {
	color = { 150 40 40 }
	color2 = { 255 255 255 }

	capital = 102 # Penthievre

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	culture = breton
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = breton_company_composition
}

d_brotherhood_of_the_shield = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 266 # Sjaelland

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = brotherhood_of_the_shield_composition
}

d_bulgarian_band = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 508 # Dorostotum

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10


	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = bulgarian_band_composition
}

d_bulgarian_company = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 508 # Dorostotum

	culture = bulgarian
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = bulgarian_company_composition
}

d_canarias_raiders = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 849 # Canarias

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = muslim
			religion_group = jewish_group
		}
	}

	# Parent Religion
	religion = berber_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = canarias_raiders_composition
}

d_company_of_st_george = {
	color = { 50 50 200 }
	color2 = { 255 255 255 }

	capital = 235 # Lombardia

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = company_of_st_george_composition
}

d_catalan_band = {
	color = { 230 100 100 }
	color2 = { 255 255 255 }

	capital = 204 # Barcelona

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	culture = catalan

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = catalan_band_composition
}

d_catalan_company = {
	color = { 230 100 100 }
	color2 = { 255 255 255 }

	capital = 204 # Barcelona

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	culture = catalan

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = catalan_company_composition
}

d_cuman_band = {
	color = { 160 160 80 }
	color2 = { 255 255 255 }

	capital = 898 # Yaik

	culture = cuman

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = cuman_band_composition
}

d_cuman_company = {
	color = { 160 160 80 }
	color2 = { 255 255 255 }

	capital = 898 # Yaik

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	culture = cuman
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = cuman_company_composition
}

d_dutch_legion = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 92 # Breda
	
	allow = { # Hire Trigger
		OR = {
			religion_group = christian
			is_pagan_religion = yes
		}
		year = 1066
	}

	culture = dutch

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = dutch_legion_composition
}

d_eastern_merchant_convoy = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 772 # Acre

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_convoy_composition
}

d_egyptian_band = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 804 # Al Alamayn

	# Hire Trigger
	allow = {
		OR = {
			religion = shiite
			religion = egyptian_pagan
		}
	}

	# Parent Religion
	religion = shiite

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = egyptian_band_composition
}

d_ethiopian_band = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 883 #Gondar

	# Parent Religion
	religion = monophysite

	allow = {
		NOT = { religion_group = muslim }
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ethiopian_band_composition
}

d_ethiopian_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 883 #Gondar

	# Parent Religion
	religion = monophysite

	allow = {
		NOT = { religion_group = muslim }
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ethiopian_company_composition
}

d_finnish_band = {
	color = { 131 35 35 }
	color2 = { 255 255 255 }

	capital = 383 # Tavasts
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
		}
	}
	
	# Parent Religion 
	religion = finnish_pagan
	culture = finnish
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	mercenary_type = finnish_band_composition
}

d_foresters = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 421 # Zhmud

	# Hire Trigger
	allow = {
		# ai = no
		OR = {
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	# Parent Religion
	religion = baltic_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = foresters_composition
}

d_frisian_navy = { # Now "North Sea Cogs"
	color = { 245 80 20 }
	color2 = { 255 255 255 }
	
	short_name = yes

	capital = 80 # Holland
	
	# Hire Trigger
	allow = {
		religion_group = christian
		year = 1066
	}
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_genovese_crossbow_contingent = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 233 # Genoa

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = genovese_crossbow_contingent_composition
}

d_genoese_navy = { # Now "Ligurian Galleys"
	color = { 224 161 120 }
	color2 = { 255 255 255 }
	
	short_name = yes

	capital = 233 # Genoa
	
	# Hire Trigger
	allow = {
		religion_group = christian
		year = 1066
	}
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_genovese_transport_convoy = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 233 # Genoa

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_convoy_composition
}

d_genovese_transport_fleet = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 233 # Genoa

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_fleet_composition
}

d_german_band = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 253 # Wurttemberg

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion = german_pagan
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = german_band_composition
}

d_ghanaian_band = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 1540 # Soumpi

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = west_african_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ghanaian_band_composition
}

d_ghanan_band = {
	color = { 108 123 48 }
	color2 = { 255 255 255 }

	capital = 913 # Ghana
	
	# Hire Trigger
	allow = {
		culture_group = west_african
	}
	
	culture = manden
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = ghanan_band_composition
}

d_ghanaian_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 1540 # Soumpi

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ghanaian_company_composition
}

d_ghilman = {
	color = { 60 165 80 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx

	capital = 627 # Kara-Kum

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = ghilman_composition
}

d_great_company = {
	color = { 100 100 100 }
	color2 = { 255 255 255 }

	capital = 361 # Niederbayern

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = great_company_composition
}

d_greenshield_sellswords = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 190 # Leon

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion_group = muslim
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = zoroastrian_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = greenshield_sellswords_composition
}

d_guilded_daggers = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 756 # Limisol

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
			religion_group = zoroastrian_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = guilded_daggers_composition
}

d_hanseatic_navy = { # Now "Baltic Cogs"
	color = { 150 150 150 }
	color2 = { 255 255 255 }
	
	short_name = yes

	capital = 262 # L?beck
	
	# Hire Trigger
	allow = {
		religion_group = christian
		year = 1066
	}
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_honorable_exiles = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 417 # Vitebsk

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = jewish_group
			religion = orthodox
			rightful_religious_head_scope = { trait = greek_rites }
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = honorable_exiles_composition
}

d_humble_hedge_knights = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 57 # York

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = humble_hedge_knights_composition
}

d_iberian_horsemen = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 171 # Valencia

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = iberian_horsemen_composition
}

d_iberian_legion = {
	color = { 230 100 100 }
	color2 = { 255 255 255 }

	capital = 204 # Barcelona
	
	allow = { # Hire Trigger
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = iberian_legion_composition
}

d_irish_band = {
	color = { 112 255 70 }
	color2 = { 255 255 255 }

	capital = 10 # Kildare
	
	# Hire Trigger
	allow = {
		always = yes
	}
	
	culture = irish
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
		
	mercenary_type = irish_band_composition
}

d_jolof_band = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 863 # Cayor

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = west_african_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = jolof_band_composition
}

d_jolof_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 863 # Cayor

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = west_african_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = jolof_company_composition
}

d_lappish_band = {
	color = { 101 69 30 }
	color2 = { 255 255 255 }

	capital = 386 # Kemi
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
		}
	}
	
	# Parent Religion 
	religion = finnish_pagan
	culture = lappish
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"
	
	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
		
	mercenary_type = lappish_band_composition
}

d_legendary_longbowmen = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 64 # Gwynedd

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion = celtic_pagan
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = legendary_longbowmen_composition
}

d_legion_of_the_black_sea = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 497 # Thrake
	
	allow = { # Hire Trigger
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = legion_of_the_black_sea_composition
}

d_legion_of_the_burning_sun = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 885 # Matamma

	# Hire Trigger
	allow = {
		OR = {
			religion = orthodox
			rightful_religious_head_scope = { trait = greek_rites }
			religion = monophysite
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = legion_of_the_burning_sun_composition
}

d_legion_of_the_nile = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 796 # Cairo
	
	allow = { # Hire Trigger
		religion_group = muslim
		religion = egyptian_pagan
	}

	# Parent Religion
	religion = shiite

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = legion_of_the_nile_composition
}

d_lithuanian_band = {
	color = { 169 90 95 }
	color2 = { 255 255 255 }

	capital = 421 # Lietuva / Zhmud
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
		}
	}
	
	# Parent Religion 
	religion = baltic_pagan
	culture = lithuanian
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"
	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
		
	mercenary_type = lithuanian_band_composition
}

d_little_hat_company = {
	color = { 100 200 80 }
	color2 = { 255 255 255 }

	capital = 354 # Mantua

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = little_hat_company_composition
}

d_lombard_band = {
	color = { 150 60 60 }
	color2 = { 255 255 255 }

	capital = 235 # Lombardia

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = lombard_band_composition
}

d_lost_company = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 483 # Rhodos

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = muslim
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = lost_company_composition
}

d_maghreb_corsairs = {
	color = { 174 237 125 }
	color2 = { 255 255 255 }
	
	short_name = yes

	capital = 816 # Mahdia
	
	# Hire Trigger
	allow = {
		religion_group = muslim
		year = 1066
	}
	
	# Parent Religion 
	religion = sunni
	
	culture = maghreb_arabic
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_mali_legion = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 1538 # Bamako

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = west_african_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = mali_legion_composition
}

d_mali_warriors = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 1538 # Bamako

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	# Parent Religion
	religion = west_african_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = mali_warriors_composition
}

d_mamluks = {
	color = { 80 160 80 }
	color2 = { 255 255 255 }
	
	graphical_culture = bektashigfx

	capital = 796 # Cairo

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni
	culture = turkish

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = mamluks_composition
}

d_navarrese_company = {
	color = { 150 150 100 }
	color2 = { 255 255 255 }

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	capital = 152 # Navarre

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	culture = basque

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = navarrese_company_composition
}

d_nomadic_raiders = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 814 # Gabes

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = nomadic_raiders_composition
}

d_nubian_band = {
	color = { 155 165 80 }
	color2 = { 255 255 255 }

	capital = 878 # Hayya
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion_group = jewish_group
		}
	}
	
	# Parent Religion 
	religion = miaphysite
	
	culture = nubian
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = nubian_band_composition
}

d_nubian_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 793 # Makuria

	# Parent Religion
	religion = monophysite

	allow = {
		NOT = { religion_group = muslim }
		NOT = { religion_group = indian_group }
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = nubian_company_composition
}

d_outlaws_of_the_marsh = { # Big merc
	color = { 66 66 66 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = outlaws_of_the_marsh
}

d_pecheneg_band = {
	color = { 100 100 30 }
	color2 = { 255 255 255 }

	capital = 512 # Belgorod

	culture = pecheneg

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = pecheneg_band_composition
}

d_pecheneg_company = {
	color = { 100 100 30 }
	color2 = { 255 255 255 }

	capital = 512 # Belgorod

	culture = pecheneg

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = pecheneg_company_composition
}

d_roaming_regiment = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 468 # Ragusa

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = roaming_regiment_composition
}

d_rose_company = {
	color = { 230 150 150 }
	color2 = { 255 255 255 }

	capital = 355 # Padua

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = rose_company_composition
}

d_ruriks_raiders = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 280 # Vasterbotten

	# Hire Trigger
	allow = {
		is_pagan_religion = yes
	}

	# Parent Religion
	religion = norse_pagan

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ruriks_raiders_composition
}

d_rus_band = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 547 # Kiev

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = rus_band_composition
}

d_rus_company = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 547 # Kiev

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = rus_company_composition
}

d_rus_legion = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 547 # Kiev

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = rus_legion_composition
}

d_sardinian_company = {
	color={ 210 165 165 }
	color2={ 255 255 255 }

	capital = 326 # Cagliari
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			culture_group = island_romance
		}
	}

	culture = sardinian
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33

	mercenary_type = sardinian_company_composition
}

d_sardinian_band = {
	color={ 210 65 65 }
	color2={ 255 255 255 }

	capital = 325 # Arborea
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			culture_group = island_romance
		}
	}

	culture = sardinian
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33

	mercenary_type = sardinian_band_composition
}

d_saxon_band = {
	color = { 220 90 90 }
	color2 = { 255 255 255 }

	capital = 57 # York

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion = german_pagan
			culture = old_saxon
		}
	}

	culture = old_saxon

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = saxon_band_composition
}

d_scottish_band = {
	color = { 30 90 182 }
	color2 = { 255 255 255 }

	capital = 43 # Gowrie
	
	# Hire Trigger
	allow = {
		always = yes
	}
	
	culture = scottish
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
		
	mercenary_type = scottish_band_composition
}

d_shiite_bedouin_company = {
	color = { 40 150 30 }
	color2 = { 255 255 255 }

	capital = 717 # Najd

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = shiite
	culture = bedouin_arabic
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = bedouin_company_composition
}

d_shiite_berber_company = {
	color = { 90 150 30 }
	color2 = { 255 255 255 }

	capital = 833 # Atlas

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = shiite
	culture = maghreb_arabic
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = berber_company_composition
}

d_shiite_cuman_company = {
	color = { 130 150 30 }
	color2 = { 255 255 255 }

	capital = 898 # Yaik

	# Hire Trigger
	allow = {
		OR = {
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
		}
	}

	# Parent Religion
	religion = shiite
	culture = cuman
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = muslim_cuman_company_composition
}

d_shiite_turkic_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 621 # Kangly or Emba
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
		}
	}
	
	# Parent Religion 
	religion = shiite
	culture = turkish
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = muslim_turkic_company_composition
}

d_soldiers_of_the_crescent_moon = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 340 # Palmero

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = soldiers_of_the_crescent_moon_composition
}

d_songhai_company = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 914 # Gao

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = songhai_company_composition
}

d_songhai_spearmen = {
	color = { 135 170 60 }
	color2 = { 255 255 255 }

	capital = 914 # Gao

	# Hire Trigger
	allow = {
		OR = {
			is_pagan_religion = yes
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "LORD"
	foa = "LORD_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = songhai_spearmen_composition
}

d_sons_of_ireland = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 11 # Dublin

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = sons_of_ireland_composition
}

d_star_company = {
	color = { 200 80 200 }
	color2 = { 255 255 255 }

	capital = 353 # Ferrara

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = star_company_composition
}

d_sunni_bedouin_company = {
	color = { 45 155 35 }
	color2 = { 255 255 255 }

	capital = 717 # Najd

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni
	culture = bedouin_arabic
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = bedouin_company_composition
}

d_sunni_berber_company = {
	color = { 85 155 33 }
	color2 = { 255 255 255 }

	capital = 833 # Atlas

	# Hire Trigger
	allow = {
		religion_group = muslim
	}

	# Parent Religion
	religion = sunni
	culture = maghreb_arabic
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = berber_company_composition
}

d_sunni_cuman_company = {
	color = { 134 155 30 }
	color2 = { 255 255 255 }

	capital = 898 # Yaik

	# Hire Trigger
	allow = {
		OR = {
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
		}
	}

	# Parent Religion
	religion = sunni
	culture = cuman
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = muslim_cuman_company_composition
}

d_sunni_turkic_company = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 621 # Kangly or Emba
	
	# Hire Trigger
	allow = {
		OR = {
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
		}
	}

	# Parent Religion
	religion = sunni
	culture = turkish
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = muslim_turkic_company_composition
}

d_swiss_band = {
	color = { 150 40 40 }
	color2 = { 255 255 255 }

	capital = 239 # Geneve

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = swiss_band_composition
}

d_swiss_company = {
	color = { 150 40 40 }
	color2 = { 255 255 255 }

	capital = 239 # Geneve

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = swiss_company_composition
}

d_thousand_spears = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 166 # Algeciras

	# Hire Trigger
	allow = {
		religion = sunni
	}

	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = thousand_spears_composition
}

d_turkic_company = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 621 # Emba

	culture = turkish

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = turkic_company_composition
}

d_turkoman_legion = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 621 # Kangly or Emba

	allow = { # Hire Trigger
		religion_group = muslim
	}
	
	# Parent Religion
	religion = sunni

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = turkoman_legion_composition
}

d_turkic_band = {
	color = { 100 50 30 }
	color2 = { 255 255 255 }

	capital = 621 # Emba

	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = turkic_band_composition
}

d_varangian_guard = {
	color = { 180 180 180 }
	color2 = { 255 255 255 }
	
	graphical_culture = orthodoxholygfx

	capital = 290 # Uppland

	# Hire Trigger
	allow = {
		OR = {
			religion = orthodox
			rightful_religious_head_scope = { trait = greek_rites }
			religion = norse_pagan
			religion = norse_pagan_reformed
		}
	}

	culture = norse
	
	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	mercenary_type = varangian_guard_composition
}

d_venetian_navy = { # Now "Adriatic Galleys"
	color = { 60  175  170 }
	color2 = { 255 255 255 }
	
	short_name = yes

	capital = 356 # Venice
	
	# Hire Trigger
	allow = {
		religion_group = christian
		year = 1066
	}
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_venetian_transport_convoy = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 356 # Venezia

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_convoy_composition
}

d_venetian_transport_fleet = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 356 # Venezia

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
			religion = orthodox
			religion_group = muslim
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = merc_fleet_composition
}

d_ventura_company = {
	color = { 80 80 160 }
	color2 = { 255 255 255 }

	capital = 356 # Venezia

	# Hire Trigger
	allow = {
		OR = {
			religion_group = christian
			is_pagan_religion = yes
			religion_group = jewish_group
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CONDOTTIERO"
	foa = "CONDOTTIERO_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = ventura_company_composition
}

d_victual_brothers = {
	color = { 160 160 160 }
	color2 = { 255 255 255 }

	capital = 370 # Marienburg

	# Hire Trigger
	allow = {
		# ai = no
		OR = {
			religion = norse_pagan
			religion = norse_pagan_reformed
			religion = baltic_pagan
			religion = baltic_pagan_reformed
			religion = finnish_pagan
			religion = finnish_pagan_reformed
			religion_group = christian
		}
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = victual_brothers_composition
}

d_white_company = {
	color = { 235 235 235 }
	color2 = { 255 255 255 }

	capital = 72 # Essex

	# Hire Trigger
	allow = {
		religion_group = christian
	}

	mercenary = yes

	strength_growth_per_century = 0.33

	dignity = 10

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	# Cannot be vassalized
	independent = yes

	mercenary_type = white_company_composition
}

d_wolftails = {
	color={ 75 75 0 }
	color2={ 255 255 255 }

	capital = 64
	
	# Hire Trigger
	allow = {
		OR = {
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
	}
	
	# Parent Religion 
	religion = celtic_pagan
	culture = welsh
	
	mercenary = yes

	title = "WARCHIEF"
	foa = "WARCHIEF_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33

	mercenary_type = wolftails_composition
}

# Chinese Mercenaries
d_han_massive = { # Massive Merc
	color={ 60 165 80 }
	color2={ 255 255 255 }
	
	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_massive_composition
}

d_han_large = { # Large Merc
	color={ 235 235 235 }
	color2={ 255 255 255 }
	
	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33

	mercenary_type = han_large_composition
}

d_han_mid = { # Mid Merc
	color = { 150 80 40 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_mid_composition
}

d_han_mid_low = { # Mid-Low Merc
	color = { 30 150 50 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_mid_low_composition
}

d_han_low = { # Small Merc
	color = { 30 170 50 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_low_composition
}

d_han_tiny_1 = { # Tiny Merc
	color = { 38 120 51 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_tiny_composition_1
}

d_han_tiny_2 = { # Tiny Merc
	color = { 32 175 57 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = han_tiny_composition_2
}

d_jurchen_band = { # Mid-Low Merc
	color = { 32 120 50 }
	color2 = { 255 255 255 }

	graphical_culture = chinesegfx

	capital = 1408 # Anxi
	hire_range = 1300
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = jurchen
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = jurchen_band_composition
}

d_tangut_low = { # Small Merc
	color = { 30 170 50 }
	color2 = { 255 255 255 }

	capital = 1601 # Jyekundo
	hire_range = 800
	
	# Parent Religion 
	religion = buddhist
	
	# Parent Culture
	culture = tangut
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = tangut_low_composition
}

d_bodpa_low = { # Small Merc
	color = { 30 170 50 }
	color2 = { 255 255 255 }

	capital = 1589 # Purang
	hire_range = 800
	
	# Parent Religion 
	religion = bon
	
	# Parent Culture
	culture = bodpa
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = bodpa_low_composition
}

d_treasure_fleet = {
	color={ 222 80 20 }
	color2={ 255 255 255 }

	capital = 1318 # Samatata
	hire_range = 1200
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = treasure_fleet_composition
}

d_han_junks = {
	color={ 222 80 20 }
	color2={ 255 255 255 }
	
	short_name = yes

	capital = 1318 # Samatata
	hire_range = 1000
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = han
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

d_jurchen_corsairs = {
	color={ 222 180 20 }
	color2={ 255 255 255 }
	
	short_name = yes

	capital = 1318 # Samatata
	hire_range = 1000
	
	# Parent Religion 
	religion = taoist
	
	# Parent Culture
	culture = jurchen
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
		
	# Cannot be vassalized
	independent = yes

	mercenary_type = naval_merc_composition
}

#Indian mercs

d_bengal_band = {
	color = { 30 170 50 }
	color2 = { 255 255 255 }

	capital = 1236 # Candradvipa
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = bengali
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = bengal_band_composition
}

d_bengal_company = {
	color = { 30 150 50 }
	color2 = { 255 255 255 }

	capital = 1236 # Candradvipa
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = bengali
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = bengal_company_composition
}

d_marathi_band = {
	color = { 180 80 40 }
	color2 = { 255 255 255 }

	capital = 1254 # Vairagara
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = marathi
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = marathi_band_composition
}

d_marathi_company = {
	color = { 150 80 40 }
	color2 = { 255 255 255 }

	capital = 1254 # Vairagara
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = marathi
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = marathi_company_composition
}

d_rajput_band = {
	color = { 170 50 0 }
	color2 = { 255 255 255 }

	capital = 1130 # Mandavyapura
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = rajput
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = rajput_band_composition
}

d_rajput_company = {
	color = { 180 65 0 }
	color2 = { 255 255 255 }

	capital = 1130 # Mandavyapura
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion
	religion = hindu
	
	culture = rajput
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = rajput_company_composition
}

d_tamil_band = {
	color = { 110 60 30 }
	color2 = { 255 255 255 }

	capital = 1120 # Tagadur
	
	allow = { # Hire Trigger
		religion_group = indian_group
	}
	
	# Parent Religion 
	religion = hindu
	
	culture = tamil
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 1.0
	
	mercenary_type = tamil_band_composition
}

# Silk Road Mercs
d_persian_caravan_guards = {
	color = { 67 155 135 }
	color2 = { 255 255 255 }

	capital = 630 # Merv
	
	religion = shiite
	culture = persian
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = persian_caravan_guards_composition
}

d_silk_road_sentinels = {
	color = { 167 125 135 }
	color2 = { 255 255 255 }

	capital = 1180 # Udabhanda
	
	religion = buddhist
	culture = panjabi
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = silk_road_sentinels_composition
}

d_turkic_guard = {
	color = { 167 125 135 }
	color2 = { 255 255 255 }

	capital = 900 # Syr Darya
	
	religion = khurmazta
	culture = turkish
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	strength_growth_per_century = 0.33
	
	mercenary_type = turkic_guards_composition
}

##################################
##
## TITULAR TITLES
##
##################################


# Duchies

d_abbasid = {
	color = { 19 180 16 }
	
	allow = {
		always = no
	}
}

d_acre = {
	color = { 19 180 16 }
	capital = 772
	dignity = 10
	greek = "Ptolemais"
	
	allow = {
		may_create_duchy_trigger = yes
		lower_tier_than = duke
		OR = {
			religion_group = christian
			has_holder_trigger = yes
		}
	}
}

d_albania = {
	color = { 228 30 32 }
	capital = 470 # Dyrrachion
	culture = arberian
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			ROOT = {
				lower_tier_than = duke
				culture = arberian
			}
		}
	}
}

d_aquileia = {
	color = { 250 175 250 }
	color2 = { 255 255 255 }
	capital = 358 #Aquileia
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		religion_group = christian
		is_theocracy = yes
	}
}

d_arabia_felix = {
	color = { 163 254 56 }
}

d_arabs = {
	color = { 38 157 35 }
	culture = bedouin_arabic
}

d_balearic = {
	color = { 13 170 54 }
}

d_bergen = {
	color = { 47 27 255 }
}

d_bologna = {
	color = { 219 155 35 }
	
	capital = 352 # Bologna
	culture = emilian
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
		lower_tier_than = duke
		OR = {
			independent = yes
			liege = { 
				is_merchant_republic = no
				higher_tier_than = duke
			}
		}
	}
}

d_bordeaux = {
	color = { 59 15 248 }
	color2 = { 255 255 255 }
	capital = 149 #Bordeaux
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = occitan
					culture = frankish
					culture = english
				}
			}
		}
	}
}

d_braganza = {
	color = { 219 195 35 }
	color2 = { 255 255 255 }
	capital = 188 #Braganza
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = castillan
					culture = portuguese
				}
			}
		}
	}
}

d_brunswick = {
	color = { 166 72 57 }
	color2 = { 97 255 255 }
	capital = 257 #Brunswick
	
	culture = old_saxon
	
	german = "Braunschweig"
	saxon = "Braunschweig"
	danish = "Brunesvig"
	norwegian = "Brunesvig"
	swedish = "Brunesvig"
	norse = "Brunesvig"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				german_cultures_trigger = yes
			}
			ROOT = {
				lower_tier_than = duke
				culture = old_saxon
			}
		}
	}
}

d_butrinto = {
	color = { 148 68 154 }
	color2 = { 255 255 255 }
	capital = 472 #Epirus
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = arberian
					culture = greek
					culture = sicilian_greek
					is_italian_trigger = yes
				}
			}
		}
	}
}

d_campania = {
	color = { 226 204 228 }
	color2 = { 255 255 255 }
	capital = 334 # Naples

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = neapolitan
					culture = sicilian
					culture = italian
					culture = greek
					culture = sicilian_greek
				}
			}
		}
	}
}

d_catalonia = {
	color = { 255 210 57 }
	color2 = { 255 255 255 }
	capital = 204 # Barcelona
	culture = catalan
	title = "PRINCE"
	title_female = "PRINCESS"
	title_prefix = "PRINCIPALITY_OF"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = catalan
				}
			}
		}
	}
}

d_chaldea = {
	color = { 107 159 41 }
}

d_cumberland = {
	color = { 31 186 244 }
	color2 = { 255 255 255 }
	capital = 53 # Cumberland

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = english
					culture = saxon
					culture = scots
					culture = english_norse
				}
			}
		}
	}
}

d_curonian = {
	color = { 141 55 29 }
	
	capital = 373 # Kurzeme
	culture = lettigallish
	
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_danes = {
	color = { 247 77 54 }

	capital = 266 # Sjaelland		
	culture = norse       
	       
	dignity = 10
	
	allow = {
		always = no
	}
}

d_don = {
	color = { 247 211 116 }
}

d_dorostotum = {
	color = { 163 48 206 }
}

d_dregovichi = { 
	color = { 100 100 20 }
	color2 = { 255 255 255 }
	
	culture = russian
		
	capital = 548 # Pinsk
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_dublin = {
	color = { 255 65 20 }
	capital = 11 # Dublin
	
	allow = {
		may_create_duchy_trigger = yes
		lower_tier_than = duke
		OR = {
			culture = english_norse
			culture_group = north_germanic
			has_holder_trigger = yes
		}
	}
}

d_el_rif = {
	color = { 29 241 64 }
}

d_el-arish = {
	color = { 148 206 13 }
}

d_erzerum = {
	color = { 103 84 255 }
}

d_estonia = {
	color = { 94 60 22 }

	capital = 378 # Reval
	culture = ugricbaltic
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_foix = {
	color = { 247 211 116 }
	color2 = { 255 255 255 }
	capital = 210 # Foix

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = occitan
					culture = frankish
					culture = catalan
				}
			}
		}
	}
}

d_galatia = {
	color = { 244 75 185 }
	
	capital = 752
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
		lower_tier_than = duke
		OR = {
			independent = yes
			liege = { 
				is_merchant_republic = no 
				higher_tier_than = duke
			}
		}
	}
}

d_georgia = {
	color = { 251 184 184 }
}

d_gilan = {
	color = { 65 90 137 }
}

d_geats = {
	color = { 35 57 180 }
	
	culture = norse
	
	dignity = 8
	
	capital = 297 # Västergötland
	
	allow = {
		always = no
	}
}

d_glomacze = { # Aka Dolomici
	color = { 215 143 156 }
	color2 = { 255 255 255 }
	
	culture = pommeranian
		
	capital = 312 # Meissen
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_gothia = {
	color = { 29 89 152 }
	capital = 212 # Narbonne
	culture = frankish
	allow = {
		may_create_duchy_trigger = yes
		lower_tier_than = duke
		OR = {
			culture = frankish
			culture = occitan
			culture = catalan
			german_cultures_trigger = yes
			culture = norse
		}
	}
	dignity = 10
	
	title = "MARQUIS"
	title_female = "MARQUISE"
	title_prefix = "MARQUIS_OF"
}

d_hamburg = {
	color = { 147 177 125 }
	
	capital = 261 #Hamburg
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
		lower_tier_than = duke
		OR = {
			independent = yes
			liege = {
				is_merchant_republic = no
				higher_tier_than = duke
			}
		}
	}
}

d_hellas = {
	color = { 213 73 165 }
}

d_ilmenians = { # aka Ilmen Slavs
	color = { 70 120 40 }
	color2={ 255 255 255 }
	
	culture = russian
	
	capital = 414 # Novgorod
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_ikonion = {
	color = { 179 28 127 }
	color2 = { 255 255 255 }
	capital = 759 # Ikonion

	turkish = "Konya"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = greek
					culture = pontic_greek
					culture = turkish
				}
			}
		}
	}
}

d_ingers = {
	color = { 125 125 40 }
	
	culture = finnish	
	
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_kajaneborg = {
	color = { 123 73 13 }
	
	culture = finnish		
	
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_kappadokia = {
	color = { 255 3 170 }
}

d_karelians = {
	color = { 190 246 101 }

	
	culture = finnish
	dignity = 10
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
}

d_karnten = {
	color = { 229 254 242 }
	color2 = { 255 255 255 }
	capital = 456 # Karnten

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					german_cultures_trigger = yes
					culture = veneto
					culture = italian
					culture = croatian
					culture = yugoslavian
					culture = hungarian
				}
			}
		}
	}
}

d_kasogs = {
	color = { 42 107 17 }

	dynasty_title_names = no
	culture = khazar
	dignity = 10

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
}

d_kexholm = {
	color = { 121 98 20 }
	
	culture = finnish	
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_khazars = {
	color = { 246 217 137 }
	
	capital = 594 #        Sarkel
	
	culture = khazar
	
	# Creation/Usurp Trigger
	allow = {
		always = no
	}
}

d_kleve = {
	color = { 232 232 107 }
	color2 = { 255 255 255 }
	capital = 89 #Cleves
	
	culture = dutch
	
	allow = {
		may_create_duchy_trigger = yes
	}
}

d_krakow = {
	color = { 253 129 129 }
	color2 = { 255 255 255 }
	capital = 527 # Krakowskie

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = polish
					culture = bohemian
					culture = hungarian
					german_cultures_trigger = yes
				}
			}
		}
	}
}

d_kryvians = { # aka Krivichi
	color = { 128 133 104 }
	color2 = { 255 255 255 }
	
	culture = russian
		
	capital = 419 # Polotsk
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_laodikeia = {
	color = { 163 52 125 }
}

d_lendians = { # aka Ledzianie or Lechs
	color = { 245 163 176 }
	color2 = { 255 255 255 }
	
	culture = polish
		
	capital = 527 # Krakowskie
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_lettigalians = {
	color = { 126 51 51 }
	
	culture = lettigallish	
	lettigallish = "Latgalisi"
	
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_limburg = {
	color = { 255 0 0 }
	color2 = { 230 230 230 }
	
	capital = 1515 #Limburg
	culture = dutch
	
	allow = {
		may_create_duchy_trigger = yes
		lower_tier_than = duke
	}
}

d_luristan = {
	color = { 77 114 183 }
}

d_lut = {
	color = { 119 170 29 }
}

d_lykia = {
	color = { 121 42 93 }
}

d_mainz = {
	color = { 150 158 228 }
	color2 = { 255 255 255 }

	capital = 123 # Mainz
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		religion_group = christian
		is_theocracy = yes
	}
}

d_mar = {
	color = { 16 211 246 }
}

d_marino = {
	color = { 0  128  255 }
	
	capital = 329 # Urbino
	culture = umbrian
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
		lower_tier_than = duke
		OR = {
			independent = yes
			liege = {
				is_merchant_republic = no
				higher_tier_than = duke
			}
		}
	}
}

d_meryas = {
	color = { 131 41 41 }
	
	capital = 574 # Rostov / Merya	
	
	culture = mordvin
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_meshcheras = {
	color = { 151 71 41 }
	
	capital = 580 # Ryazan
	culture = mordvin	
	
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_milano = {
	color = { 252 238 227 }
	color2 = { 255 255 255 }
	capital = 235 # Lombardia

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = lombard
					culture = italian
				}
			}
		}
	}
}

d_minsk = {
	color = { 175 44 44 }
	color2 = { 255 255 255 }
	capital = 550 # Minsk

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = russian
				}
			}
		}
	}
}

d_muromians = {
	color = { 160 120 75 }
	
	capital = 581 # Murom
	culture = mordvin	
	
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_nikomedeia = {
	color = { 209 108 174 }
}

d_obotrites = {
	color = { 100 110 20 }
	color2 = { 255 255 255 }
	
	culture = pommeranian
		
	capital = 260 # Mecklenburg
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_oldenburg = {
	color = { 214 117 117 }
	color2 = { 255 255 255 }
	capital = 86 #Oldenburg
	
	culture = old_saxon
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				german_cultures_trigger = yes
			}
			ROOT = {
				lower_tier_than = duke
				culture = old_saxon
			}
		}
	}
}

d_pechenegs = {
	# OBSOLETE
	color = { 173 150 43 }
	color2 = { 0 128 128 }
	
	capital = 542 # Olvia	
	
	culture = pecheneg
	
	allow = {
		always = no
	}
}

d_pfalz = {
	color = { 203 150 143 }
	capital = 124
	culture = franconian
	short_name = yes
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		lower_tier_than = duke
	}
}

d_pressburg = {
	color = { 218 70 70 }
	color2 = { 255 255 255 }
	capital = 445 # Pressburg
	
	aromanian = "Pojon"
	bohemian = "Prešpurk"
	castillan = "Presburgo"
	croatian = "Požun"
	dutch = "Presburg"
	english = "Pressburgh"
	flemish = "Presburg"
	frankish = "Presbourg"
	greek = "Istropolis"
	hungarian = "Posony"
	italian = "Presburgo"
	pontic_greek = "Istropolis"
	portuguese = "Presburgo"
	roman = "Posonium"
	romanian = "Pojon"
	serbian = "Požun"
	tuscan = "Presburgo"
	yugoslavian = "Požun"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = hungarian
					culture = bohemian
					culture = polish
					german_cultures_trigger = yes
				}
			}
		}
	}
}

d_pronsk = {
	color = { 23 132 81 }
	color2 = { 255 255 255 }
	capital = 577 # Pronsk

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = russian
				}
			}
		}
	}
}

d_pruthenians = {
	color = { 159 195 75 }

	capital = 370 # Marienburg
	culture = prussian	
	prussian = "Pameddi"
	
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"   
}

d_qom = {
	color = { 188 229 116 }
	color2 = { 255 255 255 }
	capital = 659 # Qom

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = persian
					culture = baloch
					culture = afghan
				}
			}
		}
	}
}

d_radimichi = { 
	color = { 110 136 68 }
	color2 = { 255 255 255 }
	
	culture = russian
		
	capital = 551 # Mstislavl
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_ravenna = {
	color = { 244 125 85 }
	color2 = { 255 255 255 }

	capital = 351 #Ravenna
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		religion_group = christian
		is_theocracy = yes
	}
}

d_romagna = {
	color = { 243 234 157 }
	color2 = { 255 255 255 }
	capital = 351 # Ravenna

	emilian = "Rumâgna"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = emilian
					culture = italian
				}
			}
		}
	}
}

d_salamanca = {
	color = { 251 229 34 }
	color2 = { 255 255 255 }
	capital = 192 # Salamanca

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = castillan
					culture = portuguese
				}
			}
		}
	}
}

d_salzburg = {
	color = { 220 220 250 }
	
	capital = 448
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		religion_group = christian
		is_theocracy = yes
	}
}

d_sami = {
	color = { 101 99 35 }	
	
	capital = 279 #Lappland
	
	allow = {
		always = no
	}
	
	culture = lappish
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_sandomiersk = {
	color = { 253 137 137 }
	color2 = { 255 255 255 }
	capital = 531 # Sandomierskie

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = polish
					culture = russian
					culture = hungarian
				}
			}
		}
	}
}

d_satakunta = {
	color = { 117 47 47 }
	
	
	culture = finnish
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"    
}

d_saxony = {
	color = { 150 162 182 }
	color2 = { 255 255 255 }
	
	culture = old_saxon
	
	capital = 310 #Anhalt
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				german_cultures_trigger = yes
			}
			ROOT = {
				lower_tier_than = duke
				culture = old_saxon
			}
		}
	}
}

d_severians = { # aka Severiane
	color = { 120 155 40 }
	color2 = { 255 255 255 }
	
	culture = russian
		
	capital = 567 # Novgorod Seversky
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_shiraz = {
	color = { 155 189 97 }
	color2 = { 255 255 255 }
	capital = 644 # shiraz

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = persian
					culture = afghan
					culture = baloch
					culture = kurdish
				}
			}
		}
	}
}

d_sinope = {
	color = { 255 6 172 }
	color2 = { 255 255 255 }
	capital = 739 # Sinope

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = greek
					culture = pontic_greek
					culture = turkish
				}
			}
		}
	}
}

d_slesvigholstein = {
	color = { 240 233 36 }
	color2 = { 255 255 255 }
	capital = 264 #Slesvig
	title_prefix = "DUCHIES_OF"
	culture = german
	
	bohemian = "Šlesvicko-Holštýnsko"
	colognian = "Schleswij-Holsteijn"
	danish = "Slesvig-Holsten"
	dutch = "Sleeswijk-Holstein"
	english = "Sleswick-Holsatia"
	flemish = "Sleeswijk-Holstein"
	franconian = "Schläswisch-Holschdä"
	frankish = "Slesvig-Holsace"
	frisian = "Slaswik-Holstiinj"
	icelandic = "Slésvík-Holtsetaland"
	lithuanian = "Šlezvigas-Holšteinas"
	old_saxon = "Sleswig-Holsteen"
	polish = "Szlezwik-Holsztyn"
	swiss = "Schleswig-Holstei"

	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
		OR = {
			german_cultures_trigger = yes
			culture = danish
		}
		ROOT = {
			has_landed_title = c_slesvig
			has_landed_title = c_holstein
		}
	}
}

d_slovakia = {
	color = { 209 61 61 }
}

d_sorbs = {
	color = { 170 205 110 }
	color2 = { 255 255 255 }
	
	culture = pommeranian
		
	capital = 364 # Luzycka
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_sweden = {
	color = { 55 112 170 }

	
	culture = norse	
	dignity = 10	
	capital = 290 # Uppland
	
	allow = {
		always = no
	}
}

d_syracuse = {
	color = { 226 204 28 }
	capital = 343
	
	allow = {
		may_create_duchy_trigger = yes
		culture_group = byzantine
		OR = {
			lower_tier_than = emperor
			has_landed_title = e_byzantium
		}
	}
}

d_tavasts = {
	color = { 131 21 21 }
	
	
	culture = finnish
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_tobruk = {
	color = { 10 48 243 }
}

d_trier = {
	color = { 10 48 243 }
	
	dignity = 10
	capital = 118
	
	allow = {
		may_create_duchy_trigger = yes
		religion_group = christian
		is_theocracy = yes
	}
}

d_tyrone = {
	color = { 137 14 21 }
}

d_ural = {
	color = { 208 178 78 }
}

d_varna = {
	color = { 208 93 251 }
}

d_veps = {
	color = { 120 90 40 }
	
	
	culture = mordvin
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_vlachs = {
	color = { 239 193 70 }
}

d_volga = {
	color = { 168 135 47 }
}

d_votes = {
	color = { 0 193 119 }
	
	
	culture = finnish
	
	allow = {
		always = no
	}

	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_vyatichi = { 
	color = { 169 183 125 }
	color2 = { 255 255 255 }
	
	culture = russian
		
	capital = 570 # Tver
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

d_wielkopolska = {
	color = { 252 144 144 }
}

d_zara = {
	color = { 203 217 255 }
}

d_zaragoza = {
	color = { 80 220 10 }
	color2 = { 255 255 255 }
	capital = 202 #Zaragoza

	english = "Saragossa"
	roman = "Caesaraugusta"
	bedouin_arabic = "Saraqusta"
	maghreb_arabic = "Saraqusta"
	levantine_arabic = "Saraqusta"
	egyptian_arabic = "Saraqusta"
	andalusian_arabic = "Saraqusta"
	
	allow = {
		may_create_duchy_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = duke
				OR = {
					culture = catalan
					culture = castillan
					culture = basque
					culture = andalusian_arabic
				}
			}
		}
	}
}

d_zemigalians = {
	color = { 183 21 21 }
	
	culture = lettigallish
	
	
	allow = {
		always = no
	}
	
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
}

# The Pentarchy

d_pentarch_rome = {
	color = { 255 249 198 }
	color2 = { 220 220 0 }
	
	capital = 333 # Rome
	culture = roman
	
	title_prefix = "PAPACY_OF"
	title = "POPE"
	foa = "POPE_FOA"
	
	allow = {
		always = no
	}
		
	pentarchy = chalcedonian
	pentarchy = orthodox
	pentarchy = monothelite
	pentarchy = iconoclast
	pentarchy = miaphysite
	pentarchy = monophysite
	pentarchy = apostolic
	pentarchy = paulician
	pentarchy = nestorian
	pentarchy = messalian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Hadrianus Agapitus:20 Alexander Anastasius:50 Benedictus Bonifatius:10 Callistus Coelestinus Clemens Constantinus Damasus:10
		Eugenius:10 Formosus:20 Gelasius:50 Gregorius Innocentius:125 Ioannes:150 Landus:10 Leo:125 Lucius Marinus:50 Martinus:25 Nicolaus Honorius Paschalis:10
		Pius:10 Romanus:10 Sergius Silvester:50 Stephanus:125 Theodorus:25 Urbanus Valentinus:10 Victor:50
	}
}

d_pentarch_constantinople = {
	color = { 180 84 147 }
	color2 = { 220 220 0 }
	
	capital = 496 # Constantinople
	culture = greek
	
	title_prefix = "PATRIARCHATE_OF"
	title = "PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"

	allow = {
		always = no
	}

	pentarchy = chalcedonian
	pentarchy = orthodox
	pentarchy = monothelite
	pentarchy = iconoclast
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	
	# Regnal names
	male_names = {
		Alexios Anastasios Arsenios Athanasios Antonios	Basileios Dositheos Eustathios Eustratios
		Euthymios Georgios Gerasimos Germanos Gregorios Ignatios Ioannes Ioseph Isaias Isidoros
		Kallistos Konstantinos Kosmas Leon Loukas Makarios Manuel Matthaios Maximos Methodios
		Metrophanes Michael Neophytos Nephon Nikolaos Nikephoros Nilos Pavlos Philotheos Photios
		Polyeuktos Sergios Sisinnios Stephanos Tarasios Theodoros Theodosios Theodotos Theoleptos
		Theophanes Theophylaktos Tryphon Zacharias
	}
}

d_pentarch_alexandria = {
	color = { 100 219 134 }
	color2 = { 220 220 0 }
	
	capital = 802 # Alexandria
	culture = egyptian_arabic
	
	title_prefix = "PAPACY_OF"
	title = "POPE"
	foa = "POPE_FOA"

	allow = {
		always = no
	}

	pentarchy = chalcedonian
	pentarchy = orthodox
	pentarchy = monothelite
	pentarchy = iconoclast
	pentarchy = miaphysite
	pentarchy = monophysite
	pentarchy = apostolic
	pentarchy = paulician
	pentarchy = nestorian
	pentarchy = messalian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_pentarch_antioch = {
	color = { 142 63 129 }
	color2 = { 220 220 0 }
	
	capital = 764 # Antioch
	culture = armenian
	
	title_prefix = "PATRIARCHATE_OF"
	title = "PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"

	allow = {
		always = no
	}
	
	pentarchy = chalcedonian
	pentarchy = orthodox
	pentarchy = monothelite
	pentarchy = iconoclast
	pentarchy = miaphysite
	pentarchy = monophysite
	pentarchy = apostolic
	pentarchy = paulician
	pentarchy = nestorian
	pentarchy = messalian
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_pentarch_jerusalem = {
	color = { 180 180 180 }
	color2 = { 220 220 0 }
	
	capital = 774 # Jerusalem
	culture = levantine_arabic
	
	title_prefix = "PATRIARCHATE_OF"
	title = "PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"

	allow = {
		always = no
	}

	pentarchy = chalcedonian
	pentarchy = orthodox
	pentarchy = monothelite
	pentarchy = iconoclast
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_latin_constantinople = {
	color = { 180 84 147 }
	color2 = { 220 220 0 }
	
	capital = 496 # Constantinople
	culture = latin
	
	title_prefix = "LATIN_PATRIARCHATE_OF"
	title = "LATIN_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	allow = {
		always = no # Only by special decision
	}
	
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_latin_alexandria = {
	color = { 100 219 134 }
	color2 = { 220 220 0 }
	
	capital = 802 # Alexandria
	culture = outremer
	
	title_prefix = "LATIN_PATRIARCHATE_OF"
	title = "LATIN_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	allow = {
		always = no # Only by special decision
	}
	
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_latin_antioch = {
	color = { 142 63 129 }
	color2 = { 220 220 0 }
	
	capital = 764 # Antioch
	culture = outremer
	
	title_prefix = "LATIN_PATRIARCHATE_OF"
	title = "LATIN_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	allow = {
		always = no # Only by special decision
	}
	
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_latin_jerusalem = {
	color = { 180 180 180 }
	color2 = { 220 220 0 }
	
	capital = 774 # Jerusalem
	culture = outremer
	
	title_prefix = "LATIN_PATRIARCHATE_OF"
	title = "LATIN_PATRIARCH"
	foa = "ECUMENICAL_PATRIARCH_FOA"
	
	allow = {
		always = no # Only by special decision
	}
	
	religion = catholic
	
	# Cannot be held as a secondary title
	primary = yes
	
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}


# Kingdoms
# Un-formables

k_almohad = {
	color = { 0 105 56 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_al-murabitids = {
	color = { 10 105 56 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_aydin = {
	color = { 238 43 172 }
	
	culture = turkish
	
	allow = {
		always = no
	}
}

k_beni_helal = {
	color = { 128 163 56 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_candar = {
	color = { 238 79 182 }
	
	culture = turkish
	
	allow = {
		always = no
	}
}

k_eretnid = {
	color = { 253 182 182 }
	
	culture = mongol
	
	allow = {
		always = no
	}
}

k_germiyan = {
	color = { 255 180 180 }
	
	culture = kurdish
	
	allow = {
		always = no
	}
}

k_hammadid = {
	color = { 149 180 17 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_kafsid = {
	color = { 109 130 20 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_karaman = {
	color = { 120 41 92 }
	
	culture = turkish
	
	allow = {
		always = no
	}
}

k_marinid = {
	color = { 46 255 5 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_mentese = {
	color = { 60 130 20 }
	
	culture = turkish
	
	allow = {
		always = no
	}
}

k_pechenegs = {
	color = { 173 110 43 }
	color2 = { 0 128 128 }
	
	capital = 543 # Oleshye	
	
	culture = pecheneg
	
	allow = {
		always = no
	}
}

k_saruhan = {
	color = { 144 171 225 }
	culture = turkish
	
	
	allow = {
		always = no
	}
}

k_tekke = {
	color = { 244 153 189 }
	
	culture = turkish
	
	allow = {
		always = no
	}
}

k_zenata = {
	color = { 0 71 189 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_zirid = {
	color = { 90 195 49 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_ziyanids = {
	color = { 5 76 194 }
	
	culture = maghreb_arabic
	
	allow = {
		always = no
	}
}

k_sakya_trizin = {
	color = { 95 190 50 }
}

# Republic Kingdoms
k_ancona = {
	color = { 130 227 180 }
	color2 = { 255 255 255 }

	capital = 350 # Ancona
	culture = umbrian

	dignity = 200 # Never want the Republic of Ancona to change primary title

	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

k_genoa = {
	color = { 234 131 110 }
	capital = 233 # Genoa
	culture = ligurian
	
	dignity = 200 # Never want the Republic of Genoa to change primary title
	
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

k_gotland = {
	color = { 96 92 240 }
	color2 = { 255 255 255 }
	assimilate = no

	capital = 301 #Gotland
	culture = swedish

	dignity = 200 # Never want the Republic of Gotland to change primary title

	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture_group = north_germanic
			}
		}
	}
}

k_hansa = {
	color = { 142 142 142 }
	color2 = { 255 255 255 }
	
	capital = 262 # Lubeck
	dignity = 200 # Never want the Hanseatic League to change primary title
	
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_lucca = {	
	color = { 0  255  115 }
	capital = 323 # Lucca
	culture = tuscan
	dignity = 200 # Never want them to change primary title
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

k_magna_graecia = {
	color = { 16 211 246 }
	
	capital = 344 #Taranto
	culture = greek
	
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = greek
					culture = sicilian_greek
				}
			}
		}
	}
}

k_marino = {	
	color = { 0  128  255 }
	capital = 329 # Urbino
	culture = umbrian
	dignity = 200 # Never want the republic of marino to change primary title
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

k_pisa = {
	color = { 196 192 140 }
	color2 = { 255 255 255 }
	
	capital = 327 # Pisa
	culture = tuscan
	
	dignity = 200 # Never want the Republic of Pisa to change primary title
	
	allow = {
		is_republic = yes
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

# Roman Province Kingdoms
k_roma = { # Province of Rome, only formable by Byzantium
	color = { 245 102 97 }
	capital = 333 #Roma
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	greek = "Italia"
	
	christian = 1000 #Crusade target weight
	hellenic_pagan_group = 1000 #Crusade target weight

	allow = {
		top_liege = { NOT = { has_landed_title = e_roman_empire } }
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
	gain_effect = {
		if = {
			limit = {
				top_liege = { has_landed_title = e_roman_empire }
			}
			k_roma = {
				destroy_landed_title = THIS
			}
		}
	}
}

k_thracia = {# Provincia Thrace, only formable by Rome
	color = { 122 180 210 }
	color2 = { 255 255 23 }
	capital = 496 #Byzantion
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	sunni = 100
	catholic = 100 #Crusade target weight
	zoroastrian_group = 50 # Crusade target weight
	hellenic_pagan_group = 500	
	orthodox = 5000 # Crusade target weight
	
	allow = {
		top_liege = { NOT = { has_landed_title = e_byzantium } }
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
	
	gain_effect = {
		if = {
			limit = {
				top_liege = { has_landed_title = e_byzantium }
			}
			k_thracia = {
				destroy_landed_title = THIS
			}
		}
	}
}

k_roman_asia = {# Provincia Asia
	color = { 101 102 163 }
	color2 = { 255 255 23 }	
	capital = 750 # Nikaea
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 75 # Crusade target weight
	muslim = 100 # Crusade target weight
	zoroastrian_group = 100 # Crusade target weight
	orthodox = 300 # Crusade target weight
	hellenic_pagan_group = 100
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_pontus = {# Provincia Pontus
	color = { 140 41 171 }
	color2 = { 255 255 255 }
	capital = 739 #	Sinope
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	orthodox = 300 # Crusade target weight
	sunni = 100 # Crusade target weight
	zoroastrian_group = 50 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_macedonia = {# Provincia Macedonia
	color = { 89 140 76 }
	color2 = { 255 255 20 }
	capital = 492 #Strymon
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	sunni = 100
	catholic = 100 #Crusade target weight
	zoroastrian_group = 50 # Crusade target weight
	hellenic_pagan_group = 500	
	orthodox = 5000 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_mauretania = {# Provincia Mauretania
	color = { 58 41 188 }
	color2 = { 255 255 255 }
	capital = 843 #Marakech
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 #Crusade target weight
	muslim = 100 # Crusade target weight
	west_african_pagan_reformed = 100
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_syria_palaestina = { # Province of Syria Palaestina
	color = { 180 180 180 }
	color2 = { 255 255 255 }
	capital = 774 # Jerusalem
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no

	catholic = 250 #Crusade target weight
	sunni = 50 #Crusade target weight
	shiite = 50 #Crusade target weight
	zoroastrian_group = 20 # Crusade target weight
	egyptian_pagan = 30 #Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_roman_mesopotamia = {# Provincia Mesopotamia
	color = { 55 128 67 }
	color2 = { 255 255 255 }
	capital	= 693 # Baghdad
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	shiite = 100 #Crusade target weight
	sunni = 100 #Crusade target weight
	muslim = 40 # Crusade target weight
	zoroastrian_group = 50 # Crusade target weight
	zun_pagan_reformed = 300 # Crusade target weight

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_viennensis = { # Provincia Viennensis
	color = { 60 153 151 }
	color2 = { 255 255 20 }
	capital = 228 # Dauphine Viennois
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 700 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_aegyptus = {# Provincia Aegyptus
	color = { 10 255 180 }
	color2 = { 255 255 255 }
	capital	= 796 # Cairo
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 100 #Crusade target weight
	sunni = 100 #Crusade target weight
	shiite = 100 #Crusade target weight
	orthodox = 20 # Crusade target weight
	zoroastrian_group = 15 # Crusade target weight
	egyptian_pagan = 1000 # Crusade target weight
	zun_pagan_reformed = 100 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_roman_africa = {# Provincia Africa
	color = { 21 255 3 }
	color2 = { 255 255 255 }
	capital = 817 # Tunis
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 # Crusade target weight
	muslim = 20 # Crusade target weight
	west_african_pagan_reformed = 5 # Crusade target weight
	egyptian_pagan = 50 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_illyricum = {# Provincia Illyricum
	color = { 205 145 145 }
	color2 = { 200 0 0 }
	capital = 465 # Zadar
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	orthodox = 300 # Crusade target weight
	catholic = 10 #Crusade target weight
	hellenic_pagan_group = 100 #crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_gallia = {# Provincia Gallia
	color = { 15 27 187 }
	color2 = { 255 255 20 }
	capital = 112 # Ile de France
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 100 #Crusade target weight
	norse_pagan_reformed = 10 # Crusade target weight
	german_pagan_reformed = 10 # Crusade target weight
	celtic_pagan_reformed = 30 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_germania = {# Provincia Germania
	color = { 160 95 95 }
	color2 = { 220 220 20 }
	capital = 121 #Nassau
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 # Crusade target weight
	norse_pagan_reformed = 10 # Crusade target weight
	german_pagan_reformed = 200 # Crusade target weight
	slavic_pagan_reformed = 10 # Crusade target weight
	baltic_pagan_reformed = 1 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_britannia = {# Provincia Britannia
	color = { 202 26 26 }
	color2 = { 255 255 255 }	
	capital = 32 # Middlesex
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 #Crusade target weight
	norse_pagan_reformed = 20 # Crusade target weight
	german_pagan_reformed = 20 # Crusade target weight
	celtic_pagan_reformed = 50 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_hispania = {# Provincia Hispania
	color = { 243 209 23 }
	color2 = { 200 80 10 }
	capital = 199 # Burgos
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 # Crusade target weight
	muslim = 10
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_caledonia = {# Provincia Caledonia
	color = { 199 175 12 }
	color2 = { 255 255 255 }
	capital = 43 #Gowrie
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 #Crusade target weight
	norse_pagan_reformed = 20 # Crusade target weight
	german_pagan_reformed = 20 # Crusade target weight
	celtic_pagan_reformed = 100 #Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_hibernia = {# Provincia Hibernia
	color = { 6 127 2 }
	color2 = { 255 255 255 }
	capital = 11 # Dublin
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 #Crusade target weight
	norse_pagan_reformed = 20 # Crusade target weight
	german_pagan_reformed = 20 # Crusade target weight
	celtic_pagan_reformed = 1000 #crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_pannonia_dacia = {# Provincia Pannonia-Dacia
	color = { 92 198 88 }
	color2 = { 255 255 255 }
	capital = 522 # Pest
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	catholic = 10 #Crusade target weight
	slavic_pagan_reformed = 200 # Crusade target weight
	tengri_pagan_reformed = 1000 #crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

k_roman_armenia = {# Provincia Armenia
	color = { 240 128 128 }
	color2 = { 255 255 255 }
	capital = 682 # Vaspurakan
	culture = roman
	title_prefix = "ROMAN_PROVINCE_OF"
	title = "Consul"
	title_female = "Consul"
	dynasty_title_names = no
	
	orthodox = 10 #Crusade target weight
	tengri_pagan_reformed = 1000 #crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			is_not_titular_trigger = yes
			has_holder_trigger = yes
		}
	}
}

# Special Arch/Grand Duchy Kingdom Titles
k_arch_austria = { # Archduchy of Austria
	color = { 0 255 238 }
	capital = 449 # Osterreich
	culture = austrian
	dignity = 10
	title_prefix = "ARCHDUKE_OF"
	title = "ARCHDUKE"
	title_female = "ARCHDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_austria
			}
		}
	}
}

k_brandenburg = { # Margraviate of Brandenburg
	color = { 145 91 170 }
	color2 = { 255 255 255 }
	capital = 365 #Brandenburg
	culture = old_saxon
	dignity = 10
	title_prefix = "MARGRAVE_OF"
	title = "MARGRAVE"
	title_female = "MARGRAVINE"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_brandenburg
			}
		}
	}
}

k_grand_bavaria = {
	color = { 18 121 121 }
	color2 = { 255 255 255 }
	capital = 360 #Oberbayern
	culture = bavarian
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_bavaria
			}
		}
	}
}

k_grand_franconia = {
	color = { 100 9 170 }
	color2 = { 255 255 255 }
	capital = 123 #Mainz
	culture = franconian
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_franconia
			}
		}
	}
}

k_grand_luxembourg = { # Grand duchy of Luxembourg
	color = { 210 100 100 }
	capital = 115 # Luxembourg
	culture = franconian
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_luxembourg
			}
		}
	}
}

k_grand_saxony = {
	color = { 120 25 25 }
	color2 = { 74 132 75 }
	capital = 310 #Anhalt
	culture = old_saxon
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				completely_controls_region = custom_hre_saxony
				german_cultures_trigger = yes	
			}
		}
	}
}

k_grand_swabia = {
	color = { 246 203 203 }
	color2 = { 255 255 255 }
	capital = 249 #Schwaben
	culture = swabian
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
				completely_controls_region = custom_hre_swabia
			}
		}
	}
}

k_grand_tuscany = { # Grand duchy of Tuscany
	color = { 251  255  0 }
	capital = 328 # Firenze
	culture = tuscan
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	foa = "GRANDDUKE_FOA_TUSCANY"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					german_cultures_trigger = yes
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
				}
				completely_controls_region = custom_hre_tuscany
			}
		}
	}
}

k_grand_milan = { # Grand duchy of Milan
	color = { 216  255  0 }
	color2 = { 255 255 255 }
	capital = 235 # Lombardy
	culture = lombard
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					german_cultures_trigger = yes
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
				}
				completely_controls = d_lombardia
				completely_controls = d_modena
			}
		}
	}
}

k_grand_naples = { # Grand Duchy of Naples
	color = { 216  0  216 }
	color2 = { 255 255 255 }
	capital = 334 # Napoli
	culture = neapolitan
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					german_cultures_trigger = yes
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
				}
				completely_controls = d_capua
				OR = {
					completely_controls = d_salerno
					completely_controls = d_benevento
				}
			}
		}
	}
}

k_grand_sicily = { # Grand Duchy of Sicily
	color = { 233 242 51 }
	color2 = { 255 255 255 }
	capital = 340 # Palermo
	culture = sicilian
	dignity = 10
	title_prefix = "GRANDDUKE_OF"
	title = "GRANDDUKE"
	title_female = "GRANDDUCHESS"
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					german_cultures_trigger = yes
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
					culture = sicilian_greek
					culture = sicilian_arabic
				}
				completely_controls = d_sicily
			}
		}
	}
}

# Anglo-Saxon
k_anglia = {
	color = { 20 72 255 }
	capital = 71 # Suffolk
	culture = saxon
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_essex = {
	color = { 91 60 24 }
	capital = 72 # Essex
	culture = saxon
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_kent = {
	color = { 115 42 199 }
	capital = 73 # Kent
	culture = saxon
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_mercia = {
	color = { 227 199 41 }
	
	capital = 63 # Derby
	culture = saxon
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_northumbria = {
	color = { 255 65 20 }
	
	capital = 57 # York
	culture = saxon
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_sussex = {
	color = { 0 221 255 }
	capital = 25 # Sussex
	culture = saxon
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}

k_wessex = {
	color = { 101 206 15 }
	
	capital = 26 # Winchester
	culture = saxon
	saxon = "Westseaxna"
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = saxon
			}
		}
	}
}


# Arberian
k_albania = {
	color = { 228 30 32 }
	capital = 470 #Dyrrachion
	culture = arberian
	dignity = 10
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = arberian
			}
		}
	}
}

# Avar
k_avaria = {
	color ={ 250 120 90 }
	culture = avar
	
	capital = 444 # Esztergom
	
	allow = {
		may_create_kingdom_trigger = yes
		k_carpathia = {
			NOT = { has_title_flag = carpathia_is_avaria }
		}
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = avar
			}
		}
	}
}

# Assyrian
k_assyria = {
	color ={ 0 255 255 }
	culture = assyrian
	
	capital = 697 # Mosul
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = assyrian
			}
		}
	}
}

# Bedouin Arabic
k_bahrain = {
	color = { 108  21  124 }
	capital = 870 # Bahrein
	culture = bedouin_arabic
	dignity = 10
	#dynasty_title_names = no
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = bedouin_arabic
			}
		}
	}
}

# Beja
k_bazin = {
	color = { 61 255 26 }
	color2 = { 255 255 255 }
	capital = 1320 # Aidhab
	culture = beja
	dignity = 10
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = beja
			}
		}
	}
}

# Bohemian
k_moravia = {
	color = { 158 102 36 }
	color2 = { 200 0 0 }
	
	culture = bohemian
	capital = 441 # Brno
	slavic_pagan_reformed = 100 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = bohemian
			}
		}
	}
}


# Breton
k_strath = {
	color = { 0  100  55 }
	capital = 47 # Clydesdale
	culture = breton	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = breton
			}
		}
	}
}


# Castillan
k_leon = { # Needs to be up here for the k_asturias allow trigger
	color = { 233 158 51 }
	color2 = { 255 255 255 }
	
	dignity = 1 # One more county than de jure
	capital = 190 # Leon
	culture = castillan
	
	catholic = 10 # Crusade target weight
	muslim = 25 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		FROM = {
			any_previous_holder = { always = yes }
		}
	}
}


# Catalan
k_mallorca = {
	color = { 70 130 75 }
	capital = 827 # Mallorca
	culture = catalan
	#dynasty_title_names = no
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = catalan
			}
		}
	}
}

k_valencia = {
	color = { 44 99 222 }
	color2 = { 255 255 255 }
	
	capital = 171 # Valencia	
	culture = catalan
	
	bedouin_arabic = "Balansiyya"
	maghreb_arabic = "Balansiyya"
	levantine_arabic = "Balansiyya"
	egyptian_arabic = "Balansiyya"
	andalusian_arabic = "Balansiyya"
	sicilian_arabic = "Balansiyya"
	
	catholic = 10 # Crusade target weight
	chalcedonian = 10 #Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				culture = catalan
				completely_controls = d_valencia
				primary_title = { real_tier = EMPEROR }
			}
		}
	}
}

# Cornish
k_cornwall = {
	color = { 195 65 15 }
	capital = 31 # Cornwall
	
	culture = cornish
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = cornish
			}
		}
	}
}


# Croatian
k_slavonia = {
	color = { 87 108 155 }
	culture = croatian
	capital = 462 # Krizevci
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = croatian
			}
		}
	}
}


# Danish (edited, now north germanic)
k_dublin = {
	color = { 255 65 20 }
	capital = 11 # Dublin

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture_group = north_germanic
			}
		}
	}
}

k_jorvik = {
	color = { 173 121 121 }
	capital = 57 # York
	dignity = 10
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture_group = north_germanic
			}
		}
	}
}

# Dutch
k_belgium = {
	color = { 214 100 6 }
	capital = 117 # Brabant
	culture = dutch
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = dutch
			}
		}
	}
}

k_tnetherlands = {
	color = { 0 54 182 }
	capital = 80 #Holland
	culture = dutch
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = dutch
			}
		}
	}
}


# Ethiopian
k_gondar = {
	color = { 223 223 211 }
	color2 = { 255 255 255 }
	culture = ethiopian
	capital = 883 #Gondar
	dignity = 100

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				religion_group = jewish_group
			}
		}
	}
}


# Frankish
k_franks = {
	color = { 106  0  255 }
	capital = 112 # Ile de France
	culture = old_frankish
	dignity = 10
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = old_frankish
					culture = frankish
				}
			}
		}
	}
}

k_upper_burgundy = {
	color = { 250 54 98 }
	capital = 239 # Geneve
	culture = burgundian
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = frankish
					culture = burgundian
				}
			}
		}
	}
}


# German
k_austria = { # Kingdom of Austria
	color = { 224 67 46 }
	capital = 449 # Osterreich
	culture = austrian
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_franconia = {
	color = { 100 9 170 }
	color2 = { 255 255 255 }
	capital = 123 #Mainz
	culture = franconian
	dignity = 10
	
	catholic = 700 # Crusade target weight
	
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_illyria = {
	color = { 106  28  133 }
	capital = 456 # Karnten
	culture = bavarian
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_luxembourg = { # Kingdom of Luxembourg
	color = { 0 150 255 }
	capital = 115 # Luxembourg
	culture = franconian
	dignity = 10
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_prussia = {
	color = { 121 176 209 }
	capital = 370 # Marienburg
	culture = teutonic
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					german_cultures_trigger = yes
					culture = prussian
				}
			}
		}
	}
}

k_swabia = {
	color = { 246 203 203 }
	color2 = { 255 255 255 }
	capital = 249 #Schwaben
	culture = swabian
	dignity = 10
	
	catholic = 700 # Crusade target weight
	
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_swiss = {
	color = { 250 0 0 }
	capital = 245 #Schwyz
	culture = swiss
	german = "Schweiz"
	swiss = "Schwyz"
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}

k_wurttemberg = {
	color = { 252 224 101 }
	capital = 253 #Wurttemberg
	culture = swabian
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				german_cultures_trigger = yes
			}
		}
	}
}


# Greek
k_antioch = {
	color = { 255 255 0 }
	capital = 764 #Antioch
	culture = greek
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_edessa = {
	color = { 255 119 0 }
	capital = 699 #Edessa
	culture = greek
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_epirus = {
	color = { 159 158 29 }
	capital = 472
	culture = greek
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_krete = {
	color = { 255 0 0 }
	culture = greek
	capital = 479 # Kaneia
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_macedon = {
	color = { 250 169 44 }
	color2 = { 255 255 255 }
	
	capital = 490 # Thessalonike
	culture = greek
	
	catholic = 10 # Crusade target weight
	chalcedonian = 10 #Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				has_landed_title = c_chalkidike
				has_landed_title = c_ochrid
				has_landed_title = c_strymon
				has_landed_title = c_thessalonike
				OR = {
					culture = arberian
					culture = bulgarian
					culture = greek
				}
			}
		}
	}
}

k_morea = {
	color = { 54  167  156 }
	capital = 481 #Korinthos
	culture = greek
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_sparta = {
	color = { 228 30 32 }
	capital = 478 #Monemvasia
	culture = greek
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = greek
			}
		}
	}
}

k_thessalonika = {
	color = { 162  210  210 }
	color2 = { 255 255 23 }
	culture = greek
	capital = 490 #Thessalonica

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					religion = catholic
					religion = chalcedonian
				}
			}
		}
	}
}


# Hungarian
k_hungary = {
	color = { 250 120 90 }
	
	culture = hungarian
	capital = 522 # Pest
	dignity = 20
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = hungarian
			}
		}
	}
}

k_magyar = {
	color = { 187 70 70 }
	
	culture = hungarian
	capital = 522 # Pest
	
	allow = {
		NOT = { is_title_active = k_hungary }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = hungarian
			}
		}
	}
}

# Italian
k_tuscany = {	# Kingdom of Tuscany
	color = { 244 227 160 }
	capital = 328 # Firenze
	culture = tuscan
	dignity = 10
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = tuscan
					culture = italian
				}
			}
		}
		completely_controls_region = custom_hre_tuscany
	}
}

k_corsica = {
    color = { 90 65 128 }
    color2 = { 255 255 255 }
    
    capital = 324 # Corsica
    
    allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = corsican
			}
		}
	}
}

# Dalmatia
k_dalmatia = {
	color = { 150 120 250 }
	color2 = { 255 255 255 }
	culture = dalmatian
	capital = 465 # Zadar
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				or = {
					is_dalmatian_meltingpot_culture_yugoslav = yes
					is_dalmatian_meltingpot_culture_italian = yes
					german_cultures_trigger = yes
					culture = bulgarian
					culture = greek
					culture = hungarian
					culture = sicilian
					culture = sicilian_greek
				}
				completely_controls = d_dalmatia
			}
		}
	}
}

k_naples = {
	color = { 0 0 255 }
	color2= { 255 216 0 }
	
	culture = neapolitan
	capital = 334 # Napoli
	
	allow = {
		NOT = { top_liege = { has_landed_title = e_hre } }
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					is_italian_trigger = yes
					culture = longobard
					culture = sicilian
					culture = frankish
					culture = norman
					culture = catalan
				}
			}
		}
	}
}

k_trinacria = {
	color = { 250 0 0 }
	color2= { 255 255 255 }
	culture = sicilian
	capital = 340 #Palermo
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				custom_tooltip = {
					text = catholic_group_christian
					hidden_tooltip = {
						OR = {
							religion = chalcedonian
							religion = catholic
							religion = cathar
							religion = fraticelli
							religion = waldensian
							religion = lollard
							religion = adoptionist
						}
					}
				}			
			}
		}
	}
}

# Kurdish
k_kurdistan = {
	color ={ 198 18 18 }
	culture = kurdish
	
	capital = 685 # Kurdistan
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = kurdish
			}
		}
	}
}

# Jewish
k_israel = {
	color = { 120 120 220 }
	color2 = { 255 255 255 }
	
	jewish_group = 1000 # Crusade target weight	
	catholic = 250 #Crusade target weight
	sunni = 50 #Crusade target weight
	shiite = 50 #Crusade target weight
	zoroastrian_group = 20 # Crusade target weight
	egyptian_pagan = 30 #Crusade target weight	

	capital = 774 # Jerusalem
	dignity = 100 # Counted as having this many more counties than it does

	allow = {
		custom_tooltip = {
			text = ISRAEL_HAS_BEEN_MADE
			hidden_tooltip = {	
				has_global_flag = israel_remade
			}
		}
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				religion_group = jewish_group
			}
		}
	}
}


# Levantine Arabic
k_badawi = {
	short_name = yes
	color = { 234 255 0 }
	capital = 717 # Najd
	culture = levantine_arabic
	#dynasty_title_names = no
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = levantine_arabic
			}
		}
	}
}

k_iraq = {
	color = { 0 204 85 }
	capital = 693 # Baghdad
	culture = levantine_arabic
	#dynasty_title_names = no
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = levantine_arabic
			}
		}
	}
}

k_jordan = {
	color = { 89 172 235 }
	capital = 724 # Amman
	culture = levantine_arabic
	#dynasty_title_names = no
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = levantine_arabic
			}
		}
	}
}

k_lahej = {
	color = { 0 250 142 }
	capital = 858 # Aden
	culture = levantine_arabic
	#dynasty_title_names = no
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = levantine_arabic
			}
		}
	}
}

# Lombard
k_italy = {
	color = { 31 138 40 }
	color2 = { 255 255 255 }
	
	capital = 235 # Lombardia
	
	culture = italian
	
	christian = 1000 #Crusade target weight
	hellenic_pagan_group = 1000 #Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				is_italian_trigger = yes
			}
			ROOT = {
				lower_tier_than = king
				culture = longobard
			}
			ROOT = {
				lower_tier_than = king
				culture = sicilian
			}
		}
	}
}

# Norman
k_normandy = {
	color = { 73 136 4 }
	color2 = { 255 255 255 }
	
	culture = norman
	capital = 97 #Rouen (Arques)
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = norman
			}
		}
	}
}


# Occitan
k_gascony = {
	color = { 106 255 0 }
	capital = 209 #Armagnac
	culture = occitan
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = occitan
			}
		}
	}
}

k_provence = {
	color = { 90 189 250 }
	capital = 221 # Provence
	culture = occitan
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = occitan
			}
		}
	}
}

k_visigoth = {
	color = { 210 2 217 }
	capital = 214 # Toulouse
	culture = visigothic
	dignity = 10	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = visigothic
			}
		}
	}
}


# Persian
k_qarakhnid = { # Actually Khiva
	color = { 39 138 51 }
	color2 = { 255 255 255 }
	
	capital = 626 # Khiva
	culture = persian
	
	tengri_pagan_reformed = 50
	zoroastrian_group = 700 # Crusade target weight
	
	sogdian = "Sogdiana"
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = persian
			}
		}
	}
}


# Pommeranian
k_wend = {
	color = { 142 160 40 }
	
	capital = 260 #Mecklemburg
	culture = pommeranian
	dignity = 100

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = pommeranian
			}
		}
	}
}


# Portugese
k_algarve = {
	color = { 54 167 156 }
	capital = 162 # Silves
	culture = portuguese
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = portuguese
			}
		}
	}
}

k_spanish_galicia = {
	color = { 255 224 94 }
	color2 = { 255 255 255 }
	
	capital = 156 # Coruña	
	culture = portuguese
	
	catholic = 250 # Crusade target weight
	muslim = 25 # Crusade target weight
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture_group = iberian
			}
		}
	}
}


# Romanian
k_romania = {
	color = { 91 91 102 }
	
	capital = 514 #Turnu
	culture = romanian
	dignity = 10

	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				culture = romanian
			}
		}
	}
}


# Serbian
k_bosnia = {
	color = { 0 86 148 }
	color2= { 255 255 255 }
	
	culture = serbian
	serbian = "Bosna"
	croatian = "Bosna"
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = croatian
					culture = serbian
					culture = yugoslavian
				}
				OR = {
					religion = catholic
					religion = chalcedonian
					religion = bogomilist
				}
			}
		}
	}
}

# Swedish
k_scania = {
	color = { 0 255 234 }
	capital = 303 # Skåne
	culture = swedish
	
	swedish = "Skåne"
	danish = "Skåne"
	norwegian = "Skåne"
	norse = "Skåne"
	
	dignity = 10
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				lower_tier_than = king
				OR = {
					culture = norse
					culture = danish
					culture = swedish
					culture = norwegian
				}
			}
		}
	}
}


# Turkish
k_ottoman = {
	color = { 38 127 0 }
	
	culture = turkish
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
	}
}

k_rum = {
	color = { 144 182 161 }
	
	culture = turkish
	dynasty_title_names = no         # Will not be named "Seljuk", etc.
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
	}
}

k_daylam = {
	color={ 70 125 147 }
	color2={ 255 255 255 }
	capital = 666 # Gilan
	
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
		OR = {
			culture = persian
			culture = sogdian
			culture = afghan
			culture = saka
			culture = baloch
			culture = turkish
			culture = kurdish
			culture = armenian
			culture = assyrian
			culture = georgian
			culture = grecopersian
			culture = greek
			culture = alan
		}
	}
}


##################################
##
## FLAGS ONLY
## Used for their CoA via set_coa, serve no other purpose
##################################

k_england_norman = { #England of William the Conqueror
	color = { 202 26 26 }
}

k_england_saxon = { #Saxon England
	color = { 202 26 26 }
}

k_englandnorwegian = { #England of Harald of Norway
	color = { 202 26 26 }
}

k_plantagenet = { #England of the Plantagenet's
	color ={ 202 26 26 }
}

d_lancaster_saxon = {
	color = { 255 48 0 }
}

d_lancaster_norman = {
	color = { 255 48 0 }
}

d_york_saxon = {
	color = { 255 90 15 }
}

d_york_norman = {
	color = { 255 90 15 }
}

d_norfolk_saxon = {
	color = { 200 90 0 }
}

d_norfolk_norman = {
	color = { 200 90 0 }
}

d_bedford_saxon = {
	color = { 241 15 15 }
}

d_bedford_norman = {
	color = { 241 15 15 }
}

d_gloucester_saxon = {
	color = { 241 79 15 }
}

d_gloucester_norman = {
	color = { 241 79 15 }
}

d_hereford_saxon = {
	color = { 241 47 15 }
}

d_hereford_norman = {
	color = { 241 47 15 }
}

d_somerset_saxon = {
	color = { 241 15 63 }
}

d_somerset_norman = {
	color = { 241 15 63 }
}

d_canterbury_saxon = {
	color = { 241 100 15 }
}

d_canterbury_norman = {
	color = { 241 100 15 }
}

d_oxford_saxon = {
	color = { 63 125 214 }
}

d_oxford_norman = {
	color = { 63 125 214 }
}

d_cornwall_saxon = {
	color = { 181 60 10 }
}

d_cornwall_norman = {
	color = { 181 60 10 }
}

##################################
##
## MERCHANT REPUBLICS
##
##################################

d_amalfi = {
	color = { 140 200 230 }
	
	capital = 935 # Amalfi	
	dignity = 10
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
	}
}

d_gaete = {
	color = { 220 220 200 }
	color2 = { 250 0 0 }
	
	capital = 1503 # Gaète
	dignity = 5
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
	}
}
                
d_noli = {
	color = { 250 0 0 }
	color2 = { 250 250 250 }
	
	capital = 1525 # Noli
	dignity = 5
	
	allow = {
		may_create_duchy_trigger = yes
		is_republic = yes
	}
}

##################################
##
## MERCHANT PALACES
##
##################################

##############################
# Unknown
##############################

b_rassid = {
	culture = bedouin_arabic
	religion = shiite
}

b_sulaihid = {
	culture = bedouin_arabic
	religion = shiite
}

b_hatimid = {
	culture = bedouin_arabic
	religion = shiite
}

b_qubaybid = {
	culture = bedouin_arabic
	religion = shiite
}

b_rasulid = {
	culture = bedouin_arabic
	religion = sunni
}

##############################
# Gaète
##############################

b_coniulo  = {
	culture = neapolitan
	religion = catholic
}

b_digaeta = {
	culture = neapolitan
	religion = catholic
}

b_devio = {
	culture = neapolitan
	religion = catholic
}

b_detonti = {
	culture = neapolitan
	religion = catholic
}

b_conca = {
	culture = neapolitan
	religion = catholic
}

##############################
# Noli
##############################

b_dinoli = {
	culture = ligurian
	religion = catholic
}

b_colombo = {
	culture = ligurian
	religion = catholic
}

b_giraldi = {
	culture = ligurian
	religion = catholic
}

b_brignole = {
	culture = ligurian
	religion = catholic
}

b_alighieri = {
	culture = ligurian
	religion = catholic
}

##############################
# Ancone
##############################

b_sebenico = {
	culture = emilian
	religion = catholic
}

b_litto = {
	culture = emilian
	religion = catholic
}

b_pizzicolli = {
	culture = emilian
	religion = catholic
}

b_foschi = {
	culture = emilian
	religion = catholic
}

b_segatori = {
	culture = emilian
	religion = catholic
}

##############################
# Raguse
##############################

b_drzic = {
	culture = serbian
	religion = orthodox
}

b_gucetic = {
	culture = serbian
	religion = orthodox
}

b_dobricevic = {
	culture = serbian
	religion = orthodox
}

b_mencetic = {
	culture = serbian
	religion = orthodox
}

b_vetranovic = {
	culture = serbian
	religion = orthodox
}

##############################
# Venice
##############################

b_dandolo = {
	culture = veneto
	religion = catholic
}

b_contarini = {
	culture = veneto
	religion = catholic
}

b_faliero = {
	culture = veneto
	religion = catholic
}

b_morosini = {
	culture = veneto
	religion = catholic
}

b_ziani = {
	culture = veneto
	religion = catholic
}

b_candiano = {
	culture = veneto
	religion = catholic
}

b_orsoleo = {
	culture = veneto
	religion = catholic
}

b_participazio = {
	culture = veneto
	religion = catholic
}

b_tribuno = {
	culture = veneto
	religion = catholic
}

b_tradonico = {
	culture = veneto
	religion = catholic
}

b_antenoreo = {
	culture = veneto
	religion = catholic
}

b_galbaio = {
	culture = veneto
	religion = catholic
}

b_monegario = {
	culture = veneto
	religion = catholic
}

b_gaulo = {
	culture = veneto
	religion = catholic
}

b_silvio = {
	culture = veneto
	religion = catholic
}

b_michele = {
	culture = veneto
	religion = catholic
}

b_mastropiero = {
	culture = veneto
	religion = catholic
}

b_tiepolo = {
	culture = veneto
	religion = catholic
}

b_zen = {
	culture = veneto
	religion = catholic
}

b_gradenigo = {
	culture = veneto
	religion = catholic
}

b_zorzi = {
	culture = veneto
	religion = catholic
}

b_soranzo = {
	culture = veneto
	religion = catholic
}

b_polani = {
	culture = veneto
	religion = catholic
}

##############################
# Genoa
##############################

b_doria = {
	culture = ligurian
	religion = catholic
}

b_spinola = {
	culture = ligurian
	religion = catholic
}

b_grimaldi = {
	culture = ligurian
	religion = catholic
}

b_fieschi = {
	culture = ligurian
	religion = catholic
}

b_embriaco = {
	culture = ligurian
	religion = catholic
}

##############################
# Pisa
##############################

b_dappiano = {
	culture = tuscan
	religion = catholic
}

b_della_gherardesca = {
	culture = tuscan
	religion = catholic
}

b_visconti = {
	culture = tuscan
	religion = catholic
}

b_alliata = {
	culture = tuscan
	religion = catholic
}

b_caetani = {
	culture = tuscan
	religion = catholic
}

##############################
# Lubeck
##############################

b_bardewik = {
	culture = german
	religion = catholic
}

b_vorrade = {
	culture = german
	religion = catholic
}

b_warendorp = {
	culture = german
	religion = catholic
}

b_pat_luneburg = {
	culture = german
	religion = catholic
}

b_wittenborg = {
	culture = german
	religion = catholic
}

##############################
# Gotland
##############################

b_stenkyrka = {
	culture = swedish
	religion = catholic
}

b_guldsmed = {
	culture = swedish
	religion = catholic
}

b_hejnum = {
	culture = swedish
	religion = catholic
}

b_gildehusen = {
	culture = swedish
	religion = catholic
}

b_strabain = {
	culture = swedish
	religion = catholic
}

##############################
# Amalfi
##############################

b_konstantios = {
	culture = greek
	religion = catholic
}

b_mauro = {
	culture = neapolitan
	religion = catholic
}

b_musco = {
	culture = neapolitan
	religion = catholic
}

b_polkarios = {
	culture = greek
	religion = catholic
}

b_urso = {
	culture = neapolitan
	religion = catholic
}

b_amalfinos = {
	culture = greek
	religion = catholic
}

b_manginos = {
	culture = greek
	religion = catholic
}

b_kanakares = {
	culture = greek
	religion = catholic
}

b_sorrenti = {
	culture = neapolitan
	religion = catholic
}

b_ravelli = {
	culture = neapolitan
	religion = catholic
}

### SPECIAL
d_papal_knights = {
	color = { 130 173 70 }
	color2 = { 255 255 255 }

	capital = 333 # Rome
	
	allow = {
		OR = {
			has_landed_title = k_papal_state
			AND = {
				has_landed_title = d_pentarch_rome
				k_papal_state = { has_holder = no }
			}
		}
	}
	
	culture = frankish
		
	mercenary = yes

	title = "GRANDMASTER"
	foa = "GRANDMASTER_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes

	strength_growth_per_century = 0.33
	
	mercenary_type = papal_knights_composition
}

k_vandalia = {
	color = { 152 0 255 }
	color2 = { 159 109 78 }

	capital = 817 #Carthage

	culture = vandalic
	allow = {
		may_create_kingdom_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
			ROOT = {
				culture = vandalic
			}
		}
	}
}
e_greater_israel = {
	color = { 0 38 255 }
	color2 = { 0 0 0 }
	short_name = yes
	dynasty_title_names = no
	capital = 774 # Jerusalem
	culture = israeli
	creation_requires_capital = yes
	
	israeli = "Eretz Yisrael Hashlemah"
	ashkenazi = "Eretz Yisrael Hashlemah"
	sephardi = "Eretz Yisrael Hashlemah"
	mizrahim = "Eretz Yisrael Hashlemah"
	
	allow = {
		has_global_flag = greater_israel_founded
		may_create_empire_trigger = yes
		OR = {
			has_holder_trigger = yes
			is_not_titular_trigger = yes
		}
		ROOT = {
			OR = {
				religion_group = jewish_group
				culture_group = israelite
			}
		}
	}
}