﻿crown_loyalist_faction = {
	casus_belli = liberty_faction_war
	short_effect_desc = crown_loyalist_faction_short_effect_desc
	sort_order = 0
	discontent_progress = {
		base = 0
	}
	power_threshold = {
		base = 0
	}
	is_character_valid = {
		common_character_validity_trigger = {
			FACTION_TARGET = scope:faction.faction_target
		}
		highest_held_title_tier > tier_barony
		is_at_war_with_liege = no
		is_landed = yes
	}
	demand = {
	}
	can_character_create_ui = {
		common_can_character_create_trigger = {
			FACTION_TARGET = scope:target
		}
		common_character_validity_trigger = {
			FACTION_TARGET = scope:target
		}
		NOT = {
			has_game_rule = miv_loyalist_disabled
		}
		NOT = {
			interactive_start_date = current_date
		}
		custom_description = {
			text = INTERACTIVE_COMPATIBILITY_DISABLED_TEXT
			NOT = {
				has_global_variable = AGOT_is_loaded
			}
		}
		highest_held_title_tier > tier_barony
		is_at_war_with_liege = no
		is_landed = yes
		liege = {
			highest_held_title_tier > tier_county
			NOT = {
				has_government = theocracy_government
			}
			NOT = {
				government_has_flag = government_has_influence
			}
		}
	}
	can_character_create = {
		common_can_character_create_trigger = {
			FACTION_TARGET = scope:target
		}
		NOT = {
			has_game_rule = miv_loyalist_disabled
		}
		NOT = {
			interactive_start_date = current_date
		}
		NOT = {
			has_global_variable = AGOT_is_loaded
		}
		highest_held_title_tier > tier_barony
		is_at_war_with_liege = no
		is_landed = yes
		liege = {
			highest_held_title_tier > tier_county
			NOT = {
				has_government = theocracy_government
			}
			NOT = {
				government_has_flag = government_has_influence
			}
		}
	}
	ai_create_score = {
		base = -400
		interactive_common_faction_modifiers = {
			FACTION_TARGET = scope:target			# this needs to be target as faction is not yet created
		}
	}
	can_character_join = {
		common_can_character_join_trigger = {
			FACTION_TARGET = scope:faction.faction_target
		}
		highest_held_title_tier > tier_barony
		is_at_war_with_liege = no
		is_landed = yes
	}
	ai_join_score = {
		base = -400
		interactive_common_faction_modifiers = {
			FACTION_TARGET = scope:faction.faction_target
		}
	}
	ai_demand_chance = {
		base = 0
	}
	is_county_valid = {
		always = no
	}
	can_county_join = {
		always = no
	}
	leaders_allowed_to_leave = yes
	county_allow_join = no
	county_allow_create = no
	player_can_join = yes
	inherit_membership = no
}
