﻿crown_loyalist_faction = {
	casus_belli = liberty_faction_war
	short_effect_desc = crown_loyalist_faction_short_effect_desc
	sort_order = 0
	is_shown = {
		NOT = {
			has_game_rule = miv_loyalist_disabled
		}
		NOT = {
			has_game_rule = miv_loyalist_frequency_disabled
		}
		NOT = {
			has_global_variable = AGOT_is_loaded
		}
	}
	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
		interactive_vassal_eligibility_trigger = {
			LIEGE = scope:faction.faction_target
		}
	}
	demand = {
	}
	can_character_create_ui = {
		OR = {
			is_ai = no
			miv_has_hostile_vassal_faction_trigger = {
				LIEGE = scope:target
			}
		}
		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 = {
			has_game_rule = miv_loyalist_frequency_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 = {
				government_has_flag = government_has_influence
			}
		}
		custom_description = {
			text = INTERACTIVE_VASSAL_GOVERNMENT_INELIGIBLE_TEXT
			interactive_vassal_government_eligibility_trigger = yes
		}
		custom_description = {
			text = INTERACTIVE_VASSAL_NOT_ELIGIBLE_TEXT
			interactive_vassal_tier_eligibility_trigger = {
				LIEGE = scope:target
			}
		}
	}
	can_character_create = {
		OR = {
			is_ai = no
			miv_has_hostile_vassal_faction_trigger = {
				LIEGE = scope:target
			}
		}
		common_can_character_create_trigger = {
			FACTION_TARGET = scope:target
		}
		NOT = {
			has_game_rule = miv_loyalist_disabled
		}
		NOT = {
			has_game_rule = miv_loyalist_frequency_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 = {
				government_has_flag = government_has_influence
			}
		}
		interactive_vassal_eligibility_trigger = {
			LIEGE = scope:target
		}
	}
	ai_create_score = {
		base = 0
		interactive_common_faction_modifiers = {
			FACTION_TARGET = scope:target
		}
	}
	can_character_join = {
		OR = {
			is_ai = no
			miv_has_hostile_vassal_faction_trigger = {
				LIEGE = scope:faction.faction_target
			}
		}
		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 = 0
		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
}
