﻿#Ask for military information by Father_MaGGus

ask_information_interaction = {
	icon = icon_soldier
	category = interaction_category_friendly
	common_interaction = yes
	interface_priority = 60
	desc = ask_information_interaction_desc

	greeting = positive
	notification_text = ASK_INFORMATION_PROPOSAL
	answer_accept_key = ASK_INFORMATION_ACCEPT
	answer_reject_key = ASK_INFORMATION_REJECT

	is_shown = {
		NOT = {
			scope:recipient = scope:actor
		}
		scope:recipient = {
			is_landed = yes
		}
	}
	
	cooldown_against_recipient = { years = 1 }

	on_accept = {
		scope:actor = {
			if = {
				limit = {
					scope:actor.highest_held_title_tier = tier_county
				}
				add_prestige = -30
				trigger_event = char_interaction.4000
			}

			if = {
				limit = {
					scope:actor.highest_held_title_tier = tier_duchy
				}
				add_prestige = -50
				trigger_event = char_interaction.4000
			}					
				
			if = {
				limit = {
					scope:actor.highest_held_title_tier = tier_kingdom
				}
				add_prestige = -80
				trigger_event = char_interaction.4000
			}

			if = {
				limit = {
					scope:actor.highest_held_title_tier = tier_empire
				}
				add_prestige = -120
				trigger_event = char_interaction.4000
			}
		}
		scope:actor = {
			if = {
				limit = {
					scope:hook = yes
					has_usable_hook = scope:recipient
				}
				use_hook = scope:recipient
			}
		}
	}

	ai_accept =	{
		base = -70

		# Modifier for Friends
		modifier = {
			add = 30
			scope:recipient = {	has_relation_friend = scope:actor }	
		}
		
		# Modifier for Best Friends
		modifier = {
			add = 40
			scope:recipient = {	has_relation_best_friend = scope:actor }
		}
		
		# Modifier for Lovers
		modifier = {
			add = 30
			scope:recipient = {	has_relation_lover = scope:actor }
		}
	
		# Modifier for Soulmates
		modifier = {
			add = 40
			scope:recipient = {	has_relation_soulmate = scope:actor }
		}
	
		# Modifier for Spouses
		modifier = {
			add = 40
			scope:recipient = {	is_spouse_of = scope:actor }
		}
	
		# Modifier for Allies
		modifier = {
			add = 30
			scope:recipient = {	is_allied_to = scope:actor }
		}
		
		#Weak Hook
		modifier = {
			scope:hook = yes
			add = 100
			scope:actor = { NOT = { has_strong_hook = scope:recipient } }
			desc = SCHEME_WEAK_HOOK_USED
		}
		
		#Strong Hook
		modifier = {
			scope:hook = yes
			add = 200
			scope:actor = { has_strong_hook = scope:recipient }
			desc = SCHEME_STRONG_HOOK_USED
		}
		
		# General Opinion Modifier
		opinion_modifier = {
			who = scope:recipient
			opinion_target = scope:actor
			multiplier = 1.0
			desc = AI_OPINION_REASON
		}
	}
		
	send_options_exclusive = no
	send_option = {
		is_valid = {
			scope:actor = {
				has_usable_hook = scope:recipient
			}
		}
		flag = hook
		localization = SCHEME_HOOK
	}
	should_use_extra_icon = {
		scope:actor = { has_usable_hook = scope:recipient }
	}
	extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds"
}
