﻿join_varangian_interaction = {
	category = interaction_category_friendly
	common_interaction = yes
	desc = join_varangian_interaction.desc
	use_diplomatic_range = no
	interface_priority = 80
	auto_accept = no
	ai_frequency = 0
	
	
	is_shown = {
		scope:actor = {
			is_ai = no
			is_ruler = no
			OR = {
			has_religion = religion:germanic_religion
			has_culture = culture:anglo_saxon }
			NOT = { has_character_flag = varangian_service }
		}
		scope:recipient = {
			is_ruler = yes
			has_primary_title = title:e_byzantium
		}
	}
	
	can_send = {
		scope:actor = {
			is_ai = no
			NOT = {
			has_character_modifier = house_modifier
			has_character_flag = working
			has_trait = order_member
			has_trait = mercenary
			}
		}
	}
	
	
	on_accept = {
		scope:actor = {
           add_trait = varangian
           trigger_event = rtr.0019		 
           start_travel_plan = {
						destination = scope:recipient.capital_province
			           	on_start_on_action = on_travel_relocation_start
			         	on_arrival_on_action = on_travel_relocation_end_visit
			         	on_arrival_destinations = last
						players_use_planner = no
						return_trip = no
		  }		   
		}
		scope:recipient = { # Recruit to court & pay the player for their service
		add_courtier = scope:actor 
		add_gold = 600 # Recruiting bonus
		pay_short_term_gold = {
					gold = 400
					target = scope:actor
				}
		}
	}
}