﻿is_available_allow_travelling = {
	is_available_quick = {
		alive = yes
		imprisoned = no
		incapable = no
		in_army = no
	}
	NOT = { has_trait = qs_in_hiding } # QS
	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 = holding_court_character_flag
			}
			is_being_visited_on_tour_strict = yes
		}
	}
	custom_description = {
		text = ALREADY_PLANNING_ACTIVITY
		NOT = { has_character_flag = planning_an_activity }
	}
	# Variable set within the adventure inspiration events
	NOT = { has_variable = gone_adventuring }
	# Variable set on Mandala succession
	custom_tooltip = {
		text = busy_in_mandala_succession
		NOT = { has_variable = busy_in_mandala_succession }
	}
}
can_be_commander_basic_trigger = {
	is_available_quick = {
		alive = yes
		adult = yes
		incapable = no
		hostage = no
	}
	NOT = { has_trait = qs_in_hiding } # QS
	NAND = {
		is_clergy = yes
		NOR = {
			has_trait = order_member # Order Members will fight for their faith even if their faith says no
			faith = { has_doctrine_parameter = clergy_can_fight }
			culture = { has_cultural_parameter = culture_clergy_can_fight }
		}
	}

	OR = { # You can always lead your own armies
		this = $ARMY_OWNER$
		can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $ARMY_OWNER$ }
	}

	trigger_if = {
		limit = { $ARMY_OWNER$ = { is_ai = yes } }
		is_ai = yes
		highest_held_title_tier < tier_hegemony
	}
}