﻿nine_divines_decision = {
	picture = { reference = "gfx/interface/illustrations/decisions/nine_divines.dds" }
	ai_check_interval = 120
	desc = nine_divines_decision_desc
	decision_group_type = major
	
	is_shown = {
		is_ai = no
		is_landed = yes
		piety_level >= 4
		prestige_level >= 4
		faith = {
			OR = { #is available to faiths that worship the Divines or are otherwise part of the Divines religious sphere
				has_doctrine = doctrine_pantheon_divines
				has_doctrine = doctrine_pantheon_nord
				has_doctrine = doctrine_pantheon_redguard
				has_doctrine = doctrine_pantheon_nedic_aedra
				has_doctrine = special_doctrine_cyrodiilic_cult
			}
		}
		highest_held_title_tier >= tier_empire
		NOR = {
			has_title = title:e_colovian_estates
			has_title = title:e_nibenay
			has_title = title:e_eastern_skyrim
			has_title = title:e_western_skyrim
		}
		has_trait = dragonborn
		any_character_artifact = {
			has_artifact_modifier = aok_modifier
		}
		NOT = {
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:nine_divines_decision
			}
		}
	}

	is_valid = {
		prestige >= 5000
		piety >= 5000
		piety_level >= max_piety_level
		prestige_level >= max_prestige_level
		legitimacy_level >= 5
		has_trait = dragonborn
		highest_held_title_tier >= tier_empire
	}
	effect = {
		trigger_event = nine_divines.0001
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:nine_divines_decision
			}
		}
	}
}
council_nine_decision = {
	picture = { reference = "gfx/interface/illustrations/decisions/nine_divines.dds" }
	ai_check_interval = 120
	desc = council_nine_decision_desc
	decision_group_type = major
	
	is_shown = {
		is_ai = no
		is_landed = yes
		faith = {
			OR = { #is available to faiths that worship the Divines or are otherwise part of the Divines religious sphere
				has_doctrine = doctrine_pantheon_divines
				has_doctrine = doctrine_pantheon_nord
				has_doctrine = doctrine_pantheon_redguard
				has_doctrine = doctrine_pantheon_nedic_aedra
				has_doctrine = special_doctrine_cyrodiilic_cult
			}
		}
		faith = { has_doctrine = doctrine_sp_dv_talos }
		faith = { has_doctrine = special_doctrine_talos_cult }
		highest_held_title_tier >= tier_empire
		any_character_artifact = {
			has_artifact_modifier = aok_modifier
		}
		NOT = {
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:council_nine_decision
			}
		}
	}
	is_valid = {
		faith = { has_doctrine = doctrine_sp_dv_talos }
		faith = { has_doctrine = special_doctrine_talos_cult }
		NOR = {
			faith = { has_doctrine = doctrine_temporal_head}
			faith = { has_doctrine = doctrine_mystical_birthright_head}
		}
		OR = {
			has_title = title:e_cyrodiil
			has_title = title:e_tamriel
		}
	}
	effect = {
		custom_tooltip = {
			text = council_of_nine_creation
		}
		trigger_event = nine_divines.0003
		hidden_effect = {
			faith.religious_head = {
				destroy_title = primary_title
			}
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:council_nine_decision
			}
		}
	}
}