﻿###################
# MILITARY ORDERS #
###################

# Defined - Catholic & Pre-Catholic #

# Order of Christ (Portugal)
ho_christian_order_of_christ = {
	type = military
	government = holy_order_government
	title = d_neow_military_order_of_christ
	name = "holy_order_order_of_christ"
	coat_of_arms = "ho_order_of_christ"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder } }
			scope:founder = { has_variable = military_order_game_start_founder_4 }
			scope:province.county ?= title:c_lisboa
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { rite = rite:iberian_rite }
			scope:founder = { culture = { OR = { this = culture:portuguese has_cultural_pillar = heritage_hispanic has_cultural_pillar = heritage_lusotanian } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_lisboa }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder_4 } }
			add = 100000000
		}
	}

	men_at_arms = { caballero armored_horsemen armored_footmen }
}

#Knights Hospitaller
ho_christian_knights_hospitaller = {
	
	type = military
	government = holy_order_government
	title = d_neow_military_hospitallers
	name = "holy_order_order_militant_of_st_john"
	coat_of_arms = "ho_knights_hospitaller"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder } }
			scope:founder = { has_variable = military_order_game_start_founder_2 }
			scope:province.county ?= title:c_spoleto
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_italian has_cultural_pillar = heritage_cisalpine } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_spoleto }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder_2 } }
			add = 100000000
		}
	}

	men_at_arms = { armored_horsemen armored_footmen }

	effect = {
		scope:leader = {
			add_trait = lifestyle_physician
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 25 50 }
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_celestial_hierarchy }
	}
}

#Teutonic Knights
ho_christian_teutonic_order = {
	
	type = military
	government = holy_order_government
	title = d_neow_military_teutonic_order
	name = "holy_order_order_militant_of_st_mary"
	coat_of_arms = "ho_teutonic_order"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder } }
			scope:founder = { has_variable = military_order_game_start_founder_1 }
			scope:province.county ?= title:c_vienna
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { has_cultural_pillar = heritage_central_germanic } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_vienna }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder_1 } }
			add = 100000000
		}
	}

	men_at_arms = { armored_footmen crossbowmen }

	effect = {
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_peace_of_god }
	}
}

#Knights of St Lazarus
#Who cared for lepers (as well as fighting in battles)
ho_knights_of_st_lazarus = {

	type = military
	government = holy_order_government
	title = d_neow_military_saint_lazarus
	name = "holy_order_order_militant_of_st_lazarus"
	coat_of_arms = "ho_knights_of_st_lazarus"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder } }
			scope:founder = { has_variable = military_order_game_start_founder_3 }
			scope:province.county ?= title:c_dublin
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { has_cultural_pillar = heritage_goidelic } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_dublin }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = military_order_game_start_founder_3 } }
			add = 100000000
		}
	}

	men_at_arms = { armored_horsemen armored_footmen }

	effect = {
		scope:leader = {
			add_trait = lifestyle_physician
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 25 50 }
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_dulia }
	}
}

###################
# MONASTIC ORDERS #
###################

# Fixed

#Benedictines - extant by earliest game start
ho_contemplative_hospitaller_johannics = {
	
	type = monastic
	government = monastic_holy_order_government
	title = d_contemplative_hospitaller_johannics
	name = "contemplative_hospitaller_johannics"
	coat_of_arms = "ho_contemplative_hospitaller_johannics"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_2 } }
			scope:founder = { has_variable = monastic_game_start_founder_2 }
			scope:province.county ?= title:c_capua
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_italian has_cultural_pillar = heritage_cisalpine } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_capua }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_2 } }
			add = 100000000
		}
	}


	effect = {
		scope:leader = {
			add_trait = lifestyle_physician
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 25 50 }
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_celestial_hierarchy }
	}
}

ho_contemplative_teutonic_order = {
	
	type = monastic
	government = monastic_holy_order_government
	title = d_contemplative_teutonic_order
	name = "contemplative_teutonic_order"
	coat_of_arms = "ho_contemplative_teutonic_order"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_1 } }
			scope:founder = { has_variable = monastic_game_start_founder_1 }
			scope:province.county ?= title:c_wiener_neustadt
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { has_cultural_pillar = heritage_central_germanic } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_wiener_neustadt }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_1 } }
			add = 100000000
		}
	}


	effect = {
		scope:leader = {
			add_trait = lifestyle_physician
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 25 50 }
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_peace_of_god }
	}
}

ho_contemplative_hospitaller_lazareans = {
	
	type = monastic
	government = monastic_holy_order_government
	title = d_contemplative_hospitaller_lazareans
	name = "contemplative_hospitaller_lazareans"
	coat_of_arms = "ho_contemplative_hospitaller_lazareans"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_3 } }
			scope:founder = { has_variable = monastic_game_start_founder_3 }
			scope:province.county ?= title:c_offaly
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { culture = { has_cultural_pillar = heritage_goidelic } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_offaly }
			add = 500
		}
		if = {
			limit = { scope:founder = { has_variable = monastic_game_start_founder_3 } }
			add = 100000000
		}
	}


	effect = {
		scope:leader = {
			add_trait = lifestyle_physician
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 25 50 }
			}
		}
		scope:new_holy_order = { set_order_tenet = tenet:tenet_dulia }
	}
}

# Greek Catholic military orders (the faith is shared with Latin Catholics,
# so these names are selected by rite, not by a faith-wide name pool).
ho_neow_greek_catholic_sepulchre = {
	type = military
	government = holy_order_government
	name = "holy_order_NEOW_greek_catholic_sepulchre"
	coat_of_arms = "ho_NEOW_greek_catholic_sepulchre"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { rite = rite:greek_catholic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_zemplen }
			add = 100
		}
	}
}
ho_neow_greek_catholic_first_patriarchate = {
	type = military
	government = holy_order_government
	name = "holy_order_NEOW_greek_catholic_first_patriarchate"
	coat_of_arms = "ho_NEOW_greek_catholic_first_patriarchate"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { rite = rite:greek_catholic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_zemplen }
			add = 100
		}
	}
}
ho_neow_greek_catholic_theotokos = {
	type = military
	government = holy_order_government
	name = "holy_order_NEOW_greek_catholic_theotokos"
	coat_of_arms = "ho_NEOW_greek_catholic_theotokos"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { rite = rite:greek_catholic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_zemplen }
			add = 100
		}
	}
}


###############################
# NEOW 2555 EASTERN HOLY ORDERS
###############################

ho_NEOW_athonite = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_athonite_fathers
	name = "holy_order_NEOW_athonite"
	coat_of_arms = "ho_NEOW_athonite_fathers"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_athonite }
			scope:province.county ?= title:c_chalkidike
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:byzantine_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_chalkidike }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_athonite } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_hesychasm } }
}

ho_NEOW_savvaite = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_savvaite_brothers
	name = "holy_order_NEOW_savvaite"
	coat_of_arms = "ho_NEOW_savvaite_brothers"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_savvaite }
			scope:province.county ?= title:c_podgorica
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:montenegrin_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_podgorica }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_savvaite } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_mortification_of_the_flesh } }
}

ho_NEOW_sysoev = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_sysoev_order
	name = "holy_order_NEOW_sysoev"
	coat_of_arms = "ho_NEOW_sysoev"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_sysoev }
			scope:province.county ?= title:c_lyubim
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:orthodox_slavic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_lyubim }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_sysoev } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_original_sin } }
}

ho_NEOW_iasi = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_iasi_fathers
	name = "holy_order_NEOW_iasi"
	coat_of_arms = "ho_NEOW_iasi_fathers"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_iasi }
			scope:province.county ?= title:c_iasi
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:byzantine_rite }
			scope:founder = { culture = { has_cultural_pillar = heritage_romanian } }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_iasi }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_iasi } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_symphonia } }
}

ho_NEOW_gabrielites = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_georgian_gabrielites
	name = "holy_order_NEOW_gabrielites"
	coat_of_arms = "ho_NEOW_georgian_gabrielites"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_gabrielites }
			scope:province.county ?= title:c_tbilisi
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:georgian_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_tbilisi }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_gabrielites } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_ora_et_labora } }
}

ho_NEOW_cypriot = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_cypriot_sepulchre
	name = "holy_order_NEOW_cypriot"
	coat_of_arms = "ho_brotherhood_of_the_holy_sepulchre"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_cypriot }
			scope:province.county ?= title:c_nicosia
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:orthodox_hellenic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_nicosia }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_cypriot } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_pentarchy } }
}

ho_NEOW_josaphat = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_josaphat_order
	name = "holy_order_NEOW_josaphat"
	coat_of_arms = "ho_basilian_order_of_josaphat"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_josaphat }
			scope:province.county ?= title:c_zemplen
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
			scope:founder = { rite = rite:greek_catholic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_zemplen }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_josaphat } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_dulia } }
}

ho_NEOW_constantine = {
	type = military
	government = holy_order_government
	title = d_NEOW_knights_of_constantine
	name = "holy_order_NEOW_constantine"
	coat_of_arms = "ho_NEOW_knights_of_constantine"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_constantine }
			scope:province.county ?= title:c_byzantion
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_byzantion }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_constantine } }
			add = 100000000
		}
	}
	men_at_arms = { cataphract akritai }
}

ho_NEOW_peresvet = {
	type = military
	government = holy_order_government
	title = d_NEOW_peresvet_brotherhood
	name = "holy_order_NEOW_peresvet"
	coat_of_arms = "ho_NEOW_peresvet_brotherhood"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_peresvet }
			scope:province.county ?= title:c_vologda
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:orthodox_slavic_rite }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_vologda }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_peresvet } }
			add = 100000000
		}
	}
	men_at_arms = { cataphract akritai }
}


ho_christian_knights_templar = {
	
	type = military
	government = holy_order_government
	title = d_knights_templar
	name = "holy_order_knights_templar"
	coat_of_arms = "ho_knights_templar"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_nicosia }
			add = 500
		}
	}

	men_at_arms = { armored_horsemen }

}


ho_christian_order_of_calatrava = {
	
	type = military
	government = holy_order_government
	title = d_knights_calatrava
	name = "holy_order_order_of_calatrava"
	coat_of_arms = "ho_order_of_calatrava"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_hispanic has_cultural_pillar = heritage_lusotanian has_cultural_pillar = heritage_iberian } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_calatrava }
			add = 500
		}
	}

	men_at_arms = { caballero }

	effect = {
		scope:title = {
			set_variable = {
				name = order_heritage
				value = culture_pillar:heritage_hispanic
			}
		}
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
	}
}


ho_christian_order_of_alcantara = {

	type = military
	government = holy_order_government
	title = d_knights_alcantara
	name = "holy_order_order_of_alcantara"
	coat_of_arms = "ho_order_of_alcantara"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_hispanic has_cultural_pillar = heritage_lusotanian has_cultural_pillar = heritage_iberian } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_caceres }
			add = 500
		}
	}

	men_at_arms = { caballero }

	effect = {
		scope:title = {
			set_variable = {
				name = order_heritage
				value = culture_pillar:heritage_hispanic
			}
		}
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
	}
}


ho_christian_order_of_santiago = {
	
	type = military
	government = holy_order_government
	title = d_knights_santiago
	name = "holy_order_knights_of_santiago"
	coat_of_arms = "ho_knights_of_santiago"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_hispanic has_cultural_pillar = heritage_lusotanian has_cultural_pillar = heritage_iberian } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_merida }
			add = 500
		}
	}

	men_at_arms = { caballero }

	effect = {
		scope:title = {
			set_variable = {
				name = order_heritage
				value = culture_pillar:heritage_hispanic
			}
		}
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
	}
}


ho_christian_sword_brethren = {
	
	type = military
	government = holy_order_government
	title = d_sword_brethren
	name = "holy_order_sword_brethren"
	coat_of_arms = "ho_sword_brethren"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { has_cultural_pillar = heritage_central_germanic } }
		}
	}
	weight = {
		value = 5
		if = {
			limit = { scope:province.county ?= title:c_livs }
			add = 500
		}
	}

	men_at_arms = { armored_footmen crossbowmen }

	effect = {
		scope:title = {
			set_variable = {
				name = order_heritage
				value = culture_pillar:heritage_central_germanic
			}
		}
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
	}
}


ho_christian_knights_of_the_tau = {
	
	type = military
	government = holy_order_government
	title = d_knights_of_the_tau
	name = "holy_order_knights_of_the_tau"
	coat_of_arms = "ho_knights_of_the_tau"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
		}
	}
	weight = {
		value = 5
		if = {
			limit = { scope:province.county ?= title:c_lucca }
			add = 500
		}
	}

}


ho_christian_knights_of_the_holy_sepulchre = {
	type = military
	government = holy_order_government
	title = d_knights_of_the_holy_sepulchre
	name = "holy_order_knights_of_the_holy_sepulchre"
	coat_of_arms = "ho_knights_of_the_holy_sepulchre"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:catholic_religion }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_nicosia }
			add = 500
		}
	}

}


ho_christian_order_of_aviz = {
	
	type = military
	government = holy_order_government
	title = d_knights_aviz
	name = "holy_order_knights_of_aviz"
	coat_of_arms = "ho_knights_of_aviz"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { OR = { this = culture:portuguese has_cultural_pillar = heritage_hispanic has_cultural_pillar = heritage_lusotanian } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_alcacer_do_sal }
			add = 500
		}
	}

	men_at_arms = { caballero }

	effect = {
		scope:title = {
			set_variable = {
				name = order_heritage
				value = culture_pillar:heritage_hispanic
			}
		}
		scope:leader = {
			if = {
				limit = {
					NOT = {
						has_realm_law = cultural_holy_order_succession_law
					}
				}
				add_realm_law = cultural_holy_order_succession_law
			}
		}
	}
}


ho_christian_order_of_st_thomas = {

	type = military
	government = holy_order_government
	title = d_knights_of_st_thomas
	name = "holy_order_knights_of_st_thomas"
	coat_of_arms = "ho_knights_of_st_thomas"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { culture = { OR = { has_cultural_pillar = heritage_anglo_frisian has_cultural_pillar = heritage_scottish has_cultural_pillar = heritage_west_germanic } } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_london }
			add = 500
		}
	}

	men_at_arms = { longbowmen }

}


ho_christian_knights_of_the_red_star = {
	
	type = military
	government = holy_order_government
	title = d_knights_of_the_red_star
	name = "holy_order_knights_of_the_red_star"
	coat_of_arms = "ho_knights_of_the_red_star"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion has_doctrine_parameter = is_western_christian_faith } }
			scope:founder = { OR = { culture = { this = culture:czech } primary_title = title:k_bohemia } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_praha }
			add = 500
		}
	}

}


ho_christian_brotherhood_of_the_holy_sepulchre = {
	type = military
	government = holy_order_government
	title = d_holy_sepulchre
	name = "holy_order_order_of_the_holy_sepulchre"
	coat_of_arms = "ho_holy_sepulchre"
	men_at_arms = { cataphract akritai }
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_nicosia }
			add = 500
		}
	}

}


ho_akritai_of_the_passes = {
	
	type = military
	government = holy_order_government
	name = "holy_order_akritai_of_the_passes"
	coat_of_arms = "ho_akritai_of_the_passes"
	title = d_akritai_of_the_passes
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder = { culture = { has_cultural_pillar = heritage_greek } }
		}
	}
	weight = {
		value = 20
		if = {
			limit = { scope:province.county ?= title:c_trebizond }
			add = 500
		}
	}
	
	effect = {
		scope:leader = {
			set_variable = {
				name = ho_akritai
				days = 30
			}
		}
	}

	men_at_arms = { cataphract akritai }
}


ho_kingdom_akritai = {
	
	type = military
	government = holy_order_government
	name = "holy_order_kingdom_akritai"
	coat_of_arms = "ho_kingdom_akritai"
	title = d_kingdom_akritai
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder = { culture = { has_cultural_pillar = heritage_greek } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_byzantion }
			add = 500
		}
	}
	
	effect = {
		scope:leader = {
			set_variable = {
				name = ho_akritai
				days = 30
			}
		}
	}

	men_at_arms = { cataphract akritai }
}


ho_knights_of_the_first_patriarchate = {
	type = military
	government = holy_order_government
	title = d_knights_of_the_first_patriarchate
	name = "holy_order_knights_of_the_first_patriarchate"
	coat_of_arms = "ho_knights_of_the_first_patriarchate"
	men_at_arms = { cataphract akritai }
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_byzantion }
			add = 500
		}
	}

}


ho_order_of_the_holy_virgin = {
	type = military
	government = holy_order_government
	title = d_order_of_the_holy_virgin
	name = "holy_order_order_of_the_holy_virgin"
	coat_of_arms = "ho_order_of_the_holy_virgin"
	men_at_arms = { cataphract akritai }
	trigger = {
		trigger_if = {
			limit = { scope:founder = { OR = { has_variable = military_order_game_start_founder has_variable = NEOW_holy_order_2555_startup } } }
			always = no
		}
		trigger_else = {
			scope:founder.faith = { OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
		}
	}
	weight = {
		value = 10
		if = {
			limit = { scope:province.county ?= title:c_nicosia }
			add = 500
		}
	}

}


# NEOW: Johannites of St. John Chrysostom (Romania)
ho_NEOW_johannites = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_johannites
	name = "holy_order_NEOW_johannites"
	coat_of_arms = "ho_NEOW_johannites"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_johannites }
			scope:province.county ?= title:c_suceava
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { rite = rite:byzantine_rite }
			scope:founder = { culture = { has_cultural_pillar = heritage_romanian } }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_suceava }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_johannites } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_divine_liturgy } }
}

# NEOW: Order of St. Peter Mogila (Kiev)
ho_NEOW_mogila = {
	type = monastic
	government = monastic_holy_order_government
	title = d_NEOW_mogila_order
	name = "holy_order_NEOW_mogila"
	coat_of_arms = "ho_NEOW_mogila"
	trigger = {
		trigger_if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_startup } }
			scope:founder = { has_variable = NEOW_holy_order_2555_mogila }
			scope:province.county ?= title:c_kyiv
		}
		trigger_else = {
			scope:founder.faith = { religion = religion:eastern_orthodox_religion }
			scope:founder = { OR = { rite = rite:byzantine_rite rite = rite:orthodox_slavic_rite } }
		}
	}
	weight = {
		value = 50
		if = {
			limit = { scope:province.county ?= title:c_kyiv }
			add = 100
		}
		if = {
			limit = { scope:founder = { has_variable = NEOW_holy_order_2555_mogila } }
			add = 100000000
		}
	}
	effect = { scope:new_holy_order = { set_order_tenet = tenet:tenet_scholasticism } }
}
