AFG_unite_central_asia_category = {

	AFG_unite_central_asia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 584
			controls_state = 832
			controls_state = 742
			controls_state = 405
			controls_state = 830
			controls_state = 823
			controls_state = 585
			controls_state = 732
			controls_state = 402
			controls_state = 590
			controls_state = 589
			controls_state = 586
			controls_state = 881
			controls_state = 583
			controls_state = 404
			controls_state = 882
			controls_state = 588
			controls_state = 587
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = KAZ
						is_core_of = UZB
						is_core_of = KYR
						is_core_of = TAJ
						is_core_of = TMS
					}
				}
				add_core_of = ROOT
			}
			set_cosmetic_tag = AFG_central_asia
			set_country_flag = united_central_asia_flag
			hidden_effect = {
				news_event = afghan_news.6
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_east_turkestan = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 760
			controls_state = 618
			controls_state = 759
			controls_state = 287
			controls_state = 617
			controls_state = 619
		}
	
		visible = {
			has_country_flag = united_central_asia_flag
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = SIK
				}
				add_core_of = ROOT
			}
			clr_country_flag = united_central_asia_flag
		}

		ai_will_do = {
			factor = 100
		}

	}

}

AFG_basmachi_uprisings_category = {

	AFG_khivan_uprising_1 = {
		name = AFG_khivan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 832
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			832 = {
				owner = { original_tag = SOV }
			}
		}

		cost = 25
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = khivan_uprising_1_flag
			custom_effect_tooltip = AFG_khivan_uprising_1_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_khivan_uprising_2 = {
		name = AFG_khivan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 832
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			832 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = khivan_uprising_1_flag
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = khivan_uprising_2_flag
			clr_country_flag = khivan_uprising_1_flag
			custom_effect_tooltip = AFG_khivan_uprising_2_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_khivan_uprising_3 = {
		name = AFG_khivan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 832
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			832 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = khivan_uprising_2_flag
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = khivan_uprising_3_flag
			clr_country_flag = khivan_uprising_2_flag
			custom_effect_tooltip = AFG_khivan_uprising_3_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_bukharan_uprising_1 = {
		name = AFG_bukharan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 830
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			830 = {
				owner = { original_tag = SOV }
			}
		}

		cost = 25
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = bukharan_uprising_1_flag
			custom_effect_tooltip = AFG_bukharan_uprising_1_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_bukharan_uprising_2 = {
		name = AFG_bukharan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 830
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			830 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = bukharan_uprising_1_flag
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = bukharan_uprising_2_flag
			clr_country_flag = bukharan_uprising_1_flag
			custom_effect_tooltip = AFG_bukharan_uprising_2_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_bukharan_uprising_3 = {
		name = AFG_bukharan_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 830
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			830 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = bukharan_uprising_2_flag
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = bukharan_uprising_3_flag
			clr_country_flag = bukharan_uprising_2_flag
			custom_effect_tooltip = AFG_bukharan_uprising_3_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_turkmen_uprising_1 = {
		name = AFG_turkmen_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 584
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			584 = {
				owner = { original_tag = SOV }
			}
		}

		cost = 25
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = turkmen_uprising_1_flag
			custom_effect_tooltip = AFG_turkmen_uprising_1_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_turkmen_uprising_2 = {
		name = AFG_turkmen_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 584
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			584 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = turkmen_uprising_1_flag
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = turkmen_uprising_2_flag
			clr_country_flag = turkmen_uprising_1_flag
			custom_effect_tooltip = AFG_turkmen_uprising_2_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}
	
	AFG_turkmen_uprising_3 = {
		name = AFG_turkmen_uprising

		icon = generic_civil_support
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				state = 584
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
		}
	
		visible = {
			584 = {
				owner = { original_tag = SOV }
			}
			has_country_flag = turkmen_uprising_2_flag
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			set_country_flag = turkmen_uprising_3_flag
			clr_country_flag = turkmen_uprising_2_flag
			custom_effect_tooltip = AFG_turkmen_uprising_3_tt
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}

} # 584 TMS 830 BUK 832 KHI

AFG_integration_of_territories_category = {

	AFG_integrate_state = {
	
		icon = generic_nationalism
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				OR = {
					state = 442
					state = 444
					state = 445
					state = 742
				}
				NOT = { is_core_of = ROOT }
			}
		}
		
		on_map_mode = map_and_decisions_view

		available = {
			FROM = { compliance > 24 }
		}
	
		visible = {
			FROM = {
				is_controlled_by = ROOT
			}
		}

		cost = 30
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_state_core = FROM
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}

}

AFG_diplomacy_category = {

	AFG_peace_for_balochistan_and_pashtunistan = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
			has_full_control_of_state = 442
			has_full_control_of_state = 445
			has_full_control_of_state = 444
		}
	
		visible = {
			OR = {
				is_in_faction = no
				is_faction_leader = yes
			}
			has_capitulated = no
		}
		
		target_trigger = {
			FROM = {
				owns_state = 442
				owns_state = 445
				owns_state = 444
				has_war_with = ROOT
			}
		}

		cost = 50
		
		days_remove = 10
		
		fire_only_once = yes
		
		remove_effect = {
			FROM = { country_event = afghan_rework.9 }
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
}

AFG_pdpa_power_balance_category = {

	AFG_praise_the_revolution = {

		icon = generic_speech

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 50
		
		days_remove = 90
		
		fire_only_once = no
		
		remove_effect = {
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = -0.1
				tooltip_side = AFG_khalq_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_espouse_nationalism = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 50
		
		days_remove = 90
		
		fire_only_once = no
		
		remove_effect = {
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = 0.1
				tooltip_side = AFG_parcham_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_gather_pashto_support = {

		icon = generic_political_discourse

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 25
		
		days_remove = 50
		
		fire_only_once = no
		
		remove_effect = {
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = -0.05
				tooltip_side = AFG_khalq_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_students_rally_in_kabul = {

		icon = generic_political_rally

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 25
		
		days_remove = 50
		
		fire_only_once = no
		
		remove_effect = {
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = 0.05
				tooltip_side = AFG_parcham_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_build_up_military_industry = {

		icon = ger_military_buildup

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 100
		
		days_remove = 60
		
		fire_only_once = yes
		
		remove_effect = {
			random_owned_controlled_state  = { 
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = -0.1
				tooltip_side = AFG_khalq_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_build_roads_in_kabul = {

		icon = generic_construction

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 100
		
		days_remove = 60
		
		fire_only_once = yes
		
		remove_effect = {
			267 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = 0.1
				tooltip_side = AFG_parcham_side
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_control_the_military = {

		icon = ger_military_buildup

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 100
		
		days_remove = 50
		
		fire_only_once = yes
		
		remove_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = -0.1
				tooltip_side = AFG_khalq_side
			}
		}
		
		modifier = {
			army_morale_factor = -0.1
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_sway_party_cadres = {

		icon = generic_construction

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 100
		
		days_remove = 50
		
		fire_only_once = yes
		
		remove_effect = {
			add_power_balance_value = {
				id = AFG_pdpa_power_balance
				value = 0.1
				tooltip_side = AFG_parcham_side
			}
		}
		
		modifier = {
			political_power_cost = 0.15
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_consolidate_parcham_rule = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
			is_power_balance_in_range = {
				id = AFG_pdpa_power_balance
				range = AFG_full_parcham_control_range
			}
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			set_country_flag = parcham_won_power_struggle
			country_event = afghan_rework.13
			remove_power_balance = {
				id = AFG_pdpa_power_balance
			}
			add_ideas = AFG_parcham_dominance_in_the_party
			if = {
				limit = {
					NOT = {
						has_cosmetic_tag = AFG_parcham
						has_cosmetic_tag = AFG_central_asia
						has_cosmetic_tag = AFG_afghan_ssr
					}
				}
				set_cosmetic_tag = AFG_parcham
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_consolidate_khalq_rule = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
			is_power_balance_in_range = {
				id = AFG_pdpa_power_balance
				range = AFG_full_khalq_control_range
			}
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			set_country_flag = khalq_won_power_struggle
			country_event = afghan_rework.14
			remove_power_balance = {
				id = AFG_pdpa_power_balance
			}
			add_ideas = AFG_khalq_dominance_in_the_party
			if = {
				limit = { has_cosmetic_tag = AFG_parcham }
				drop_cosmetic_tag = yes
			}
		}

		ai_will_do = {
			factor = 100
		}

	}

}

AFG_raise_lashkars_category = {

	AFG_raise_lashkars_in_state = {

		icon = generic_reorganize_irregulars
		
		state_target = yes

		allowed = {
			original_tag = AFG
		}
		
		target_trigger = { 
			FROM = {
				is_core_of = ROOT
			}
		}
		
		on_map_mode = map_only

		available = {
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 15
		
		fire_only_once = yes
		
		remove_effect = {
			FROM = {
				create_unit = {
					division = "name = \"Lashkar Division\" division_template = \"Lashkars\" start_experience_factor = 1" 
					owner = AFG
				}
				create_unit = {
					division = "name = \"Lashkar Division\" division_template = \"Lashkars\" start_experience_factor = 1" 
					owner = AFG
				}
			}
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}

	}

}

AFG_revive_the_durrani_empire_category = {

	AFG_a_second_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 442
			controls_state = 987
			controls_state = 445
			controls_state = 444
			controls_state = 988
			controls_state = 1012
			controls_state = 443
			controls_state = 440
			controls_state = 441
			controls_state = 787
			controls_state = 410
			controls_state = 416
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			add_state_core = 445
			add_state_core = 444
			add_state_core = 443
			add_state_core = 440
			add_state_core = 441
			add_state_core = 787
			add_state_core = 410
			add_state_core = 416
			set_cosmetic_tag = AFG_afghan_empire
			set_country_flag = formed_afghan_empire
#			hidden_effect = {
#				news_event = yugo_news.23
#			}
		}

		ai_will_do = {
			factor = 100
		}

	}
}

AFG_uniting_the_muslim_world_category = {

	AFG_triump_for_central_asia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 584
			controls_state = 832
			controls_state = 742
			controls_state = 405
			controls_state = 830
			controls_state = 823
			controls_state = 585
			controls_state = 732
			controls_state = 402
			controls_state = 590
			controls_state = 589
			controls_state = 586
			controls_state = 881
			controls_state = 583
			controls_state = 404
			controls_state = 882
			controls_state = 588
			controls_state = 587
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = KAZ
						is_core_of = UZB
						is_core_of = KYR
						is_core_of = TAJ
						is_core_of = TMS
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_the_hui_and_uyghurs = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 760
			controls_state = 618
			controls_state = 759
			controls_state = 287
			controls_state = 617		
			controls_state = 619
			controls_state = 283
			controls_state = 753
			controls_state = 754
			controls_state = 755
			controls_state = 756
			controls_state = 616
			controls_state = 604
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = SIK
						is_core_of = XSM
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_indian_muslims = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 444
			controls_state = 441
			controls_state = 787
			controls_state = 442
			controls_state = 440
			controls_state = 445
			controls_state = 443
			controls_state = 430
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = PAK
						is_core_of = BAN
						state = 441
						state = 281
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_persia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 412
			controls_state = 420
			controls_state = 417
			controls_state = 411
			controls_state = 414
			controls_state = 416
			controls_state = 413
			controls_state = 421
			controls_state = 418
			controls_state = 410
			controls_state = 266
			controls_state = 419
			controls_state = 675
			controls_state = 291
			controls_state = 676
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = PER
						is_core_of = IRQ
					}
					NOT = { is_core_of = KUR }
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_arabia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 857
			controls_state = 856
			controls_state = 854
			controls_state = 679
			controls_state = 858
			controls_state = 292
			controls_state = 678
			controls_state = 855
			controls_state = 659
			controls_state = 293
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						AND = {
							is_core_of = SAU
							NOT = { state = 859 }
						}
						is_core_of = YEM
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_the_persian_gulf = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 656
			controls_state = 765
			controls_state = 658
			controls_state = 859
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						state = 656
						state = 765
						state = 658
						state = 859
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_kurdistan = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 680
			controls_state = 421
			controls_state = 419
			controls_state = 676
			controls_state = 350
			controls_state = 352
			controls_state = 344
			controls_state = 353
			controls_state = 800
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = KUR
						state = 344
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_the_levant = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 553
			controls_state = 677
			controls_state = 554
			controls_state = 455
			controls_state = 454
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						state = 553
						state = 677
						state = 554
						state = 455
						state = 454
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_anatolia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 343
			controls_state = 798
			controls_state = 49
			controls_state = 342
			controls_state = 340
			controls_state = 341
			controls_state = 797
			controls_state = 339
			controls_state = 347
			controls_state = 356
			controls_state = 348
			controls_state = 346
			controls_state = 345
			controls_state = 355
			controls_state = 349
			controls_state = 354
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = TUR
					NOT = {
						is_core_of = KUR
						state = 344
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_balkan_muslims = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 44
			controls_state = 805
			controls_state = 934
			controls_state = 802
			controls_state = 104
			controls_state = 804
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = ALB
						is_core_of = KOS
						is_core_of = BOS
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_the_caucasian_peoples = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 229
			controls_state = 232
			controls_state = 821
			controls_state = 827
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = AZR
						is_core_of = CIN
						is_core_of = DAG
						is_core_of = KBK
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_liberate_tatars_and_bashkirs = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 249
			controls_state = 651
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = TAT
						is_core_of = BSK
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_north_africa = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 447
			controls_state = 456
			controls_state = 907
			controls_state = 457
			controls_state = 452
			controls_state = 453
			controls_state = 446
			controls_state = 552
			controls_state = 450
			controls_state = 663
			controls_state = 451
			controls_state = 449
			controls_state = 273
			controls_state = 662
			controls_state = 448
			controls_state = 661
			controls_state = 665
			controls_state = 458
			controls_state = 514
			controls_state = 459
			controls_state = 460
			controls_state = 513
			controls_state = 783
			controls_state = 290
			controls_state = 461
			controls_state = 462
			controls_state = 699
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = EGY
						is_core_of = LBA
						is_core_of = TUN
						is_core_of = ALG
						is_core_of = MOR
						is_core_of = WES
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_east_africa = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 885
			controls_state = 886
			controls_state = 883
			controls_state = 551
			controls_state = 549
			controls_state = 767
			controls_state = 887
			controls_state = 884
			controls_state = 550
			controls_state = 844
			controls_state = 559
			controls_state = 269
			controls_state = 836
			controls_state = 835
			controls_state = 268
			controls_state = 908
			controls_state = 843
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = SUD
						is_core_of = ERI
						is_core_of = SOM
						is_core_of = AFA
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_west_africa = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 557
			controls_state = 786
			controls_state = 556
			controls_state = 898
			controls_state = 899
			controls_state = 782
			controls_state = 272
			controls_state = 701
			controls_state = 296
			controls_state = 780
			controls_state = 700
			controls_state = 775
			controls_state = 774
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = MRT
						is_core_of = MLI
						is_core_of = SEN
						is_core_of = GAM
						is_core_of = GNA
						is_core_of = GNB
						is_core_of = SIE
						is_core_of = NGR
						is_core_of = CHA
						state = 778
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_triumph_for_south_east_asia = {

		icon = generic_form_nation

		allowed = {
			original_tag = AFG
		}

		available = {
			controls_state = 333
			controls_state = 336
			controls_state = 335
			controls_state = 334
			controls_state = 667
			controls_state = 673
			controls_state = 672
			controls_state = 668
			controls_state = 669
		}
	
		visible = {
		}

		cost = 0
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			every_state = {
				limit = {
					OR = {
						is_core_of = MAL
						is_core_of = INS
					}
				}
				add_core_of = ROOT
			}
			add_to_variable = {
				var = unite_muslim_world_decisions_var
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}

	}
}

AFG_educating_the_population_category = {

	AFG_build_new_schools = {

		icon = generic_construction

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			AFG_decrease_illiteracy_effect = yes
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_literacy_campaign = {

		icon = generic_decision

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			AFG_decrease_illiteracy_effect = yes
		}
		
		modifier = {
			political_power_cost = 0.1
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_improve_higher_education = {

		icon = generic_research

		allowed = {
			original_tag = AFG
		}

		available = {
			NOT = {
				has_idea = AFG_widespread_illiteracy_2
				has_idea = AFG_widespread_illiteracy_3
			}
		}
	
		visible = {
		}

		cost = 100
		
		days_remove = 15
		
		fire_only_once = yes
		
		remove_effect = {
			add_research_slot = 1
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}

}

AFG_tribal_affairs_category = {

	AFG_offensive_against_the_rebels = {

		icon = generic_prepare_civil_war

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
			has_idea = AFG_anti_government_unrest
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			swap_ideas = {
				remove_idea = AFG_anti_government_unrest
				add_idea = AFG_anti_government_unrest_2
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_bombing_raids_on_rebel_territory = {

		icon = generic_air

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
			has_idea = AFG_anti_government_unrest_2
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			swap_ideas = {
				remove_idea = AFG_anti_government_unrest_2
				add_idea = AFG_anti_government_unrest_3
			}
		}
		
		modifier = {
		}

		complete_effect = {
			air_experience = 10
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_end_the_uprising = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
		}
	
		visible = {
			has_idea = AFG_anti_government_unrest_3
		}

		cost = 50
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			remove_ideas = AFG_anti_government_unrest_3
			AFG_decrease_tribal_ns_effect = yes
		}
		
		modifier = {
		}

		complete_effect = {
			army_experience = 25
		}

		ai_will_do = {
			factor = 100
		}

	}

	AFG_crush_the_revolt = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
			NOT = {
				has_idea = AFG_major_tribal_unrest
			}
		}
	
		visible = {
			has_country_flag = tribal_revolt_flag
		}

		cost = 100
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			AFG_decrease_tribal_ns_effect = yes
			clr_country_flag = tribal_revolt_flag
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_centralize_power = {

		icon = generic_civil_support

		allowed = {
			original_tag = AFG
		}

		available = {
			NOT = {
				has_idea = AFG_mujahideen_uprising
			}
		}
	
		visible = {
			has_country_flag = mujahideen_uprising_flag
		}

		cost = 75
		
		days_remove = 0
		
		fire_only_once = yes
		
		remove_effect = {
		}
		
		modifier = {
		}

		complete_effect = {
			AFG_decrease_tribal_ns_effect = yes
			clr_country_flag = mujahideen_uprising_flag
		}

		ai_will_do = {
			factor = 100
		}

	}

}

AFG_afg_sov_cooperation_category = {

	AFG_invite_soviet_scientists = {

		icon = SOV_academy_of_sciences

		allowed = {
			original_tag = AFG
		}

		available = {
			is_ally_with = SOV
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_to_variable = { AFG_afg_sov_coop_research_speed_factor = 0.07 }
			custom_effect_tooltip = AFG_invite_soviet_scientists_add_to_modifier_tt
			add_to_variable = {
				var = sov_afg_coop_decisions_var
				value = 1
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_invite_soviet_planners = {

		icon = generic_construction

		allowed = {
			original_tag = AFG
		}

		available = {
			is_ally_with = SOV
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_to_variable = { AFG_afg_sov_coop_production_speed_buildings_factor = 0.1 }
			custom_effect_tooltip = AFG_invite_soviet_planners_add_to_modifier_tt
			add_to_variable = {
				var = sov_afg_coop_decisions_var
				value = 1
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_invite_soviet_industrial_engineers = {

		icon = generic_merge_plant_materiel

		allowed = {
			original_tag = AFG
		}

		available = {
			is_ally_with = SOV
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_to_variable = { AFG_afg_sov_coop_industrial_capacity_factory = 0.1 }
			custom_effect_tooltip = AFG_invite_soviet_industrial_engineers_add_to_modifier_tt
			add_to_variable = {
				var = sov_afg_coop_decisions_var
				value = 1
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_import_soviet_propaganda = {

		icon = eng_propaganda_campaigns

		allowed = {
			original_tag = AFG
		}

		available = {
			is_ally_with = SOV
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_to_variable = { AFG_afg_sov_coop_war_support_factor = 0.1 }
			custom_effect_tooltip = AFG_import_soviet_propaganda_add_to_modifier_tt
			add_to_variable = {
				var = sov_afg_coop_decisions_var
				value = 1
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
	AFG_invite_soviet_political_administators = {

		icon = SOV_the_stalin_constitution

		allowed = {
			original_tag = AFG
		}

		available = {
			is_ally_with = SOV
		}
	
		visible = {
		}

		cost = 75
		
		days_remove = 30
		
		fire_only_once = yes
		
		remove_effect = {
			add_to_variable = { AFG_afg_sov_coop_stability_factor = 0.05 }
			add_to_variable = { AFG_afg_sov_coop_political_power_factor = 0.05 }
			custom_effect_tooltip = AFG_invite_soviet_political_administators_add_to_modifier_tt
			add_to_variable = {
				var = sov_afg_coop_decisions_var
				value = 1
			}
		}
		
		modifier = {
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 100
		}

	}
	
}