powerful_vassals_loc = {
	type = character

	text = {
		localization_key = kings
		trigger = {
			any_vassal = {
				highest_held_title_tier >= 4
				count > 1
			}
		}
	}

	text = {
		localization_key = dukes
		trigger = {
			any_vassal = {
				highest_held_title_tier >= 3
				count > 1
			}
		}
	}

	text = {
		localization_key = counts
		trigger = {
			any_vassal = {
				highest_held_title_tier >= 2
				count > 1
			}
		}
	}

	text = {
		localization_key = barons
		trigger = {
			any_vassal = {
				highest_held_title_tier >= 1
				count > 1
			}
		}
	}

	text = {
		localization_key = courtier_plural
		trigger = {
			is_landed = yes
			NOT = {
				any_vassal = {
					highest_held_title_tier >= 1
					count > 1
				}
			}
		}
	}

	text = {
		localization_key = followers
		trigger = {
			is_landed = no
			NOT = {
				any_vassal = {
					highest_held_title_tier >= 1
					count > 1
				}
			}
		}
	}
}

vassal_directive_icon = {
	type = character

	text = {
		localization_key = no_directive_icon
		trigger = {
			NOR = {
				has_character_flag = vassal_directive_improve_development
				has_character_flag = vassal_directive_train_commanders
				has_character_flag = vassal_directive_build_maa
				has_character_flag = vassal_directive_convert_faith
				has_character_flag = vassal_directive_convert_culture
				has_character_flag = vassal_directive_improve_cultural_acceptance
				has_character_flag = vassal_directive_building_focus_fortification
				has_character_flag = vassal_directive_building_focus_military
				has_character_flag = vassal_directive_building_focus_economy
			}
		}
	}

	text = {
		localization_key = directive_refusal_icon
		trigger = {
			OR = {
				has_character_flag = vassal_directive_improve_development
				has_character_flag = vassal_directive_train_commanders
				has_character_flag = vassal_directive_build_maa
				has_character_flag = vassal_directive_convert_faith
				has_character_flag = vassal_directive_convert_culture
				has_character_flag = vassal_directive_improve_cultural_acceptance
				has_character_flag = vassal_directive_building_focus_fortification
				has_character_flag = vassal_directive_building_focus_military
				has_character_flag = vassal_directive_building_focus_economy
			}
			save_temporary_scope_as = vassal_scope
			NOT = { vassal_is_valid_and_follows_directive_trigger = { VASSAL = scope:vassal_scope LIEGE = scope:vassal_scope.liege } }
		}
	}

	text = {
		localization_key = improve_development_icon
		trigger = {
			has_character_flag = vassal_directive_improve_development
		}
	}

	text = {
		localization_key = train_commanders_icon
		trigger = {
			has_character_flag = vassal_directive_train_commanders
		}
	}

	text = {
		localization_key = build_maa_icon
		trigger = {
			has_character_flag = vassal_directive_build_maa
		}
	}

	text = {
		localization_key = convert_faith_icon
		trigger = {
			has_character_flag = vassal_directive_convert_faith
		}
	}

	text = {
		localization_key = convert_culture_icon
		trigger = {
			has_character_flag = vassal_directive_convert_culture
		}
	}

	text = {
		localization_key = improve_cultural_acceptance_icon
		trigger = {
			has_character_flag = vassal_directive_improve_cultural_acceptance
		}
	}

	text = {
		localization_key = building_focus_fortification_icon
		trigger = {
			has_character_flag = vassal_directive_building_focus_fortification
		}
	}

	text = {
		localization_key = building_focus_military_icon
		trigger = {
			has_character_flag = vassal_directive_building_focus_military
		}
	}

	text = {
		localization_key = building_focus_economy_icon
		trigger = {
			has_character_flag = vassal_directive_building_focus_economy
		}
	}

	text = {
		localization_key = blank_line
		trigger = {
			always = no
		}
		fallback = yes
	}
}

vassal_directive_text = {
	type = character

	text = {
		localization_key = no_directive_text
		trigger = {
			NOR = {
				has_character_flag = vassal_directive_improve_development
				has_character_flag = vassal_directive_train_commanders
				has_character_flag = vassal_directive_build_maa
				has_character_flag = vassal_directive_convert_faith
				has_character_flag = vassal_directive_convert_culture
				has_character_flag = vassal_directive_improve_cultural_acceptance
				has_character_flag = vassal_directive_building_focus_fortification
				has_character_flag = vassal_directive_building_focus_military
				has_character_flag = vassal_directive_building_focus_economy
			}
		}
	}

	text = {
		localization_key = refusing_directive_text
		trigger = {
			OR = {
				has_character_flag = vassal_directive_improve_development
				has_character_flag = vassal_directive_train_commanders
				has_character_flag = vassal_directive_build_maa
				has_character_flag = vassal_directive_convert_faith
				has_character_flag = vassal_directive_convert_culture
				has_character_flag = vassal_directive_improve_cultural_acceptance
				has_character_flag = vassal_directive_building_focus_fortification
				has_character_flag = vassal_directive_building_focus_military
				has_character_flag = vassal_directive_building_focus_economy
			}
			save_temporary_scope_as = vassal_scope
			NOT = { vassal_is_valid_and_follows_directive_trigger = { VASSAL = scope:vassal_scope LIEGE = scope:vassal_scope.liege } }
		}
	}

	text = {
		localization_key = improve_development_text
		trigger = {
			has_character_flag = vassal_directive_improve_development
		}
	}

	text = {
		localization_key = train_commanders_text
		trigger = {
			has_character_flag = vassal_directive_train_commanders
		}
	}

	text = {
		localization_key = build_maa_text
		trigger = {
			has_character_flag = vassal_directive_build_maa
		}
	}

	text = {
		localization_key = convert_faith_text
		trigger = {
			has_character_flag = vassal_directive_convert_faith
		}
	}

	text = {
		localization_key = convert_culture_text
		trigger = {
			has_character_flag = vassal_directive_convert_culture
		}
	}

	text = {
		localization_key = improve_cultural_acceptance_text
		trigger = {
			has_character_flag = vassal_directive_improve_cultural_acceptance
		}
	}

	text = {
		localization_key = building_focus_fortification_text
		trigger = {
			has_character_flag = vassal_directive_building_focus_fortification
		}
	}

	text = {
		localization_key = building_focus_military_text
		trigger = {
			has_character_flag = vassal_directive_building_focus_military
		}
	}

	text = {
		localization_key = building_focus_economy_text
		trigger = {
			has_character_flag = vassal_directive_building_focus_economy
		}
	}

	text = {
		localization_key = blank_line
		trigger = {
			always = no
		}
		fallback = yes
	}
}
