# POD Schemes
# Rationalize
# Sparc

POD_mesmerize_interaction = {
	category = interaction_category_vampire
	#common_interaction = yes
	#interface_priority = 88
	scheme = PODmesmerize
	icon = POD_dominate_interaction
	
	ai_frequency = 0

	is_shown = {
		scope:actor != scope:recipient
		scope:actor = {
			OR = {
				AND = {
					has_dominate_trigger = yes
					has_perk = mesmerize_perk
				}
			}
		}
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
		scope:actor = {
			trigger_if = {
				limit = {
					has_hook_of_type = {
						target = scope:recipient
						type = rationalize_hook
					}
				}
				has_perk = conditioning_perk
			}
			trigger_else_if = {
				limit = {
					has_hook_of_type = {
						target = scope:recipient
						type = mesmerize_hook
					}
				}
				OR = {
					has_perk = rationalize_perk
				}
			}
			trigger_else = {
				OR = {
					has_perk = mesmerize_perk
				}
			}
		}
	}

	is_valid_showing_failures_only = {
		scope:actor = {
			can_start_scheme = {
				type = PODmesmerize
				target_character = scope:recipient
			}
			POD_has_enough_blood_for_discipline = { AMOUNT = 1 }
		}
		POD_mesmerize_valid_trigger = yes
		# custom_description = {
		#     object = scope:recipient
		#     text = "strong_mental_defenses_trigger"
		#     strong_mental_defenses_interaction_trigger = yes
		# }
		POD_interaction_is_valid_showing_failures_only = yes
	}

	desc = {
		triggered_desc = {
			trigger = {
				scope:actor = {
					#NOT = { is_at_war_with = scope:recipient }
					can_start_scheme = {
						type = PODmesmerize
						target_character = scope:recipient
					}
				}
			}
			desc = scheme_interaction_tt_POD_mesmerize_approved
		}
	}

	on_accept = {
		hidden_effect = {
			scope:actor = {
				start_scheme = {
					type = PODmesmerize
					target_character = scope:recipient
				}
			}
		}
	}
	
	auto_accept = yes
	
	ai_will_do = {
		base = 0
	}
}

POD_change_personality_interaction = {
	category = interaction_category_vampire
	#common_interaction = yes
	#interface_priority = 83
	desc = POD_change_personality_interaction_desc
	icon = POD_dominate_interaction

	ai_frequency = 0
	
	cost = { piety = major_piety_value }

	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_dominate_trigger = yes }
		scope:actor = { has_perk = deep_memories_perk }
		POD_hostile_mental_interaction_is_shown = yes
	}

	is_valid = {
		OR = {
			AND = {
				#Ghouls and herd require the deep memories perk
				scope:actor = { has_perk = deep_memories_perk }
				OR = {
					scope:recipient = { has_relation_herd_owner = scope:actor }
					scope:recipient = { has_relation_ghoul_domitor = scope:actor }
				}
			}
			
			AND = {
				#To rewrite the memories of non-ghouls/herd you need the fancier elder perk
				scope:actor = { has_perk = rewrite_personality_perk }
				#Beyond having the required perk it should also require the target to be dominated first
				scope:actor = { has_relation_dominate_target = scope:recipient }
			}
		}
	}

	is_valid_showing_failures_only = {
		scope:actor = { POD_has_enough_blood_for_discipline = { AMOUNT = 1 } }
		scope:actor = {	NOT = { is_at_war_with = scope:recipient } }
		#scope:recipient = { NOT = { has_character_flag = conditioned_commanded } }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	#cooldown = { years = 1 }

	on_accept = {
		scope:actor = {
			custom_tooltip = POD_change_personality_interaction_accept
		}
		scope:actor = { add_stress = major_stress_gain }

		#This costs piety for conscience faiths
		if = {
			limit = {
				OR = {
					scope:actor = { faith = { has_doctrine = doctrine_enlightenment_virtues_conscience_and_selfcontrol } }
					scope:actor = { faith = { has_doctrine = doctrine_enlightenment_virtues_conscience_and_instinct } }
				}
			}
			scope:actor = { add_piety = major_piety_loss }
		}

		#adds cooldown flag to conditioned targets and removes the mesmerize command thingy otherwise
		if = {
			limit = {
				OR = {
					scope:recipient = { NOT = { has_relation_herd_owner = scope:actor } }
					scope:recipient = { NOT = { has_relation_ghoul_domitor = scope:actor } }
				}
				
			}
			scope:actor = {
				use_hook = scope:recipient
			}
		}
		
		scope:actor = { POD_hunger_rouse_check_effect = yes }

		hidden_effect = {
			scope:actor = {
				trigger_event = POD_change_personality.100
				trigger_event = POD_mesmerize.700
			}
		}
	}
	
	auto_accept = yes
	
	ai_will_do = {
		base = 0
	}
}

POD_change_sexuality_interaction = {
	category = interaction_category_vampire
	desc = POD_change_sexuality_interaction_desc
	icon = POD_dominate_interaction

	ai_frequency = 0

	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_dominate_trigger = yes }
		scope:actor = { has_perk = deep_memories_perk }
		POD_hostile_mental_interaction_is_shown = yes
	}

	is_valid = {
		OR = {
			AND = {
				#Ghouls and herd require the deep memories perk
				scope:actor = { has_perk = deep_memories_perk }
				OR = {
					scope:recipient = { has_relation_herd_owner = scope:actor }
					scope:recipient = { has_relation_ghoul_domitor = scope:actor }
				}
			}
			
			AND = {
				#To rewrite the memories of non-ghouls/herd you need the fancier elder perk
				scope:actor = { has_perk = rewrite_personality_perk }
				#Beyond having the required perk it should also require the target to be dominated first
				scope:actor = { has_relation_dominate_target = scope:recipient }
			}
		}

	}

	is_valid_showing_failures_only = {
		scope:actor = { POD_has_enough_blood_for_discipline = { AMOUNT = 1 } }
		scope:actor = {	NOT = { is_at_war_with = scope:recipient } }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	send_option = {
		is_shown = {
			scope:recipient = { NOT = { has_sexuality = heterosexual } }
		}
		flag = heterosexual
		localization = sexuality_he
	}
	
	send_option = {
		is_shown = {
			scope:recipient = { NOT = { has_sexuality = homosexual } }
		}
		flag = homosexual
		localization = sexuality_ho
	}
	
	send_option = {
		is_shown = {
			scope:recipient = { NOT = { has_sexuality = bisexual } }
		}
		flag = bisexual
		localization = sexuality_bi
	}
	
	send_option = {
		is_shown = {
			scope:recipient = { NOT = { has_sexuality = asexual } }
		}
		flag = asexual
		localization = sexuality_as
	}

	on_accept = {
		scope:actor = {
			POD_willpower_rouse_check_effect = yes
			POD_hunger_rouse_check_effect = yes
		}
		#This costs piety for conscience faiths
		if = {
			limit = {
				OR = {
					scope:actor = { faith = { has_doctrine = doctrine_enlightenment_virtues_conscience_and_selfcontrol } }
					scope:actor = { faith = { has_doctrine = doctrine_enlightenment_virtues_conscience_and_instinct } }
				}
			}
			scope:actor = { add_piety = minor_piety_loss }
		}

		#adds cooldown flag to conditioned targets and removes the mesmerize command thingy otherwise
		if = {
			limit ={
				OR = {
					scope:recipient = { NOT = { has_relation_herd_owner = scope:actor } }
					scope:recipient = { NOT = { has_relation_ghoul_domitor = scope:actor } }
				}
			}
			scope:actor = {
				use_hook = scope:recipient
			}
		}
		switch = {
			trigger = yes
			scope:heterosexual = {
				scope:recipient = { set_sexuality = heterosexual }
			}
			scope:homosexual = {
				scope:recipient = { set_sexuality = homosexual }
			}
			scope:bisexual = {
				scope:recipient = { set_sexuality = bisexual }
			}
			scope:asexual = {
				scope:recipient = { set_sexuality = asexual }
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
	
	ai_will_do = {
		base = 0
	}
}

POD_forgetful_mind_interaction = {
	category = interaction_category_vampire
	desc = POD_forgetful_mind_interaction_desc
	
	cooldown_against_recipient = { years = 5 }
	
	is_shown = {
		scope:actor = {
			OR = {
				AND = {
					has_dominate_trigger = yes
					has_perk = the_forgetful_mind_perk
				}
			}
		}
		scope:actor != scope:recipient
		POD_hostile_mental_interaction_is_shown = yes
	}

	is_valid_showing_failures_only = {
		scope:actor = { POD_has_enough_blood_for_discipline = { AMOUNT = 1 } }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		custom_tooltip = forgetful_mind_duel_ct
		scope:actor = { POD_hunger_rouse_check_effect = yes }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						left_icon = scope:actor
						right_icon = scope:recipient
						title = forgetful_mind_duel_success_title
					
						scope:recipient = {
							add_opinion = {
								target = scope:actor
								modifier = POD_forgetful_mind_opinion
							}
						}
					}
				}
			}
			0 = {
				modifier = {
					add = scope:recipient.stewardship
					always = yes
				}
				modifier = {
					add = 5
					scope:recipient = {
						has_trait = fortitude
					}
				}
				modifier = {
					add = 10
					scope:recipient= {
						has_trait = fortitudeadvanced
					}
				}
				scope:actor = {
					send_interface_toast = {
						left_icon = scope:actor
						right_icon = scope:recipient
						title = forgetful_mind_duel_failure_title
				
						scope:recipient = {
							add_opinion = {
								target = scope:actor
								opinion = -50
								modifier = hate_opinion
							}
						}
					}
				}
			}
		}
	}
	auto_accept = {
		always = yes
	}
	
}

POD_dominate_gold_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_gold_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
		scope:recipient = {
			is_ruler = yes
			monthly_character_income > 0
		}
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						if = {
							limit = {
								scope:actor = {
									OR = {
										has_perk = rationalize_perk
									}
								}
							}
							scope:recipient = {
								pay_long_term_income = {
									target = scope:actor
									months = 9
								}
							}
						}
						else = {
							scope:recipient = {
								pay_long_term_income = {
									target = scope:actor
									months = 3
								}
							}
						}
					}
				}
			}
			0 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				modifier = {
					add = { value = scope:recipient.ai_greed divide = 10 }
				}
				modifier = {
					factor = 2
					scope:recipient = { has_trait = greedy }
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_embarass_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_embarass_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						scope:recipient = {
							add_prestige = -100
							add_character_modifier = {
								modifier = diplomacy_majesty_4090_no_raiment_modifier
								days = 3650000
							}
						}
					}
				}
			}
			2 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				modifier = {
					factor = 2
					scope:recipient = { has_trait = arrogant }
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_reveal_secret_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_reveal_secret_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:recipient = {
			any_known_secret = {
				NOT = { is_known_by = scope:actor }
			}
		}
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:recipient = {
					random_known_secret = {
						limit = { NOT = { is_known_by = scope:actor } }
						reveal_to = scope:actor
					}
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction_reveal_secret_option_ct
					}
				}
			}
			5 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				modifier = {
					factor = 2
					scope:recipient = { has_trait = deceitful }
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_recruit_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_recruit_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:recipient = { is_ruler = no }
		POD_interaction_is_shown = yes
	}
	
	is_valid = {
		scope:recipient = {
			NOT = { is_courtier_of = scope:actor }
		}
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						add_courtier = scope:recipient
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = blocked_from_leaving
						years = 5
					}
				}
			}
			0 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_masquerade_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_masquerade_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:recipient = { POD_splat_has_masquerade_trigger = yes }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
		scope:recipient = {
			NOT = { has_character_modifier = masquerade5_modifier }
		}
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						scope:recipient = {
							POD_masquerade_exposure_increase_effect = yes
						}
					}
				}
			}
			0 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				modifier = {
					add = 5
					scope:recipient.faith = { has_doctrine = doctrine_vampirethemasquerade_strict  }
				}
				modifier = {
					factor = 0
					scope:recipient.faith = { has_doctrine = doctrine_vampirethemasquerade_none  }
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_suicide_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_suicide_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:actor = { has_perk = terminal_decree_perk }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:recipient = {
					random_list = {
						2 = {
							increase_wounds_multiple_hostile_effect = { AMOUNT = 2 REASON = unwilling_suicide ATTACKER = scope:actor }
						}
						3 = {
							increase_wounds_multiple_hostile_effect = { AMOUNT = 3 REASON = unwilling_suicide ATTACKER = scope:actor }
						}
						5 = {
							increase_wounds_multiple_hostile_effect = { AMOUNT = 4 REASON = unwilling_suicide ATTACKER = scope:actor }
						}
					}
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						scope:recipient = {
							custom_tooltip = POD_dominate_interaction_suicide_option_ct
						}
					}
				}
			}
			20 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_release_prisoner_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_release_prisoner_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = {
			any_relation = {
				type = dominate_target
				scope:recipient = { is_imprisoned_by = prev }
			}
		}
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:imprisoner }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	redirect = {
		scope:actor = {
			random_relation = {
				type = dominate_target
				limit = { scope:recipient = { is_imprisoned_by = prev } }
				save_scope_as = imprisoner
			}
		}
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:imprisoner }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						scope:recipient = {
							release_from_prison = yes
						}
					}
				}
			}
			0 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:imprisoner } }
				}
				modifier = {
					add = 10
					scope:imprisoner = {
						has_relation_rival = scope:recipient
					}
				}
				modifier = {
					add = scope:imprisoner.stewardship
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:imprisoner
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_stop_war_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_stop_war_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:actor = { has_perk = concord_of_submission_perk }
		scope:actor = { is_at_war_with = scope:recipient }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_success_title
						left_icon = scope:actor
						right_icon = scope:recipient
						scope:actor = {
							every_character_war = {
								limit = { primary_attacker = scope:recipient }
								end_war = white_peace
							}
						}
					}
				}
			}
			7 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:recipient } }
				}
				modifier = {
					add = scope:recipient.stewardship
				}
				modifier = {
					add = { value = scope:recipient.ai_vengefulness divide = 10 }
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:recipient
						custom_tooltip = POD_dominate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_scheme_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_scheme_interaction_desc
	icon = POD_dominate_interaction
	
	populate_actor_list = {
		scope:actor = {
			every_relation = {
				type = dominate_target
				add_to_list = characters
			}
		}
	}
	
	is_shown = {
		scope:actor = {
			#OR = {
				has_perk = rationalize_perk
			#}
			num_of_relation_dominate_target > 0
		}
		POD_hostile_interaction_is_shown = yes
	}
	
	is_valid = {
	}
	
	is_valid_showing_failures_only = {
		trigger_if = {
			limit = { exists = scope:secondary_actor }
			scope:actor = { has_usable_hook = scope:secondary_actor }
		}
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	send_option = {
		is_shown = {
			scope:secondary_actor ?= {
				any_scheme = {
					scheme_target_character = scope:recipient
				}
			}
		}
		flag = stop_scheme_option
		localization = POD_dominate_interaction_stop_scheme_option
	}
	
	send_option = {
		is_shown = {
			scope:secondary_actor ?= {
				can_start_scheme = {
					target_character = scope:recipient
					type = abduct
				}
			}
		}
		flag = abduct_option
		localization = POD_dominate_interaction_abduct_option
	}
	
	send_option = {
		is_shown = {
			scope:secondary_actor ?= {
				can_start_scheme = {
					target_character = scope:recipient
					type = murder
				}
			}
		}
		flag = murder_option
		localization = POD_dominate_interaction_murder_option
	}

	#use a hunter to start an inquisition hunt against a third party
	send_option = {
		is_shown = {
			scope:secondary_actor ?= {
				can_start_scheme = { type = inquihunt target_character = scope:recipient }
			}
		}
		flag = inquihunt_option
		localization = POD_dominate_interaction_inquihunt_option
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:secondary_actor }
		random_list = {
			0 = {
				POD_dominate_actor_modifier = yes
				scope:actor = {
					if = {
						limit = { scope:abduct_option = yes }
						send_interface_toast = {
							title = dominate_toast_success_title
							left_icon = scope:actor
							right_icon = scope:secondary_actor
							scope:secondary_actor = {
								start_scheme = {
									type = abduct
									target_character = scope:recipient
								}
							}
						}
					}
					else_if = {
						limit = { scope:murder_option = yes }
						scope:actor = { POD_commit_murder_effect = yes }
						send_interface_toast = {
							title = dominate_toast_success_title
							left_icon = scope:actor
							right_icon = scope:secondary_actor
							scope:secondary_actor = {
								start_scheme = {
									type = murder
									target_character = scope:recipient
								}
							}
						}
					}
					else_if = {
						limit = { scope:inquihunt_option = yes }
						scope:actor = { POD_commit_murder_effect = yes }
						send_interface_toast = {
							title = dominate_toast_success_title
							left_icon = scope:actor
							right_icon = scope:secondary_actor
							scope:secondary_actor = {
								start_scheme = {
									type = inquihunt
									target_character = scope:recipient
								}
							}
						}
					}
					else = {
						send_interface_toast = {
							title = dominate_toast_success_title
							left_icon = scope:actor
							right_icon = scope:secondary_actor
							scope:secondary_actor = {
								every_scheme = {
									limit = {
										scheme_target_character = scope:recipient
									}
									end_scheme = yes
								}
							}
						}
					}
				}
			}
			0 = { #Command severity
				trigger = {
					NOT = { scope:actor = { has_strong_hook = scope:secondary_actor } }
				}
				modifier = {
					add = scope:secondary_actor.stewardship
				}
				modifier = {
					add = 10
					scope:secondary_actor = { has_relation_rival = scope:recipient }
					scope:stop_scheme_option = yes
				}
				modifier = {
					add = { value = scope:secondary_actor.ai_honor divide = -10 }
					scope:stop_scheme_option = yes
				}
				modifier = {
					add = { value = scope:secondary_actor.ai_vengefulness divide = 10 }
					scope:stop_scheme_option = yes
				}
				modifier = {
					add = 10
					scope:secondary_actor = {
						OR = {
							has_relation_friend  = scope:recipient
							is_close_family_of = scope:recipient
						}
					}
					scope:stop_scheme_option = no
				}
				modifier = {
					add = { value = scope:secondary_actor.ai_honor divide = 10 }
					scope:stop_scheme_option = no
				}
				modifier = {
					add = { value = scope:secondary_actor.ai_vengefulness divide = -10 }
					scope:stop_scheme_option = no
				}
				scope:actor = {
					send_interface_toast = {
						title = dominate_toast_failure_title
						left_icon = scope:actor
						right_icon = scope:secondary_actor
						custom_tooltip = POD_fascinate_interaction.failure.ct
					}
				}
			}
		}
		scope:actor = { trigger_event = POD_mesmerize.700 }
	}
	
	auto_accept = yes
}

POD_dominate_condition_interaction = {
	category = interaction_category_vampire
	desc = POD_dominate_condition_interaction_desc
	icon = POD_dominate_interaction
	
	is_shown = {
		scope:actor != scope:recipient
		scope:actor = { has_relation_dominate_target = scope:recipient }
		scope:actor = { has_perk = conditioning_perk }
		POD_hostile_mental_interaction_is_shown = yes
	}
	
	is_valid = {
		scope:actor = {
			has_hook_of_type = {
				target = scope:recipient
				type = conditioning_hook
			}
		}
	}
	
	is_valid_showing_failures_only = {
		scope:actor = { has_usable_hook = scope:recipient }
		POD_interaction_is_valid_showing_failures_only = yes
	}
	
	on_accept = {
		scope:actor = { use_hook = scope:recipient }
		scope:actor = {
			send_interface_toast = {
				title = dominate_toast_success_title
				left_icon = scope:actor
				right_icon = scope:recipient
				custom_tooltip = POD_dominate_interaction_condition_reinforce_ct
				POD_dominate_effect = { TARGET = scope:recipient }
			}
		}
	}
	
	auto_accept = yes
}

POD_dominate_speak_through_the_blood_interaction = {
	desc = POD_dominate_speak_through_the_blood_interaction_desc
	category = interaction_category_vampire
	icon = POD_dominate_interaction
	
	cooldown = { years = 10 }
	
	is_shown = {
		scope:actor = { has_dominate_trigger = yes }
		scope:actor = {
			has_perk = speak_through_the_blood_perk
		}
		scope:actor = scope:recipient
	}
	
	is_valid_showing_failures_only = {
		scope:actor = {
			POD_has_enough_blood_for_discipline = { AMOUNT = 1 }
		}
		POD_self_targeted_interaction_is_valid_showing_failures_only = yes
	}
	
	send_option = {
		flag = gold_option
		localization = POD_dominate_speak_through_the_blood_interaction_gold_option
	}
	
	send_option = {
		flag = embarass_option
		localization = POD_dominate_speak_through_the_blood_interaction_embarass_option
	}
	
	send_option = {
		flag = reveal_secret_option
		localization = POD_dominate_speak_through_the_blood_interaction_reveal_secret_option
	}
	
	send_option = {
		flag = recruit_option
		localization = POD_dominate_speak_through_the_blood_interaction_recruit_option
	}
	
	send_option = {
		flag = masq_option
		localization = POD_dominate_speak_through_the_blood_interaction_masq_option
	}
	
	send_option = {
		flag = suicide_option
		localization = POD_dominate_speak_through_the_blood_interaction_suicide_option
	}
	
	send_option = {
		flag = stop_scheme_option
		localization = POD_dominate_speak_through_the_blood_interaction_stop_scheme_option
	}
	
	send_option = {
		flag = stop_war_option
		localization = POD_dominate_speak_through_the_blood_interaction_stop_war_option
	}
	
	send_option = {
		flag = murder_option
		localization = POD_dominate_speak_through_the_blood_interaction_murder_option
	}
	
	on_accept = {
		scope:actor = {
			POD_hunger_rouse_check_effect = yes
			every_child = {
				even_if_dead = yes
				add_children_to_list = { CHARACTER = scope:actor }
			}
			
			if = {
				limit = {
					scope:gold_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						limit = {
							is_playable_character = yes
							monthly_character_income > 0
						}
						pay_long_term_income = {
							target = scope:actor
							months = 3
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_gold_option_loc
			}
			
			else_if = {
				limit = {
					scope:embarass_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						add_prestige = -100
						add_character_modifier = {
							modifier = diplomacy_majesty_4090_no_raiment_modifier
							days = 3650000
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_embarass_option_loc
			}
			
			else_if = {
				limit = {
					scope:reveal_secret_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						random_known_secret = {
							limit = { NOT = { is_known_by = scope:actor } }
							reveal_to = scope:actor
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_reveal_secret_option_loc
			}
			
			else_if = {
				limit = {
					scope:recruit_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						limit = {
							is_playable_character = no
						}
						save_scope_as = current
						scope:actor = {
							add_courtier = scope:current
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_recruit_option_loc
			}
			
			else_if = {
				limit = {
					scope:masq_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						limit = {
							is_vampire_trigger = yes
						}
						POD_masquerade_exposure_increase_effect = yes
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_masq_option_loc
			}
			
			else_if = {
				limit = {
					scope:suicide_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						increase_wounds_multiple_hostile_effect = { AMOUNT = 4 REASON = unwilling_suicide ATTACKER = scope:actor }
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_suicide_option_loc
			}
			
			else_if = {
				limit = {
					scope:stop_scheme_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						every_scheme = {
							limit = {
								scheme_target_character = scope:recipient
							}
							end_scheme = yes
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_stop_scheme_option_loc
			}
			
			else_if = {
				limit = {
					scope:murder_option = yes
				}
				scope:actor = { POD_commit_murder_effect = yes }
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						limit = {
							can_start_scheme = {
								target_character = scope:recipient
								type = murder
							}
						}
						start_scheme = {
							type = murder
							target_character = scope:recipient
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_murder_option_loc
			}
			
			else_if = {
				limit = {
					scope:stop_war_option = yes
				}
				hidden_effect = {
					every_in_list = {
						variable = bloodline
						save_scope_as = current
						every_character_war = {
							limit = {
								primary_attacker = scope:current
								primary_defender = scope:actor
							}
							end_war = white_peace
						}
					}
				}
				custom_tooltip = POD_dominate_speak_through_the_blood_interaction_stop_war_option_loc
			}
			
			clear_variable_list = bloodline
			
		}
	}
	
}