decisions = {

create_uralic_empire = {
		is_high_prio = yes
		
		potential = {
			OR = {
				culture_group = finno_ugric
				culture = hungarian
			}
			
			OR = {
				has_landed_title = k_sapmi
				has_landed_title = k_finland
				has_landed_title = k_estonia
				has_landed_title = k_rus
				has_landed_title = k_vladimir
				has_landed_title = k_nenets
				has_landed_title = k_perm
				has_landed_title = k_volga_bulgaria
				has_landed_title = k_sibir
				
				any_demesne_title = {
					tier = EMPEROR
				}
			}
			
			e_uralic_empire = {
				is_titular = yes
			}
			e_uralic_empire = {
				has_holder = no
			}
			is_alternate_start = no
		}
		
		allow = {
			is_adult = yes
			prestige = 5000
			war = no
			NOT = { trait = incapable }
			AND = {
				completely_controls = k_sapmi
				completely_controls = k_finland
				completely_controls = k_estonia
				completely_controls = k_nenets
				completely_controls = k_perm
				completely_controls = k_volga_bulgaria
				completely_controls = k_sibir
			}
		}
		
		effect = {
			activate_title = { title = e_uralic_empire status = yes }
			
			grant_title_no_opinion = e_uralic_empire
			
			primary_title = {
					e_uralic_empire = {
						copy_title_laws = PREV
						copy_title_history = PREV
					}
				}
			
			if = {
				limit = { has_nickname = no }
				give_nickname = nick_the_great
			}
			
			activate_title = { title = e_idel_ural status = no }
			
			k_sapmi = { de_jure_liege = e_uralic_empire }
			k_finland = { de_jure_liege = e_uralic_empire }
			k_estonia = { de_jure_liege = e_uralic_empire }
			k_nenets = { de_jure_liege = e_uralic_empire }
			k_perm = { de_jure_liege = e_uralic_empire }
			k_volga_bulgaria = { de_jure_liege = e_uralic_empire }
			k_sibir = { de_jure_liege = e_uralic_empire }
			
			if = {
				limit = {
					completely_controls = k_hungary 
				}
				k_hungary = { de_jure_liege = e_uralic_empire }
			}
			if = {
				limit = {
					completely_controls = k_rus 
				}
				k_rus = { de_jure_liege = e_uralic_empire }
			}
			if = {
				limit = {
					completely_controls = k_vladimir 
				}
				k_vladimir = { de_jure_liege = e_uralic_empire }
			}
			
			if = {
				limit = {
					is_female = yes
					has_dlc = "Holy Fury"
				}
				create_bloodline = {
					type = uralic_blood_female
				}
			}
			if = {
				limit = {
					is_female = no
					has_dlc = "Holy Fury"
				}
				create_bloodline = {
					type = uralic_blood_male
				}
			}
			
			any_demesne_title = {
				limit = {
					tier = EMPEROR
					NOT = { title = e_uralic_empire }
				}
				destroy_landed_title = THIS
			}
		}
	}
}