demonstrate_royal_aptitude_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds"
	}

	desc = demonstrate_royal_aptitude_decision_desc

	selection_tooltip = demonstrate_royal_aptitude_decision_tooltip

	cooldown = { days = 1800 }

	is_shown = {
		is_landed = yes
		exists = dynasty
		dynasty = {
			has_dynasty_perk = nobility_legacy_5
		}
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	is_valid = {
		exists = dynasty
		dynasty = {
			has_dynasty_perk = nobility_legacy_5
		}
	}

	cost = {
		prestige = { value = 1000}
	}

	effect = {
		show_as_tooltip = {
			demonstrate_royal_aptitude_outcome_tt = yes
		}
		custom_tooltip = demonstrate_royal_aptitude_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = demonstrate_royal_aptitude_events
				days = 3
			}
		}

	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

defend_realm_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds"
	}

	desc = defend_realm_decision_desc

	selection_tooltip = defend_realm_decision_tooltip

	cooldown = { days = 1800 }

	is_shown = {
		is_landed = yes
		exists = dynasty
		dynasty = {
			has_dynasty_perk = valiance_legacy_5
		}
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	is_valid = {
		exists = dynasty
		dynasty = {
			has_dynasty_perk = valiance_legacy_5
		}
		is_at_war = yes
		NOT = {
  			any_character_war = {
    				primary_attacker = root
  			}
		}
	}

	cost = {
		prestige = { value = 1000}
		piety = { value = 1000}
	}

	effect = {
		show_as_tooltip = {
			defend_realm_decision_outcome_tt = yes
		}
		custom_tooltip = defend_realm_decision_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = defend_realm_event
				days = 3
			}
		}

	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

obtain_prowess_book = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
	}

	desc = obtain_prowess_book_desc

	selection_tooltip = obtain_prowess_book_tooltip

	cooldown = { days = 7305 }

	is_shown = {
		is_landed = yes
		has_royal_court = yes
		has_education_nht_prowess_trigger = yes
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		employs_court_position = antiquarian_court_position
	}

	is_valid = {
		has_education_nht_prowess_trigger = yes
	}

	cost = {
		gold = basic_fund_inspiration_cost
	}

	effect = {
		show_as_tooltip = {
			obtain_prowess_book_outcome_tt = yes
		}
		custom_tooltip = obtain_prowess_book_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = obtain_prowess_book_event
				days = 30
			}
		}

	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

obtain_leadership_book = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
	}

	desc = obtain_leadership_book_desc

	selection_tooltip = obtain_leadership_book_tooltip

	cooldown = { days = 7305 }

	is_shown = {
		is_landed = yes
		has_royal_court = yes
		has_education_nht_leadership_trigger = yes
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
		employs_court_position = antiquarian_court_position
	}

	is_valid = {
		has_education_nht_leadership_trigger = yes
	}

	cost = {
		gold = basic_fund_inspiration_cost
	}

	effect = {
		show_as_tooltip = {
			obtain_leadership_book_outcome_tt = yes
		}
		custom_tooltip = obtain_leadership_book_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = obtain_leadership_book_event
				days = 30
			}
		}

	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

obtain_prowess_book_trinket = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
	}

	desc = obtain_prowess_book_desc

	selection_tooltip = obtain_prowess_book_tooltip

	cooldown = { days = 7305 }

	is_shown = {
		has_royal_court = no
		has_education_nht_prowess_trigger = yes
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	is_valid = {
		has_education_nht_prowess_trigger = yes
	}

	cost = {
		gold = basic_fund_inspiration_cost
	}

	effect = {
		show_as_tooltip = {
			obtain_prowess_book_outcome_tt = yes
		}
		custom_tooltip = obtain_prowess_book_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = obtain_prowess_book_trinket_event
				days = 30
			}
		}
	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

obtain_leadership_book_trinket = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
	}

	desc = obtain_leadership_book_desc

	selection_tooltip = obtain_leadership_book_tooltip

	cooldown = { days = 7305 }

	is_shown = {
		has_royal_court = no
		has_education_nht_leadership_trigger = yes
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	is_valid = {
		has_education_nht_leadership_trigger = yes
	}

	cost = {
		gold = basic_fund_inspiration_cost
	}

	effect = {
		show_as_tooltip = {
			obtain_leadership_book_outcome_tt = yes
		}
		custom_tooltip = obtain_leadership_book_outcome_tt

		hidden_effect = {
			trigger_event = {
				on_action = obtain_leadership_book_trinket_event
				days = 30
			}
		}
	}
	
	ai_check_interval = 120
	
	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}