﻿#	Example:
#
#	example_trigger = {
#		is_country_type = default
#		free_leader_slots > 0
#	}
#
#
#	In a script file:
#
#	trigger = {
#		example_trigger = yes
#	}
#

all_hist_cow_metropolis_trigger = {
	calc_true_if = {
		amount >= 2
		any_sub_realm_barony = {
			this = title:b_alexandria
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_antiocheia
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_baghdad 
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_constantinople
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_cordoba
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_roma
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_jerusalem
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
	}
}

# generic_cow_metropolis_exists_trigger = {
	
	# NOR = {
		# any_sub_realm_barony = {
			# this = title:b_alexandria
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_antiocheia
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_baghdad 
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_constantinople
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_cordoba
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_roma
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
		# any_sub_realm_barony = { 
			# this = title:b_jerusalem
			# title_province = {
				# NOT = { exists = var:cow_metropolis }
				# NOT = { has_holding_type = cow_metropolis_holding }
			# }
		# }
	# }
	# any_sub_realm_barony = {
		# NOR = {
			# this = title:b_alexandria
			# this = title:b_antiocheia
			# this = title:b_baghdad
			# this = title:b_constantinople
			# this = title:b_cordoba
			# this = title:b_roma
			# this = title:b_jerusalem 
		# }
		# title_province = { 
			# has_holding_type = { cow_metropolis_holding } 
		# }
	# }
# }

barony_is_valid_for_cow_metropolis_trigger = {
	NOR = {
		this = title:b_alexandria
		this = title:b_antiocheia
		this = title:b_baghdad
		this = title:b_constantinople
		this = title:b_cordoba
		this = title:b_roma
		this = title:b_jerusalem 
	}
}

