# Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope.
#
# ai_target_filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (which characters for which the AI evaluates the decision.)
#	court: all characters in the AI's host court, including prisoners, and characters currently away (wards, prisoners, etc)
#	home_court: all characters in the AI's home court, including prisoners, and characters currently away (wards, prisoners, etc)
#	vassals: direct vassal rulers of the AI's employer
#	sub_realm: all characters below the AI's employer
#	realm: all characters in the same top realm as the AI
#	dynasty: all members of the same dynasty
#	rivals: your rivals plus any character you have an opinion modifier with 'crime = yes' set (the same set of characters the 'is_foe' trigger evaluates)
#	all: all living characters (Avoid if possible. VERY CPU-HEAVY!)
#	

targetted_decisions = {
	son_merc_company_dec = {
		only_playable = yes
		ai_target_filter = dynasty
		filter = dynasty
		from_potential = {
			ai = no
			NOT = { religion_group = pagan_group }
			age = 12
			war = no
		}
	
		potential = {
			age = 12
			NOT = { age = 16 }
			is_landed = no
			in_command = no	
			is_female = no
			prisoner = no
			is_child_of = FROM 
			host = { character = FROM }
			NOT = {
				has_character_flag = wants_varangian
				has_character_flag = denied_varangian
			}
		}
		allow = {
			age = 12
			NOT = { age = 16 }
			is_landed = no
			in_command = no	
			is_female = no
			prisoner = no
			is_child_of = FROM 
			host = { character = FROM }
			NOT = {
				has_character_flag = wants_varangian
				has_character_flag = denied_varangian
			}
		}
		effect = {
			hidden_tooltip = {
				character_event = { id = son_merc_company.0 }
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	bro_merc_company_dec = {
		only_playable = yes
		ai_target_filter = dynasty
		filter = dynasty
		from_potential = {
			is_adult = yes
			is_ruler = yes
		}
	
		potential = {
			age = 12
			is_landed = no
			in_command = no	
			is_female = no
			prisoner = no
			host = { character = FROM }
		}
		allow = {
			age = 12
			NOT = { age = 35 }
			is_landed = no
			in_command = no	
			is_female = no
			prisoner = no
			is_primary_heir = no
			NOT = { is_child_of = FROM }
			host = { character = FROM }
		}
		effect = {
			FROM = {
				character_event = { id = son_merc_company.2 }
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
}
