﻿# "Chip off the old block"
# If your parents were two close family lovers, who eloped and became landless adventurers, you could return their former holdings and follow their steps.
# Get back titles that they lose and get a lover from your close family to understand how it was difficult for them.


fr_return_family_holdings_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
	}

	desc = fr_return_family_holdings_decision_desc
	decision_group_type = major
	
	ai_check_interval = 0

	
	is_shown = {
		familyromance_has_close_family_parents_who_eloped = yes
		
		OR = {
			real_father = global_var:lost_title_parent
			mother = global_var:lost_title_parent
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	is_valid = {
		is_landed = yes
				
		OR = {
			has_title = global_var:lost_primary_title
			any_vassal = { has_title = global_var:lost_primary_title }				
		}
		
		any_close_family_member = {
			OR = {
				has_relation_lover = root
				has_relation_soulmate = root
			}
		}
		
	}
	
	effect = {		
		
		set_variable = {
		   name = returned_lost_title
		   value = global_var:lost_primary_title
		}
		
		trigger_event = {
			id = decisions_events_familyromance.0001
		}
		
	}
	
		
	
	ai_potential = {
		always = no
	}

}