
make_noble_family_interaction = {

	category = interaction_debug_admin
	common_interaction = no
	icon = powerful_family_shield

	is_shown = {
		debug_only = yes
		scope:recipient = {
			liege = scope:actor
			is_ruler = no
		}
	}

	auto_accept = yes
	on_accept = {
		scope:recipient = { create_noble_family_effect = yes }
	}
}

destroy_noble_family_interaction = {

	category = interaction_debug_admin
	common_interaction = no
	icon = icon_cross

	is_shown = {
		debug_only = yes
		scope:recipient = {
			liege = scope:actor
			any_held_title = {
				is_noble_family_title = yes
			}
		}
	}

	auto_accept = yes

	on_accept = {
		scope:recipient = {
			random_held_title = {
				limit = {
					is_noble_family_title = yes
				}
				save_scope_as = title_to_destroy
				scope:recipient = {
					destroy_title = scope:title_to_destroy
				}
			}
		}
	}
}

invest_appointment_interaction = {

	category = interaction_debug_admin
	common_interaction = yes
	icon = byzantine_crown_positive

	target_type = title
	target_filter = actor_domain_titles

	is_shown = {
		debug_only = yes
		scope:recipient = {
			has_government = administrative_government
			liege = scope:actor
		}
	}

	auto_accept = yes

	on_accept = {
		scope:target = {
			change_appointment_investment = {
				target = scope:recipient
				value = 20
			}
		}
	}
}

transfer_title_army_maa_interaction = {
	category = interaction_debug_admin
	target_type = title
	target_filter = actor_domain_titles
	icon = request_maa_interaction


	auto_accept = yes

	is_shown = {
		debug_only = yes
		scope:recipient = {
			has_government = administrative_government
		}
		scope:actor = {
			has_government = administrative_government
		}
		scope:actor != scope:recipient
	}

	on_accept = {
		scope:actor = {
			every_maa_regiment = {
				limit = {
					regiment_owning_title = scope:target
				}
				transfer_title_maa = scope:recipient.primary_title
			}
		}
	}
}
