﻿##############################
## BM1 scripted_triggers
##############################

has_requested_excommunication = {
	exists = var:requested_my_excommunication
	var:requested_my_excommunication = $CHARACTER$
}

# CHARACTER (character)
is_head_of_faith_of = {
	$CHARACTER$ = {
		exists = faith
		faith.religious_head ?= prev
	}
}

is_being_tortured = {
	custom_description = {
		text = "currently_being_tortured"
		has_character_flag = is_being_tortured
	}
}

# CHARACTER (character)
has_claim_on_held_title_trigger = {
	any_held_title = {
		$CHARACTER$ = { has_claim_on = prev }
	}
}

# CHARACTER (character)
has_strong_claim_on_held_title_trigger = {
	any_held_title = {
		$CHARACTER$ = { has_strong_claim_on = prev }
	}
}

# CHARACTER (character)
can_add_relevant_hook = {
	custom_description = {
		text = "can_add_relevant_hook_trigger"
		subject = this
		object = $CHARACTER$

		top_liege = $CHARACTER$.top_liege
		can_add_hook = {
			target = $CHARACTER$
			type = favor_hook
		}
	}
}