﻿namespace = unop

# Intent Target Invalidated This is to replace both activity_system.0091 & activity_system.0092 that are not triggered at all (into this one event)
unop.0091 = {
	type = character_event
	title = activity_system.0091.t
	desc = activity_system.0091.desc
	theme = realm
	override_background = {
		reference = ep2_involved_activity
	}

	left_portrait = {
		character = root
		animation = sadness
	}
	lower_right_portrait = scope:target

	trigger = {
		OR = {
			exists = involved_activity
			exists = scope:activity
		}
	}

	immediate = {
		
	}

	option = { 
		name = activity_system.0091.a
	}
}

# Host is dead (before the hunt, or from disease)
unop.0080 = {

	orphan = yes

	type = character_event
	title = hunt.0080.t
	desc = hunt.0080.death
	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:host
		triggered_animation = {
			trigger = { is_alive = no }
			animation = loss_1
		}
		animation = stress
	}
	theme = hunt_activity
	cooldown = { weeks = 1 }

	immediate = {
		if = {
			limit = { NOT = { this = scope:host } }
			hunt_invalidation_event_effect = yes
		}
	}

	option = {
		name = hunt.0080.a
		custom_tooltip = hunt_ends_tt
	}
}

# Unop: 1.13 update: Not needed anymore, will be removed one day
# Make sure all of our court is sent to our new capital after a varangian CB
#unop.1337 = {
#	type = character_event
#	hidden = yes
#
#	trigger = {
#		NOR = {
#			is_commanding_army = yes
#			exists = involved_activity
#			is_travelling = yes
#			is_imprisoned = yes
#		}
#	}
#
#	immediate = { set_location_to_default = yes }
#}
#
#unop.1338 = {
#	type = character_event
#	hidden = yes
#
#	trigger = {
#		NOR = {
#			is_commanding_army = yes
#			exists = involved_activity
#			is_travelling = yes
#		}
#		is_imprisoned = yes
#	}
#
#	immediate = { set_location_to_default = yes }
#}

