show_join_options = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			NOT = {
				has_character_flag = dynasty_house_change
			}
		}
	}
	
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_send = {
		scope:actor = {
			add_character_flag = dynasty_house_change
		}
	}
}

hide_join_options = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_send = {
		scope:actor = {
			remove_character_flag = dynasty_house_change
		}
	}
}

join_house_alone = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			set_house = scope:recipient.house
		}
	}
	
}

join_house_family = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			every_close_family_member = { 
				set_house = scope:recipient.house 
			}
			set_house = scope:recipient.house
		}
	}
	
}

join_house_house = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			house = { 
				every_house_member = { 
					set_house = scope:recipient.house 
				}
			}
		}
	}
	
}

join_house_dynasty = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			dynasty = { 
				every_dynasty_member = { 
					set_house = scope:recipient.house 
				}
			}
		}
	}
	
}

join_dynasty_alone = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			set_house = scope:recipient.house
			create_cadet_branch = yes
		}
	}
	
}

join_dynasty_family = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			set_house = scope:recipient.house
			create_cadet_branch = yes
			every_close_family_member = {
				set_house = scope:actor.house
			}
		}
	}
	
}

join_dynasty_house = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:actor = {
			house = { save_scope_as = old_house }
			set_house = scope:recipient.house
			create_cadet_branch = yes
			scope:old_house = {
				every_house_member = {
					set_house = scope:actor.house
				}
			}
		}
	}
}

join_dynasty_dynasty = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = {
		scope:actor = {
			dynasty = { save_scope_as = old_dynasty }
			set_house = scope:recipient.house
			create_cadet_branch = yes
			scope:old_dynasty = {
				every_dynasty_member = {
					set_house = scope:actor.house
				}
			}
		}
	}
	
}

take_house_alone = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			set_house = scope:actor.house
		}
	}
	
}

take_house_family = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			every_close_family_member = { 
				set_house = scope:actor.house 
			}
			set_house = scope:actor.house
		}
	}
	
}

take_house_house = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			house = { 
				every_house_member = { 
					set_house = scope:actor.house 
				}
			}
		}
	}
	
}

take_house_dynasty = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			dynasty = { 
				every_dynasty_member = { 
					set_house = scope:actor.house 
				}
			}
		}
	}
	
}

take_dynasty_alone = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			set_house = scope:actor.house
			create_cadet_branch = yes
		}
	}
	
}

take_dynasty_family = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			set_house = scope:actor.house
			create_cadet_branch = yes
			every_close_family_member = {
				set_house = scope:recipient.house
			}
		}
	}
	
}

take_dynasty_house = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = { 
		scope:recipient = {
			house = { save_scope_as = old_house }
			set_house = scope:actor.house
			create_cadet_branch = yes
			scope:old_house = {
				every_house_member = {
					set_house = scope:recipient.house
				}
			}
		}
	}
}

take_dynasty_dynasty = {
	category = interaction_uncategorized
	is_shown = {
		scope:actor = {
			is_ai = no
			has_character_flag = dynasty_house_change
		}
	}
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	auto_accept = yes
	ai_will_do = 0
	
	on_accept = {
		scope:recipient = {
			dynasty = { save_scope_as = old_dynasty }
			set_house = scope:actor.house
			create_cadet_branch = yes
			scope:old_dynasty = {
				every_dynasty_member = {
					set_house = scope:recipient.house
				}
			}
		}
	}
	
}