﻿# #Switch to Consort
# switch_to_consort = {
# 	category = interaction_category_harem
# 	icon = icon_scheme_challenge_status

# 	desc = switch_to_consort_desc #Check

# 	is_shown = {
# 		debug_only = yes
# 		scope:actor = {
# 			is_ai = no
# 			is_landed_or_landless_administrative = yes
# 			highest_held_title_tier >= tier_county
# 			any_consort = {
# 				is_valid_for_favor_system_trigger = { HAREM_LIEGE = scope:actor }
# 				count >= 3
# 			}
# 		}
# 		scope:recipient = {
# 			is_ai = yes
# 			court_owner ?= {
# 				this = scope:actor
# 			}
# 			is_consort_of = scope:actor
# 			NOT = {
# 				this = scope:actor
# 			}
# 		}
# 	}

# 	auto_accept = yes

# 	can_send = {
# 		scope:actor = {
# 			is_ai = no
# 		}
# 	}
# 	on_accept = {
# 		scope:actor = {
# 			save_scope_as = harem_liege
# 			set_player_character = scope:recipient
# 		}
# 		scope:recipient = {
# 			if = {
# 				limit = {
# 					NOT = {
# 						exists = global_var:switched_to_consort_global_var
# 					}
# 				}
# 				trigger_event = {
# 					id = consort_play.0001
# 					days = 1
# 				}
# 			}
# 		}
# 	}
# 	auto_accept = yes

# 	ai_will_do = 0
# }

# #Visit Liege
# visit_liege_interaction = {
# 	category = interaction_category_harem
# 	icon = icon_marriage

# 	desc = visit_liege_interaction_desc #Check

# 	is_shown = {
# 		debug_only = yes
# 		scope:actor = {
# 			court_owner ?= {
# 				highest_held_title_tier >= tier_county
# 				is_landed_or_landless_administrative = yes
# 				any_consort = {
# 					is_available_healthy_adult = yes 
# 					is_courtier_of = prev
# 					count >= 3
# 				}
# 				any_consort = {
# 					this = scope:actor
# 				}
# 			}
# 			NOR = {
# 				exists = scope:is_being_divorced
# 				exists = scope:is_being_set_aside
# 			}
# 			exists = scope:actor.court_owner.location
# 			location ?= scope:actor.court_owner.location
# 		}
# 		OR = {
# 			scope:actor = scope:recipient
# 			scope:recipient = scope:actor.court_owner
# 		}
# 	}

# 	is_valid_showing_failures_only = {
# 		scope:recipient = { is_available_healthy_adult = yes }
# 		scope:actor = { is_available_healthy_adult = yes }
# 		custom_tooltip = {
# 			text = already_did_this_consort_play_tooltip
# 			scope:actor = {
# 				NOT = {
# 					has_character_flag = visited_liege_flag
# 				}
# 			}
# 		}
# 		scope:actor = {
# 			trigger_if = {
# 				limit = {
# 					this = scope:recipient
# 				}
# 				custom_tooltip = {
# 					text = you_are_busy_consort_play_tooltip
# 					can_be_visited_trigger = yes
# 				}
# 			}
# 		}
# 		scope:recipient = {
# 			trigger_if = {
# 				limit = {
# 					NOT = {
# 						this = scope:actor
# 					}
# 				}
# 				custom_tooltip = {
# 					text = they_are_busy_consort_play_tooltip
# 					can_be_visited_trigger = yes
# 				}
# 			}
# 		}
# 		scope:recipient = {
# 			trigger_if = {
# 				limit = {
# 					NOT = {
# 						this = scope:actor
# 					}
# 				}
# 				custom_tooltip = {
# 					text = epidemic_bride_show
# 					NOR = {
# 						realm_has_any_epidemic = {
# 							SIZE = 1
# 							INTENSITY = minor
# 						}
# 						capital_county = { has_county_modifier = isolate_capital_decision_modifier }
# 					}
# 				}
# 				custom_tooltip = {
# 					text = seclusion_bride_show
# 					NOR = {
# 						has_character_modifier = isolating_modifier
# 					}
# 				}
# 			}
# 		}
# 	}

# 	auto_accept = yes

# 	on_accept = {
# 		scope:actor = {
# 			custom_tooltip = visit_liege_effect_tooltilp
# 			show_as_tooltip = {
# 				stress_impact = {
# 					shy = minor_stress_impact_gain
# 				}
# 			}
# 			add_character_flag = {
# 				flag = is_visiting_harem_character_flag
# 				days = 50
# 			}
# 			court_owner = {
# 				add_character_flag = {
# 					flag = is_being_visited_character_flag
# 					days = 50
# 				}
# 			}
# 			trigger_event = {
# 				id = consort_play.0001
# 				days = { 5 10 }
# 			}
# 		}
# 	}
	
# 	# AI
# 	ai_will_do = {
# 		base = 0
# 	}
# }

# pay_respects_interaction = {
# 	category = interaction_category_harem
# 	use_diplomatic_range = no
# 	icon = icon_marriage

# 	desc = divorce_character_interaction_desc #Check

# 	is_shown = {
# 		debug_only = yes
# 		scope:actor = {
# 			exists = court_owner
# 			court_owner = {
# 				highest_held_title_tier >= tier_county
# 				any_consort = {
# 					is_available_allow_travelling = yes
# 					is_courtier_of = scope:actor.court_owner
# 					count >= 3
# 				}
# 			}
# 			OR = {
# 				AND = { # Concubines can pay respects to any spouse
# 					is_concubine_of = court_owner
# 					court_owner = {
# 						any_consort = {
# 							is_available_allow_travelling = yes
# 							is_courtier_of = prev
# 							OR = {
# 								is_spouse_of = prev
# 								#has_court_position = grand_consort_court_position
# 							}
# 							NOT = {
# 								this = scope:actor
# 							}
# 						}
# 					}
# 				}
# 				AND = { # Secondary spouses can pay respects to the PS or the GC
# 					is_spouse_of = court_owner
# 					court_owner = {
# 						any_consort = {
# 							is_available_allow_travelling = yes
# 							is_courtier_of = prev
# 							OR = {
# 								AND = {
# 									exists = prev.primary_spouse
# 									is_spouse_of = prev.primary_spouse
# 								}
# 								#has_court_position = grand_consort_court_position
# 							}
# 							NOT = {
# 								this = scope:actor
# 							}
# 						}
# 					}
# 				}
# 			}
# 		}
# 		scope:recipient = {
# 			this = scope:actor
# 		}


# 	#	scope:actor = {
# 	#		is_ai = no
# 	#
# 	#		exists = court_owner
# 	#		court_owner = {
# 	#			any_consort = {
# 	#				this = scope:actor
# 	#			}
# 	#			any_consort = {
# 	#				count >= 3
# 	#			}
# 	#		}
# 	#
# 	#		exists = court_owner.primary_spouse
# 	#			NOT = {
# 	#			this = court_owner.primary_spouse
# 	#		}
# 	#	
# 	#		any_consort = {
# 	#			count = 1
# 	#		}
# 	#	}
# 	#	scope:recipient = {
# 	#	
# 	#		exists = court_owner.primary_spouse
# 	#		this = court_owner.primary_spouse
# 	#
# 	#		exists = court_owner
# 	#		court_owner = {
# 	#			any_consort = {
# 	#				this = scope:actor
# 	#			}
# 	#			any_courtier = {
# 	#				this = scope:actor
# 	#			}
# 	#		}
# 	#		NOT = {
# 	#			this = scope:actor
# 	#		}
# 	#	}
# 	}

# 	is_valid_showing_failures_only = {
# 		#scope:recipient = { is_available_allow_travelling = yes }
# 		scope:actor = { is_available_allow_travelling = yes }
# 	}

# 	auto_accept = yes

# 	on_accept = {
# 		custom_tooltip = pay_respects_decision_effect_tooltip
# 		scope:actor = {
# 			save_scope_as = homage_subordinate
# 			court_owner = {
# 				save_scope_as = harem_liege
# 			}
# 			trigger_event = {
# 				id = consort_play.0004
# 				days = { 5 10 }
# 			}
# 		}
# 		#scope:recipient = {
# 		#	save_scope_as = homage_authority
# 		#	trigger_event = {
# 		#		id = consort_play.0002
# 		#		days = 3
# 		#	}
# 		#}
# 	}
	
# 	# AI
# 	ai_will_do = {
# 		base = 0
# 	}
# }