add_namespace = tajik_focus
add_namespace = tajik_radicalism
add_namespace = tajik_corruption
add_namespace = iranic_confederation
add_namespace = pamir_conflict
add_namespace = tajik_flavor
add_namespace = tajik_lore

# Flavor

country_event = {
	id = tajik_flavor.1
	title = tajik_flavor.1.t
	desc = tajik_flavor.1.d
	picture = GFX_TAJ_watermelon
	is_triggered_only = yes

	trigger = { TAJ_emomali_family_in_charge = yes }

	option = {
		name = tajik_flavor.1.a
		log = "[GetDateText]: [This.GetName]: tajik_flavor.1.a executed"
		add_stability = -0.01
		hidden_effect = {
			if = {
				limit = { has_country_flag = TAJ_party_name }
				create_country_leader = {
					name = "Emomali Rahmon"
					picture = "Emomali_Rahmon.dds"
					ideology = Nat_Populism
					traits = {
						nationalist_Nat_Populism
						hands_that_crafted_the_nation
						his_excellency
						military_career
						capable
						political_dancer
					}
				}
			}
			else = {
				create_country_leader = {
					name = "Emomali Rahmon"
					picture = "Emomali_Rahmon.dds"
					ideology = Conservative
					traits = {
						emerging_Conservative
						hands_that_crafted_the_nation
						his_excellency
						military_career
						political_dancer
						capable
					}
				}
			}
		}
		ai_chance = { base = 1 }
	}
}

news_event = {
	id = tajik_flavor.2
	title = tajik_flavor.2.t
	desc = tajik_flavor.2.d
	picture = GFX_TAJ_uto_world
	is_triggered_only = yes
	major = yes

	option = {
		name = tajik_flavor.2.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_flavor.3
	is_triggered_only = yes
	hidden = yes

	immediate = {
		log = "[GetDateText]: [This.GetName]: tajik_flavor.3 executed"
		UZB = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_autonomous_state
				end_wars = no
				end_civil_wars = no
			}
		}
		set_popularities = {
			nationalist = 100
		}
		set_politics = {
			ruling_party = nationalist
			last_election = "2001.2.8"
			election_frequency = 48
			elections_allowed = yes
		}
		start_politics_input = yes
		### Party Popularities
		set_variable = { party_pop_array^22 = 1 } #Nat_Autocracy
		### Ruling Party
		set_variable = { ruling_party = 22 }
		startup_politics = yes
		set_cosmetic_tag = UZB_REB_S_nationalist
		set_variable = { dynamic_flag_variant = 8 }
		TAJ = {
			every_core_state = {
				add_core_of = ROOT
			}
		}
		# Leader
		create_country_leader = {
			name = "Abdusalom Azizov"
			picture = "Portrait_Abdusalom_Azizov.dds"
			ideology = Nat_Autocracy
			traits = {
				nationalist_Nat_Autocracy
			}
		}
	}
}

# Focus Events

country_event = {
	id = tajik_focus.1 # Dress code event
	title = tajik_focus.1.t
	desc = tajik_focus.1.d
	picture = GFX_event_tajikistan_flag
	is_triggered_only = yes

	option = {
		name = tajik_focus.1.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.1.a executed"
		add_popularity = {
			ideology = fascism
			popularity = -0.05
		}
		724 = { add_manpower = -50000 }
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.1.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.1.b executed"
		add_popularity = {
			ideology = fascism
			popularity = 0.10
		}
		724 = { add_manpower = 100000 }
		ai_chance = { base = 1 }
	}
}

# Tajikistan Invites Us to the TAJ Pact
country_event = {
	id = tajik_focus.2
	title = tajik_focus.2.t
	desc = tajik_focus.2.d
	picture = GFX_event_tajikistan_flag
	is_triggered_only = yes

	option = {
		name = tajik_focus.2.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.2.a executed"
		set_temp_variable = { faction_goal_refresh_transferred_leader = 0 }
		if = {
			limit = {
				original_tag = PER
				is_faction_leader = yes
				has_faction_template = faction_template_aor
			}
			dismantle_faction = yes
		}
		else_if = {
			limit = {
				NOT = { original_tag = PER }
				is_faction_leader = yes
			}
			if = {
				limit = { check_variable = { allies^num > 0 } }
				random_allied_country = {
					set_faction_leader = yes
					save_event_target_as = faction_goal_transferred_leader
				}
				set_temp_variable = { faction_goal_refresh_transferred_leader = 1 }
				leave_faction = yes
			}
			else = { dismantle_faction = yes }
		}
		else_if = {
			limit = { is_in_faction = yes }
			leave_faction = yes
		}
		TAJ = { add_to_faction = PREV }
		if = {
			limit = { check_variable = { faction_goal_refresh_transferred_leader = 1 } }
			hidden_effect = { event_target:faction_goal_transferred_leader = { faction_goal_refresh_all_caches = yes } }
		}
		ai_chance = { base = 10 }
	}

	option = {
		name = tajik_focus.2.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.2.b executed"
		TAJ = {
			country_event = { id = tajik_focus.3 days = 1 }
		}
		ai_chance = {
			base = 1
			modifier = {
				is_in_faction = yes
				add = 100
			}
		}
	}
}

# They rejected
country_event = {
	id = tajik_focus.3
	title = tajik_focus.3.t
	desc = tajik_focus.3.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = tajik_focus.3.a
		ai_chance = { base = 1 }
	}
}

# Tajikistan asks for investments
country_event = {
	id = tajik_focus.4
	title = tajik_focus.4.t
	desc = tajik_focus.4.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = tajik_focus.4.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.4.a executed"
		custom_effect_tooltip = TAJ_effect_if_we_accept_TT
		effect_tooltip = {
			TAJ = { one_random_industrial_complex = yes }
			set_temp_variable = { percent_change = 3.00 }
			set_temp_variable = { tag_index = SAU }
			set_temp_variable = { influence_target = TAJ }
			change_influence_percentage = yes
		}
		TAJ = { country_event = tajik_focus.5 }
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = { target = TAJ value > 20 }
				add = 20
			}
		}
	}

	option = {
		name = tajik_focus.4.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.4.b executed"
		TAJ = { country_event = tajik_focus.6 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.5 # We Get Investment
	title = tajik_focus.5.t
	desc = tajik_focus.5.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = {
		name = tajik_focus.5.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.5.a executed"
		one_random_industrial_complex = yes
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.6 # We Get No Investment
	title = tajik_focus.6.t
	desc = tajik_focus.6.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = tajik_focus.6.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.7 # Tajikistan Requests Medical Assistance
	title = tajik_focus.7.t
	desc = tajik_focus.7.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.7.a # Send over medical experts
		log = "[GetDateText]: [This.GetName]: tajik_focus.7.a executed"
		TAJ = {
			country_event = {
				id = tajik_focus.8
				days = 2
			}
		}
		set_temp_variable = { percent_change = 3.00 }
		set_temp_variable = { tag_index = USA }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		ai_chance = {
			base = 1
			modifier = {
				USA = {
					has_opinion = { target = TAJ value > 20 }
				}
				add = 20
			}
		}
	}

	option = {
		name = tajik_focus.7.b # We will do no such thing
		log = "[GetDateText]: [This.GetName]: tajik_focus.7.a executed"
		TAJ = {
			country_event = {
				id = tajik_focus.9
				days = 2
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_focus.8 # U.S. Sends Medical Doctors
	title = tajik_focus.8.t
	desc = tajik_focus.8.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.8.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.8.a executed"
		set_country_flag = TAJ_nuri_cured
		custom_effect_tooltip = TAJ_nuri_gets_live_longer_TT
		add_to_variable = { var = TAJ_nuri_months value = 36 }
		clamp_variable = { var = TAJ_nuri_months min = -36 max = 0 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.9 # U.S. Refuses to Sends Medical Doctors
	title = tajik_focus.9.t
	desc = tajik_focus.9.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = tajik_focus.9.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.10 # Nuri dies
	title = tajik_focus.10.t
	desc = tajik_focus.10.d
	is_triggered_only = yes

	trigger = {
		TAJ = {
			has_country_leader = { name = "Sayid Abdulloh Nuri" ruling_only = yes }
		}
	}

	option = {
		name = tajik_focus.10.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.10.a executed"
		create_country_leader = {
			name = "Muhiddin Kabiri"
			picture = "muhiddin_kabiri.dds"
			ideology = Neutral_Muslim_Brotherhood
			traits = {
				neutrality_Neutral_Muslim_Brotherhood
			}
		}
		if = {
			limit = { NOT = { has_country_flag = TAJ_nuri_cured } }
			add_stability = -0.05
			set_temp_variable = { party_popularity_increase = -0.1 }
			set_temp_variable = { temp_outlook_increase = -0.1 }
			change_relative_party_popularity = yes
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.11
	title = tajik_focus.11.t
	desc = tajik_focus.11.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Accepts
		name = tajik_focus.11.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.11.a executed"
		FROM = {
			country_event = {
				id = AFG_contact_iran.4
				days = 0
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Declines
		name = tajik_focus.11.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.11.b executed"
		FROM = {
			country_event = {
				id = AFG_contact_iran.5
				days = 0
			}
		}
		ai_chance = {
			base = 0
		}
	}
}

country_event = { # Tajikistan Invites us to Central Asian Security Association
	id = tajik_focus.12
	title = tajik_focus.12.t
	desc = tajik_focus.12.d
	picture = GFX_event_tajikistan_flag
	is_triggered_only = yes

	option = { # Accepts
		name = tajik_focus.12.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.12.a executed"
		diplomatic_relation = {
			country = FROM
			relation = guarantee
		}
		FROM = {
			country_event = {
				id = tajik_focus.14
				days = 1
			}
		}
		ai_chance = {
			base = 2
			modifier = {
				ROOT = {
					has_opinion = { target = TAJ value > 20 }
				}
				add = 20
			}
		}
	}

	option = { # Declines
		name = tajik_focus.12.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.12.b executed"
		FROM = {
			country_event = {
				id = tajik_focus.15
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_focus.14
	title = tajik_focus.14.t
	desc = tajik_focus.14.d
	picture = GFX_event_tajikistan_flag
	is_triggered_only = yes

	option = { # Accepts
		name = tajik_focus.14.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.14.a executed"
		diplomatic_relation = {
			country = FROM
			relation = guarantee
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_focus.15
	title = tajik_focus.15.t
	desc = tajik_focus.15.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = { # Accepts
		name = tajik_focus.15.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { #Tajikistan Wants to Strengthen Ties
	id = tajik_focus.16
	title = tajik_focus.16.t
	desc = tajik_focus.16.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # Accepts
		name = tajik_focus.16.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.16.a executed"
		TAJ = {
			country_event = {
				id = tajik_focus.17
				days = 2
			}
		}
		add_opinion_modifier = {
			target = TAJ
			modifier = has_expressed_loyalty
		}
		TAJ = {
			add_opinion_modifier = {
				target = USA
				modifier = has_expressed_loyalty
			}
		}
		ai_chance = {
			base = 2
			modifier = {
				ROOT = {
					has_opinion = { target = TAJ value > 20 }
				}
				add = 20
			}
		}
	}

	option = { # Rejects
		name = tajik_focus.16.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.16.b executed"
		TAJ = {
			country_event = {
				id = tajik_focus.18
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { #America Offers Support
	id = tajik_focus.17
	title = tajik_focus.17.t
	desc = tajik_focus.17.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = tajik_focus.17.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.17.a executed"
		one_random_industrial_complex = yes
		one_random_arms_factory = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.17.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.17.b executed"
		one_office_construction = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.17.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.17.c executed"
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.1 }
		set_temp_variable = { temp_outlook_increase = 0.1 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = 300
		ai_chance = { base = 1 }
	}
}

country_event = { #America Does Not Offer Support
	id = tajik_focus.18
	title = tajik_focus.18.t
	desc = tajik_focus.18.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = tajik_focus.18.a
		ai_chance = { base = 1 }
	}
}

country_event = { # A Change in Course?
	id = tajik_focus.19
	title = tajik_focus.19.t
	desc = tajik_focus.19.d
	picture = GFX_event_tajikistan_flag
	is_triggered_only = yes

	option = {
		name = tajik_focus.19.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.19.a executed"
		set_country_flag = TAJ_changed_in_course
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 19 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 4 }
			set_temp_variable = { party_popularity_increase = -0.99 }
			set_temp_variable = { temp_outlook_increase = -0.99 }
			change_relative_party_popularity = yes
		}
		if = {
			limit = { has_country_flag = TAJ_shodi }
			create_country_leader = {
				name = "Shodi Shabdolov "
				picture = "shodi_shabdolov.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
					communist_revolutionary
					popular_figurehead
				}
			}
		}
		if = {
			limit = { has_country_flag = TAJ_abdulloyev }
			create_country_leader = {
				name = "Miroj Abdulloyev"
				picture = "miroj_abdulloyev.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
					union_man
					agrarian_expert
					silent_workhorse
				}
			}
		}
		if = {
			limit = { has_country_flag = TAJ_talbakov }
			create_country_leader = {
				name = "Ismoil Talbakov"
				picture = "ismoil_talbakov.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
					scientist
					ex_engineer
				}
			}
		}
		else = {
			create_country_leader = {
				name = "Shodi Shabdolov "
				picture = "shodi_shabdolov.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.19.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.19.b executed"
		set_temp_variable = { party_index = 4 }
		set_temp_variable = { party_popularity_increase = 0.1 }
		set_temp_variable = { temp_outlook_increase = 0.1 }
		change_relative_party_popularity = yes
		newline = yes
		set_temp_variable = { temp_opinion = 5 }
		change_farmers_opinion = yes
		newline = yes
		set_temp_variable = { temp_opinion = 5 }
		change_oligarchs_opinion = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Pursues Aggressive Nationalization
	id = tajik_focus.20
	title = tajik_focus.20.t
	desc = tajik_focus.20.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # Don't care
		name = tajik_focus.20.a
		ai_chance = {
			base = 1
		}
	}

	option = { # Embargo
		name = tajik_focus.20.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.20.b executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = TAJ
		}
		TAJ = {
			country_event = {
				id = tajik_focus.21
				days = 1
			}
		}
		ai_chance = {
			base = 2
		}
	}
}

country_event = { # We've Been Sanctioned
	id = tajik_focus.21
	title = tajik_focus.21.t
	desc = tajik_focus.21.d
	picture = GFX_raid_international_sanctions
	is_triggered_only = yes

	option = { # Don't care
		name = tajik_focus.21.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Tajikistan Wants a Non-Aggro Pact
	id = tajik_focus.22
	title = tajik_focus.22.t
	desc = tajik_focus.22.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # Don't care
		name = tajik_focus.22.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.22.a executed"
		TAJ = {
			country_event = tajik_focus.23
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_focus.22.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.22.b executed"
		set_temp_variable = { percent_change = 5.00 }
		set_temp_variable = { tag_index = TAJ }
		set_temp_variable = { influence_target = ROOT }
		change_influence_percentage = yes
		diplomatic_relation = {
			country = TAJ
			relation = non_aggression_pact
		}
		if = {
			limit = { ROOT = { original_tag = TAL } }
			TAJ = {
				custom_effect_tooltip = TAJ_decrease_bda_unrest_5_TT
				add_to_variable = { var = TAJ_badakhshan_unrest_var value = -5 }
				clamp_variable = { var = TAJ_badakhshan_unrest_var min = 0 }
				add_stability = 0.05
			}
		}
		ai_chance = { base = 2 }
	}
}

country_event = { # FROM Ignores us
	id = tajik_focus.23
	title = tajik_focus.23.t
	desc = tajik_focus.23.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = { # Don't care
		name = tajik_focus.23.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # The Secretary
	id = tajik_focus.24
	title = tajik_focus.24.t
	desc = tajik_focus.24.d
	is_triggered_only = yes

	option = { # Shodi is Good
		name = tajik_focus.24.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.24.a executed"
		add_country_leader_trait = communist_revolutionary
		add_country_leader_trait = popular_figurehead
		set_country_flag = TAJ_shodi
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_focus.24.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.24.b executed"
		if = {
			limit = { has_country_flag = TAJ_changed_in_course }
			create_country_leader = {
				name = "Miroj Abdulloyev"
				picture = "miroj_abdulloyev.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
					union_man
					agrarian_expert
					silent_workhorse
				}
			}
		}
		else = {
			create_country_leader = {
				name = "Miroj Abdulloyev"
				picture = "miroj_abdulloyev.dds"
				ideology = communist_state
				traits = {
					emerging_communist_state
					union_man
					agrarian_expert
					silent_workhorse
				}
			}
		}
		set_country_flag = TAJ_abdulloyev
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.24.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.24.c executed"
		if = {
			limit = { has_country_flag = TAJ_changed_in_course }
			create_country_leader = {
				name = "Ismoil Talbakov"
				picture = "ismoil_talbakov.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
					scientist
					ex_engineer
				}
			}
		}
		else = {
			create_country_leader = {
				name = "Ismoil Talbakov"
				picture = "ismoil_talbakov.dds"
				ideology = communist_state
				traits = {
					emerging_communist_state
					scientist
					ex_engineer
				}
			}
		}
		set_country_flag = TAJ_talbakov
		ai_chance = { base = 1 }
	}
}

country_event = { # Selection of the UTO Committee
	id = tajik_focus.25
	title = tajik_focus.25.t
	desc = tajik_focus.25.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # IRP Will Lead it Forward
		name = tajik_focus.25.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.a executed"
		set_country_flag = TAJ_play_as_IRP
		news_event = tajik_flavor.2
		ai_chance = {
			base = 1
		}
	}

	option = { # Democratic Party will lead it forward
		name = tajik_focus.25.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.b executed"
		set_country_flag = TAJ_play_as_democratic
		news_event = tajik_flavor.2
		ai_chance = {
			base = 1
		}
	}

	option = { # Communist Party will lead it forward
		name = tajik_focus.25.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.c executed"
		set_country_flag = TAJ_play_as_communist
		news_event = tajik_flavor.2
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Assault on the Palace
	id = tajik_focus.26
	title = tajik_focus.26.t
	desc = tajik_focus.26.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # Shell it
		name = tajik_focus.26.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.a executed"
		custom_effect_tooltip = TAJ_low_success_TT
		newline = yes
		724 = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 1.0
				}
			}
		}
		hidden_effect = {
			random_list = {
				70 = {
					country_event = {
						id = tajik_focus.27
						days = 2
					}
				}
				30 = {
					country_event = {
						id = tajik_focus.28
						days = 2
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Launch an armored assualt
		name = tajik_focus.26.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.b executed"
		custom_effect_tooltip = TAJ_medium_success_TT
		add_stability = -0.10
		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = tajik_focus.27
						days = 2
					}
				}
				50 = {
					country_event = {
						id = tajik_focus.28
						days = 2
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Send in experienced troops
		name = tajik_focus.26.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.25.c executed"
		custom_effect_tooltip = TAJ_high_success_TT
		add_manpower = -12500
		hidden_effect = {
			random_list = {
				30 = {
					country_event = {
						id = tajik_focus.27
						days = 2
					}
				}
				70 = {
					country_event = {
						id = tajik_focus.28
						days = 2
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Rahmon Flees
	id = tajik_focus.27
	title = tajik_focus.27.t
	desc = tajik_focus.27.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.27.a
		ai_chance = { base = 1 }
	}
}

country_event = { # Rahmon Killed
	id = tajik_focus.28
	title = tajik_focus.28.t
	desc = tajik_focus.28.d
	is_triggered_only = yes

	option = {
		name = tajik_focus.28.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.28.a executed"
		set_country_flag = TAJ_rahmon_dead
		custom_effect_tooltip = TAJ_rahmon_dies_TT
		hidden_effect = {
			create_country_leader = {
				name = "Rustam Emomali"
				picture = "rostam_rahmon.dds"
				ideology = Conservative
				traits = {
					emerging_Conservative
					inexperienced
				}
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # UTO Demands
	id = tajik_focus.280
	title = tajik_focus.280.t
	desc = tajik_focus.280.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = tajik_focus.280.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.280.a executed"
		if = {
			limit = { emerging_communist_state_are_in_power = no }
			activate_mission = TAJ_communist_demand
		}
		if = {
			limit = { nationalist_right_wing_populists_are_in_power = no }
			activate_mission = TAJ_nationalist_demand
		}
		if = {
			limit = { neutrality_muslim_brotherhood_in_power_or_coalition = no }
			activate_mission = TAJ_islamist_demand
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Re-Join CSTO?
	id = tajik_focus.281
	title = tajik_focus.281.t
	desc = tajik_focus.281.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { NOT = { has_war_with = SOV } }

	option = {
		name = tajik_focus.281.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.281.a executed"
		SOV = {
			country_event = {
				id = CSTO.1
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.281.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.281.b executed"
		add_political_power = 10
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.282
	title = tajik_focus.282.t
	desc = tajik_focus.282.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = tajik_focus.282.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.282.a executed"
		add_popularity = {
			ideology = fascism
			popularity = -0.15
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.283
	title = tajik_focus.283.t
	desc = tajik_focus.283.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = tajik_focus.283.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.283.a executed"
		add_war_support = 0.03
		custom_effect_tooltip = TAJ_pamir_war_TT
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajik Revolution
	id = tajik_focus.29
	title = tajik_focus.29.t
	desc = tajik_focus.29.d
	is_triggered_only = yes

	option = {
		name = tajik_focus.29.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.29.a executed"
		set_country_flag = TAJ_tajik_revolt_began
		hidden_effect = {
			hidden_effect = {
				if = {
					limit = { is_in_array = { global.CSTO_member = THIS } }
					remove_from_array = { global.CSTO_member = THIS }
				}
				remove_ideas = CSTO_member
				ROOT = { remove_from_tech_sharing_group = CSTO_Tech_Share }
				leave_faction = yes
			}
			# Party Centered Scenario
			if = {
				limit = {
					check_variable = {
						TAJ_uto_unity < 49.99
					}
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_IRP
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 12 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Sayid Abdulloh Nuri"
						picture = "sayid_abdulloh_nuri.dds"
						ideology = Neutral_Muslim_Brotherhood
						traits = {
							neutrality_Neutral_Muslim_Brotherhood
						}
					}
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_democratic
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 20 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Mahmadruzi Iskandarov"
						picture = "mahmadruzi_iskandarov.dds"
						ideology = Nat_Populism
						traits = {
							nationalist_Nat_Populism
							polished
						}
					}
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_communist
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 4 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Shodi Shabdolov"
						picture = "shodi_shabdolov.dds"
						ideology = communist_state
						traits = {
							emerging_communist_state
						}
					}
				}
				# Creating Rahmon Tag
				create_dynamic_country = {
					original_tag = TAJ
					set_country_flag = TAJ_civil_war_time
					copy_tag = TAJ
					mark_formed_country_formable = yes
					retire_country_leader = yes
					# Intialization
					set_popularities = {
						communism = 80
						fascism = 20
					}
					set_politics = {
						ruling_party = communism
						last_election = "1997.6.8"
						election_frequency = 48
						elections_allowed = no
					}
					start_politics_input = yes
					### Party Popularities
					set_variable = { party_pop_array^6 = 0.80 } #Conservative
					set_variable = { party_pop_array^10 = 0.20 } #Kingdom
					# Leader Rahmon
					if = {
						limit = {
							has_country_flag = TAJ_rahmon_dead
						}
						create_country_leader = {
							name = "Rustam Emomali"
							picture = "rostam_rahmon.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								inexperienced
							}
						}
					}
					else = {
						create_country_leader = {
							name = "Emomali Rahmonov"
							picture = "emomali_rahmon_young.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								political_dancer
							}
						}
					}
					init_influence = yes
					set_variable = { domestic_influence_amount = 87 }
					add_to_array = { influence_array = SOV.id }
					add_to_array = { influence_array_val = 70 }
					add_to_array = { influence_array = CHI.id }
					add_to_array = { influence_array_val = 28 }
					add_to_array = { influence_array = USA.id }
					add_to_array = { influence_array_val = 2 }
					add_to_array = { influence_array = RAJ.id }
					add_to_array = { influence_array_val = 14 }
					add_to_array = { influence_array = PER.id }
					add_to_array = { influence_array_val = 26 }
					add_to_array = { influence_array = UZB.id }
					add_to_array = { influence_array_val = 18 }
					add_to_array = { influence_array = TUR.id }
					add_to_array = { influence_array_val = 15 }
					sort_influence = yes
					### Ruling Party
					set_variable = { ruling_party = 6 }
					startup_politics = yes
					load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
					# Economic initialization
					set_temp_variable = { nation_to_copy_from = PREV.id }
					setup_employment_variables = yes
					ingame_update_setup = yes
					save_event_target_as = TAJ_rahmon_side
					transfer_state = 724
					transfer_state = 723
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
			}
			# UTO Centered Scenario
			if = {
				limit = {
					check_variable = {
						TAJ_uto_unity > 49.99
					}
				}
				add_ideas = TAJ_uto_support
				hidden_effect = {
					set_cosmetic_tag = TAJ_REB
					set_variable = { dynamic_flag_variant = 6 }
					mark_formed_country_formable = yes
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_IRP
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 12 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Sayid Abdulloh Nuri"
						picture = "sayid_abdulloh_nuri.dds"
						ideology = Neutral_Muslim_Brotherhood
						traits = {
							neutrality_Neutral_Muslim_Brotherhood
						}
					}
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_democratic
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 20 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Mahmadruzi Iskandarov"
						picture = "mahmadruzi_iskandarov.dds"
						ideology = Nat_Populism
						traits = {
							nationalist_Nat_Populism
							polished
						}
					}
				}
				if = {
					limit = {
						has_country_flag = TAJ_play_as_communist
					}
					hidden_effect = {
						set_temp_variable = { rul_party_temp = 4 }
						set_temp_variable = { disable_elections = 1 }
						change_ruling_party_effect = yes
					}
					create_country_leader = {
						name = "Shodi Shabdolov"
						picture = "shodi_shabdolov.dds"
						ideology = communist_state
						traits = {
							emerging_communist_state
						}
					}
				}
				# Creating Rahmon Tag
				create_dynamic_country = {
					original_tag = TAJ
					set_country_flag = TAJ_civil_war_time
					copy_tag = TAJ
					mark_formed_country_formable = yes
					retire_country_leader = yes
					# Intialization
					set_popularities = {
						communism = 80
						fascism = 20
					}
					set_politics = {
						ruling_party = communism
						last_election = "1997.6.8"
						election_frequency = 48
						elections_allowed = no
					}
					start_politics_input = yes
					### Party Popularities
					set_variable = { party_pop_array^6 = 0.80 } #Conservative
					set_variable = { party_pop_array^10 = 0.20 } #Kingdom
					# Leader Rahmon
					if = {
						limit = {
							has_country_flag = TAJ_rahmon_dead
						}
						create_country_leader = {
							name = "Rustam Emomali"
							picture = "rostam_rahmon.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								inexperienced
							}
						}
					}
					else = {
						create_country_leader = {
							name = "Emomali Rahmonov"
							picture = "emomali_rahmon_young.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								political_dancer
							}
						}
					}
					init_influence = yes
					set_variable = { domestic_influence_amount = 87 }
					add_to_array = { influence_array = SOV.id }
					add_to_array = { influence_array_val = 70 }
					add_to_array = { influence_array = CHI.id }
					add_to_array = { influence_array_val = 28 }
					add_to_array = { influence_array = USA.id }
					add_to_array = { influence_array_val = 2 }
					add_to_array = { influence_array = RAJ.id }
					add_to_array = { influence_array_val = 14 }
					add_to_array = { influence_array = PER.id }
					add_to_array = { influence_array_val = 26 }
					add_to_array = { influence_array = UZB.id }
					add_to_array = { influence_array_val = 18 }
					add_to_array = { influence_array = TUR.id }
					add_to_array = { influence_array_val = 15 }
					sort_influence = yes
					### Ruling Party
					set_variable = { ruling_party = 6 }
					startup_politics = yes
					load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
					# Economic initialization
					set_temp_variable = { nation_to_copy_from = PREV.id }
					setup_employment_variables = yes
					ingame_update_setup = yes
					save_event_target_as = TAJ_rahmon_side
					transfer_state = 724
					declare_war_on = {
						target = PREV
						type = annex_everything
					}
				}
				# Army
				TAJ = {
					division_template = {
						name = "Batalyoni UTO"
						priority = 0
						regiments = {
							Militia_Bat = { x = 0 y = 0 }
							Militia_Bat = { x = 0 y = 1 }
							Militia_Bat = { x = 0 y = 2 }
							Arty_Bat = { x = 0 y = 3 }
							Militia_Bat = { x = 1 y = 0 }
							Militia_Bat = { x = 1 y = 1 }
							Militia_Bat = { x = 1 y = 2 }
							Arty_Bat = { x = 1 y = 3 }
							Militia_Bat = { x = 2 y = 0 }
							Militia_Bat = { x = 2 y = 1 }
							Militia_Bat = { x = 2 y = 2 }
							Arty_Bat = { x = 2 y = 3 }
						}
						support = {
							L_Recce_Comp = { x = 0 y = 0 }
							L_Engi_Comp = { x = 0 y = 1 }
							combat_service_support_company = { x = 0 y = 2 }
							Arty_Battery = { x = 0 y = 3 }
						}
					}
					722 = {
						create_unit = {
							division = "name = \"1. Batalyoni UTO\" division_template = \"Batalyoni UTO\""
							prioritize_location = 1307
							owner = TAJ
						}
					}
					723 = {
						create_unit = {
							division = "name = \"2. Batalyoni UTO\" division_template = \"Batalyoni UTO\""
							prioritize_location = 1919
							owner = TAJ
						}
					}
				}
			}
			hidden_effect = {
				set_country_flag = manual_civil_war_debuff_removal
				remove_ideas = civil_war_disorganised_military_1
				remove_ideas = civil_war_disorganised_military_2_military
				remove_ideas = civil_war_disorganised_military_2_production
				remove_ideas = civil_war_disorganised_military_2_experience
				remove_ideas = civil_war_disorganised_military_3_military
				remove_ideas = civil_war_disorganised_military_3_production
				remove_ideas = civil_war_disorganised_military_3_experience
				remove_ideas = civil_war_disorganised_military_4_military
				remove_ideas = civil_war_disorganised_military_4_production
				remove_ideas = civil_war_disorganised_military_4_experience
				remove_ideas = civil_war_disorganised_military_5_military
				remove_ideas = civil_war_disorganised_military_5_production
				remove_ideas = civil_war_disorganised_military_5_experience
				clr_country_flag = manual_civil_war_debuff_removal
				if = {
					limit = {
						has_country_flag = TAJ_rahmon_dead
					}
					event_target:TAJ_rahmon_side = {
						create_country_leader = {
							name = "Rustam Emomali"
							picture = "rostam_rahmon.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								inexperienced
							}
						}
						add_ideas = TAJ_rahmon_dead
					}
				}
				else = {
					event_target:TAJ_rahmon_side = {
						create_country_leader = {
							name = "Emomali Rahmonov"
							picture = "emomali_rahmon_young.dds"
							ideology = Conservative
							traits = {
								emerging_Conservative
								political_dancer
							}
						}
						set_country_flag = manual_civil_war_debuff_removal
						remove_ideas = civil_war_disorganised_military_1
						remove_ideas = civil_war_disorganised_military_2_military
						remove_ideas = civil_war_disorganised_military_2_production
						remove_ideas = civil_war_disorganised_military_2_experience
						remove_ideas = civil_war_disorganised_military_3_military
						remove_ideas = civil_war_disorganised_military_3_production
						remove_ideas = civil_war_disorganised_military_3_experience
						remove_ideas = civil_war_disorganised_military_4_military
						remove_ideas = civil_war_disorganised_military_4_production
						remove_ideas = civil_war_disorganised_military_4_experience
						remove_ideas = civil_war_disorganised_military_5_military
						remove_ideas = civil_war_disorganised_military_5_production
						remove_ideas = civil_war_disorganised_military_5_experience
						clr_country_flag = manual_civil_war_debuff_removal
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

# Victory in Civil War
country_event = {
	id = tajik_focus.30
	title = tajik_focus.30.t
	desc = tajik_focus.30.d
	picture = GFX_TAJ_dushanbe
	is_triggered_only = yes

	option = {
		name = tajik_focus.30.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.30.a executed"
		hidden_effect = {
			country_event = {
				id = tajik_focus.280
				days = 120
			}
			country_event = {
				id = tajik_focus.281
				days = 360
			}
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			# Civil war drains fuel (state 724 with the agriculture district goes to Rahmon).
			# Refill reserves so fossil power plants pass the fuel_k = 0 killswitch check.
			set_fuel_ratio = 0.5
			ingame_update_setup = yes
		}
		ai_chance = {
			base = 1
		}
	}
}

# Silent Erosion
country_event = {
	id = tajik_focus.31
	title = tajik_focus.31.t
	desc = tajik_focus.31.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = tajik_focus.31.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.31.a executed"
		723 = {
			add_to_variable = { productivity_state_var = -50 }
			custom_effect_tooltip = TAJ_lose_50_prod_TT
		}
		newline = yes
		add_timed_idea = {
			idea = TAJ_wealth_of_hoji_akbar
			days = 1200
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.31.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.31.b executed"
		set_temp_variable = { percent_change = 3.00 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		newline = yes
		set_temp_variable = { percent_change = 1.00 }
		set_temp_variable = { tag_index = CHI }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		newline = yes
		add_timed_idea = {
			idea = TAJ_wealth_of_bobojon
			days = 1200
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.31.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.31.c executed"
		retire_character = TAJ_ghaffor_mirzoyev
		newline = yes
		add_timed_idea = {
			idea = TAJ_wealth_of_ghaffor
			days = 1200
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.31.d1
		log = "[GetDateText]: [This.GetName]: tajik_focus.31.d1 executed"
		add_political_power = 25
		ai_chance = { base = 1 }
	}
}

country_event = { # His Excellency (Focus tree event lore background) Completed
	id = tajik_focus.32
	title = tajik_focus.32.t
	desc = tajik_focus.32.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = tajik_focus.32.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.32.a executed"
		add_stability = 0.05
		add_political_power = 100
		ai_chance = { base = 1 }
	}
}

country_event = { # Peace of mind and what brings it
	id = tajik_focus.33
	title = tajik_focus.33.t
	desc = tajik_focus.33.d
	picture = GFX_marketplace
	is_triggered_only = yes

	option = { #Moscow Estate
		name = tajik_focus.33.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.33.a executed"
		add_timed_idea = { idea = TAJ_unbalanced_books days = 240 }
		add_timed_idea = { idea = TAJ_moscow_estate days = 365 }
		ai_chance = {
			base = 0
		}
	}

	option = { #Presidential Palace
		name = tajik_focus.33.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.33.b executed"
		add_ideas = TAJ_presidential_palace
		add_timed_idea = { idea = TAJ_unbalanced_books days = 110 }
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Asking Taliban for U.S. Weapons & Intel
	id = tajik_focus.35
	title = tajik_focus.35.t
	desc = tajik_focus.35.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = tajik_focus.35.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.35.a executed"
		TAJ = {
			country_event = {
				id = tajik_focus.36
				days = 1
			}
		}
		add_equipment_to_stockpile = {
			type = util_vehicle_3
			amount = -400
			producer = USA
		}
		effect_tooltip = {
			set_temp_variable = { treasury_change = 15.00 }
			modify_treasury_effect = yes
		}
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = {
					target = TAJ
					value > 0
				}
				add = 10
			}
		}
	}

	option = {
		name = tajik_focus.35.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.35.b executed"
		TAJ = {
			country_event = {
				id = tajik_focus.37
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Taliban Smuggles American Vehicles
	id = tajik_focus.36
	title = tajik_focus.36.t
	desc = tajik_focus.36.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_focus.36.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.36.a executed"
		add_equipment_to_stockpile = {
			type = util_vehicle_3
			amount = 400
			producer = USA
		}
		set_temp_variable = { treasury_change = -15.00 }
		modify_treasury_effect = yes
		TAL = {
			set_temp_variable = { treasury_change = 15.00 }
			modify_treasury_effect = yes
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Taliban Ignores Us
	id = tajik_focus.37
	title = tajik_focus.37.t
	desc = tajik_focus.37.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = tajik_focus.37.a
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Secedes Sarikol Range (CHI)
	id = tajik_focus.38
	title = tajik_focus.38.t
	desc = tajik_focus.38.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.38.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.38.a executed"
		set_temp_variable = { temp_opinion = 10 }
		change_communist_cadres_opinion = yes
		add_opinion_modifier = {
			target = TAJ
			modifier = recent_actions_very_positive
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Asks For Weapons Sales
	id = tajik_focus.39
	title = tajik_focus.39.t
	desc = tajik_focus.39.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = {
		name = tajik_focus.39.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.39.a executed"
		TAJ = { country_event = tajik_focus.40 }
		set_temp_variable = { percent_change = 3.00 }
		set_temp_variable = { tag_index = CHI }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = {
					target = TAJ
					value > 0
				}
				add = 10
			}
		}
	}

	option = {
		name = tajik_focus.39.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.39.b executed"
		TAJ = { country_event = tajik_focus.41 }
		ai_chance = { base = 1 }
	}
}

country_event = { # China Accepts
	id = tajik_focus.40
	title = tajik_focus.40.t
	desc = tajik_focus.40.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Prioritize Our Infantry Forces
		name = tajik_focus.40.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.40.a executed"
		add_equipment_to_stockpile = {
			type = infantry_weapons_3
			amount = 100
			producer = CHI
		}
		newline = yes
		add_equipment_to_stockpile = {
			type = util_vehicle_2
			amount = 500
			producer = CHI
		}
		newline = yes
		add_equipment_to_stockpile = {
			type = artillery_equipment
			amount = 450
			producer = CHI
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Prioritize Our Armored Forces
		name = tajik_focus.40.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.40.b executed"
		if = {
			limit = { has_dlc = "No Step Back" }
			add_equipment_to_stockpile = {
				type = medium_tank_chassis_0
				variant_name = "ZTZ-88B"
				amount = 100
				producer = CHI
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = MBT_1
				amount = 100
				producer = CHI
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Prioritize Our Aerial Forces
		name = tajik_focus.40.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.40.c executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			add_equipment_to_stockpile = {
				type = medium_plane_fighter_airframe_1
				amount = 10
				variant_name = "J-8A"
				producer = CHI
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = MR_Fighter1
				amount = 10
				producer = CHI
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # China Denies
	id = tajik_focus.41
	title = tajik_focus.41.t
	desc = tajik_focus.41.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = tajik_focus.41.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.41.a executed"
		add_opinion_modifier = {
			target = CHI
			modifier = recent_actions_negative
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Investments Flood In!
	id = tajik_focus.42
	title = tajik_focus.42.t
	desc = tajik_focus.42.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = tajik_focus.42.a
		ai_chance = { base = 1 }
	}
}

country_event = { # The Lease on the 201st Military Base
	id = tajik_focus.43
	title = tajik_focus.43.t
	desc = tajik_focus.43.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Let's see what Russia offers
	option = {
		name = tajik_focus.43.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.43.a executed"
		SOV = {
			country_event = {
				id = tajik_focus.44
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}

	# They aren't worth our time
	option = {
		name = tajik_focus.43.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.43.b executed"
		set_temp_variable = { percent_change = 5 }
		change_domestic_influence_percentage = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Requests Concessions
	id = tajik_focus.44
	title = tajik_focus.44.t
	desc = tajik_focus.44.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.44.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.44.a executed"
		TAJ = {
			country_event = tajik_focus.45
		}
		effect_tooltip = {
			set_temp_variable = { treasury_change = -50.00 }
			modify_treasury_effect = yes
			custom_effect_tooltip = TT_IF_THEY_ACCEPT
			TAJ = {
				724 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
					}
				}
				set_temp_variable = { treasury_change = 50.00 }
				modify_treasury_effect = yes
			}
		}
		ai_chance = {
			base = 10 # Wants to keep the base
		}
	}

	# We're good
	option = {
		name = tajik_focus.44.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.44.b executed"
		TAJ = { country_event = tajik_focus.46 }
		ai_chance = { base = 1 }
	}
}

country_event = { # Russia Offers Concessions
	id = tajik_focus.45
	title = tajik_focus.45.t
	desc = tajik_focus.45.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.45.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.45.a executed"
		724 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
			}
		}
		set_temp_variable = { treasury_change = 50.00 }
		modify_treasury_effect = yes
		set_country_flag = TAJ_promised_russia
		ai_chance = { base = 1 }
	}
}

country_event = { # Russia Offers No Concessions
	id = tajik_focus.46
	title = tajik_focus.46.t
	desc = tajik_focus.46.d
	picture = GFX_political_deal
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.46.a
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Double Crosses Us!
	id = tajik_focus.47
	title = tajik_focus.47.t
	desc = tajik_focus.47.d
	picture = GFX_political_deal
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.47.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.47.a executed"
		add_opinion_modifier = {
			target = TAJ
			modifier = betrayed_our_cause
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Cancels the 201st Base Lease
	id = tajik_focus.48
	title = tajik_focus.48.t
	desc = tajik_focus.48.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.48.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.48.a executed"
		add_opinion_modifier = {
			target = TAJ
			modifier = diplomatic_disloyalty
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.49
	title = tajik_focus.49.t
	desc = tajik_focus.49.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.49.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.49.a executed"
		SOV = { country_event = tajik_focus.50 }
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.49.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.49.b executed"
		USA = { country_event = tajik_focus.50 }
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.49.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.49.c executed"
		CHI = { country_event = tajik_focus.50 }
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.49.d1
		log = "[GetDateText]: [This.GetName]: tajik_focus.49.d1 executed"
		RAJ = { country_event = tajik_focus.50 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.50
	title = tajik_focus.50.t
	desc = tajik_focus.50.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.50.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.50.a executed"
		if = {
			limit = {
				original_tag = SOV
			}
			TAJ = {
				swap_ideas = {
					remove_idea = TAJ_201st_base
					add_idea = TAJ_201st_base_upgrade
				}
			}
		}
		if = {
			limit = {
				original_tag = USA
			}
			TAJ = {
				swap_ideas = {
					remove_idea = TAJ_201st_base
					add_idea = TAJ_201st_base_usa
				}
			}
			SOV = {
				country_event = tajik_focus.52
				if = {
					limit = { SOV = { has_military_access_to = TAJ } }
					diplomatic_relation = { country = TAJ relation = military_access active = no }
				}
			}
			if = {
				limit = { NOT = { USA = { has_military_access_to = TAJ } } }
				USA = {
					diplomatic_relation = { country = TAJ relation = military_access active = yes }
				}
			}
		}
		if = {
			limit = {
				original_tag = RAJ
			}
			TAJ = {
				swap_ideas = {
					remove_idea = TAJ_201st_base
					add_idea = TAJ_201st_base_raj
				}
			}
			SOV = {
				country_event = tajik_focus.52
				if = {
					limit = { SOV = { has_military_access_to = TAJ } }
					diplomatic_relation = { country = TAJ relation = military_access active = no }
				}
			}
			if = {
				limit = { NOT = { RAJ = { has_military_access_to = TAJ } } }
				RAJ = {
					diplomatic_relation = { country = TAJ relation = military_access active = yes }
				}
			}
		}
		if = {
			limit = {
				original_tag = CHI
			}
			TAJ = {
				swap_ideas = {
					remove_idea = TAJ_201st_base
					add_idea = TAJ_201st_base_chi
				}
			}
			SOV = {
				country_event = tajik_focus.52
				if = {
					limit = { SOV = { has_military_access_to = TAJ } }
					diplomatic_relation = { country = TAJ relation = military_access active = no }
				}
			}
			if = {
				limit = { NOT = { CHI = { has_military_access_to = TAJ } } }
				CHI = {
					diplomatic_relation = { country = TAJ relation = military_access active = yes }
				}
			}
		}
		TAJ = {
			country_event = {
				id = tajik_focus.51
				days = 1
			}
		}
		ai_chance = { # Wants the base
			base = 20
		}
	}

	option = {
		name = tajik_focus.50.b
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.51
	title = tajik_focus.51.t
	desc = tajik_focus.51.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.51.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.51.a executed"
		effect_tooltip = {
			if = {
				limit = { FROM = { original_tag = SOV } }
				TAJ = {
					swap_ideas = {
						remove_idea = TAJ_201st_base
						add_idea = TAJ_201st_base_upgrade
					}
				}
			}
			if = {
				limit = { FROM = { original_tag = USA } }
				TAJ = {
					swap_ideas = {
						remove_idea = TAJ_201st_base
						add_idea = TAJ_201st_base_usa
					}
				}
			}
			if = {
				limit = { FROM = { original_tag = CHI } }
				TAJ = {
					swap_ideas = {
						remove_idea = TAJ_201st_base
						add_idea = TAJ_201st_base_chi
					}
				}
			}
			if = {
				limit = { FROM = { original_tag = RAJ } }
				TAJ = {
					swap_ideas = {
						remove_idea = TAJ_201st_base
						add_idea = TAJ_201st_base_raj
					}
				}
			}
		}
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.52
	title = tajik_focus.52.t
	desc = tajik_focus.52.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Okay
	option = {
		name = tajik_focus.52.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.52.a executed"
		add_opinion_modifier = {
			target = TAJ
			modifier = betrayed_our_cause
		}
		effect_tooltip = { TAJ = { remove_ideas = TAJ_201st_base } }
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.53
	title = tajik_focus.53.t
	desc = tajik_focus.53.d
	picture = GFX_stock_market
	is_triggered_only = yes

	# I want it now!
	option = {
		name = tajik_focus.53.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.53.a executed"
		three_random_industrial_complex = yes
		ai_chance = { base = 20 }
	}

	# Let's take it slow
	option = {
		name = tajik_focus.53.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.53.b executed"
		custom_effect_tooltip = TAJ_factories_per_year_TT
		set_country_flag = {
			flag = TAJ_civs_yearly_flag
			days = 2191
			value = 1
		}
		add_to_variable = { var = TAJ_yearly_var_civ value = 12 }
		clamp_variable = { var = TAJ_yearly_var_civ min = 0 max = 12 }
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.54
	title = tajik_focus.54.t
	desc = tajik_focus.54.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Good idea
	option = {
		name = tajik_focus.54.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.54.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_war_with = UZB
						UZB = { is_in_faction = yes }
					}
				}
				UZB = { NOT = { is_subject = yes } }
			}
			UZB = { country_event = tajik_focus.55 }
		}
		if = {
			limit = {
				NOT = {
					OR = {
						has_war_with = TRK
						TRK = { is_in_faction = yes }
					}
				}
				TRK = { NOT = { is_subject = yes } }
			}
			TRK = { country_event = tajik_focus.55 }
		}
		ai_chance = { base = 20 }
	}

	# No
	option = {
		name = tajik_focus.54.b
		ai_chance = { base = 5 }
	}
}

# Invitation to CSTO
country_event = {
	id = tajik_focus.55
	title = tajik_focus.55.t
	desc = tajik_focus.55.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Good idea
	option = {
		name = tajik_focus.55.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.55.a executed"
		FROM = { country_event = { id = md4.17 days = 1 } }
		ai_chance = { base = 20 }
	}

	# No
	option = {
		name = tajik_focus.55.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.55.b executed"
		FROM = { country_event = { id = md4.18 days = 1 } }
		ai_chance = {
			base = 5
			modifier = {
				has_government = democratic
				add = -50
			}
		}
	}
}

country_event = {
	id = tajik_focus.56
	title = tajik_focus.56.t
	desc = tajik_focus.56.d
	is_triggered_only = yes

	option = {
		name = tajik_focus.56.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.56.a executed"
		custom_effect_tooltip = TAJ_merge_parties_TT
		set_country_flag = TAJ_party_name
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 20 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 6 }
			set_temp_variable = { party_popularity_increase = -0.99 }
			set_temp_variable = { temp_outlook_increase = -0.99 }
			change_relative_party_popularity = yes
			set_temp_variable = { party_index = 20 }
			set_temp_variable = { party_popularity_increase = 0.80 }
			set_temp_variable = { temp_outlook_increase = 0.80 }
			change_relative_party_popularity = yes
			create_country_leader = {
				name = "Emomali Rahmon"
				picture = "Emomali_Rahmon.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
					hands_that_crafted_the_nation
					his_excellency
					political_dancer
					military_career
					capable
				}
			}
		}
		set_temp_variable = { party_index = 19 }
		unban_party_scripted_call = yes
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.56.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.56.b executed"
		custom_effect_tooltip = TAJ_integrate_democrats_TT
		set_temp_variable = { add_col_one = 20 }
		add_coalition_members_effect = yes
		add_political_power = 250
		set_temp_variable = { party_index = 19 }
		unban_party_scripted_call = yes
		ai_chance = { base = 5 }
	}

	option = {
		name = tajik_focus.56.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.56.c executed"
		add_political_power = 500
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = tajik_focus.57
	title = tajik_focus.57.t
	desc = tajik_focus.57.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.57.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.57.a executed"
		custom_effect_tooltip = TAJ_police_spend_TT
		if = {
			limit = { has_idea = police_01 }
			random_list = {
				30 = {
					country_event = {
						id = tajik_focus.58
						days = 2
					}
				}
				70 = {
					country_event = {
						id = tajik_focus.59
						days = 2
					}
				}
			}
		}
		if = {
			limit = { has_idea = police_02 }
			random_list = {
				40 = {
					country_event = {
						id = tajik_focus.58
						days = 2
					}
				}
				60 = {
					country_event = {
						id = tajik_focus.59
						days = 2
					}
				}
			}
		}
		if = {
			limit = { has_idea = police_03 }
			random_list = {
				50 = {
					country_event = {
						id = tajik_focus.58
						days = 2
					}
				}
				50 = {
					country_event = {
						id = tajik_focus.59
						days = 2
					}
				}
			}
		}
		if = {
			limit = { has_idea = police_04 }
			random_list = {
				60 = {
					country_event = {
						id = tajik_focus.58
						days = 2
					}
				}
				40 = {
					country_event = {
						id = tajik_focus.59
						days = 2
					}
				}
			}
		}
		if = {
			limit = { has_idea = police_05 }
			random_list = {
				80 = {
					country_event = {
						id = tajik_focus.58
						days = 2
					}
				}
				20 = {
					country_event = {
						id = tajik_focus.59
						days = 2
					}
				}
			}
		}
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.57.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.57.b executed"
		if = {
			limit = {
				has_dlc = "La Resistance"
				has_intelligence_agency = yes
			}
			upgrade_intelligence_agency = upgrade_passive_defense
			upgrade_intelligence_agency = upgrade_interrogation_techniques
		}
		if = {
			limit = {
				has_dlc = "La Resistance"
				has_intelligence_agency = no
			}
			create_intelligence_agency = {
				name = "(SCNS) State Committee for National Security"
				icon = GFX_intelligence_agency_logo_taj
			}
			upgrade_intelligence_agency = upgrade_passive_defense
			upgrade_intelligence_agency = upgrade_interrogation_techniques
		}
		if = {
			limit = { NOT = { has_dlc = "La Resistance" } }
			increase_policing_budget = yes
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = tajik_focus.58 # Umarali Found Dead in Istanbul
	title = tajik_focus.58.t
	desc = tajik_focus.58.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = tajik_focus.58.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.58.a executed"
		custom_effect_tooltip = TAJ_umarali_dead_TT
		newline = yes
		if = {
			limit = { NOT = { has_country_flag = TAJ_radicalism_ended } }
			custom_effect_tooltip = TAJ_decrease_irp_influence_10_TT
			add_to_variable = { var = TAJ_radical_influence value = -10 }
			clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		}
		if = {
			limit = { has_country_flag = TAJ_radicalism_ended }
			add_popularity = {
				ideology = fascism
				popularity = -0.05
			}
		}
		newline = yes
		add_political_power = 50
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.59
	title = tajik_focus.59.t
	desc = tajik_focus.59.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_focus.59.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.59.a executed"
		set_temp_variable = { party_index = 12 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.10 }
		change_relative_party_popularity = yes
		newline = yes
		if = {
			limit = { NOT = { has_country_flag = TAJ_radicalism_ended } }
			custom_effect_tooltip = TAJ_increase_irp_influence_10_TT
			add_to_variable = { var = TAJ_radical_influence value = 10 }
			clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		}
		if = {
			limit = { has_country_flag = TAJ_radicalism_ended }
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
		}
		newline = yes
		add_political_power = -50
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.60
	title = tajik_focus.60.t
	desc = tajik_focus.60.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = tajik_focus.60.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.60.a executed"
		set_province_name = { id = 1459 name = TAJ_1459_name }
		hidden_effect = {
			add_victory_points = {
				province = 1459
				value = 10
			}
			set_capital = { state = 725 }
		}
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.60.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.60.b executed"
		set_province_name = { id = 1623 name = TAJ_1623_name }
		hidden_effect = {
			add_victory_points = {
				province = 1623
				value = 15
			}
			set_capital = { state = 726 }
		}
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.60.c
		log = "[GetDateText]: [This.GetName]: tajik_focus.60.c executed"
		set_province_name = { id = 10308 name = TAJ_10308_name }
		hidden_effect = {
			add_victory_points = {
				province = 10308
				value = 15
			}
			set_capital = { state = 716 }
		}
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.60.d1
		log = "[GetDateText]: [This.GetName]: tajik_focus.60.d1 executed"
		add_victory_points = {
			province = 1384
			value = 15
		}
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.61
	title = tajik_focus.61.t
	desc = tajik_focus.61.d
	picture = GFX_election_day
	is_triggered_only = yes

	trigger = {
		emerging_conservative_in_power_or_coalition = yes
		has_elections = no
	}

	option = {
		name = tajik_focus.61.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.61.a executed"
		custom_effect_tooltip = TAJ_suspend_all_elections_TT
		hidden_effect = {
			country_event = {
				id = tajik_focus.61
				days = 1460
			}
			set_country_flag = do_not_retire
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}
			clr_country_flag = do_not_retire
		}
		ai_chance = { base = 20 }
	}

	option = {
		name = tajik_focus.61.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.61.a executed"
		custom_effect_tooltip = TAJ_elections_allowable_TT
		clr_country_flag = TAJ_dictatorship_flag
		hidden_effect = { enable_elections_with_no_leader_change = yes }
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = tajik_focus.62
	title = tajik_focus.62.t
	desc = tajik_focus.62.d
	picture = GFX_corvette
	is_triggered_only = yes

	# Ask the Americans
	option = {
		name = tajik_focus.62.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.62.a executed"
		USA = {
			country_event = {
				id = tajik_focus.63
				days = 1
			}
		}
		custom_effect_tooltip = TAJ_willingness_to_accept3_TT
		ai_chance = { base = 20 }
	}

	# Ask the Russians
	option = {
		name = tajik_focus.62.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.62.b executed"
		SOV = {
			country_event = {
				id = tajik_focus.63
				days = 1
			}
		}
		custom_effect_tooltip = TAJ_willingness_to_accept3_TT
		ai_chance = { base = 20 }
	}
}

# Tajikistan Asks for Helicopters
country_event = {
	id = tajik_focus.63
	title = tajik_focus.63.t
	desc = tajik_focus.63.d
	picture = GFX_corvette
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.63.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.62.a executed"
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		TAJ = {
			country_event = {
				id = tajik_focus.64
				days = 1
			}
		}
		if = {
			limit = {
				original_tag = SOV
				NOT = {
					has_dlc = "No Step Back"
				}
			}
			add_equipment_to_stockpile = {
				type = attack_helicopter_1 #Mi-24
				amount = -150
				producer = SOV
			}
		}
		if = {
			limit = {
				original_tag = SOV
				has_dlc = "No Step Back"
			}
			add_equipment_to_stockpile = {
				type = heavy_tank_chassis_0
				amount = -150
				producer = SOV
				variant_name = "Mi-24D"
			}
		}
		# USA
		if = {
			limit = {
				original_tag = USA
				NOT = {
					has_dlc = "No Step Back"
				}
			}
			add_equipment_to_stockpile = {
				type = attack_helicopter_1
				amount = -150
				producer = USA
			}
		}
		if = {
			limit = {
				original_tag = USA
				has_dlc = "No Step Back"
			}
			add_equipment_to_stockpile = {
				type = heavy_tank_chassis_0
				amount = -150
				producer = USA
				variant_name = "AH-1S Cobra"
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = { target = TAJ value > 20 }
				add = 50
			}
		}
	}

	# No
	option = {
		name = tajik_focus.63.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.63.b executed"
		TAJ = {
			country_event = {
				id = tajik_focus.65
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}
# FROM Accepts
country_event = {
	id = tajik_focus.64
	title = tajik_focus.64.t
	desc = tajik_focus.64.d
	picture = GFX_corvette
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.64.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.64.a executed"
		add_opinion_modifier = {
			target = FROM
			modifier = military_deals
		}
		if = {
			limit = {
				FROM = {
					original_tag = SOV
				}
				has_dlc = "No Step Back"
			}
			add_equipment_to_stockpile = {
				type = heavy_tank_chassis_0
				amount = 150
				producer = SOV
				variant_name = "Mi-24D"
			}
		}
		if = {
			limit = {
				FROM = {
					original_tag = SOV
				}
				NOT = {
					has_dlc = "No Step Back"
				}
			}
			add_equipment_to_stockpile = {
				type = attack_helicopter_1 #Mi-24
				amount = 150
				producer = SOV
			}
		}
		# USA Accepts
		if = {
			limit = {
				FROM = {
					original_tag = USA
				}
				has_dlc = "No Step Back"
			}
			add_equipment_to_stockpile = {
				type = heavy_tank_chassis_0
				amount = 150
				producer = USA
				variant_name = "AH-1S Cobra"
			}
		}
		if = {
			limit = {
				FROM = {
					original_tag = USA
				}
				NOT = {
					has_dlc = "No Step Back"
				}
			}
			add_equipment_to_stockpile = {
				type = attack_helicopter_1
				amount = 150
				producer = USA
			}
		}
		effect_tooltip = {
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { tag_index = FROM }
			set_temp_variable = { influence_target = TAJ }
			change_influence_percentage = yes
		}
		ai_chance = {
			base = 1
		}
	}
}
# FROM Rejects
country_event = {
	id = tajik_focus.65
	title = tajik_focus.65.t
	desc = tajik_focus.65.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.65.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.65.a executed"
		add_opinion_modifier = {
			target = FROM
			modifier = recent_actions_negative
		}
		ai_chance = { base = 1 }
	}
}

# Tajikistan Asks for Military Industrial Investments (TUR)
country_event = {
	id = tajik_focus.66
	title = tajik_focus.66.t
	desc = tajik_focus.66.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.66.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.66.a executed"
		set_temp_variable = { percent_change = 1.50 }
		set_temp_variable = { tag_index = TUR }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -15.00 }
		modify_treasury_effect = yes
		effect_tooltip = { TAJ = { two_random_arms_factory = yes } }
		TAJ = {
			country_event = {
				id = tajik_focus.67
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = { target = TAJ value > 20 }
				add = 50
			}
		}
	}

	# No
	option = {
		name = tajik_focus.66.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.66.b executed"
		TAJ = { country_event = tajik_focus.65 }
		ai_chance = { base = 1 }
	}
}
# Turkish Factories Built
country_event = {
	id = tajik_focus.67
	title = tajik_focus.67.t
	desc = tajik_focus.67.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.67.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.67.a executed"
		two_random_arms_factory = yes
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.68
	title = tajik_focus.68.t
	desc = tajik_focus.68.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.68.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.68.a executed"
		set_temp_variable = { percent_change = 2.50 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -7.50 }
		modify_treasury_effect = yes
		effect_tooltip = {
			TAJ = {
				one_random_arms_factory = yes
				add_ideas = TAJ_iranian_drones
			}
		}
		TAJ = {
			country_event = {
				id = tajik_focus.69
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = TAJ value > 20 }
				add = 50
			}
		}
	}

	# No
	option = {
		name = tajik_focus.68.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.68.b executed"
		TAJ = { country_event = tajik_focus.65 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.69
	title = tajik_focus.69.t
	desc = tajik_focus.69.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.69.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.69.a executed"
		one_random_arms_factory = yes
		add_ideas = TAJ_iranian_drones
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.70
	title = tajik_focus.70.t
	desc = tajik_focus.70.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.70.a
		log = "[GetDateText]: [This.GetName]: tajik_focus.70.a executed"
		if = {
			limit = {
				has_idea = corruption_level_05
				has_idea = TAJ_rahmons_rotten_fruit
			}
			add_political_power = 100
		}
		else = { decrease_corruption = yes }
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_focus.70.b
		log = "[GetDateText]: [This.GetName]: tajik_focus.70.b executed"
		every_owned_state = { add_to_variable = { productivity_state_var = 50 } }
		custom_effect_tooltip = TAJ_add_50_prod_every_state_TT
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_focus.71
	title = tajik_focus.71.t
	desc = tajik_focus.71.d
	picture = GFX_TAJ_dushanbe
	is_triggered_only = yes

	# Ok
	option = {
		name = tajik_focus.71.a
		ai_chance = { base = 1 }
	}
}

# Extremist Events

country_event = {
	id = tajik_radicalism.1 # IRP Demands Our Resignation
	title = tajik_radicalism.1.t
	desc = tajik_radicalism.1.d
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = {
		name = tajik_radicalism.1.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.1.a executed"
		custom_effect_tooltip = TAJ_IRP_takeover_TT
		newline = yes
		set_temp_variable = { party_index = 12 }
		set_temp_variable = { party_popularity_increase = 0.2 }
		set_temp_variable = { temp_outlook_increase = 0.2 }
		change_relative_party_popularity = yes
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 12 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
		}
		if = {
			limit = { date < 2006.8.9 }
			create_country_leader = {
				name = "Sayid Abdulloh Nuri"
				picture = "sayid_abdulloh_nuri.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}
		}
		else = {
			create_country_leader = {
				name = "Muhiddin Kabiri"
				picture = "muhiddin_kabiri.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}
		}
		set_country_flag = TAJ_radicalism_ended
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_radicalism.1.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.1.b executed"
		custom_effect_tooltip = TAJ_civilwar_TT
		hidden_effect = {
			create_dynamic_country = {
				original_tag = TAJ
				set_country_flag = TAJ_islamist_uprising
				copy_tag = TAJ
				set_cosmetic_tag = TAJ_islamist_government
				mark_formed_country_formable = yes
				retire_country_leader = yes
				# Intialization
				set_popularities = {
					neutrality = 80
					fascism = 20
				}
				set_politics = {
					ruling_party = neutrality
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^10 = 0.20 } #Kingdom
				set_variable = { party_pop_array^12 = 0.80 } #Neutral_Muslim_Brotherhood
				# Leader (Before/After Nuri's death)
				if = {
					limit = {
						date < 2006.8.9
					}
					create_country_leader = {
						name = "Sayid Abdulloh Nuri"
						picture = "sayid_abdulloh_nuri.dds"
						ideology = Neutral_Muslim_Brotherhood
						traits = {
							neutrality_Neutral_Muslim_Brotherhood
						}
					}
				}
				else = {
					create_country_leader = {
						name = "Muhiddin Kabiri"
						picture = "muhiddin_kabiri.dds"
						ideology = Neutral_Muslim_Brotherhood
						traits = {
							neutrality_Neutral_Muslim_Brotherhood
						}
					}
				}
				### Ruling Party
				set_variable = { ruling_party = 12 }
				startup_politics = yes
				load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
			}
			# Controlled by IRP
			723 = {
				transfer_state_to = IRP
			}
			# Badakhshan rises up
			722 = {
				transfer_state_to = BDA
			}
			IRP = {
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
			}
			BDA = {
				declare_war_on = {
					target = TAJ
					type = annex_everything
				}
			}
			set_country_flag = TAJ_radicalism_ended
		}
		ai_chance = {
			base = 1
		}
	}
}

# Events
country_event = {
	id = tajik_radicalism.2 # Underground Madrassas
	title = tajik_radicalism.2.t
	desc = tajik_radicalism.2.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.2.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.2.a executed"
		random_core_state = {
			add_to_variable = { productivity_state_var = -10 }
		}
		custom_effect_tooltip = TAJ_lose_10_prod_TT
		newline = yes
		add_equipment_to_stockpile = {
			type = infantry_weapons_1
			amount = -100
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.2.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.2.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_2_TT
		add_to_variable = { var = TAJ_radical_influence value = 2 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.3 # Religious Sermon Turns Political
	title = tajik_radicalism.3.t
	desc = tajik_radicalism.3.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.3.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.3.a executed"
		set_temp_variable = { party_popularity_increase = -0.035 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.3.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.3.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_2_TT
		add_to_variable = { var = TAJ_radical_influence value = 2 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.4 # Mosque Charities Expand
	title = tajik_radicalism.4.t
	desc = tajik_radicalism.4.d
	picture = GFX_stock_market
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.4.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.4.a executed"
		set_temp_variable = { treasury_change = 15.00 }
		modify_treasury_effect = yes
		set_temp_variable = { party_popularity_increase = -0.05 }
		set_temp_variable = { temp_outlook_increase = -0.05 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.4.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.4.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_2_TT
		add_to_variable = { var = TAJ_radical_influence value = 2 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.5 # Secret Religious Circles Form
	title = tajik_radicalism.5.t
	desc = tajik_radicalism.5.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.5.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.5.a executed"
		add_political_power = -125
		add_stability = -0.01
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.5.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.5.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_2_TT
		add_to_variable = { var = TAJ_radical_influence value = 2 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

# Mid Tier

country_event = {
	id = tajik_radicalism.6 # Confrontations Near Mosques
	title = tajik_radicalism.6.t
	desc = tajik_radicalism.6.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.6.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.6.a executed"
		set_temp_variable = { temp_opinion = -10 }
		change_the_military_opinion = yes
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.6.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.6.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_4_TT
		add_to_variable = { var = TAJ_radical_influence value = 4 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.7 # Rise in Attacks Against Police Checkpoints
	title = tajik_radicalism.7.t
	desc = tajik_radicalism.7.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.7.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.7.a executed"
		add_manpower = -750
		add_equipment_to_stockpile = {
			type = infantry_weapons_1
			amount = -200
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.7.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.7.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_4_TT
		add_to_variable = { var = TAJ_radical_influence value = 4 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.8 # Locals Resist Government Patrols
	title = tajik_radicalism.8.t
	desc = tajik_radicalism.8.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.8.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.8.a executed"
		set_temp_variable = { temp_opinion = -10 }
		change_oligarchs_opinion = yes
		add_political_power = -100
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.8.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.8.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_4_TT
		add_to_variable = { var = TAJ_radical_influence value = 4 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.9 # Increase of Radicalized Tajiks Returning from Abroad
	title = tajik_radicalism.9.t
	desc = tajik_radicalism.9.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.9.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.9.a executed"
		add_popularity = {
			ideology = fascism
			popularity = 0.10
		}
		random_core_state = {
			add_manpower = 250
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.9.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.9.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_4_TT
		add_to_variable = { var = TAJ_radical_influence value = 4 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}
# High tier

country_event = {
	id = tajik_radicalism.10 # Government convoy ambushed
	title = tajik_radicalism.10.t
	desc = tajik_radicalism.10.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.10.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.10.a executed"
		add_equipment_to_stockpile = {
			type = util_vehicle_type
			amount = -100
		}
		add_equipment_to_stockpile = {
			type = infantry_weapons_1
			amount = -350
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.10.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.10.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_6_TT
		add_to_variable = { var = TAJ_radical_influence value = 6 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.11 # Military Base Attacked
	title = tajik_radicalism.11.t
	desc = tajik_radicalism.11.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.11.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.11.a executed"
		add_manpower = -2500
		army_experience = -35
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.11.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.11.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_6_TT
		add_to_variable = { var = TAJ_radical_influence value = 6 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.12 # Terror Attack in Russia!
	title = tajik_radicalism.12.t
	desc = tajik_radicalism.12.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.12.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.12.a executed"
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		SOV = {
			country_event = tajik_radicalism.120
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.12.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.12.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_6_TT
		add_to_variable = { var = TAJ_radical_influence value = 6 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		SOV = {
			add_opinion_modifier = {
				target = TAJ
				modifier = recent_actions_negative
			}
			country_event = tajik_radicalism.121
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = tajik_radicalism.120 # Terror Attack in Russia! (TAJ pays us!)
	title = tajik_radicalism.120.t
	desc = tajik_radicalism.120.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { # Crackdown on them!
		name = tajik_radicalism.120.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.120.a executed"
		set_temp_variable = { treasury_change = 5.00 }
		modify_treasury_effect = yes
		random_core_state = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 2.0
				}
			}
			if = {
				limit = { industrial_complex > 0 }
				damage_building = {
					type = industrial_complex
					damage = 2.0
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_radicalism.121 # Terror Attack in Russia! (TAJ Does not pay us!)
	title = tajik_radicalism.121.t
	desc = tajik_radicalism.121.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { # Crackdown on them!
		name = tajik_radicalism.121.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.121.a executed"
		random_core_state = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 2.0
				}
			}
			if = {
				limit = { industrial_complex > 0 }
				damage_building = {
					type = industrial_complex
					damage = 2.0
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_radicalism.14 # Terror Attack in Large Commercial District
	title = tajik_radicalism.14.t
	desc = tajik_radicalism.14.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = { has_idea = TAJ_disrupted_commerce }
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.14.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.14.a executed"
		add_timed_idea = {
			idea = TAJ_disrupted_commerce
			days = 190
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = tajik_radicalism.14.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.14.b executed"
		custom_effect_tooltip = TAJ_increase_irp_influence_10_TT
		add_to_variable = { var = TAJ_radical_influence value = 10 }
		clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 }
		ai_chance = { base = 1 }
	}
}
# ISI-K Begins to Appear
country_event = {
	id = tajik_radicalism.15
	title = tajik_radicalism.15.t
	desc = tajik_radicalism.15.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.15.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.15.a executed"
		custom_effect_tooltip = TAJ_isi_k_TT
		add_ideas = TAJ_isik
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = tajik_radicalism.16 # IS-KP Start Large Scale Attacks
	title = tajik_radicalism.16.t
	desc = tajik_radicalism.16.d
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		NOT = {
			OR = {
				neutrality_neutral_muslim_brotherhood_are_in_power = yes
				salafist_caliphate_are_in_power = yes
				salafist_kingdom_are_in_power = yes
			}
		}
	}

	option = { # Crackdown on them!
		name = tajik_radicalism.16.a
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.16.a executed"
		custom_effect_tooltip = TAJ_civilwar_TT
		hidden_effect = {
			create_dynamic_country = {
				original_tag = TAJ
				set_country_flag = TAJ_islamist_uprising
				copy_tag = TAJ
				set_cosmetic_tag = TAJ_islamist_government_2
				mark_formed_country_formable = yes
				# Intialization
				set_popularities = {
					neutrality = 20
					fascism = 80
				}
				set_politics = {
					ruling_party = fascism
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^10 = 0.80 } #Kingdom
				set_variable = { party_pop_array^12 = 0.20 } #Neutral_Muslim_Brotherhood
				# Leader
				create_country_leader = {
					name = "Hafiz Saeed Khan"
					picture = "hafiz_saeed_khan.dds"
					ideology = Kingdom
					traits = {
						salafist_Kingdom
					}
				}
				### Ruling Party
				set_variable = { ruling_party = 10 }
				startup_politics = yes
				load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
			}
			# Controlled by IRP
			723 = {
				transfer_state_to = IRP
			}
			# Badakhshan rises up
			722 = {
				transfer_state_to = BDA
			}
			TAJ = {
				declare_war_on = {
					target = IRP
					type = annex_everything
				}
			}
			IRP = {
				declare_war_on = {
					target = BDA
					type = annex_everything
				}
			}
			TAJ = {
				declare_war_on = {
					target = BDA
					type = annex_everything
				}
			}
			IRP = {
				set_variable = { ruling_party = 10 }
				startup_politics = yes
				create_country_leader = {
					name = "Hafiz Saeed Khan"
					picture = "hafiz_saeed_khan.dds"
					ideology = Kingdom
					traits = {
						salafist_Kingdom
					}
				}
			}
			set_country_flag = TAJ_radicalism_ended
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Play as
		name = tajik_radicalism.16.b
		log = "[GetDateText]: [This.GetName]: tajik_radicalism.16.b executed"
		custom_effect_tooltip = TAJ_ISK_takeover_TT
		newline = yes
		set_temp_variable = { party_index = 10 }
		set_temp_variable = { party_popularity_increase = 0.2 }
		set_temp_variable = { temp_outlook_increase = 0.2 }
		change_relative_party_popularity = yes
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 10 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Hafiz Saeed Khan"
				picture = "hafiz_saeed_khan.dds"
				ideology = Kingdom
				traits = {
					salafist_Kingdom
				}
			}
			create_dynamic_country = {
				original_tag = TAJ
				set_cosmetic_tag = TAJ
				set_country_flag = TAJ_islamist_uprising
				copy_tag = TAJ
				mark_formed_country_formable = yes
				# Intialization
				set_popularities = {
					nationalist = 100
				}
				set_politics = {
					ruling_party = nationalist
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^22 = 1 } #Nat_Autocracy
				# Leader
				create_country_leader = {
					name = "Sherali Mirzo"
					picture = "Portrait_Sherali_Mirzo.dds"
					ideology = Nat_Autocracy
					traits = {
						nationalist_Nat_Autocracy
						military_career
					}
				}
				### Ruling Party
				set_variable = { ruling_party = 22 }
				startup_politics = yes
				load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
			}
			724 = {
				transfer_state_to = IRP
			}
			# Badakhshan rises up
			722 = {
				transfer_state_to = BDA
			}
			TAJ = {
				declare_war_on = {
					target = IRP
					type = annex_everything
				}
			}
			IRP = {
				declare_war_on = {
					target = BDA
					type = annex_everything
				}
				set_cosmetic_tag = TAJ
				set_country_flag = TAJ_islamist_uprising
				mark_formed_country_formable = yes
				# Intialization
				set_popularities = {
					nationalist = 100
				}
				set_politics = {
					ruling_party = nationalist
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^22 = 1 } #Nat_Autocracy
				# Leader
				create_country_leader = {
					name = "Sherali Mirzo "
					picture = "Portrait_Sherali_Mirzo.dds"
					ideology = Nat_Autocracy
					traits = {
						nationalist_Nat_Autocracy
						military_career
					}
				}
				### Ruling Party
				set_variable = { ruling_party = 22 }
				startup_politics = yes
				load_focus_tree = { tree = tajikistan_focus keep_completed = yes }
			}
			TAJ = {
				declare_war_on = {
					target = BDA
					type = annex_everything
				}
				set_cosmetic_tag = TAJ_islamist_government_2
				set_temp_variable = { rul_party_temp = 10 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
				create_country_leader = {
					name = "Hafiz Saeed Khan"
					picture = "hafiz_saeed_khan.dds"
					ideology = Kingdom
					traits = {
						salafist_Kingdom
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

# Iranic Unification

country_event = {
	id = iranic_confederation.1 # FROM invites us to join the Iranic Confederation
	title = iranic_confederation.1.t
	desc = iranic_confederation.1.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Count me in
		name = iranic_confederation.1.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.1.a executed"
		set_country_flag = iranic_confederation_member
		diplomatic_relation = {
			country = FROM
			relation = guarantee
			active = yes
		}
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		FROM = {
			country_event = iranic_confederation.2
			add_to_variable = { var = iranic_states value = 1 }
			clamp_variable = { var = iranic_states min = 0 max = 100 }
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # No
		name = iranic_confederation.1.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.1.b executed"
		mark_formed_country_formable = yes
		FROM = {
			country_event = iranic_confederation.3
		}
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = iranic_confederation.2 # FROM Accepts!
	title = iranic_confederation.2.t
	desc = iranic_confederation.2.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.2.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.2.a executed"
		diplomatic_relation = {
			country = FROM
			relation = guarantee
			active = yes
		}
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.3 # FROM Rejects!
	title = iranic_confederation.3.t
	desc = iranic_confederation.3.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranic_confederation.3.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.4 # Confederation Leader
	title = iranic_confederation.4.t
	desc = iranic_confederation.4.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Iran
		name = iranic_confederation.4.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.4.a executed"
		trigger = {
			ROOT = {
				NOT = {
					original_tag = PER
				}
			}
			PER = {
				has_country_flag = iranic_confederation_member
			}
		}
		PER = {
			add_to_variable = { var = iranic_states_vote value = 1 }
			clamp_variable = { var = iranic_states_vote min = 0 max = 100 }
		}
		IRN_event = yes
		ai_chance = {
			base = 5
			modifier = {
				PER = {
					is_ai = no
				}
				add = 50
			}
		}
	}

	option = { # Afghanistan
		name = iranic_confederation.4.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.4.b executed"
		trigger = {
			ROOT = {
				NOT = {
					original_tag = AFG
				}
			}
			AFG = {
				has_country_flag = iranic_confederation_member
			}
		}
		AFG = {
			add_to_variable = { var = iranic_states_vote value = 1 }
			clamp_variable = { var = iranic_states_vote min = 0 max = 100 }
		}
		IRN_event = yes
		ai_chance = {
			base = 1
			modifier = {
				AFG = {
					is_ai = no
				}
				add = 50
			}
		}
	}

	option = { # Tajikistan
		name = iranic_confederation.4.c
		log = "[GetDateText]: [This.GetName]: iranic_confederation.4.c executed"
		trigger = {
			ROOT = {
				NOT = {
					original_tag = TAJ
				}
			}
			TAJ = {
				has_country_flag = iranic_confederation_member
			}
		}
		TAJ = {
			add_to_variable = { var = iranic_states_vote value = 1 }
			clamp_variable = { var = iranic_states_vote min = 0 max = 100 }
		}
		IRN_event = yes
		ai_chance = {
			base = 1
			modifier = {
				TAJ = {
					is_ai = no
				}
				add = 50
			}
		}
	}

	option = { # Kurdistan
		name = iranic_confederation.4.e
		log = "[GetDateText]: [This.GetName]: iranic_confederation.4.e executed"
		trigger = {
			ROOT = {
				NOT = {
					original_tag = KUR
				}
			}
			KUR = {
				has_country_flag = iranic_confederation_member
			}
		}
		KUR = {
			add_to_variable = { var = iranic_states_vote value = 1 }
			clamp_variable = { var = iranic_states_vote min = 0 max = 100 }
		}
		IRN_event = yes
		ai_chance = {
			base = 1
			modifier = {
				KUR = {
					is_ai = no
				}
				add = 50
			}
		}
	}

	option = { # South Ossetia
		name = iranic_confederation.4.f
		log = "[GetDateText]: [This.GetName]: iranic_confederation.4.f executed"
		trigger = {
			ROOT = {
				NOT = {
					original_tag = SOO
				}
			}
			SOO = {
				has_country_flag = iranic_confederation_member
			}
		}
		SOO = {
			add_to_variable = { var = iranic_states_vote value = 1 }
			clamp_variable = { var = iranic_states_vote min = 0 max = 100 }
		}
		IRN_event = yes
		ai_chance = {
			base = 1
			modifier = {
				SOO = {
					is_ai = no
				}
				add = 50
			}
		}
	}
}

country_event = {
	id = iranic_confederation.5 # Confederation Leader
	title = iranic_confederation.5.t
	desc = iranic_confederation.5.d
	picture = GFX_treaty
	is_triggered_only = yes
	fire_only_once = yes

	option = { # Iran
		name = iranic_confederation.5.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.5.a executed"
		trigger = {
			PER = {
				check_variable = {
					iranic_states_vote > 1
				}
			}
		}
		PER = { set_country_flag = iranic_confederation_leader }
		hidden_effect = {
			if = {
				limit = {
					TAJ = {
						has_country_flag = iranic_confederation_member
					}
				}
				TAJ = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					AFG = {
						has_country_flag = iranic_confederation_member
					}
				}
				AFG = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					KUR = {
						has_country_flag = iranic_confederation_member
					}
				}
				KUR = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					SOO = {
						has_country_flag = iranic_confederation_member
					}
				}
				SOO = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
		}
		ai_chance = {
			base = 50
			modifier = {
				is_ai = no
				add = 50
			}
		}
	}

	option = { # Afghanistan
		name = iranic_confederation.5.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.5.b executed"
		trigger = {
			AFG = {
				check_variable = {
					iranic_states_vote > 1
				}
			}
		}
		AFG = { set_country_flag = iranic_confederation_leader }
		hidden_effect = {
			if = {
				limit = {
					TAJ = {
						has_country_flag = iranic_confederation_member
					}
				}
				TAJ = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					PER = {
						has_country_flag = iranic_confederation_member
					}
				}
				PER = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					KUR = {
						has_country_flag = iranic_confederation_member
					}
				}
				KUR = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					SOO = {
						has_country_flag = iranic_confederation_member
					}
				}
				SOO = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				is_ai = no
				add = 50
			}
		}
	}

	option = { # Tajikistan
		name = iranic_confederation.5.c
		log = "[GetDateText]: [This.GetName]: iranic_confederation.5.c executed"
		trigger = {
			TAJ = {
				check_variable = {
					iranic_states_vote > 1
				}
			}
		}
		TAJ = { set_country_flag = iranic_confederation_leader }
		hidden_effect = {
			if = {
				limit = {
					PER = {
						has_country_flag = iranic_confederation_member
					}
				}
				PER = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					AFG = {
						has_country_flag = iranic_confederation_member
					}
				}
				AFG = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					KUR = {
						has_country_flag = iranic_confederation_member
					}
				}
				KUR = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					SOO = {
						has_country_flag = iranic_confederation_member
					}
				}
				SOO = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				is_ai = no
				add = 50
			}
		}
	}

	option = { # Kurdistan
		name = iranic_confederation.5.e
		log = "[GetDateText]: [This.GetName]: iranic_confederation.5.e executed"
		trigger = {
			KUR = {
				check_variable = {
					iranic_states_vote > 1
				}
			}
		}
		KUR = { set_country_flag = iranic_confederation_leader }
		hidden_effect = {
			if = {
				limit = {
					TAJ = {
						has_country_flag = iranic_confederation_member
					}
				}
				TAJ = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					AFG = {
						has_country_flag = iranic_confederation_member
					}
				}
				AFG = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					PER = {
						has_country_flag = iranic_confederation_member
					}
				}
				PER = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					SOO = {
						has_country_flag = iranic_confederation_member
					}
				}
				SOO = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				is_ai = no
				add = 50
			}
		}
	}

	option = { # South Ossetia
		name = iranic_confederation.5.f
		log = "[GetDateText]: [This.GetName]: iranic_confederation.5.f executed"
		trigger = {
			SOO = {
				check_variable = {
					iranic_states_vote > 1
				}
			}
		}
		SOO = { set_country_flag = iranic_confederation_leader }
		hidden_effect = {
			if = {
				limit = {
					TAJ = {
						has_country_flag = iranic_confederation_member
					}
				}
				TAJ = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					AFG = {
						has_country_flag = iranic_confederation_member
					}
				}
				AFG = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					KUR = {
						has_country_flag = iranic_confederation_member
					}
				}
				KUR = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
			if = {
				limit = {
					PER = {
						has_country_flag = iranic_confederation_member
					}
				}
				PER = { every_owned_state = { set_state_flag = IRN_iranic_confederation } }
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				is_ai = no
				add = 50
			}
		}
	}
}

country_event = {
	id = iranic_confederation.6
	title = iranic_confederation.6.t
	desc = iranic_confederation.6.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.6.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.6.a executed"
		FROM = {
			set_country_flag = TAJ_phase_3
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_irn_province
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.7
	title = iranic_confederation.7.t
	desc = iranic_confederation.7.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.7.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.7.a executed"
		ROOT = {
			every_country = {
				limit = { has_country_flag = iranic_confederation_member }
				transfer_units_fraction = {
					target = FROM
					size = 1.0
					stockpile_ratio = 1.0
					army_ratio = 1.0
					navy_ratio = 1.0
					air_ratio = 1.0
				}
			}
			every_state = {
				limit = { has_state_flag = IRN_iranic_confederation }
				add_core_of = FROM
				transfer_state_to = FROM
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.8
	title = iranic_confederation.8.t
	desc = iranic_confederation.8.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.8.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.8.a executed"
		add_stability = 0.03
		hidden_effect = { IRN_vote = yes }
		ai_chance = { base = 1 }
	}
}

# Flavor
# Select new capital
country_event = {
	id = iranic_confederation.9
	title = iranic_confederation.9.t
	desc = iranic_confederation.9.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.9.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.9.a executed"
		trigger = { 976 = { is_owned_and_controlled_by = ROOT } }
		set_capital = { state = 976 }
		add_victory_points = {
			province = 8074
			value = 10
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranic_confederation.9.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.9.b executed"
		trigger = { 409 = { is_owned_and_controlled_by = ROOT } }
		set_capital = { state = 409 }
		add_victory_points = {
			province = 4893
			value = 10
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranic_confederation.9.c
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.10
	title = iranic_confederation.10.t
	desc = iranic_confederation.10.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranic_confederation.10.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.10.a executed"
		416 = { add_core_of = FROM }
		417 = { add_core_of = FROM }
		FROM = { country_event = iranic_confederation.11 }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranic_confederation.10.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.10.b executed"
		416 = {
			transfer_state_to = FROM
			add_core_of = FROM
		}
		417 = {
			transfer_state_to = FROM
			add_core_of = FROM
		}
		FROM = { country_event = iranic_confederation.12 }
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranic_confederation.11
	title = iranic_confederation.11.t
	desc = iranic_confederation.11.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.11.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.11.a executed"
		set_temp_variable = { wargoal_on = PAK }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = PAK
			type = take_core_state
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.12
	title = iranic_confederation.12.t
	desc = iranic_confederation.12.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.12.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.15
	title = iranic_confederation.15.t
	desc = iranic_confederation.15.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranic_confederation.15.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.15.a executed"
		162 = { add_core_of = FROM }
		935 = { add_core_of = FROM }
		FROM = { country_event = iranic_confederation.16 }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranic_confederation.15.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.15.b executed"
		162 = {
			transfer_state_to = FROM
			add_core_of = FROM
		}
		935 = {
			transfer_state_to = FROM
			add_core_of = FROM
		}
		FROM = { country_event = iranic_confederation.17 }
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranic_confederation.16
	title = iranic_confederation.16.t
	desc = iranic_confederation.16.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.16.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.16.a executed"
		set_temp_variable = { wargoal_on = TUR }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = TUR
			type = take_core_state
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.17
	title = iranic_confederation.17.t
	desc = iranic_confederation.17.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.17.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.18
	title = iranic_confederation.18.t
	desc = iranic_confederation.18.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.18.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.18.a executed"
		FROM = { country_event = iranic_confederation.19 }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranic_confederation.18.b
		log = "[GetDateText]: [This.GetName]: iranic_confederation.18.b executed"
		FROM = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_irn_province
			}
			country_event = iranic_confederation.20
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.19
	title = iranic_confederation.19.t
	desc = iranic_confederation.19.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranic_confederation.19.a
		log = "[GetDateText]: [This.GetName]: iranic_confederation.19.a executed"
		set_temp_variable = { wargoal_on = FROM }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = FROM
			type = puppet_wargoal_focus
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranic_confederation.20
	title = iranic_confederation.20.t
	desc = iranic_confederation.20.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranic_confederation.20.a
		ai_chance = { base = 1 }
	}
}

# Victory in Batken
country_event = {
	id = pamir_conflict.1
	title = pamir_conflict.1.t
	desc = pamir_conflict.1.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = pamir_conflict.1.a
		log = "[GetDateText]: [This.GetName]: pamir_conflict.1.a executed"
		if = {
			limit = { ROOT = { original_tag = TAJ } }
			add_ideas = TAJ_occupying_batken
			activate_mission = TAJ_batken_occupation
			1170 = { transfer_state_to = TAJ }
		}
		if = {
			limit = { ROOT = { original_tag = UZB } }
			1170 = { transfer_state_to = UZB }
		}
		if = {
			limit = { ROOT = { original_tag = KYR } }
			1170 = { transfer_state_to = KYR }
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = pamir_conflict.2
	title = pamir_conflict.2.t
	desc = pamir_conflict.2.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = pamir_conflict.2.a
		log = "[GetDateText]: [This.GetName]: pamir_conflict.2.a executed"
		add_stability = -0.02
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = pamir_conflict.3
	title = pamir_conflict.3.t
	desc = pamir_conflict.3.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = pamir_conflict.3.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = pamir_conflict.4
	title = pamir_conflict.4.t
	desc = pamir_conflict.4.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = pamir_conflict.4.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = pamir_conflict.5
	title = pamir_conflict.5.t
	desc = pamir_conflict.5.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = pamir_conflict.5.a
		log = "[GetDateText]: [This.GetName]: pamir_conflict.5.a executed"
		if = {
			limit = { ROOT = { original_tag = TAJ } }
			add_ideas = TAJ_occupying_pamir
			activate_mission = TAJ_pamir_occupation
			721 = { transfer_state_to = TAJ }
		}
		if = {
			limit = { ROOT = { original_tag = UZB } }
			721 = { transfer_state_to = UZB }
		}
		if = {
			limit = { ROOT = { original_tag = KYR } }
			721 = { transfer_state_to = KYR }
		}
		ai_chance = { base = 1 }
	}
}

# Corruption Events

country_event = { # Monthly Goods (Variation 1)
	id = tajik_corruption.1
	title = tajik_corruption.1.t
	desc = tajik_corruption.1.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.1.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.a executed"
		if = {
			limit = {
				has_country_flag = TAJ_high_security_flag
			}
			# Get some cash
			set_temp_variable = {
				treasury_change = {
					value = gdp_total
					multiply = 0.01
				}
			}
			modify_treasury_effect = yes
			newline = yes
			# Get some manpower
			add_manpower = 150
			# Get some rifles
			newline = yes
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 100
				producer = SOV
			}
			newline = yes
			# Get some utility trucks
			add_equipment_to_stockpile = {
				type = util_vehicle_1
				amount = 25
				producer = C01
			}
			newline = yes
			# Political Power
			add_political_power = 25
		}
		else_if = {
			limit = {
				has_country_flag = TAJ_medium_security_flag
			}
			# Get some cash
			set_temp_variable = {
				treasury_change = {
					value = gdp_total
					multiply = 0.02
				}
			}
			modify_treasury_effect = yes
			newline = yes
			# Get some manpower
			add_manpower = 300
			# Get some rifles
			newline = yes
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 200
				producer = SOV
			}
			newline = yes
			# Get some utility trucks
			add_equipment_to_stockpile = {
				type = util_vehicle_1
				amount = 50
				producer = C01
			}
			newline = yes
			# Political Power
			add_political_power = 50
			# Command Power & XP
			add_command_power = 10
			newline = yes
			army_experience = 10
		}
		else_if = {
			limit = {
				has_country_flag = TAJ_negligible_security_flag
			}
			# Get some cash
			set_temp_variable = {
				treasury_change = {
					value = gdp_total
					multiply = 0.03
				}
			}
			modify_treasury_effect = yes
			newline = yes
			# Get some manpower
			add_manpower = 500
			# Get some rifles
			newline = yes
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 350
				producer = SOV
			}
			newline = yes
			# Get some utility trucks
			add_equipment_to_stockpile = {
				type = util_vehicle_1
				amount = 75
				producer = C01
			}
			newline = yes
			# Political Power
			add_political_power = 75
			newline = yes
			# Command Power & XP
			add_command_power = 20
			newline = yes
			# Army XP
			army_experience = 15
			newline = yes
			# Random ass influence on someone
			random_country = {
				set_temp_variable = { percent_change = 1.50 }
				set_temp_variable = { tag_index = TAJ }
				change_influence_percentage = yes
			}
		}
		ai_chance = {
			base = 1
		}
	}

	# Pass it off to the military
	option = {
		name = tajik_corruption.1.b
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.b executed"
		trigger = { has_idea = the_military }
		set_temp_variable = { temp_opinion = 5 }
		change_the_military_opinion = yes
		ai_chance = { base = 1 }
	}

	# Pass it off to the oligarchs
	option = {
		name = tajik_corruption.1.c
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.c executed"
		trigger = { has_idea = oligarchs }
		set_temp_variable = { temp_opinion = 5 }
		change_oligarchs_opinion = yes
		ai_chance = { base = 1 }
	}

	# Pass it off to the farmers
	option = {
		name = tajik_corruption.1.c1
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.c1 executed"
		trigger = { has_idea = farmers }
		set_temp_variable = { temp_opinion = 5 }
		change_farmers_opinion = yes
		ai_chance = { base = 1 }
	}

	# Small businesses
	option = {
		name = tajik_corruption.1.d1
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.d1 executed"
		trigger = { has_idea = small_medium_business_owners }
		set_temp_variable = { temp_opinion = 5 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = { base = 1 }
	}

	# fossil fuel
	option = {
		name = tajik_corruption.1.e
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.e executed"
		trigger = { has_idea = fossil_fuel_industry }
		set_temp_variable = { temp_opinion = 5 }
		change_fossil_fuel_industry_opinion = yes
		ai_chance = { base = 1 }
	}

	# labour unions
	option = {
		name = tajik_corruption.1.f
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.f executed"
		trigger = { has_idea = labour_unions }
		set_temp_variable = { temp_opinion = 5 }
		change_labour_unions_opinion = yes
		ai_chance = { base = 1 }
	}

	# International Bankers
	option = {
		name = tajik_corruption.1.g
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.g executed"
		trigger = { has_idea = international_bankers }
		set_temp_variable = { temp_opinion = 5 }
		change_international_bankers_opinion = yes
		ai_chance = { base = 1 }
	}

	# industrial conglomerates
	option = {
		name = tajik_corruption.1.h
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.h executed"
		trigger = { has_idea = industrial_conglomerates }
		set_temp_variable = { temp_opinion = 5 }
		change_industrial_conglomerates_opinion = yes
		ai_chance = { base = 1 }
	}

	# military industrial
	option = {
		name = tajik_corruption.1.i
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.i executed"
		trigger = { has_idea = defense_industry }
		set_temp_variable = { temp_opinion = 5 }
		change_defense_industry_opinion = yes
		ai_chance = { base = 1 }
	}

	# Ulema
	option = {
		name = tajik_corruption.1.j
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.j executed"
		trigger = { has_idea = the_ulema }
		set_temp_variable = { temp_opinion = 5 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 1 }
	}

	# Sepah
	option = {
		name = tajik_corruption.1.k
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.k executed"
		trigger = { has_idea = iranian_quds_force }
		set_temp_variable = { temp_opinion = 5 }
		change_iranian_quds_force_opinion = yes
		ai_chance = { base = 1 }
	}

	# Land Owners
	option = {
		name = tajik_corruption.1.l
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.l executed"
		trigger = { has_idea = landowners }
		set_temp_variable = { temp_opinion = 5 }
		change_landowners_opinion = yes
		ai_chance = { base = 1 }
	}

	# Intel
	option = {
		name = tajik_corruption.1.m
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.m executed"
		trigger = { has_idea = intelligence_community }
		set_temp_variable = { temp_opinion = 5 }
		change_intelligence_community_opinion = yes
		ai_chance = { base = 1 }
	}

	# Maritime
	option = {
		name = tajik_corruption.1.n
		log = "[GetDateText]: [This.GetName]: tajik_corruption.1.n executed"
		trigger = { has_idea = maritime_industry }
		set_temp_variable = { temp_opinion = 5 }
		change_maritime_industry_opinion = yes
		ai_chance = { base = 1 }
	}
}

# Bad Events
country_event = { # Foreign Influence Has Made It's Way In
	id = tajik_corruption.2
	title = tajik_corruption.2.t
	desc = tajik_corruption.2.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = tajik_corruption.2.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.2.a executed"
		random_country = {
			set_temp_variable = { percent_change = 1.50 }
			set_temp_variable = { tag_index = THIS }
			set_temp_variable = { influence_target = TAJ }
			change_influence_percentage = yes
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Islamist Pamphlets Spread
	id = tajik_corruption.3
	title = tajik_corruption.3.t
	desc = tajik_corruption.3.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	trigger = {
		NOT = { has_government = fascism }
		neutrality_muslim_brotherhood_in_power_or_coalition = no
	}

	option = {
		name = tajik_corruption.3.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.3.a executed"
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}
		newline = yes
		add_stability = -0.01
		ai_chance = { base = 1 }
	}
}

country_event = { # Anti-Government Pamphlets Spread
	id = tajik_corruption.4
	title = tajik_corruption.4.t
	desc = tajik_corruption.4.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = tajik_corruption.4.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.4.a executed"
		set_temp_variable = { party_popularity_increase = -0.05 }
		set_temp_variable = { temp_outlook_increase = -0.025 }
		change_relative_party_popularity = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Drugs From Abroad Plunge Our Soldiers into Addiction
	id = tajik_corruption.5
	title = tajik_corruption.5.t
	desc = tajik_corruption.5.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.5.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.5.a executed"
		army_experience = -20
		air_experience = -20
		ai_chance = { base = 1 }
	}
}

country_event = { # Drugs From Abroad Plunge Our People into Addiction
	id = tajik_corruption.6
	title = tajik_corruption.6.t
	desc = tajik_corruption.6.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.6.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.6.a executed"
		random_core_state = { add_to_variable = { productivity_state_var = -10 } }
		custom_effect_tooltip = TAJ_lose_10_prod_TT
		ai_chance = { base = 1 }
	}
}

country_event = { # Terrorist Attack Linked to Black-Market Trade
	id = tajik_corruption.7
	title = tajik_corruption.7.t
	desc = tajik_corruption.7.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.7.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.7.a executed"
		random_core_state = {
			limit = { industrial_complex > 0 }
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 1.0
				}
			}
			damage_building = {
				type = industrial_complex
				damage = 1.0
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Money Smuggled From National Treasury
	id = tajik_corruption.8
	title = tajik_corruption.8.t
	desc = tajik_corruption.8.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.8.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.8.a executed"
		set_temp_variable = {
			treasury_change = {
				value = gdp_total
				multiply = -0.05
			}
		}
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Corrupt Officials Gave Away State Secrets
	id = tajik_corruption.9
	title = tajik_corruption.9.t
	desc = tajik_corruption.9.d
	picture = GFX_politics_surveillence
	is_triggered_only = yes

	option = {
		name = tajik_corruption.9.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.9.a executed"
		random_list = {
			25 = {
				if = {
					limit = { NOT = { has_idea = corruption_level_10 } }
					increase_corruption = yes
				}
				else = { add_political_power = -300 }
			}
			75 = {
				add_political_power = -75
				add_command_power = -25
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Internal Factions Upset With Mismanagement
	id = tajik_corruption.10
	title = tajik_corruption.10.t
	desc = tajik_corruption.10.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.10.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.10.a executed"
		set_temp_variable = { temp_opinion = -5 }
		change_the_military_opinion = yes
		change_oligarchs_opinion = yes
		change_farmers_opinion = yes
		change_small_medium_business_owners_opinion = yes
		change_fossil_fuel_industry_opinion = yes
		change_international_bankers_opinion = yes
		change_industrial_conglomerates_opinion = yes
		change_defense_industry_opinion = yes
		change_iranian_quds_force_opinion = yes
		change_landowners_opinion = yes
		change_maritime_industry_opinion = yes
		change_intelligence_community_opinion = yes
		ai_chance = { base = 1 }
	}
}

# Good Events

country_event = { # Foreign State Secrets Found
	id = tajik_corruption.11
	title = tajik_corruption.11.t
	desc = tajik_corruption.11.d
	picture = GFX_politics_surveillence
	is_triggered_only = yes

	option = {
		name = tajik_corruption.11.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.11.a executed"
		add_breakthrough_progress = {
			specialization = all
			value = 0.10
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Missile Smuggled
	id = tajik_corruption.12
	title = tajik_corruption.12.t
	desc = tajik_corruption.12.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.12.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.12.a executed"
		if = {
			limit = { has_dlc = "Gotterdammerung" }
			add_equipment_to_stockpile = {
				type = ballistic_missile_equipment_1
				amount = 2
				producer = SOV
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = guided_missile_equipment_1
				amount = 2
				producer = SOV
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Gold Smuggled
	id = tajik_corruption.13
	title = tajik_corruption.13.t
	desc = tajik_corruption.13.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.13.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.13.a executed"
		add_resource = {
			type = chromium
			amount = 1
			state = 724
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Weapons Equipment Smuggled
	id = tajik_corruption.14
	title = tajik_corruption.14.t
	desc = tajik_corruption.14.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.14.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.14.a executed"
		add_equipment_to_stockpile = {
			type = artillery_2
			amount = 20
			producer = SOV
		}
		newline = yes
		add_equipment_to_stockpile = {
			type = Anti_tank_2
			amount = 15
			producer = SOV
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Foreign Blueprints Smuggled
	id = tajik_corruption.15
	title = tajik_corruption.15.t
	desc = tajik_corruption.15.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.15.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.15.a executed"
		random_list = {
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_agriculture
				} hidden_effect = { rq_eb_b63d2e9fcc = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_genetics
				} hidden_effect = { rq_eb_da82436975 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_medium_aircraft
				} hidden_effect = { rq_eb_72b55f3883 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_industry
				} hidden_effect = { rq_eb_dd86e42890 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_information_technology
				} hidden_effect = { rq_eb_364f0b778e = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_internet
				} hidden_effect = { rq_eb_e3add24c7d = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_artificial_intelligence
				} hidden_effect = { rq_eb_32b6c303c3 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_civilian
				} hidden_effect = { rq_eb_ebb76c6f90 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_fuel_refining
				} hidden_effect = { rq_eb_e4ee9b52f7 = yes }
			}
			10 = {
				add_tech_bonus = {
					name = tajik_corruption.15.t
					bonus = 0.15
					uses = 1
					category = CAT_infantry
				} hidden_effect = { rq_eb_a279b9b7b2 = yes }
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Military Doctrines Smuggled
	id = tajik_corruption.16
	title = tajik_corruption.16.t
	desc = tajik_corruption.16.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = tajik_corruption.16.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.16.a executed"
		random_list = {
			50 = {
				add_doctrine_cost_reduction = {
					name = tajik_corruption.16.t
					cost_reduction = 0.25
					uses = 1
					category = land_doctrine
				}
			}
			50 = {
				add_doctrine_cost_reduction = {
					name = tajik_corruption.16.t
					cost_reduction = 0.25
					uses = 1
					category = air_doctrine
				}
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Farming Equipment Smuggled
	id = tajik_corruption.17
	title = tajik_corruption.17.t
	desc = tajik_corruption.17.d
	picture = GFX_generic_tractor_manufacturer
	is_triggered_only = yes

	option = {
		name = tajik_corruption.17.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.17.a executed"
		one_random_agriculture_district = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = tajik_corruption.17.b
		log = "[GetDateText]: [This.GetName]: tajik_corruption.17.b executed"
		set_temp_variable = { treasury_change = 3.70 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Military Tactic Handout Smuggled
	id = tajik_corruption.18
	title = tajik_corruption.18.t
	desc = tajik_corruption.18.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.18.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.18.a executed"
		random_army_leader = {
			random_list = {
				25 = { add_attack = 1 }
				25 = { add_defense = 1 }
				25 = { add_logistics = 1 }
				25 = { add_planning = 1 }
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Dangerous Contraband Stopped
	id = tajik_corruption.19
	title = tajik_corruption.19.t
	desc = tajik_corruption.19.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.19.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.19.a executed"
		add_political_power = 75
		ai_chance = { base = 1 }
	}
}

# Russia
country_event = { # Tajikistan Floods Our Markets With Drugs
	id = tajik_corruption.20
	title = tajik_corruption.20.t
	desc = tajik_corruption.20.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.20.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.20.a executed"
		add_stability = -0.05
		set_variable = { var = TAJ_drugs_police_modifier value = 0.02 }
		set_variable = { var = TAJ_corruption_drugs_modifier value = 0.02 }
		set_country_flag = tajik_drugs_flag
		effect_tooltip = { add_dynamic_modifier = { modifier = TAJ_tajik_drugs } }
		TAJ_drug_flow_update = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Increases Narcotics Flow Into Our Markets
	id = tajik_corruption.21
	title = tajik_corruption.21.t
	desc = tajik_corruption.21.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = {
		name = tajik_corruption.21.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.21.a executed"
		custom_effect_tooltip = TAJ_increase_cost_by_2_TT
		hidden_effect = {
			add_to_variable = { var = TAJ_drugs_police_modifier value = 0.02 }
			clamp_variable = { var = TAJ_drugs_police_modifier min = 0 max = 0.99 }
			add_to_variable = { var = TAJ_corruption_drugs_modifier value = 0.02 }
			clamp_variable = { var = TAJ_corruption_drugs_modifier min = 0 max = 0.99 }
		}
		random = {
			chance = 30
				add_stability = -0.01
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Increases Narcotics Flow Into Our Markets
	id = tajik_corruption.22
	title = tajik_corruption.22.t
	desc = tajik_corruption.22.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = tajik_corruption.22.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.22.a executed"
		add_stability = 0.05
		clr_country_flag = tajik_drugs_flag
		effect_tooltip = { remove_dynamic_modifier = { modifier = TAJ_tajik_drugs } }
		TAJ_drug_flow_update = yes
		ai_chance = { base = 1 }
	}
}

country_event = { # Tajikistan Threatens to Lower Border Security!
	id = tajik_corruption.23
	title = tajik_corruption.23.t
	desc = tajik_corruption.23.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	option = { # Fine
		name = tajik_corruption.23.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.23.a executed"
		TAJ = {
			country_event = {
				id = tajik_corruption.24
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 2
				has_country_flag = TAJ_recently_pressured
			}
		}
	}

	option = { # No
		name = tajik_corruption.23.b
		log = "[GetDateText]: [This.GetName]: tajik_corruption.23.b executed"
		TAJ = {
			country_event = {
				id = tajik_corruption.25
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Do this one more time and see what happens
		name = tajik_corruption.23.c
		log = "[GetDateText]: [This.GetName]: tajik_corruption.23.c executed"
		trigger = {
			TAJ = {
				NOT = {
					has_idea = CSTO_member
				}
			}
		}
		set_country_flag = SOV_attack_if_repeated_TAJ
		TAJ = {
			country_event = {
				id = tajik_corruption.26
				days = 2
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { #War
		name = tajik_corruption.23.c1
		log = "[GetDateText]: [This.GetName]: tajik_corruption.23.c1 executed"
		trigger = {
			TAJ = {
				NOT = {
					has_idea = CSTO_member
				}
			}
			has_country_flag = SOV_attack_if_repeated_TAJ
		}
		set_temp_variable = { wargoal_on = TAJ }
		set_temp_variable = { wargoal_type = 2 }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = TAJ
			type = annex_everything
		}
		TAJ = {
			country_event = tajik_corruption.27
		}
		ai_chance = {
			base = 100
		}
	}
}

country_event = { # Russia Grants Economic Support
	id = tajik_corruption.24
	title = tajik_corruption.24.t
	desc = tajik_corruption.24.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Fine
		name = tajik_corruption.24.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.24.a executed"
		set_temp_variable = { percent_change = 1.00 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = TAJ }
		change_influence_percentage = yes
		random_list = {
			25 = {
				custom_effect_tooltip = TAJ_boost_to_inf_cont_TT
				hidden_effect = {
					add_to_variable = { var = TAJ_russian_money_construction value = 0.02 }
					clamp_variable = { var = TAJ_russian_money_construction min = 0 max = 0.99 }
				}
			}
			25 = {
				custom_effect_tooltip = TAJ_boost_to_resources_TT
				hidden_effect = {
					add_to_variable = { var = TAJ_russian_money_resources value = 0.02 }
					clamp_variable = { var = TAJ_russian_money_resources min = 0 max = 0.99 }
				}
			}
			25 = {
				custom_effect_tooltip = TAJ_boost_to_pp_TT
				hidden_effect = {
					add_to_variable = { var = TAJ_russian_money_political_power value = 0.02 }
					clamp_variable = { var = TAJ_russian_money_political_power min = 0 max = 0.99 }
				}
			}
			25 = {
				add_to_variable = { var = TAJ_russian_money_building_slots value = 0.02 tooltip = global_building_slots_factor_tt }
				clamp_variable = { var = TAJ_russian_money_building_slots min = 0 max = 0.99 }
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Russia Denies Economic Support
	id = tajik_corruption.25
	title = tajik_corruption.25.t
	desc = tajik_corruption.25.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # We'll Remember That
		name = tajik_corruption.25.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Russia Threatens Us!
	id = tajik_corruption.26
	title = tajik_corruption.26.t
	desc = tajik_corruption.26.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { # We'll Remember That
		name = tajik_corruption.26.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Russia Angered
	id = tajik_corruption.27
	title = tajik_corruption.27.t
	desc = tajik_corruption.27.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { # We'll Remember That
		name = tajik_corruption.27.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Russian Ultimatum
	id = tajik_corruption.28
	title = tajik_corruption.28.t
	desc = tajik_corruption.28.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # We'll Remember That
		name = tajik_corruption.28.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.28.a executed"
		activate_mission = TAJ_russian_demands
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Tajikistan Fails to Comply
	id = tajik_corruption.29
	title = tajik_corruption.29.t
	desc = tajik_corruption.29.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = { # We'll Remember That
		name = tajik_corruption.29.a
		log = "[GetDateText]: [This.GetName]: tajik_corruption.29.a executed"
		if = {
			limit = {
				TAJ = {
					is_in_faction_with = SOV
				}
			}
			remove_from_faction = TAJ
		}
		set_temp_variable = { wargoal_on = TAJ }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = TAJ
			type = puppet_wargoal_focus
		}
		ai_chance = {
			base = 5
		}
	}

	option = { # We'll Remember That
		name = tajik_corruption.29.b
		ai_chance = {
			base = 0
		}
	}
}

#Tajik Lore Events
# Nadyrov's Plea
country_event = {
	id = tajik_lore.0
	title = tajik_lore.0.t
	desc = tajik_lore.0.d
	picture = GFX_TAJ_Army_reform
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Just another day on the Job
		name = tajik_lore.0.a
		log = "[GetDateText]: [This.GetName]: tajik_lore.0.a executed"
		hidden_effect = {
			set_country_flag = TAJ_tajik_lore.1
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # The Harshest Truth
	id = tajik_lore.1
	title = tajik_lore.1.t
	desc = tajik_lore.1.d
	picture = GFX_TAJ_Army_reform
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Allahumma arhamna
		name = tajik_lore.1.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Arsenal Blueprint
	id = tajik_lore.2
	title = tajik_lore.2.t
	desc = tajik_lore.2.d
	picture = GFX_TAJ_Army_reform
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Looks like rabbit season is in play
		name = tajik_lore.2.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Optics from the Tavildara valley pt1
	id = tajik_lore.3
	title = tajik_lore.3.t
	desc = tajik_lore.3.d
	picture = GFX_TAJ_Trucks_gunfire
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Always walking on the brink
		name = tajik_lore.3.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Optics from the Tavildara valley pt2
	id = tajik_lore.4
	title = tajik_lore.4.t
	desc = tajik_lore.4.d
	picture = GFX_TAJ_IMU_millitia
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Are fruit’s rotted away and they killed it
		name = tajik_lore.4.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # The cover up
	id = tajik_lore.5
	title = tajik_lore.5.t
	desc = tajik_lore.5.d
	picture = GFX_TAJ_worker_army
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # A day at its finest
		name = tajik_lore.5.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # A unwanted call
	id = tajik_lore.6
	title = tajik_lore.6.t
	desc = tajik_lore.6.d
	picture = GFX_TAJ_Rahmon_phone_call
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Well Well Well
		name = tajik_lore.6.a
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Hills Ablaze
	id = tajik_lore.7
	title = tajik_lore.7.t
	desc = tajik_lore.7.d
	picture = GFX_TAJ_Rocket_attack
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # Leave no response
		name = tajik_lore.7.a
		ai_chance = {
			base = 1
		}
	}

	option = { # Rally the troops
		name = tajik_lore.7.b
		log = "[GetDateText]: [This.GetName]: tajik_lore.7.b executed"
		set_temp_variable = { wargoal_on = UZB }
		set_temp_variable = { wargoal_type = 2 }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			type = annex_everything
			target = UZB
		}
		add_threat = 2
		ai_chance = {
			base = 0
		}
	}
}

country_event = { # Plans for a strike into Tajikistan (Uzbek Event)
	id = tajik_lore.8
	title = tajik_lore.8.t
	desc = tajik_lore.8.d
	picture = GFX_TAJ_Rahmon_speach
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { TAJ = { emerging_conservative_in_power_or_coalition = yes } }

	option = { # there is no choice Are hand is forced
		name = tajik_lore.8.a
		log = "[GetDateText]: [This.GetName]: tajik_lore.8.a executed"
		TAJ = {
			country_event = {
				id = tajik_lore.7
				days = 1
			}
		}
		hidden_effect = {
			news_event = {
				id = tajik_lore.12
				days = 3
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Mine the borders (Uzbek Event)
	id = tajik_lore.9
	title = tajik_lore.9.t
	desc = tajik_lore.9.d
	picture = GFX_TAJ_red_sign_snow_ice
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { TAJ = { emerging_conservative_in_power_or_coalition = yes } }

	option = { # There is no choice Are hand is forced
		name = tajik_lore.9.a
		log = "[GetDateText]: [This.GetName]: tajik_lore.9.a executed"
		TAJ = {
			country_event = {
				id = tajik_lore.10
				days = 1
			}
			hidden_effect = {
				set_country_flag = TAJ_tajik_lore.11
			}
		}
		hidden_effect = {
			news_event = {
			id = tajik_lore.13
			days = 2
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Uzbekistan lays its landmines
	id = tajik_lore.10
	title = tajik_lore.10.t
	desc = tajik_lore.10.d
	picture = GFX_TAJ_red_sign_snow_ice
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # We are out of our grasp
		name = tajik_lore.10.a
		log = "[GetDateText]: [This.GetName]: tajik_lore.10.a executed"
		effect_tooltip = {
			activate_targeted_decision = {
				target = TAJ
				decision = TAJ_Uzbek_war
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # We will not accept this
		name = tajik_lore.10.b
		log = "[GetDateText]: [This.GetName]: tajik_lore.10.b executed"
		set_temp_variable = { wargoal_on = UZB }
		set_temp_variable = { wargoal_type = 2 }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			type = annex_everything
			target = UZB
		}
		add_threat = 4
		effect_tooltip = {
			activate_targeted_decision = {
				target = TAJ
				decision = TAJ_Uzbek_war
			}
		}
		ai_chance = {
			base = 0
		}
	}
}

country_event = { # Crisis Talks with Uzbekistan
	id = tajik_lore.11
	title = tajik_lore.11.t
	desc = tajik_lore.11.d
	picture = GFX_TAJ_Rahmon_phone_call
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { emerging_conservative_in_power_or_coalition = yes }

	option = { # A nation wide sigh
		name = tajik_lore.11.a
		ai_chance = {
			base = 1
		}
	}
}

news_event = { # Uzbekistan Strikes Tajikistan in Targeted IMU Operation (News)
	id = tajik_lore.12
	title = tajik_lore.12.t
	desc = tajik_lore.12.d
	picture = GFX_News_TAJ_Uzbek_fighter_jetts
	is_triggered_only = yes
	major = yes

	option = { # A World in Disarray
		name = tajik_lore.12.a
		trigger = {
			NOT = {
				OR = {
					tag = TAJ
					tag = UZB
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # A Shadow Looms Over Us
		name = tajik_lore.12.b
		trigger = {
			tag = TAJ
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # A Decisive Blow
		name = tajik_lore.12.c
		trigger = {
			tag = UZB
		}
		ai_chance = {
			base = 1
		}
	}
}

news_event = { # Uzbekistan Mines the Tajik Border (News)
	id = tajik_lore.13
	title = tajik_lore.13.t
	desc = tajik_lore.13.d
	picture = GFX_News_TAJ_border_guards
	is_triggered_only = yes
	major = yes
	fire_only_once = yes

	option = { # Days of Hazy lay ahead
		name = tajik_lore.13.a
		ai_chance = {
			base = 1
		}
	}
}

news_event = { # Uzbek Invasion of Tajikistan (News)
	id = tajik_lore.14
	title = tajik_lore.14.t
	desc = tajik_lore.14.d
	picture = GFX_News_TAJ_Helicopter
	is_triggered_only = yes
	major = yes
	fire_only_once = yes

	option = { # A carefully tread that ended in hellfire
		name = tajik_lore.14.a
		ai_chance = {
			base = 1
		}
	}
}
