# 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 = {
	steal_spouse_title_dec = {
		only_playable = yes
		ai_target_filter = realm
		filter = realm
		from_potential = {
			ai = no
		}
	
		potential = {
			age = 16
			is_landed = yes
			war = no	
			is_female = yes
			prisoner = no
			spouse = { character = FROM }
		}
		allow = {
			age = 16
			is_landed = yes
			war = no
			is_female = yes
			prisoner = no
			spouse = { character = FROM }
			NOT = {
				trait = proud
				trait = ambitious
				martial = 15
				}
			NOT = { primary_title = { higher_tier_than = DUKE } }
			FROM = {
			OR = { 
				trait = greedy
				trait = arbitrary
				trait = cruel
				trait = proud
				}
			OR = {
				tier = DUKE
				tier = KING
				tier = EMPEROR
				}
			}
		}
		effect = {
			FROM = { character_event = { id = steal_spouse_title.1 } }
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
}
