﻿basic_is_valid_for_yearly_events_rtr_trigger = {
	highest_held_title_tier <= tier_county
	is_ai = no
	is_imprisoned = no
	NOT = { exists = involved_activity }
    is_travelling = no
	is_busy_in_events_unlocalised = no
	is_incapable = no
}

is_playable_character = {
	OR = {
	is_ruler = yes
	OR = {
		exists = domicile
		# exclude barons
		trigger_if = {
		 	limit = {
		 		OR = {
		 			is_landed = yes
		 			government_has_flag = government_is_theocracy
		 		}
		 	}
			highest_held_title_tier > tier_barony
		}
		tgp_is_any_minister = yes # To keep ministers playable, regardless of having a noble family title or not
		has_variable = laamp_transition
	}
	is_ai = no
	}
}

is_available_allow_travelling = {
	is_available_quick = {
		alive = yes
		imprisoned = no
		incapable = no
		OR = {
		in_army = no
		this.knight_army.army_owner = this 
		}
		
	}
	has_contagious_deadly_disease_trigger = no
	custom_description = {
		text = ALREADY_IN_ACTIVITY
		NOR = {
			exists = involved_activity
			has_variable = {
				name = homage_liege_scope
				name = meditation_character_flag
				name = local_shrine_rite
				name = petition_liege_character_flag
				name = petition_head_of_faith_petitioner
				name = holding_court_character_flag
				name = gone_adventuring
				name = merchant_var	# only added here since they should always be travelling
			}
			is_being_visited_on_tour_strict = yes
		}
	}
	custom_description = {
		text = ALREADY_PLANNING_ACTIVITY
		NOT = { has_character_flag = planning_an_activity }
	}
	# Variable set on Mandala succession
	custom_tooltip = {
		text = busy_in_mandala_succession
		NOT = { has_variable = busy_in_mandala_succession }
	}
}