﻿	can_be_knight_trigger = {
	is_hostage = no
	trigger_if = { # Admin governors cannot be knights
		limit = {
			$ARMY_OWNER$ = { government_allows = administrative }
			is_courtier = no
		}
		primary_title ?= {
			tier < tier_duchy
			trigger_if = {
				limit = { is_noble_family_title = yes }
				always = no
			}
		}
	}
	trigger_if = {
		limit = {
			$ARMY_OWNER$.culture = {
				has_cultural_parameter = minimum_prowess_for_knights
			}
		}
		prowess >= 12
	}
	can_be_warrior_trigger = { ARMY_OWNER = $ARMY_OWNER$ }
	trigger_if = {
		limit = {
			OR = {
				has_trait = devoted
				is_clergy = yes
			}
		}
		OR = {
			faith = { has_doctrine_parameter = clergy_can_fight }
			culture = { has_cultural_parameter = culture_clergy_can_fight }
			AND = {
				$ARMY_OWNER$.culture = {
					has_cultural_parameter = high_prowess_ignores_knight_restrictions
				}
				prowess >= 10
			}
		}
	}
	OR = {
		AND = {
			$ARMY_OWNER$.culture = {
				has_cultural_parameter = high_prowess_ignores_knight_restrictions
			}
			prowess >= 10
		}
		has_trait = order_member # Order Members will fight for their faith even if their faith says no
		NOR = {
			has_trait = blind
			has_court_position = master_assassin_court_position #FP3 addition
		}
	}
	trigger_if = {
		limit = {
			exists = liege.diarch
		}
		NOT = { this = liege.diarch }
	}
	# is_ai = yes
	NOR = {
	 has_trait = coward
	 has_trait = slave
	} 
}
	
can_be_commander_basic_trigger = {
	is_alive = yes
	is_adult = yes
	is_hostage = no
	NOR = {
		has_trait = incapable
		
		AND = {
			OR = {
				has_trait = devoted
				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
		NOT = { has_trait = coward }
	}
}