#Decisions for and to Tributaries

tribute_mission_decision_mandala = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_mandala

	cooldown = { years = 5 }

	is_shown = {
		is_tributary = yes
		suzerain = { government_has_flag = government_is_mandala }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = suzerain } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = suzerain }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = suzerain }
			has_bunga_mas_tribute_trigger = yes
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				can_have_concubines_trigger = { CHAR = suzerain }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = suzerain }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Bunga Mas
			value = tribute_mission_bunga_mas
			is_valid = { has_bunga_mas_tribute_trigger = yes }
			localization = tribute_mission_decision_option_bunga_mas
			icon = "gfx/interface/icons/artifact/tgp_artifact_golden_flower.dds"
			ai_chance = { value = 100 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_mandala_tt
		tribute_mission_decision_effect = { TARGET = suzerain }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 36
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes
	}
}

tribute_mission_decision_china = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_china

	cooldown = { years = 5 }

	is_shown = {
		title:h_china ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_china.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_china.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_china.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_china.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_china.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_china.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_china_tt
		tribute_mission_decision_effect = { TARGET = title:h_china.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_china.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_china.holder } }
		}
	}
}

tribute_mission_decision_roman_empire = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_roman_empire

	cooldown = { years = 5 }

	is_shown = {
		title:h_roman_empire ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_roman_empire.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_roman_empire.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_roman_empire.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_roman_empire.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_roman_empire.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_roman_empire.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_roman_empire_tt
		tribute_mission_decision_effect = { TARGET = title:h_roman_empire.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_roman_empire.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_roman_empire.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_roman_empire.holder } }
		}
	}
}

tribute_mission_decision_eastern_roman_empire = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_eastern_roman_empire

	cooldown = { years = 5 }

	is_shown = {
		title:h_eastern_roman_empire ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_eastern_roman_empire.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_eastern_roman_empire.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_eastern_roman_empire.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_eastern_roman_empire.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_eastern_roman_empire.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_eastern_roman_empire.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_eastern_roman_empire_tt
		tribute_mission_decision_effect = { TARGET = title:h_eastern_roman_empire.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_eastern_roman_empire.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_eastern_roman_empire.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_eastern_roman_empire.holder } }
		}
	}
}

tribute_mission_decision_dar_al_islam = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_dar_al_islam

	cooldown = { years = 5 }

	is_shown = {
		title:h_dar_al_islam ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_dar_al_islam.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_dar_al_islam.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_dar_al_islam.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_dar_al_islam.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_dar_al_islam.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_dar_al_islam.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_dar_al_islam_tt
		tribute_mission_decision_effect = { TARGET = title:h_dar_al_islam.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_dar_al_islam.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_dar_al_islam.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_dar_al_islam.holder } }
		}
	}
}

tribute_mission_decision_india = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_india

	cooldown = { years = 5 }

	is_shown = {
		title:h_india ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_india.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_india.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_india.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_india.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_india.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_india.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_india_tt
		tribute_mission_decision_effect = { TARGET = title:h_india.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_india.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_india.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_india.holder } }
		}
	}
}


tribute_mission_decision_europa = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_europa

	cooldown = { years = 5 }

	is_shown = {
		title:h_europa ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_europa }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_europa.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_europa.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_europa.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_europa.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_europa.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_europa.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_europa_tt
		tribute_mission_decision_effect = { TARGET = title:h_europa.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_europa.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_europa.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_europa.holder } }
		}
	}
}


tribute_mission_decision_numenor = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
	}
	decision_group_type = realm

	should_create_alert = { always = yes }

	desc = tribute_mission_decision_desc_numenor

	cooldown = { years = 5 }

	is_shown = {
		title:h_numenor ?= { is_title_created = yes }
		is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_numenor }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		NOT = { is_at_war_with = title:h_numenor.holder } #Pretty obvious
		OR = {
			tribute_mission_decision_generic_trigger = yes
			tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_numenor.holder }
			tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_numenor.holder }
		}
	}

	widget = {
		gui = "decision_view_widget_pay_tribute"
		controller = decision_option_list_controller
		decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"

		item = { # Gold
			value = tribute_mission_gold
			is_valid = { has_gold_tribute_trigger = yes }
			localization = tribute_mission_decision_option_gold
			icon = "gfx/interface/icons/message_feed/money.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { short_term_gold >= excessive_gold_tribute_value }
					add = 20 
				}
				if = {
					limit = { short_term_gold >= adequate_gold_tribute_value }
					add = 20 
				}
			}
		}
		item = { # Herd
			value = tribute_mission_herd
			is_valid = { has_herd_tribute_trigger = yes }
			localization = tribute_mission_decision_option_herd
			icon = "gfx/interface/icons/icon_herd.dds"
			ai_chance = {
				value = 20 
				if = {
					limit = { 
						domicile ?= { herd >= excessive_herd_tribute_value }
					}
					add = 20 
				}
				if = {
					limit = { 
						domicile ?= { herd >= adequate_herd_tribute_value }
					}
					add = 20 
				}
			}
		}

		item = { # Artifact
			value = tribute_mission_artifact
			is_valid = { has_artifact_tribute_trigger = yes }
			localization = tribute_mission_decision_option_artifact
			icon = "gfx/interface/icons/message_feed/artifact.dds"
			ai_chance = { value = 20 }
		}

		item = { # Concubine 
			value = tribute_mission_concubine
			is_valid = { 
				has_concubine_tribute_trigger = yes
				title:h_numenor.holder = { is_adult = yes }
				can_have_concubines_trigger = { CHAR = title:h_numenor.holder }
			}
			localization = tribute_mission_decision_option_concubine
			icon = "gfx/interface/icons/concubine_icon.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}

		item = { # Eunuch
			value = tribute_mission_eunuch
			is_valid = { 
				has_eunuch_tribute_trigger = yes
				can_employ_court_eunuchs_trigger = { CHAR = title:h_numenor.holder }
			}
			localization = tribute_mission_decision_option_eunuch
			icon = "gfx/interface/icons/character_interactions/eunuch.dds"
			ai_chance = { value = 50 } #The AI can do it? Do it!
		}
	}

	effect = {
		custom_tooltip = tribute_mission_decision_effects_numenor_tt
		tribute_mission_decision_effect = { TARGET = title:h_numenor.holder }
	}

	ai_check_interval_by_tier = {
		barony = 0
		county = 72
		duchy = 36
		kingdom = 36
		empire = 36
		hegemony = 0
	}

	ai_potential = {
		exists = title:h_numenor.holder
		tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_numenor.holder }
	}

	ai_will_do = {
		base = 20
		tribute_mission_decision_ai_will_do_modifiers = yes

		modifier = {
			add = -25
			primary_title.tier = tier_kingdom
			NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_numenor.holder } }
		}
	}
}