## PLAYER ONLY - AI uses the two separate interactions below this ( Promote/Harm Candidacy)
#religious_head_candidacy_interaction = {
#	icon = religious
#	category = interaction_category_admin
#	common_interaction = yes
#	interface_priority = 100
#	desc = religious_head_candidacy_interaction_desc
#
#	target_type = title
#	target_filter = recipient_domain_titles
#
#	populate_recipient_list = {
#		scope:actor = {
#			house ?= {
#				every_house_member = {
#					limit = {
#						top_liege = scope:actor.top_liege
#						any_valid_title_to_grant_trigger = {
#							CANDIDATE = this
#							TOP_LIEGE = scope:actor.top_liege
#						}
#					}
#					add_to_list = characters
#				}
#			}
#			every_courtier_or_guest = {
#				limit = {
#					top_liege = scope:actor.top_liege
#					any_valid_title_to_grant_trigger = {
#						CANDIDATE = this
#						TOP_LIEGE = scope:actor.top_liege
#					}
#				}
#				add_to_list = characters
#			}
#		}
#	}
#
#	can_be_picked_title = {
#        trigger_if = {
#			limit = {
#				exists = holder
#				exists = scope:secondary_recipient
#				holder = {
#					government_has_flag = government_is_theocracy
#				}
#			}
#			is_appointment_valid_trigger = {
#				TITLE = scope:target
#				CANDIDATE = scope:secondary_recipient
#				TOP_LIEGE = scope:actor.faith.religious_head
#			}
#		}
#	}
#
#	has_valid_target_showing_failures_only = {
#		scope:target = {
#			exists = holder
#			holder = {
#                government_has_flag = government_is_theocracy
#                faith = scope:secondary_recipient.faith
#                primary_title = prev
#            }
#		}
#	}
#
#	is_shown = {
#		scope:actor = {
#			is_ai = no
#		}
#		trigger_if = {
#			limit = { exists = scope:secondary_recipient }
#		}
#	}
#
#	is_valid_showing_failures_only = {
#	}
#
#	can_send = {
#		trigger_if = {
#			scope:actor = {
#				custom_tooltip = {
#					text = support_candidacy_cap_reached_tt
#					succession_appointment_score_invested = {
#						title = scope:target
#						candidate = scope:secondary_recipient
#						value < scope:actor.appointment_investment_cap
#					}
#				}
#			}
#		}
#	}
#
#	redirect = {
#		scope:recipient = {
#			if = {
#				limit = {
#					NOT = { this = scope:actor.faith.religious_head }
#				}
#				save_scope_as = secondary_recipient
#				scope:actor.faith.religious_head = {
#					save_scope_as = recipient
#				}
#			}
#		}
#	}
#
#	auto_accept = yes
#
#	cost = {
#		piety = {
#			value = 50
#			desc = "BASE"
#
#			save_temporary_value_as = calculated_base_cost
#		}
#	}
#
#	on_accept = {
#		# Update the score for the corresponding title
#		scope:target = {
#            holder = {
#                add_courtier = scope:secondary_recipient
#            }
#			change_appointment_investment = {
#				target = scope:secondary_recipient
#				investor = scope:secondary_recipient
#				value = 50
#			}
#		}
#	}
#}
#