on_actions = {
	on_startup = {
		effect = {
			267 = {
				add_building_construction = {
					type = air_base
					level = 1
					instant_build = yes
				}
			}
			415 = {
				add_building_construction = {
					type = supply_node
					level = 1
					province = 4893
					instant_build = yes
				}
			}
			AFG = { activate_advisor = AFG_mohammad_hashim_khan }
			AFG = { # Faqir of Ipi's uprising starts
				country_event = { id = afghan_rework.17 days = 120 }
			}
		}
	}
	on_declare_war = {
		effect = {
			if = {
				limit = {
					FROM = { original_tag = SOV }
					ROOT = {
						original_tag = AFG
						OR = {
							has_country_flag = khivan_uprising_1_flag
							has_country_flag = khivan_uprising_2_flag
							has_country_flag = khivan_uprising_3_flag
							has_country_flag = bukharan_uprising_1_flag
							has_country_flag = bukharan_uprising_2_flag
							has_country_flag = bukharan_uprising_3_flag
							has_country_flag = turkmen_uprising_1_flag
							has_country_flag = turkmen_uprising_2_flag
							has_country_flag = turkmen_uprising_3_flag
						}
					}
				}
				FROM = {
					country_event = {
						id = afghan_rework.3
						hours = 8
					}
				}
			}
			if = {
				limit = {
					FROM = { 
						OR = {
							original_tag = ENG
							AND = { original_tag = RAJ is_subject_of = ENG }
						}
					}
					ROOT = { original_tag = AFG }
				}
				news_event = afghan_news.1
			}
		}
	}
	on_ruling_party_change = {
		effect = {
			if = {
				limit = {
					AFG = { NOT = { has_government = neutrality } }
				}
				deactivate_advisor = AFG_mohammad_hashim_khan
			}
		}
	}
}
