﻿# Determines who can command troops; filters who shows up in the list
# Root is the potential commander
# scope:army_owner is who owns the army to command
can_command_troops = {
	can_be_commander_basic_trigger = { ARMY_OWNER = scope:army_owner }
	trigger_if = {
		limit = {
			is_ai = yes
		}
		is_designated_diarch = no
	}
}

# Determines who can command troops; will still show up in the list, with a breakdown explaining why they can't command
# Root is the potential commander
# scope:army_owner is who owns the army to command
can_command_troops_now = {
	can_be_commander_now_trigger = { ARMY_OWNER = scope:army_owner }
	trigger_if = {
		limit = {
			is_ai = yes
		}
		is_designated_diarch = no
	}
}



# Determines if a character may be appointed as a knight. Checked during automatic knight assignment
# Root is the potential knight
can_be_knight = {
	trigger_if = {
		limit = {
			exists = liege
		}
		can_be_knight_trigger = { ARMY_OWNER = liege }
	}
	trigger_else = {
		can_be_knight_trigger = { ARMY_OWNER = root.court_owner }
	}
	trigger_if = {
		limit = {
			is_ai = yes
		}
		is_designated_diarch = no
	}
}

