OTO_trigger_a_city_is_ready_for_hellenization = {
	OTO = {
		OR = {
			#Dobruja
			AND = {
				check_variable = {
					var = OTO_varna_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_varna_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_dobrich_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_dobrich_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_silistra_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_silistra_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tutrakan_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tutrakan_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kyustendja_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kyustendja_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tulcea_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tulcea_being_hellenized_flag
				}
			}
			#Moesia
			AND = {
				check_variable = {
					var = OTO_vidin_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_vidin_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_vratsa_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_vratsa_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_pleven_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_pleven_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tarnovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tarnovo_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_gabrovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_gabrovo_being_hellenized_flag
				}
			}
			#Thrace
			AND = {
				check_variable = {
					var = OTO_plodiv_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_plovdiv_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_burgas_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_burgas_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kazanlak_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kazanlak_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kavala_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kavala_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_komotini_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_komotini_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_drama_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_drama_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_odrin_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_odrin_being_hellenized_flag
				}
			}
			#Macedonia
			AND = {
				check_variable = {
					var = OTO_skopie_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTOskopie_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_bitolya_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_bitolya_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_gorna_djumaya_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_gorna_djumaya_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tetovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tetovo_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_serres_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_serres_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kukush_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 0.05
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kukush_being_hellenized_flag
				}
			}
		}
	}
}

OTO_trigger_a_city_ends_hellenization = {
	OTO = {
		OR = {
			#Dobruja
			AND = {
				has_country_flag = {
					flag = OTO_varna_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_varna_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_dobrich_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_dobrich_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_silistra_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_silistra_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_tutrakan_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_tutrakan_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_kyustendja_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_kyustendja_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_tulcea_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_tulcea_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			#Moesia
			AND = {
				has_country_flag = {
					flag = OTO_vidin_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_vidin_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_vratsa_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_vratsa_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_pleven_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_pleven_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_tarnovo_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_tarnovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_gabrovo_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_gabrovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}

			#Thrace
			AND = {
				has_country_flag = {
					flag = OTO_plovdiv_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_plodiv_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_burgas_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_burgas_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_kazanlak_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_kazanlak_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_kavala_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_kavala_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_komotini_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_komotini_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_drama_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_drama_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_odrin_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_odrin_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}

			#Macedonia
			AND = {
				has_country_flag = {
					flag = OTO_skopie_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_skopie_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_bitolya_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_bitolya_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_gorna_djumaya_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_gorna_djumaya_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_tetovo_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_tetovo_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_serres_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_serres_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_kukush_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_kukush_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
			AND = {
				has_country_flag = {
					flag = OTO_solyn_being_hellenized_flag
					days > 365
				}
				check_variable = {
					var = OTO_solyn_separatism
					value = 0.05
					compare = less_than_or_equals
				}
			}
		}
	}
}

OTO_trigger_a_city_is_locked = {
	OTO = {
		OR = {
			#Dobruja
			AND = {
				check_variable = {
					var = OTO_varna_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_varna_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_dobrich_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_dobrich_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_silistra_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_silistra_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tutrakan_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tutrakan_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kyustendja_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kyustendja_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tulcea_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tulcea_being_hellenized_flag
				}
			}
			#Moesia
			AND = {
				check_variable = {
					var = OTO_vidin_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_vidin_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_vratsa_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_vratsa_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_pleven_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_pleven_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tarnovo_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tarnovo_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_gabrovo_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_gabrovo_being_hellenized_flag
				}
			}
			#Thrace
			AND = {
				check_variable = {
					var = OTO_plodiv_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_plovdiv_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_burgas_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_burgas_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kazanlak_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kazanlak_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kavala_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kavala_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_komotini_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_komotini_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_drama_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_drama_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_odrin_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_odrin_being_hellenized_flag
				}
			}
			#Macedonia
			AND = {
				check_variable = {
					var = OTO_skopie_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTOskopie_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_bitolya_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_bitolya_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_gorna_djumaya_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_gorna_djumaya_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_tetovo_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_tetovo_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_serres_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_serres_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kukush_being_hellenized_flag
				}
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 1
					compare = less_than_or_equals
				}
				NOT = {
					has_country_flag = OTO_kukush_being_hellenized_flag
				}
			}
		}
	}
}

OTO_trigger_a_city_is_fully_hellenized = {
	OTO = {
		OR = {
			#Dobruja
			AND = {
				check_variable = {
					var = OTO_varna_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_varna_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_dobrich_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_dobrich_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_silistra_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_silistra_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_tutrakan_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_tutrakan_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_kyustendja_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_kyustendja_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_tulcea_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_tulcea_being_hellenized_flag
			}
			#Moesia
			AND = {
				check_variable = {
					var = OTO_vidin_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_vidin_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_vratsa_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_vratsa_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_pleven_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_pleven_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_tarnovo_separatism
					value = 1
					compare = less_than_or_equals
				}
					has_country_flag = OTO_tarnovo_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_gabrovo_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_gabrovo_being_hellenized_flag
			}
			#Thrace
			AND = {
				check_variable = {
					var = OTO_plodiv_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_plovdiv_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_burgas_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_burgas_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_kazanlak_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_kazanlak_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_kavala_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_kavala_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_komotini_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_komotini_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_drama_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_drama_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_odrin_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_odrin_being_hellenized_flag
			}
			#Macedonia
			AND = {
				check_variable = {
					var = OTO_skopie_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTOskopie_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_bitolya_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_bitolya_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_gorna_djumaya_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_gorna_djumaya_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_tetovo_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_tetovo_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_serres_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_serres_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_kukush_being_hellenized_flag
			}
			AND = {
				check_variable = {
					var = OTO_kukush_separatism
					value = 1
					compare = less_than_or_equals
				}
				has_country_flag = OTO_kukush_being_hellenized_flag
			}
		}
	}
}