defined_text = {
	name = lmmiwp_get_other_promises
	use_first_valid = yes
	
	text = {
		trigger = {
			FROM = {
				has_character_flag = lmmiwp_other_promises_none
			}
		}
		
		localisation_key = lmmiwp_other_promises_none_label
	}
	
	text = {
		trigger = {
			FROM = {
				AND = {
					has_character_flag = lmmiwp_other_promises_council_position
					has_character_flag = lmmiwp_other_promises_commander
				}
			}
		}
		
		localisation_key = lmmiwp_other_promises_council_position_and_commander_label
	}
	
	text = {
		trigger = {
			FROM = {
				has_character_flag = lmmiwp_other_promises_council_position
			}
		}
		
		localisation_key = lmmiwp_other_promises_council_position_label
	}
	
	text = {
		trigger = {
			FROM = {
				has_character_flag = lmmiwp_other_promises_commander
			}
		}
		
		localisation_key = lmmiwp_other_promises_commander_label
	}
	
	fallback_text = { localisation_key = lmmiwp_other_promises_none_label }
}

defined_text = {
	name = lmmiwp_get_currently_promised_to
	
	text = {
		trigger = {
			persistent_event_target:lmmiwp_this_title_is_promised_to = {
				always = yes
			}
		}
		
		localisation_key = lmmiwp_currently_promised_to
	}
	
	fallback_text = { localisation_key = lmmiwp_empty_string }
}

defined_text = {
	name = lmmiwp_get_year_or_years
	
	text = {
		trigger = {
			is_variable_equal = { which = local_lmmiwp_years_waited value = 1 }
		}
		localisation_key = lmmiwp_year_string
	}
	
	fallback_text = { localisation_key = lmmiwp_years_string }	
}

defined_text = {
	name = lmmiwp_get_patiently_waited_or_came_all_the_way
	
	text = {
		trigger = {
			check_variable = { which = local_lmmiwp_years_waited value = 1 }
		}
		localisation_key = lmmiwp_patiently_waited_for_x_years
	}
	
	fallback_text = { localisation_key = lmmiwp_came_all_the_way }	
}
