variable_subject_type = { #what subject type a country is
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "puppet"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_vassal }
		}
		localization_key = "vassal"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_personal_union }
		}
		localization_key = "personalunion"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_colony }
		}
		localization_key = "colony"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_dominion }
		}
		localization_key = "dominion"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_protectorate }
		}
		localization_key = "protectorate"
	}
	
	text = {
		trigger = {
			this = { is_subject_type = subject_type_tributary }
		}
		localization_key = "tributary"
	}

	text = {
		localization_key = "no"
	}
}

target_subject_type = { #what subject type a country is
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			has_variable = turning_into_annexed
			OR = {
				is_subject_type = subject_type_puppet
				is_subject_type = subject_type_vassal
				is_subject_type = subject_type_personal_union
			}
		}
		localization_key = "Our Overlord is currently in the process of annexing us. This will be completed when our autonomy hits 0."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_annexed
			is_subject_type = subject_type_colony
		}
		localization_key = "Our Overlord is currently in the process of annexing us. However, this is still some time away, as our next autonomy level will first be that of a Puppet."
	}
	text = {
		trigger = {
			has_variable = turning_into_annexed
			is_subject_type = subject_type_dominion
		}
		localization_key = "Our Overlord is currently in the process of annexing us. However, this is still some time away, as our next autonomy level will first be that of a Colony."
	}
	text = {
		trigger = {
			has_variable = turning_into_annexed
			OR = {
				is_subject_type = subject_type_protectorate
				is_subject_type = subject_type_tributary
			}
		}
		localization_key = "Our Overlord is currently in the process of annexing us. However, this is still some time away, as our next autonomy level will first be that of a Dominion."
	}
	### being annexed ^^^
	
	text = {
		trigger = {
			has_variable = turning_into_puppet
			is_subject_type = subject_type_colony
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Puppet. This will be completed when our autonomy hits 0."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_puppet
			is_subject_type = subject_type_dominion
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Puppet. However, this is still some time away, as our next autonomy level will first be that of a Colony."
	}
	text = {
		trigger = {
			has_variable = turning_into_puppet
			OR = {
				is_subject_type = subject_type_protectorate
				is_subject_type = subject_type_tributary
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Puppet. However, this is still some time away, as our next autonomy level will first be that of a Dominion."
	}
	
	### being turned into a puppet ^^^
	
	text = {
		trigger = {
			has_variable = turning_into_colony
			is_subject_type = subject_type_dominion
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Colony. This will be completed when our autonomy hits 0."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_colony
			OR = {
				is_subject_type = subject_type_protectorate
				is_subject_type = subject_type_tributary
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Colony. However, this is still some time away, as our next autonomy level will first be that of a Dominion."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_colony
			OR = {
				is_subject_type = subject_type_puppet
				is_subject_type = subject_type_vassal
				is_subject_type = subject_type_personal_union
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Colony. This will be completed when our autonomy hits 0."
	}
	
	### being turned into a colony ^^^
	
	text = {
		trigger = {
			has_variable = turning_into_dominion
			OR = {
				is_subject_type = subject_type_protectorate
				is_subject_type = subject_type_tributary
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Dominion. This will be completed when our autonomy hits 0."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_dominion
			OR = {
				is_subject_type = subject_type_puppet
				is_subject_type = subject_type_vassal
				is_subject_type = subject_type_personal_union
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Dominion. However, this is still some time away, as our next autonomy level will first be that of a Colony."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_dominion
			is_subject_type = subject_type_colony
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Dominion. This will be completed when our autonomy hits 0."
	}
	
	### being turned into a dominion ^^^
	
	text = {
		trigger = {
			has_variable = turning_into_protectorate
			is_subject_type = subject_type_dominion
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Protectorate. This will be completed when our autonomy hits 0."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_protectorate
			is_subject_type = subject_type_colony
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Protectorate. However, this is still some time away, as our next autonomy level will first be that of a Dominion."
	}
	
	text = {
		trigger = {
			has_variable = turning_into_protectorate
			OR = {
				is_subject_type = subject_type_puppet
				is_subject_type = subject_type_vassal
				is_subject_type = subject_type_personal_union
			}
		}
		localization_key = "Our Overlord is currently in the process of turning us into a Protectorate. However, this is still some time away, as our next autonomy level will first be that of a Colony."
	}
	
	### being turned into a protectorate ^^^

	text = {
		localization_key = "no"
	}
}

autonomy_change_time_prediction = { #how long an autonomy change will take
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			var:autonomy_progress >= 2
			var:autonomy_progress < 4
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "1 month to next level"
	}
	
	text = {
		trigger = {
			var:autonomy_progress >= 4
			var:autonomy_progress < 6
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "2 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 6
			var:autonomy_progress < 8
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "3 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 8
			var:autonomy_progress < 10
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "4 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 10
			var:autonomy_progress < 12
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "5 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 12
			var:autonomy_progress < 14
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "6 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 14
			var:autonomy_progress < 16
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "7 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 16
			var:autonomy_progress < 18
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "8 months to next level"
	}
	text = {
		trigger = {
			var:autonomy_progress >= 18
			var:autonomy_progress <= 20
			#this = { is_subject_type = subject_type_puppet }
		}
		localization_key = "9 months to next level"
	}

	text = {
		localization_key = "no"
	}
}

autonomy_origin_to_target = { #how many levels of autonomy are being changed
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_protectorate }
						this = { is_subject_type = subject_type_tributary }
					}
					this = { has_variable = turning_into_dominion }
				}
			}
		}
		localization_key = "5to4"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_protectorate }
						this = { is_subject_type = subject_type_tributary }
					}
					this = { has_variable = turning_into_colony }
				}
			}
		}
		localization_key = "5to3"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_protectorate }
						this = { is_subject_type = subject_type_tributary }
					}
					this = { has_variable = turning_into_puppet }
				}
			}
		}
		localization_key = "5to2"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_protectorate }
						this = { is_subject_type = subject_type_tributary }
					}
					this = { has_variable = turning_into_annexed }
				}
			}
		}
		localization_key = "5to1"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_dominion }
					this = { has_variable = turning_into_protectorate }
				}
			}
		}
		localization_key = "4to5"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_dominion }
					this = { has_variable = turning_into_colony }
				}
			}
		}
		localization_key = "4to3"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_dominion }
					this = { has_variable = turning_into_puppet }
				}
			}
		}
		localization_key = "4to2"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_dominion }
					this = { has_variable = turning_into_annexed }
				}
			}
		}
		localization_key = "4to1"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_colony }
					this = { has_variable = turning_into_protectorate }
				}
			}
		}
		localization_key = "3to5"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_colony }
					this = { has_variable = turning_into_dominion }
				}
			}
		}
		localization_key = "3to4"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_colony }
					this = { has_variable = turning_into_puppet }
				}
			}
		}
		localization_key = "3to2"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					this = { is_subject_type = subject_type_colony }
					this = { has_variable = turning_into_annexed }
				}
			}
		}
		localization_key = "3to1"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_puppet }
						this = { is_subject_type = subject_type_vassal }
						this = { is_subject_type = subject_type_personal_union }
					}
					this = { has_variable = turning_into_protectorate }
				}
			}
		}
		localization_key = "2to5"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_puppet }
						this = { is_subject_type = subject_type_vassal }
						this = { is_subject_type = subject_type_personal_union }
					}
					this = { has_variable = turning_into_dominion }
				}
			}
		}
		localization_key = "2to4"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_puppet }
						this = { is_subject_type = subject_type_vassal }
						this = { is_subject_type = subject_type_personal_union }
					}
					this = { has_variable = turning_into_colony }
				}
			}
		}
		localization_key = "2to3"
	}
	
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						this = { is_subject_type = subject_type_puppet }
						this = { is_subject_type = subject_type_vassal }
						this = { is_subject_type = subject_type_personal_union }
					}
					this = { has_variable = turning_into_annexed }
				}
			}
		}
		localization_key = "2to1"
	}

	text = {
		localization_key = "no"
	}
}

autonomy_percentage = { #progress of reducing or increasing autonomy
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			is_subject = no
		}
		localization_key = "0"
	}
	
	text = {
		trigger = {
			NOT = { this = { has_variable = autonomy_progress } }
		}
		localization_key = "0"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress < 1 }
			NOT = { this = { var:autonomy_progress >= 1 } }
		}
		localization_key = "0"
	}

	text = {
		trigger = {
			this = { var:autonomy_progress = 1 }
			NOT = { this = { var:autonomy_progress >= 2 } }
		}
		localization_key = "1"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 2 }
			NOT = { this = { var:autonomy_progress >= 3 } }
		}
		localization_key = "2"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 3 }
			NOT = { this = { var:autonomy_progress >= 4 } }
		}
		localization_key = "3"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 4 }
			NOT = { this = { var:autonomy_progress >= 5 } }
		}
		localization_key = "4"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 5 }
			NOT = { this = { var:autonomy_progress >= 6 } }
		}
		localization_key = "5"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 6 }
			NOT = { this = { var:autonomy_progress >= 7 } }
		}
		localization_key = "6"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 7 }
			NOT = { this = { var:autonomy_progress >= 8 } }
		}
		localization_key = "7"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 8 }
			NOT = { this = { var:autonomy_progress >= 9 } }
		}
		localization_key = "8"
	}
	
	text = {
		trigger = {
			this = { country_var:autonomy_progress = 9 }
			NOT = { this = { var:autonomy_progress >= 10 } }
		}
		localization_key = "9"
	}
	
	text = {
		trigger = {
			this = { country_var:autonomy_progress = 10 }
			NOT = { this = { var:autonomy_progress >= 11 } }
		}
		localization_key = "10"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 11 }
			NOT = { this = { var:autonomy_progress >= 12 } }
		}
		localization_key = "11"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 12 }
			NOT = { this = { var:autonomy_progress >= 13 } }
		}
		localization_key = "12"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 13 }
			NOT = { this = { var:autonomy_progress >= 14 } }
		}
		localization_key = "13"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 14 }
			NOT = { this = { var:autonomy_progress >= 15 } }
		}
		localization_key = "14"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 15 }
			NOT = { this = { var:autonomy_progress >= 16 } }
		}
		localization_key = "15"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 16 }
			NOT = { this = { var:autonomy_progress >= 17 } }
		}
		localization_key = "16"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 17 }
			NOT = { this = { var:autonomy_progress >= 18 } }
		}
		localization_key = "17"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 18 }
			NOT = { this = { var:autonomy_progress >= 19 } }
		}
		localization_key = "18"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 19 }
			NOT = { this = { var:autonomy_progress >= 20 } }
		}
		localization_key = "19"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 20 }
			NOT = { this = { var:autonomy_progress >= 21 } }
		}
		localization_key = "20"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 21 }
			NOT = { this = { var:autonomy_progress >= 22 } }
		}
		localization_key = "21"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 22 }
			NOT = { this = { var:autonomy_progress >= 23 } }
		}
		localization_key = "22"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 23 }
			NOT = { this = { var:autonomy_progress >= 24 } }
		}
		localization_key = "23"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 24 }
			NOT = { this = { var:autonomy_progress >= 25 } }
		}
		localization_key = "24"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 25 }
			NOT = { this = { var:autonomy_progress >= 26 } }
		}
		localization_key = "25"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 26 }
			NOT = { this = { var:autonomy_progress >= 27 } }
		}
		localization_key = "26"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 27 }
			NOT = { this = { var:autonomy_progress >= 28 } }
		}
		localization_key = "27"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 28 }
			NOT = { this = { var:autonomy_progress >= 29 } }
		}
		localization_key = "28"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 29 }
			NOT = { this = { var:autonomy_progress >= 30 } }
		}
		localization_key = "29"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 30 }
			NOT = { this = { var:autonomy_progress >= 31 } }
		}
		localization_key = "30"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 31 }
			NOT = { this = { var:autonomy_progress >= 32 } }
		}
		localization_key = "31"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 32 }
			NOT = { this = { var:autonomy_progress >= 33 } }
		}
		localization_key = "32"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 33 }
			NOT = { this = { var:autonomy_progress >= 34 } }
		}
		localization_key = "33"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 34 }
			NOT = { this = { var:autonomy_progress >= 35 } }
		}
		localization_key = "34"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 35 }
			NOT = { this = { var:autonomy_progress >= 36 } }
		}
		localization_key = "35"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 36 }
			NOT = { this = { var:autonomy_progress >= 37 } }
		}
		localization_key = "36"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 37 }
			NOT = { this = { var:autonomy_progress >= 38 } }
		}
		localization_key = "37"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 38 }
			NOT = { this = { var:autonomy_progress >= 39 } }
		}
		localization_key = "38"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 39 }
			NOT = { this = { var:autonomy_progress >= 40 } }
		}
		localization_key = "39"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 40 }
			NOT = { this = { var:autonomy_progress >= 41 } }
		}
		localization_key = "40"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 41 }
			NOT = { this = { var:autonomy_progress >= 42 } }
		}
		localization_key = "41"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 42 }
			NOT = { this = { var:autonomy_progress >= 43 } }
		}
		localization_key = "42"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 43 }
			NOT = { this = { var:autonomy_progress >= 44 } }
		}
		localization_key = "43"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 44 }
			NOT = { this = { var:autonomy_progress >= 45 } }
		}
		localization_key = "44"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 45 }
			NOT = { this = { var:autonomy_progress >= 46 } }
		}
		localization_key = "45"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 46 }
			NOT = { this = { var:autonomy_progress >= 47 } }
		}
		localization_key = "46"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 47 }
			NOT = { this = { var:autonomy_progress >= 48 } }
		}
		localization_key = "47"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 48 }
			NOT = { this = { var:autonomy_progress >= 49 } }
		}
		localization_key = "48"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 49 }
			NOT = { this = { var:autonomy_progress >= 50 } }
		}
		localization_key = "49"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 50 }
			NOT = { this = { var:autonomy_progress >= 51 } }
		}
		localization_key = "50"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 51 }
			NOT = { this = { var:autonomy_progress >= 52 } }
		}
		localization_key = "51"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 52 }
			NOT = { this = { var:autonomy_progress >= 53 } }
		}
		localization_key = "52"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 53 }
			NOT = { this = { var:autonomy_progress >= 54 } }
		}
		localization_key = "53"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 54 }
			NOT = { this = { var:autonomy_progress >= 55 } }
		}
		localization_key = "54"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 55 }
			NOT = { this = { var:autonomy_progress >= 56 } }
		}
		localization_key = "55"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 56 }
			NOT = { this = { var:autonomy_progress >= 57 } }
		}
		localization_key = "56"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 57 }
			NOT = { this = { var:autonomy_progress >= 58 } }
		}
		localization_key = "57"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 58 }
			NOT = { this = { var:autonomy_progress >= 59 } }
		}
		localization_key = "58"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 59 }
			NOT = { this = { var:autonomy_progress >= 60 } }
		}
		localization_key = "59"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 60 }
			NOT = { this = { var:autonomy_progress >= 61 } }
		}
		localization_key = "60"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 61 }
			NOT = { this = { var:autonomy_progress >= 62 } }
		}
		localization_key = "61"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 62 }
			NOT = { this = { var:autonomy_progress >= 63 } }
		}
		localization_key = "62"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 63 }
			NOT = { this = { var:autonomy_progress >= 64 } }
		}
		localization_key = "63"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 64 }
			NOT = { this = { var:autonomy_progress >= 65 } }
		}
		localization_key = "64"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 65 }
			NOT = { this = { var:autonomy_progress >= 66 } }
		}
		localization_key = "65"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 66 }
			NOT = { this = { var:autonomy_progress >= 67 } }
		}
		localization_key = "66"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 67 }
			NOT = { this = { var:autonomy_progress >= 68 } }
		}
		localization_key = "67"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 68 }
			NOT = { this = { var:autonomy_progress >= 69 } }
		}
		localization_key = "68"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 69 }
			NOT = { this = { var:autonomy_progress >= 70 } }
		}
		localization_key = "69"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 70 }
			NOT = { this = { var:autonomy_progress >= 71 } }
		}
		localization_key = "70"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 71 }
			NOT = { this = { var:autonomy_progress >= 72 } }
		}
		localization_key = "71"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 72 }
			NOT = { this = { var:autonomy_progress >= 73 } }
		}
		localization_key = "72"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 73 }
			NOT = { this = { var:autonomy_progress >= 74 } }
		}
		localization_key = "73"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 74 }
			NOT = { this = { var:autonomy_progress >= 75 } }
		}
		localization_key = "74"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 75 }
			NOT = { this = { var:autonomy_progress >= 76 } }
		}
		localization_key = "75"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 76 }
			NOT = { this = { var:autonomy_progress >= 77 } }
		}
		localization_key = "76"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 77 }
			NOT = { this = { var:autonomy_progress >= 78 } }
		}
		localization_key = "77"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 78 }
			NOT = { this = { var:autonomy_progress >= 79 } }
		}
		localization_key = "78"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 79 }
			NOT = { this = { var:autonomy_progress >= 80 } }
		}
		localization_key = "79"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 80 }
			NOT = { this = { var:autonomy_progress >= 81 } }
		}
		localization_key = "80"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 81 }
			NOT = { this = { var:autonomy_progress >= 82 } }
		}
		localization_key = "81"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 82 }
			NOT = { this = { var:autonomy_progress >= 83 } }
		}
		localization_key = "82"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 83 }
			NOT = { this = { var:autonomy_progress >= 84 } }
		}
		localization_key = "83"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 84 }
			NOT = { this = { var:autonomy_progress >= 85 } }
		}
		localization_key = "84"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 85 }
			NOT = { this = { var:autonomy_progress >= 86 } }
		}
		localization_key = "85"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 86 }
			NOT = { this = { var:autonomy_progress >= 87 } }
		}
		localization_key = "86"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 87 }
			NOT = { this = { var:autonomy_progress >= 88 } }
		}
		localization_key = "87"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 88 }
			NOT = { this = { var:autonomy_progress >= 89 } }
		}
		localization_key = "88"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 89 }
			NOT = { this = { var:autonomy_progress >= 90 } }
		}
		localization_key = "89"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 90 }
			NOT = { this = { var:autonomy_progress >= 91 } }
		}
		localization_key = "90"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress = 91 }
			NOT = { this = { var:autonomy_progress >= 92 } }
		}
		localization_key = "91"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 92 }
			NOT = { this = { var:autonomy_progress >= 93 } }
		}
		localization_key = "92"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 93 }
			NOT = { this = { var:autonomy_progress >= 94 } }
		}
		localization_key = "93"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 94 }
			NOT = { this = { var:autonomy_progress >= 95 } }
		}
		localization_key = "94"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 95 }
			NOT = { this = { var:autonomy_progress >= 96 } }
		}
		localization_key = "95"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 96 }
			NOT = { this = { var:autonomy_progress >= 97 } }
		}
		localization_key = "96"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 97 }
			NOT = { this = { var:autonomy_progress >= 98 } }
		}
		localization_key = "97"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 98 }
			NOT = { this = { var:autonomy_progress >= 99 } }
		}
		localization_key = "98"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 99 }
			NOT = { this = { var:autonomy_progress >= 100 } }
		}
		localization_key = "99"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress = 100 }
			NOT = { this = { var:autonomy_progress >= 101 } }
		}
		localization_key = "100"
	}###

	text = {
		localization_key = "0"
	}
}

autonomy_percentage_simplified_for_bar = { #progress of reducing or increasing autonomy
	type = country
	random_valid = no
	log_loc_errors = no
	
	text = {
		trigger = {
			is_subject = no
		}
		localization_key = "0"
	}
	
	text = {
		trigger = {
			NOT = { this = { has_variable = autonomy_progress } }
		}
		localization_key = "0"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress < 1 }
			NOT = { this = { var:autonomy_progress >= 1 } }
		}
		localization_key = "0"
	}

	text = {
		trigger = {
			this = { var:autonomy_progress >= 1 }
			NOT = { this = { var:autonomy_progress > 5 } }
		}
		localization_key = "1"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 5 }
			NOT = { this = { var:autonomy_progress > 10 } }
		}
		localization_key = "2"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 10 }
			NOT = { this = { var:autonomy_progress > 15 } }
		}
		localization_key = "3"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 15 }
			NOT = { this = { var:autonomy_progress > 20 } }
		}
		localization_key = "4"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 20 }
			NOT = { this = { var:autonomy_progress > 25 } }
		}
		localization_key = "5"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 25 }
			NOT = { this = { var:autonomy_progress > 30 } }
		}
		localization_key = "6"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 30 }
			NOT = { this = { var:autonomy_progress > 35 } }
		}
		localization_key = "7"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 35 }
			NOT = { this = { var:autonomy_progress > 40 } }
		}
		localization_key = "8"
	}
	
	text = {
		trigger = {
			this = { country_var:autonomy_progress >= 40 }
			NOT = { this = { var:autonomy_progress > 45 } }
		}
		localization_key = "9"
	}
	
	text = {
		trigger = {
			this = { country_var:autonomy_progress >= 45 }
			NOT = { this = { var:autonomy_progress > 50 } }
		}
		localization_key = "10"
	}###
	text = {
		trigger = {
			this = { var:autonomy_progress >= 50 }
			NOT = { this = { var:autonomy_progress > 55 } }
		}
		localization_key = "11"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 55 }
			NOT = { this = { var:autonomy_progress > 60 } }
		}
		localization_key = "12"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 60 }
			NOT = { this = { var:autonomy_progress > 65 } }
		}
		localization_key = "13"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 65 }
			NOT = { this = { var:autonomy_progress > 70 } }
		}
		localization_key = "14"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 70 }
			NOT = { this = { var:autonomy_progress > 75 } }
		}
		localization_key = "15"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 75 }
			NOT = { this = { var:autonomy_progress > 80 } }
		}
		localization_key = "16"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 80 }
			NOT = { this = { var:autonomy_progress > 85 } }
		}
		localization_key = "17"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 85 }
			NOT = { this = { var:autonomy_progress > 90 } }
		}
		localization_key = "18"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 90 }
			NOT = { this = { var:autonomy_progress > 95 } }
		}
		localization_key = "19"
	}
	
	text = {
		trigger = {
			this = { var:autonomy_progress >= 95 }
			NOT = { this = { var:autonomy_progress > 100 } }
		}
		localization_key = "20"
	}###

	text = {
		localization_key = "0"
	}
}