### kuči clan ###
defined_text = {
	name = kuciloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
	#this mean the clan is in another state. MNT can get the state but in the start MNT haven´t this state
	text = {
		trigger = {
			check_variable = {
				var = montenegro_KUCI_loyalty
				value = -5
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_outer
	}
}

### vasojevíci clan ###
defined_text = {
	name = vasojeviciloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
	#this mean the clan is in another state. MNT can get the state but in the start MNT haven´t this state
	text = {
		trigger = {
			check_variable = {
				var = montenegro_VASOJEVICI_loyalty
				value = -5
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_outer
	}
}

###drobnjaci clan ###
defined_text = {
	name = drobnjaciloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
	#this mean the clan is in another state. MNT can get the state but in the start MNT haven´t this state
	text = {
		trigger = {
			check_variable = {
				var = montenegro_DROBNJACI_loyalty
				value = -5
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_outer
	}
}

###Piperi clan ###
defined_text = {
	name = piperiloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_PIPERI_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
}

##cuce clan ###
defined_text = {
	name = cuceloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CUCE_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
}

###njeguši clan ###
defined_text = {
	name = njegusiloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_NJEGUSI_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
}

###ceklin clan ###
defined_text = {
	name = ceklinloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_CEKLIN_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
}

###Bjelice clan ###
defined_text = {
	name = bjeliceloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_BJELICE_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
}

###Grahovo clan ###
defined_text = {
	name = grahovoloyalty
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = 3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_absolutely_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = 2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_high_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = 1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_loyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = 0
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_neutrality
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = -1
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_disloyal
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = -2
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_opponent
	}
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = -3
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_revolt
	}
	#this mean the clan is in another state. MNT can get the state but in the start MNT haven´t this state
	text = {
		trigger = {
			check_variable = {
				var = montenegro_GRAHOVO_loyalty
				value = -5
				compare = equals
			}
		}
		localization_key = CLAN_loyalty_outer
	}
}

######## before grahovac #########
defined_text = {
	name = the_Montenegrin_question
	text = {
		trigger = {
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			NOT = {
				MNT = {
					has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
				}
			}
		}
		localization_key = MNT_herzegovina_uprising_t
	}
	text = {
		trigger = {
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			MNT = {
				has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
			}
		}
		localization_key = montenegro_revolt_t
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
		}
		localization_key = montenegro_ottomans_neogotiations_t
	}
	text = {
		trigger = {
			has_global_flag = MNT_war_1858
		}
		localization_key = montenegro_war_1858_t
	}
}

defined_text = {
	name = herzegovina_uprising_stages
	text = {
		### only for serbia ###
		trigger = {
			tag = SER
			NOT = {
				SER = {
					has_country_flag = SER_support_herzegovina_uprising
				}
			}
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			NOT = {
				MNT = {
					has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
				}
			}
		}
		localization_key = before_matamovic
	}
	text = {
		### for montenegro .if Serbia support uprisnig else for serbia ###
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_guerrilla_war
			}
		}
		localization_key = herzegovina_uprising_1857_MNT
	}
	text = {
		### for ottomans ###
		trigger = {
			tag = OTO
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			NOT = {
				MNT = {
					has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
				}
			}
		}
		localization_key = herzegovina_uprising_1857_OTO
	}
	text = {
		### for austria ###
		trigger = {
			tag = AUS
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			NOT = {
				MNT = {
					has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
				}
			}
		}
		localization_key = herzegovina_uprising_1857_AUS
	}
	text = {
		trigger = {
			OTO = {
				has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			}
			MNT = {
				has_completed_focus = MNT_focus_outbreak_of_the_pro_Montenegro_revolt
			}
		}
		localization_key = montenegro_revolt_desc
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
		}
		localization_key = montenegro_ottomans_neogotiations_desc
	}
	text = {
		trigger = {
			has_global_flag = MNT_war_1858
		}
		localization_key = montenegro_war_1858_desc
	}
}

defined_text = {
	name = wiew_stats
	text = {
		localization_key = stats
	}
}

### MNT OTO war HP count
defined_text = {
	name = MNT_lives
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 1
				compare = equals
			}
		}
		localization_key = one_live_MNT
	}
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 2
				compare = equals
			}
		}
		localization_key = two_lives_MNT
	}
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 3
				compare = equals
			}
		}
		localization_key = three_lives_MNT
	}
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 4
				compare = equals
			}
		}
		localization_key = four_lives_MNT
	}
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 5
				compare = equals
			}
		}
		localization_key = five_lives_MNT
	}
	text = {
		trigger = {
			check_variable = {
				var = MNT.available_lives
				value = 6
				compare = equals
			}
		}
		localization_key = six_lives_MNT
	}
}

defined_text = {
	name = OTO_lives
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 1
				compare = equals
			}
		}
		localization_key = one_live_OTO
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 2
				compare = equals
			}
		}
		localization_key = two_lives_OTO
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 3
				compare = equals
			}
		}
		localization_key = three_lives_OTO
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 4
				compare = equals
			}
		}
		localization_key = four_lives_OTO
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 5
				compare = equals
			}
		}
		localization_key = five_lives_OTO
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.available_lives
				value = 6
				compare = equals
			}
		}
		localization_key = six_lives_OTO
	}
}

### herzegovina  urpising variables ###
defined_text = {
	name = tension
	text = {
		trigger = {
			OR = {
				tag = MNT
				tag = OTO
			}
		}
		localization_key = BG_tension
	}
}

defined_text = {
	name = spies
	text = {
		trigger = {
			if = {
				limit = {
					tag = OTO
				}
				tag = OTO
			}
			if = {
				limit = {
					tag = AUS
				}
				tag = AUS
				AUS = {
					check_variable = {
						AUS.austria_support_to_MNT = 3
					}
				}
			}
			if = {
				limit = {
					tag = RUS
				}
				tag = RUS
				RUS = {
					check_variable = {
						RUS.russia_support_to_MNT = 3
					}
				}
			}
			if = {
				limit = {
					tag = FRA
				}
				tag = FRA
				FRA = {
					check_variable = {
						FRA.france_support_to_MNT = 3
					}
				}
			}
			NOT = {
				OR = {
					tag = MNT
					tag = SER
				}
			}
		}
		localization_key = BG_spies
	}
}

defined_text = {
	name = france_support
	text = {
		trigger = {
			FRA = {
				check_variable = {
					FRA.france_support_to_MNT = 1
				}
			}
		}
		localization_key = france_support_1
	}
	text = {
		trigger = {
			FRA = {
				check_variable = {
					FRA.france_support_to_MNT = 2
				}
			}
		}
		localization_key = france_support_2
	}
	text = {
		trigger = {
			FRA = {
				check_variable = {
					FRA.france_support_to_MNT = 3
				}
			}
		}
		localization_key = france_support_3
	}
}

defined_text = {
	name = russia_support
	text = {
		trigger = {
			RUS = {
				check_variable = {
					RUS.russia_support_to_MNT = 1
				}
			}
		}
		localization_key = russia_support_1
	}
	text = {
		trigger = {
			RUS = {
				check_variable = {
					RUS.russia_support_to_MNT = 2
				}
			}
		}
		localization_key = russia_support_2
	}
	text = {
		trigger = {
			RUS = {
				check_variable = {
					RUS.russia_support_to_MNT = 3
				}
			}
		}
		localization_key = russia_support_3
	}
}

defined_text = {
	name = austria_support
	text = {
		trigger = {
			AUS = {
				check_variable = {
					AUS.austria_support_to_MNT = 1
				}
			}
		}
		localization_key = austria_support_1
	}
	text = {
		trigger = {
			AUS = {
				check_variable = {
					AUS.austria_support_to_MNT = 2
				}
			}
		}
		localization_key = austria_support_2
	}
	text = {
		trigger = {
			AUS = {
				check_variable = {
					AUS.austria_support_to_MNT = 3
				}
			}
		}
		localization_key = austria_support_3
	}
}

defined_text = {
	name = is_france_supporter
	text = {
		trigger = {
			FRA = {
				check_variable = {
					FRA.france_support_to_MNT = 1
				}
			}
		}
		localization_key = yes_FRA_is_supporter
	}
}

defined_text = {
	name = is_russia_supporter
	text = {
		trigger = {
			RUS = {
				check_variable = {
					RUS.russia_support_to_MNT = 1
				}
			}
		}
		localization_key = yes_RUS_is_supporter
	}
}

defined_text = {
	name = is_austria_supporter
	text = {
		trigger = {
			AUS = {
				check_variable = {
					AUS.austria_support_to_MNT = 1
				}
			}
		}
		localization_key = yes_AUS_is_supporter
	}
}

defined_text = {
	name = bonus_5_sl
	text = {
		trigger = {
			has_country_flag = MNT_battle_advantage
		}
		localization_key = bonus_5_BA
	}
	text = {
		trigger = {
			OR = {
				has_idea = MNT_idea_clan_partial_mobilisation
				has_idea = MNT_idea_clan_mobilisation
			}
		}
		localization_key = bonus_5_CM
	}
}

##### neogations shop ##################
defined_text = {
	name = MNT_indenpendence
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_country_flag = have_indenpendence_montengro
				}
			}
			MNT = {
				NOT = {
					has_country_flag = not_gained_independence
				}
			}
		}
		localization_key = MNT_indenpendence_not_bought
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = have_indenpendence_montengro
			}
		}
		localization_key = MNT_indenpendence_bought
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = not_gained_independence
			}
		}
		localization_key = MNT_indenpendence_give_up
	}
}

defined_text = {
	name = MNT_outer_montenegro
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_country_flag = have_outer_montenegro
				}
			}
			MNT = {
				NOT = {
					has_country_flag = not_gained_outer_montenegro
				}
			}
		}
		localization_key = MNT_outer_montenegro_not_bought
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = have_outer_montenegro
			}
		}
		localization_key = MNT_outer_montenegro_bought
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = not_gained_outer_montenegro
			}
		}
		localization_key = MNT_outer_montenegro_give_up
	}
}

defined_text = {
	name = MNT_arms_import
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_country_flag = have_arms_import
				}
			}
		}
		localization_key = MNT_arms_import_not_bought
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = have_arms_import
			}
		}
		localization_key = MNT_arms_import_bought
	}
}

defined_text = {
	name = OTO_deport_mirko
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_global_flag = deport_mirko_petrovic_njegos
				}
			}
		}
		localization_key = OTO_deport_mirko_petrovic_njegos_not_bouhgt
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = deport_mirko_petrovic_njegos
			}
		}
		localization_key = OTO_deport_mirko_petrovic_njegos_bought
	}
}

defined_text = {
	name = OTO_protect_muslim_landlords
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_country_flag = protect_muslim_landlords
				}
			}
		}
		localization_key = OTO_protect_muslim_landlords_not_bouhgt
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = protect_muslim_landlords
			}
		}
		localization_key = OTO_protect_muslim_landlords_bought
	}
}

defined_text = {
	name = OTO_demand_pay_repayment
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				NOT = {
					has_country_flag = demanded_debt_repayment
				}
			}
		}
		localization_key = OTO_demand_debt_repayment_not_bouhgt
	}
	text = {
		trigger = {
			MNT = {
				has_completed_focus = MNT_focus_negotiations_with_the_ottomans_n
			}
			has_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				has_country_flag = demanded_debt_repayment
			}
		}
		localization_key = OTO_demand_debt_repayment_bought
	}
}

defined_text = {
	name = ottoman_better_offer_i
	text = {
		trigger = {
			MNT = {
				check_variable = {
					var = MNT.MNT_neogotions
					value = MNT.MNT_neogotions_indenpendence_price
					compare = greater_than_or_equals
				}
			}
		}
		localization_key = it_better_to_get_2
	}
	text = {
		trigger = {
			MNT = {
				NOT = {
					check_variable = {
						var = MNT.MNT_neogotions
						value = MNT.MNT_neogotions_indenpendence_price
						compare = greater_than_or_equals
					}
				}
			}
		}
		localization_key = we_havent_points
	}
}

defined_text = {
	name = ottoman_better_offer_t
	text = {
		trigger = {
			MNT = {
				check_variable = {
					var = MNT.MNT_neogotions
					value = MNT.MNT_neogotions_new_territoy_price
					compare = greater_than_or_equals
				}
			}
		}
		localization_key = it_better_to_get_3
	}
	text = {
		trigger = {
			MNT = {
				NOT = {
					check_variable = {
						var = MNT.MNT_neogotions
						value = MNT.MNT_neogotions_new_territoy_price
						compare = greater_than_or_equals
					}
				}
			}
		}
		localization_key = we_havent_points
	}
}

######## mostar conditions for event OTO_battleofgrahovac.24
defined_text = {
	name = mostar_condition_MNT_indenpendence
	text = {
		trigger = {
			MNT = {
				has_country_flag = have_indenpendence_montengro
			}
		}
		localization_key = have_indenpendence_M
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = not_gained_independence
			}
		}
		localization_key = havent_independence_M
	}
}

defined_text = {
	name = mostar_condition_MNT_new_territory
	text = {
		trigger = {
			MNT = {
				has_country_flag = have_outer_montenegro
			}
		}
		localization_key = outer_montengro_yes_M
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = not_gained_outer_montenegro
			}
		}
		localization_key = outer_montengro_no_M
	}
}

defined_text = {
	name = mostar_condition_MNT_arms_import
	text = {
		trigger = {
			MNT = {
				has_country_flag = have_arms_import
			}
		}
		localization_key = arms_import_yes_M
	}
}

defined_text = {
	name = mostar_condition_OTO_deport_mirko_petrovic_njegos_M
	text = {
		trigger = {
			MNT = {
				has_country_flag = deport_mirko_petrovic_njegos
			}
		}
		localization_key = deport_mirko_yes_M
	}
}

defined_text = {
	name = mostar_condition_OTO_protect_muslim_landlords_M
	text = {
		trigger = {
			MNT = {
				has_country_flag = protect_muslim_landlords
			}
		}
		localization_key = protect_muslim_yes_M
	}
}

defined_text = {
	name = mostar_condition_OTO_demand_debt_repayment
	text = {
		trigger = {
			MNT = {
				has_country_flag = demanded_debt_repayment
			}
		}
		localization_key = debt_repayment_M
	}
}

##########################
#### MNT OTO war 1858 ####
defined_text = {
	name = opponent_country
	text = {
		trigger = {
			tag = OTO
		}
		localization_key = it_is_montenegro
	}
	text = {
		trigger = {
			tag = MNT
		}
		localization_key = it_is_ottoman_empire
	}
}

defined_text = {
	name = opponent_country
	text = {
		trigger = {
			tag = OTO
		}
		localization_key = it_is_montenegro
	}
	text = {
		trigger = {
			tag = MNT
		}
		localization_key = it_is_ottoman_empire
	}
}

defined_text = {
	name = who_win_war
	text = {
		trigger = {
			has_global_flag = RUS_win_grahovac
		}
		localization_key = russia_win
	}
	text = {
		trigger = {
			has_global_flag = FRA_win_grahovac
		}
		localization_key = france_win
	}
}

defined_text = {
	name = who_make_diplomatic_presure
	text = {
		trigger = {
			tag = OTO
		}
		localization_key = pressure_on_OTO
	}
	text = {
		trigger = {
			tag = MNT
		}
		localization_key = pressure_on_MNT
	}
}

defined_text = {
	name = who_make_diplomatic_pressure_OTO
	text = {
		trigger = {
			MNT = {
				has_country_flag = FRA_make_diplomatic_pressure_OTO
				has_country_flag = RUS_make_diplomatic_pressure_OTO
			}
		}
		localization_key = FRA_RUS_make_pressure
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = FRA_make_diplomatic_pressure_OTO
			}
		}
		localization_key = FRA_make_pressure
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = RUS_make_diplomatic_pressure_OTO
			}
		}
		localization_key = RUS_make_pressure
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = AUS_make_diplomatic_pressure_OTO
			}
		}
		localization_key = AUS_make_pressure
	}
}

defined_text = {
	name = who_make_diplomatic_pressure_MNT
	text = {
		trigger = {
			MNT = {
				has_country_flag = FRA_make_diplomatic_pressure_MNT
			}
		}
		localization_key = FRA_make_pressure
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = RUS_make_diplomatic_pressure_MNT
			}
		}
		localization_key = RUS_make_pressure
	}
	text = {
		trigger = {
			MNT = {
				has_country_flag = AUS_make_diplomatic_pressure_MNT
			}
		}
		localization_key = AUS_make_pressure
	}
}

### divisions count ###
defined_text = {
	name = divisions_in_montenegro_region
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 1
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_1
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 2
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_2
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 3
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_3
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 4
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_4
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 5
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_5
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 6
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_6
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 7
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_7
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 8
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_8
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 9
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_9
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 10
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_10
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 11
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_11
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 12
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_12
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 13
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_13
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 14
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_14
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 15
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_15
	}
	text = {
		trigger = {
			OTO = {
				num_divisions_in_states = {
					count = 16
					states = {
						1204
						1202
						225
						1205
						966
						942
					}
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_16
	}
	text = {
		trigger = {
			num_divisions_in_states = {
				count > 16
				states = {
					1204
					1202
					225
					1205
					966
					942
				}
			}
		}
		localization_key = MNT_divisions_in_montenegro_region_16_over
	}
}

### division  limit count ###
defined_text = {
	name = divisions_limit
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = -1
				compare = equals
			}
		}
		localization_key = max_limit_7
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 0
				compare = equals
			}
		}
		localization_key = max_limit_8
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 1
				compare = equals
			}
		}
		localization_key = max_limit_10
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 2
				compare = equals
			}
		}
		localization_key = max_limit_12
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 3
				compare = equals
			}
		}
		localization_key = max_limit_14
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 3
				compare = equals
			}
		}
		localization_key = max_limit_14
	}
	text = {
		trigger = {
			check_variable = {
				var = OTO.OTO_max_limit
				value = 4
				compare = equals
			}
		}
		localization_key = max_limit_16
	}
}

defined_text = {
	name = FRA_casus_beli
	text = {
		trigger = {
			check_variable = {
				var = FRA.casus_beli_on_OTO
				value = 1
				compare = greater_than_or_equals
			}
		}
		localization_key = FRA_have_casus_beli
	}
}

defined_text = {
	name = RUS_casus_beli
	text = {
		trigger = {
			check_variable = {
				var = RUS.casus_beli_on_OTO
				value = 1
				compare = greater_than_or_equals
			}
		}
		localization_key = RUS_have_casus_beli
	}
}

defined_text = {
	name = AUS_casus_beli
	text = {
		trigger = {
			check_variable = {
				var = AUS.casus_beli_on_OTO
				value = 1
				compare = greater_than_or_equals
			}
		}
		localization_key = AUS_have_casus_beli
	}
}

defined_text = {
	name = success_count_visibility
	text = {
		trigger = {
			is_debug = yes
		}
		localization_key = MNT_sc_visible
	}
}
