Great_Game_decision_category = {
	
	great_game_invest_points = {
	
		available = {
			if = { 
				limit = {
					tag = RUS 
				}
				has_completed_focus = RUS_great_game
			}
		}
		
		visible = {
			check_variable = { global.great_game_stage > 2}
		}
		
		#allowed = {
		#	OR = {
		#		tag = ENG
		#		tag = RUS
		#	}
		#}
		
		cost = 100
		
		days_remove = 30
		
		ai_will_do = {
			base = 1
			modifier={
				factor = 0
				check_variable = {great_game_points > 100}
			}
		}
		
		remove_effect = {
			add_to_variable = {great_game_points = 5}
			custom_effect_tooltip = GetGreatGamePoints
		}
	}

	great_game_faq_1 = {
	
		available = {
			if = { 
				limit = {
					tag = RUS 
				}
			}
			else_if = {
				limit = {
					tag = ENG
				}
			}
		}
		
		visible = {
		
		}
		
		#allowed = {
		#	OR = {
		#		tag = ENG
		#		tag = RUS
		#	}
		#}
		
		days_re_enable = 5
		
		ai_will_do = {
			base = 1
		}
		
		remove_effect = {
			if = {
				limit = {
					tag = RUS
				}
				country_event = {
					id = great_game.96
				}
			}
			else_if = {
				limit = {
					tag = ENG
				}
				country_event = {
					id = great_game.97
				}
			}
		}
	}

	great_game_gain_political_influence = {
	
		available = {
			if = { 
				limit = {
					tag = RUS 
				}
				has_completed_focus = RUS_great_game
			}
			else_if = {
				limit = {
					tag = ENG
				}
			}
		}
		
		visible = {
		
		}
		
		#allowed = {
		#	OR = {
		#		tag = ENG
		#		tag = RUS
		#	}
		#}
		
		cost = 50
		
		days_remove = 30
		
		ai_will_do = {
			base = 1
		}

		days_re_enable = 30

		
		remove_effect = {
			add_to_variable = { gg_dip_power = 5}
			custom_effect_tooltip = GetPolInfluence
		}
	}

	great_game_gain_military_influence = {
	
		available = {
			if = { 
				limit = {
					tag = RUS 
				}
				has_completed_focus = RUS_great_game
			}
			else_if = {
				limit = {
					tag = ENG
				}
			}
		}
		
		visible = {
			
		}
		
		#allowed = {
		#	OR = {
		#		tag = ENG
		#		tag = RUS
		#	}
		#}
		
		cost = 50
		
		days_remove = 30

		days_re_enable = 30
		
		ai_will_do = {
			base = 1
		}
		
		remove_effect = {
			add_to_variable = { gg_mil_power = 5}
			custom_effect_tooltip = GetMilInfluence
		}
	}

	great_game_gain_economic_influence = {
	
		available = {
			if = { 
				limit = {
					tag = RUS 
				}
				has_completed_focus = RUS_great_game
			}
			else_if = {
				limit = {
					tag = ENG
				}
			}
		}
		
		visible = {
			
		}
		
		#allowed = {
		#	OR = {
		#		tag = ENG
		#		tag = RUS
		#	}
		#}
		
		cost = 50
		
		days_remove = 30

		days_re_enable = 30
		
		ai_will_do = {
			base = 1
		}
		
		remove_effect = {
			add_to_variable = { gg_eco_power = 5}
			custom_effect_tooltip = GetEcoInfluence
		}
	}

	great_game_kazakh_plains_treaty = {
	
		available = {
			date > 1864.1.1
			#x great game points
		}
		
		highlight_states = {
			state = 943
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			NOT={owns_state = 943}
			check_variable = { global.great_game_stage > 2}
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			CHI = { country_event = { id = great_game.3 } }
			subtract_from_variable = { great_game_points = -5 }
		}
	}

	great_game_RUS_study_TIB_medicine = {
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		days_remove = 20
		cost = 75

		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
			add_tech_bonus = {
				bonus = 0.25
				uses = 2
				category = hospital_tech
			}
			add_opinion_modifier = {
				target = QNG
				modifier = small_increase
			}
		}
	}

	great_game_RUS_make_contact_with_the_tibetan_leader = { #Make contact with the TIbetan leader
	
		available = {
			RUS = {
				controls_state = 405
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		days_remove = 10
		cost = 50

		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
		}
		remove_effect = {
			QNG = {
				country_event = {
					id = great_game.63
					days = 5
				}
			}
		}
	}

	great_game_RUS_start_buddism_literature_analysis = {
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		days_remove = 25
		cost = 40

		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
			custom_effect_tooltip = gg_RUS_tt_buddism_work
			hidden_effect = {
				country_event = {
					id = great_game.64
					days = 60
				}
				}
			}
		}
	
	
	
	great_game_seige_tashkent_ongoing = {
		icon = generic_prepare_civil_war
		available = {
			controls_state = 1363
		}
		visible = {
			KOK = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 2}
		}
		activation = { always = no }
		highlight_states = {
			state = 1363
		}
		allowed = { tag = RUS }
		fire_only_once = no
		days_mission_timeout = 15
		ai_will_do = {
			base = 1
		}
		fixed_random_seed = no
		timeout_effect = {
			random_list = {
				7 = {
					modifier = {
						add = great_game_tashkent_seige_tick
						check_variable = { great_game_tashkent_seige_tick > 0 }
					}
					country_event = { id = great_game.35 days = 1 }
				}
				3 = {
					activate_mission  = great_game_seige_tashkent_ongoing
					modifier = {
						add = 3
						BUK = { has_country_flag = BUK_supports_KOK }
					}
				}
			}
		}
	}
	
	great_game_battle_of_ikan = {
	
		icon = generic_prepare_civil_war
		
		available = {
			controls_state = 1363
		}
		
		visible = {
			KOK = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 2}
		}
		
		activation = { always = no }
		
		highlight_states = {
			state = 1363
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		days_mission_timeout = 10
		
		ai_will_do = {
			base = 100
		}
		
		fixed_random_seed = no
		
		timeout_effect = {
			country_event = great_game.39
		}
	}
	
	great_game_seige_tashkent_fails = {
	
		icon = generic_prepare_civil_war
		
		available = {
			controls_state = 1363
		}
		
		visible = {
			KOK = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 2}
		}
		activation = { always = no }
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		days_mission_timeout = 150
		
		ai_will_do = {
			base = 1
		}
		is_good = no
		
		timeout_effect = {
			remove_mission = great_game_seige_tashkent_ongoing
			add_war_support = -0.05
			army_experience = -50
		}
	}
	
	
	great_game_attack_samarkand = {
	
		icon = generic_prepare_civil_war
		
		available = {
			date > 1867.1.1
			if = { 
				limit = {
					tag = RUS 
				}
				has_completed_focus = RUS_central_asian_stance
			}
		}
		
		visible = {
			SMK = {
				exists = yes
				is_subject = yes
			}
			check_variable = { global.great_game_stage > 2}
		}
		
		war_with_on_remove = SMK
		
		highlight_states = {
			state = 1369
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = { great_game_points > 4 }
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do = {
			base = 100
		}
		
		complete_effect = {
			declare_war_on = {
				target = SMK 
				type = annex_everything
			}
			SMK = {	add_ideas = KOK_defender_central_asia }
			set_variable = { global.great_game_samarkand = 1 }
			subtract_from_variable = { great_game_points = 5 }
		}
	}
	
	
	
	great_game_invasion_geok_tepe = {
		icon = generic_prepare_civil_war
		available = {
			date > 1879.1.1
			has_war = no
			has_manpower > 1499
		}
		visible = {
			TMS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }
		}
		highlight_states = {
			state = 584
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}

		days_remove = 15

		custom_cost_text = great_game_points_greater_5
		ai_will_do = {
			base = 1
		}
		complete_effect = {
			hidden_effect = {
				587 = {
					add_dynamic_modifier = {
						modifier = dynmod_RUS_poor_preparation
						scope = RUS
					}
				}
			}
		}
		remove_effect = {
			set_variable = { global.great_game_s_turkmen = 2}
			subtract_from_variable = {great_game_points = 5}

			start_border_war = {
				change_state_after_war = yes
				attacker = {
					state = 587
					num_provinces = 2
					on_win = great_game.92
					on_lose = great_game.93
				}	
				defender = {
					state = 584
					num_provinces = 3
					on_win = great_game.93
					on_lose = great_game.92
				}
			}


			set_country_flag = gg__RUS_invade_geok_tepe
		}
	}
	great_game_prepare_for_the_next_invasion = {
		icon = generic_prepare_civil_war
		available = {
			date > 1879.1.1
			has_war = no
			has_manpower > 1499
			#x great game points
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		visible = {
			TMS = {
				exists = yes
			}
			#check_variable = { global.great_game_stage > 3}
			check_variable = { focused_great_game_region = tms }
		}
		highlight_states = {
			state = 584
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
		}
		custom_cost_text = eoanb_money_cost_text

		days_remove = 15

		custom_cost_text = great_game_points_greater_5
		ai_will_do = {
			base = 1
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_tooltip_effect = yes
		}
		remove_effect = {
			remove_dynamic_modifier = {
				modifier = dynmod_RUS_poor_preparation
			}
		}
	}
	great_game_RUS_call_skobelev_in_asia = {
		icon = generic_prepare_civil_war
		available = {
			date > 1880.1.1
			has_war = no
			has_manpower > 1499
			#x great game points
			RUS_mikhail_skobelev = {
				is_hired_as_advisor = yes
			}
		}
		visible = {
			TMS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }
			has_country_flag = gg_RUS_defeat_at_geok_tepe
		}
		war_with_on_remove = TMS
		highlight_states = {
			state = 584
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}

		days_remove = 15
		custom_cost_text = great_game_points_greater_5
		ai_will_do = {
			base = 1
		}
		complete_effect = {
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = yes
				attacker = {
					state = 587
					num_provinces = 2
					on_win = great_game.94
					on_lose = great_game.95
				}	
				defender = {
					state = 584
					num_provinces = 3
					on_win = great_game.95
					on_lose = great_game.94
				}
			}
			clr_country_flag = gg__RUS_invade_geok_tepe
			set_country_flag = gg_RUS_skobelev
		}
	}
	great_game_RUS_finish_off_the_turkmens = {
		icon = generic_prepare_civil_war
		available = {
			date > 1880.1.1
			has_war = no
			has_manpower > 1499
			#x great game points
		}
		visible = {
			TMS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }
			OR = {
				has_country_flag = gg_RUS_skobelev
				has_country_flag = gg_RUS_geok_tepe_successful
			}
		}
		war_with_on_remove = TMS
		highlight_states = {
			state = 584
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}

		days_remove = 20
		custom_cost_text = great_game_points_greater_5
		ai_will_do = {
			base = 1
		}
		complete_effect = {
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			
		}
	}
	
	
	great_game_influence_dungan = {
		available = {
			#x great game points
		}
		visible = {
			SIK = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 3}
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	
	great_game_give_dungan_arms = {
		available = {
			#x great game points
		}
		visible = {
			SIK = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 3}
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		
		}
	}
	
	great_game_start_influence_afghanistan = {
	
		available = {
			date > 1878.1.1
			#x great game points
		}
		
		visible = {
			AFG = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 3}
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		cost = 25
		
		ai_will_do = {
			base = 1
		}
		
		highlight_states = {
			state = 267
		}
		
		complete_effect = {
			add_to_variable = { great_game_points = -5}
			custom_effect_tooltip = GetGreatGamePoints
			AFG = { country_event = { id = great_game.41 } }
		}
	}
	
	great_game_invade_afghanistan = {
		icon = generic_prepare_civil_war
		available = {
			OR={
				date > 1880.1.1
				AFG ={ has_country_flag = RUS_influence }
			}
			#x great game points
		}
		war_with_on_remove = AFG
		visible = {
			AFG = {
				exists = yes
			}
			check_variable = { global.great_game_stage > 3}
		}
		highlight_states = {
			state = 267
		}
		allowed = { tag = ENG }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = { great_game_points > 24 }
		}
		custom_cost_text = great_game_points_greater_25
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			set_variable = { global.great_game_afghan = 4}
			subtract_from_variable = {great_game_points = 25}
		}
	}
	
	great_game_take_panjdeh = {
		icon = border_war
		available = {
			date > 1882.1.1
			owns_state = 1361
			#x great game points
		}
		visible = {
			AFG = {
				exists = yes
				owns_state = 1360
			}
			check_variable = { global.great_game_stage > 4}
		}
		highlight_states = {
			state = 1360
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			subtract_from_variable = {great_game_points = 5}
			start_border_war = {
				change_state_after_war = yes
				attacker = {
					state = 1361
					num_provinces = 3
					#on_win = GreatGame.12
					#on_lose = GreatGame.11
					#on_cancel = japan_border_conflict.4
				}
							
				defender = {
					state = 1360
					num_provinces = 3
					#on_win = GreatGame.11
					#on_lose = GreatGame.12
					#on_cancel = japan_border_conflict.4
				}
			}
			ENG = { country_event = { id = great_game.7 } }
		}
	}
	
	great_game_persian_rebellion_mission = {
		icon = generic_civil_support
		available = {
			always = no
			#x great game points
		}
		visible = {
			PER = {
				has_country_flag = PER_constitutional_revolution
			}
			check_variable = { global.great_game_stage > 5 }
		}
		activation ={
			always = no #start with persian event
		}
		allowed = { 
			OR={
				tag = ENG 
				tag = RUS 
			}
		}
		fire_only_once = yes
		#cost = 25
		days_mission_timeout = 360
		ai_will_do = {
			base = 1
		}
		remove_effect = {#persia sides with GER
		
		}
	}
	
	great_game_sign_the_entente = {
		available = {
			date > 1905.1.1
			PER={has_country_flag = PER_constitutional_revolution}
			#x great game points
		}
		visible = {
			check_variable = { global.great_game_stage > 5}
		}
		highlight_states = {
			state = 266
		}
		#allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			subtract_from_variable = {great_game_points = 5}
			set_variable = { global.great_game_persian_coast = 5}
			set_variable = { global.great_game_persian_highlands = 1}
		}
	}
	
	great_game_persian_influence_waining = {
		icon = generic_civil_support
		available = {
			if={
				limit={tag = ENG}
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_ENG
					PER={
						NOT={has_country_flag = RUS_becoming_dominate}
					}
				}
			}
			else={
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_RUS
					PER={
						NOT={has_country_flag = ENG_becoming_dominate}
					}
				}
			}
		}
		visible = {
			# PER = {
				# has_country_flag = PER_constitutional_revolution
			# }
			check_variable = { global.great_game_stage > 5}
		}
		activation ={
			if={
				limit={tag = ENG}
				PER={
					has_country_flag = RUS_becoming_dominate
				}
			}
			else={
				PER={
					has_country_flag = ENG_becoming_dominate
				}
			}
		}
		is_good = no
		allowed = { 
			OR={
				tag = ENG
				tag = RUS 
			}
		}
		#cost = 25
		days_mission_timeout = 100
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#persia takes sides
			clear_variable = PER.RUS_gg_influence
			clear_variable = PER.ENG_gg_influence
			if = {#persia sides with ENG
				limit = {
					TAG = ENG
				}
				RUS = {
					custom_effect_tooltip = PER_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_persian_coast = 1}
				set_variable = { global.great_game_central_persia = 1}
				set_variable = { global.great_game_persian_highlands = 1}
				PER = {
					set_country_flag=RUS_sphere
					clr_country_flag = RUS_becoming_dominate
				}
			}
			else={
				ENG={
					custom_effect_tooltip = PER_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_persian_coast = 5}
				set_variable = { global.great_game_central_persia = 5}
				set_variable = { global.great_game_persian_highlands = 5}
				PER={
					set_country_flag=ENG_sphere
					clr_country_flag = ENG_becoming_dominate
				}
			}
		}
	}
	
	great_game_tibet_influence_waining = {
		icon = generic_civil_support
		available = {
			if={
				limit={tag = ENG}
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_ENG
					TIB={
						NOT={has_country_flag = RUS_becoming_dominate}
					}
				}
			}
			else={
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_RUS
					TIB={
						NOT={has_country_flag = ENG_becoming_dominate}
					}
				}
			}
		}
		visible = {
			# PER = {
				# has_country_flag = PER_constitutional_revolution
			# }
			check_variable = { global.great_game_stage > 5}
		}
		activation ={
			if={
				limit={tag = ENG}
				TIB={
					has_country_flag = RUS_becoming_dominate
				}
			}
			else={
				TIB={
					has_country_flag = ENG_becoming_dominate
				}
			}
		}
		is_good = no
		allowed = { 
			OR={
				tag = ENG
				tag = RUS 
			}
		}
		#cost = 25
		days_mission_timeout = 100
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#persia takes sides
			clear_variable = TIB.RUS_gg_influence
			clear_variable = TIB.ENG_gg_influence
			if={#persia sides with ENG
				limit={
					TAG = ENG
				}
				RUS={
					custom_effect_tooltip = TIB_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_tibet = 1}
				TIB={
					set_country_flag=RUS_sphere
					clr_country_flag = RUS_becoming_dominate
				}
			}
			else={
				ENG={
					custom_effect_tooltip = TIB_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_tibet = 5}
				TIB={
					set_country_flag=ENG_sphere
					clr_country_flag = ENG_becoming_dominate
				}
			}
		}
	}
	
	great_game_sikang_influence_waining = {
		icon = generic_civil_support
		available = {
			if={
				limit={tag = ENG}
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_ENG
					SIK={
						NOT={has_country_flag = RUS_becoming_dominate}
					}
				}
			}
			else={
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_RUS
					SIK={
						NOT={has_country_flag = ENG_becoming_dominate}
					}
				}
			}
		}
		visible = {
			# PER = {
				# has_country_flag = PER_constitutional_revolution
			# }
			check_variable = { global.great_game_stage > 5}
		}
		activation ={
			if={
				limit={tag = ENG}
				SIK={
					has_country_flag = RUS_becoming_dominate
				}
			}
			else={
				SIK={
					has_country_flag = ENG_becoming_dominate
				}
			}
		}
		is_good = no
		allowed = { 
			OR={
				tag = ENG
				tag = RUS 
			}
		}
		#cost = 25
		days_mission_timeout = 100
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#persia takes sides
			clear_variable = SIK.RUS_gg_influence
			clear_variable = SIK.ENG_gg_influence
			if={#persia sides with ENG
				limit={
					TAG = ENG
				}
				RUS={
					custom_effect_tooltip = SIK_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_sikang = 1}
				SIK={
					set_country_flag=RUS_sphere
					clr_country_flag = RUS_becoming_dominate
				}
			}
			else={
				ENG={
					custom_effect_tooltip = SIK_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_sikang = 5}
				SIK={
					set_country_flag=ENG_sphere
					clr_country_flag = ENG_becoming_dominate
				}
			}
		}
	}
	
	great_game_afghan_influence_waining = {
		icon = generic_civil_support
		available = {
			if={
				limit={tag = ENG}
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_ENG
					AFG={
						NOT={has_country_flag = RUS_becoming_dominate}
					}
				}
			}
			else={
				custom_trigger_tooltip = {
					tooltip = PER_close_inflence_gap_to_4_or_less_RUS
					AFG={
						NOT={has_country_flag = ENG_becoming_dominate}
					}
				}
			}
		}
		visible = {
			# PER = {
				# has_country_flag = PER_constitutional_revolution
			# }
			check_variable = { global.great_game_stage > 5}
		}
		activation ={
			if={
				limit={tag = ENG}
				AFG={
					has_country_flag = RUS_becoming_dominate
				}
			}
			else={
				AFG={
					has_country_flag = ENG_becoming_dominate
				}
			}
		}
		is_good = no
		allowed = { 
			OR={
				tag = ENG
				tag = RUS 
			}
		}
		#cost = 25
		days_mission_timeout = 100
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#persia takes sides
			clear_variable = AFG.RUS_gg_influence
			clear_variable = AFG.ENG_gg_influence
			if={#persia sides with ENG
				limit={
					TAG = ENG
				}
				RUS={
					custom_effect_tooltip = AFG_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_afghan = 1}
				AFG={
					set_country_flag=RUS_sphere
					clr_country_flag = RUS_becoming_dominate
				}
			}
			else={
				ENG={
					custom_effect_tooltip = AFG_becomes_sphered
					set_temp_variable = { eoanb_prestige_change = 5 }
					eoanb_change_prestige_score = yes
				}
				set_variable = { global.great_game_afghan = 5}
				AFG={
					set_country_flag=ENG_sphere
					clr_country_flag = ENG_becoming_dominate
				}
			}
		}
	}
	
	great_game_influence_tibet = {
		available = {
			date > 1882.1.1
			#x great game points
		}
		visible = {
			TIB = {
				exists = yes
				NOT={
					has_country_flag=RUS_sphere
					has_country_flag=ENG_sphere
				}
			}
			#is_ai = yes
			check_variable = { global.great_game_stage > 5}
		}
		highlight_states = {
			state = 322
		}
		#allowed = { tag = RUS }
		custom_cost_trigger = {
			check_variable = {great_game_points > 9}
		}
		custom_cost_text = great_game_points_greater_5
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			if={#add a influence point
				limit={tag=RUS}
				add_to_variable ={TIB.RUS_gg_influence = 1}
			}
			else={
				add_to_variable ={TIB.ENG_gg_influence = 1}
			}
			#check if anyone is 5+ points ahead
			set_temp_variable = {temp_influence_difference = 4}
			add_to_temp_variable = {temp_influence_difference = TIB.RUS_gg_influence}
			if={
				limit={
					check_variable = {TIB.ENG_gg_influence>temp_influence_difference}
				}
				TIB={set_country_flag = ENG_becoming_dominate}
			}
			set_temp_variable = {temp_influence_difference = 4}
			add_to_temp_variable = {temp_influence_difference = TIB.ENG_gg_influence}
			if={
				limit={
					check_variable = {TIB.RUS_gg_influence>temp_influence_difference}
				}
				TIB={set_country_flag = RUS_becoming_dominate}
			}
			set_temp_variable = {temp_influence_difference = 5}
			add_to_temp_variable = {temp_influence_difference = TIB.RUS_gg_influence}
			if={
				limit={
					TIB={has_country_flag = RUS_becoming_dominate}
					check_variable = {TIB.ENG_gg_influence<temp_influence_difference}
				}
				TIB={clr_country_flag = RUS_becoming_dominate}
			}
			set_temp_variable = {temp_influence_difference = 5}
			add_to_temp_variable = {temp_influence_difference = TIB.ENG_gg_influence}
			if={
				limit={
					TIB={has_country_flag = ENG_becoming_dominate}
					check_variable = {TIB.RUS_gg_influence<temp_influence_difference}
				}
				TIB={clr_country_flag = ENG_becoming_dominate}
			}
			subtract_from_variable = {great_game_points = 10}
		}
	}
	great_game_influence_persia = {
		available = {
			date > 1882.1.1
			#x great game points
		}
		visible = {
			PER = {
				exists = yes
				NOT={
					has_country_flag=RUS_sphere
					has_country_flag=ENG_sphere
				}
			}
			#is_ai = yes
			check_variable = { global.great_game_stage > 5}
		}
		highlight_states = {
			state = 266
		}
		#allowed = { tag = RUS }
		custom_cost_trigger = {
			check_variable = {great_game_points > 9}
		}
		custom_cost_text = great_game_points_greater_5
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			if={#add a influence point
					limit={tag=RUS}
					add_to_variable ={PER.RUS_gg_influence = 1}
				}
				else={
					add_to_variable ={PER.ENG_gg_influence = 1}
				}
				#check if anyone is 5+ points ahead
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = PER.RUS_gg_influence}
				if={
					limit={
						check_variable = {PER.ENG_gg_influence>temp_influence_difference}
					}
					PER={set_country_flag = ENG_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = PER.ENG_gg_influence}
				if={
					limit={
						check_variable = {PER.RUS_gg_influence>temp_influence_difference}
					}
					PER={set_country_flag = RUS_becoming_dominate}
				}
				
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = PER.RUS_gg_influence}
				if={
					limit={
						PER={has_country_flag = RUS_becoming_dominate}
						check_variable = {PER.ENG_gg_influence<temp_influence_difference}
					}
					PER={clr_country_flag = RUS_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = PER.ENG_gg_influence}
				if={
					limit={
						PER={has_country_flag = ENG_becoming_dominate}
						check_variable = {PER.RUS_gg_influence<temp_influence_difference}
					}
					PER={clr_country_flag = ENG_becoming_dominate}
				}
				subtract_from_variable = {great_game_points = 10}
		}
	}
	great_game_influence_afghan = {
		available = {
			date > 1882.1.1
			#x great game points
		}
		visible = {
			AFG = {
				exists = yes
				NOT={
					has_country_flag=RUS_sphere
					has_country_flag=ENG_sphere
				}
			}
			#is_ai = yes
			check_variable = { global.great_game_stage > 5}
		}
		highlight_states = {
			state = 267
		}
		#allowed = { tag = RUS }
		custom_cost_trigger = {
			check_variable = {great_game_points > 9}
		}
		custom_cost_text = great_game_points_greater_5
		days_remove = 1
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			if={#add a influence point
					limit={tag=RUS}
					add_to_variable ={AFG.RUS_gg_influence = 1}
				}
				else={
					add_to_variable ={AFG.ENG_gg_influence = 1}
				}
				#check if anyone is 5+ points ahead
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = AFG.RUS_gg_influence}
				if={
					limit={
						check_variable = {AFG.ENG_gg_influence>temp_influence_difference}
					}
					AFG={set_country_flag = ENG_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = AFG.ENG_gg_influence}
				if={
					limit={
						check_variable = {AFG.RUS_gg_influence>temp_influence_difference}
					}
					AFG={set_country_flag = RUS_becoming_dominate}
				}
				
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = AFG.RUS_gg_influence}
				if={
					limit={
						AFG={has_country_flag = RUS_becoming_dominate}
						check_variable = {AFG.ENG_gg_influence<temp_influence_difference}
					}
					AFG={clr_country_flag = RUS_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = AFG.ENG_gg_influence}
				if={
					limit={
						AFG={has_country_flag = ENG_becoming_dominate}
						check_variable = {AFG.RUS_gg_influence<temp_influence_difference}
					}
					AFG={clr_country_flag = ENG_becoming_dominate}
				}
				subtract_from_variable = {great_game_points = 10}
		}
	}
	great_game_influence_sikang = {
		available = {
			date > 1882.1.1
			#x great game points
		}
		visible = {
			SIK = {
				exists = yes
				NOT={
					has_country_flag=RUS_sphere
					has_country_flag=ENG_sphere
				}
			}
			#is_ai = yes
			check_variable = { global.great_game_stage > 5}
		}
		highlight_states = {
			state = 617
		}
		#allowed = { tag = RUS }
		custom_cost_trigger = {
			check_variable = {great_game_points > 9}
		}
		custom_cost_text = great_game_points_greater_10
		days_remove = 10
		ai_will_do = {
			base = 1
		}
		remove_effect = {
			if={#add a influence point
					limit={tag=RUS}
					add_to_variable ={SIK.RUS_gg_influence = 1}
				}
				else={
					add_to_variable ={SIK.ENG_gg_influence = 1}
				}
				#check if anyone is 5+ points ahead
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = SIK.RUS_gg_influence}
				if={
					limit={
						check_variable = {SIK.ENG_gg_influence>temp_influence_difference}
					}
					SIK={set_country_flag = ENG_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 4}
				add_to_temp_variable = {temp_influence_difference = SIK.ENG_gg_influence}
				if={
					limit={
						check_variable = {SIK.RUS_gg_influence>temp_influence_difference}
					}
					SIK={set_country_flag = RUS_becoming_dominate}
				}
				
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = SIK.RUS_gg_influence}
				if={
					limit={
						SIK={has_country_flag = RUS_becoming_dominate}
						check_variable = {SIK.ENG_gg_influence<temp_influence_difference}
					}
					SIK={clr_country_flag = RUS_becoming_dominate}
				}
				set_temp_variable = {temp_influence_difference = 5}
				add_to_temp_variable = {temp_influence_difference = SIK.ENG_gg_influence}
				if={
					limit={
						SIK={has_country_flag = ENG_becoming_dominate}
						check_variable = {SIK.RUS_gg_influence<temp_influence_difference}
					}
					SIK={clr_country_flag = ENG_becoming_dominate}
				}
				subtract_from_variable = {great_game_points = 10}
		}
	}
	
	great_game_wukhan_question = {
		available = {
			date > 1881.1.1
			#x great game points
		}
		highlight_states = {
			state = 1362
		}
		visible = {
			RUS = {
				exists = yes
			}
			AFG = { owns_state = 1362 }
			check_variable = { global.great_game_stage > 4}
		}
		allowed = { tag = RUS }
		fire_only_once = yes
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		ai_will_do ={
			base = 1
		}
		complete_effect = {
			country_event = { id = great_game.45 }
			subtract_from_variable = {great_game_points = 5}
		}
	}

	#RUS: can occupy primorskatya if qing collapses
	eoanb_decision_RUS_take_primorskatya = {

		icon = generic_prepare_civil_war

		available = {
			NOT = { has_war_with = QNG }
		}

		visible = {
			has_country_flag = RUS_treaty_aigun
			QNG = {
				has_stability < 0.4
			}
			TAG = RUS
		}
		allowed = { TAG = RUS }

		fire_only_once = yes

		days_remove = 100

		custom_cost_trigger = {
			check_variable = { great_game_points > 4 }
		}
		custom_cost_text = great_game_points_greater_5

		complete_effect = {
			subtract_from_variable = {great_game_points = 5}
		}

		remove_effect = {
			custom_effect_tooltip = RUS_take_primorskatya_tt
			country_event = great_game.46
			QNG = {
				country_event = { id = great_game.46 }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	### New GG Decisions

	#Khiva
	great_game_RUS_central_asian_force = { #Create a Central Asian force
	
	available = {
		BUK = {
			is_subject_of = RUS
		}
		RUS = {
			controls_state = 1369
			controls_state = 1363
		}
	}
	
	highlight_states = {
	}
	
	visible = {
		RUS = {
			exists = yes
		}
		check_variable = { focused_great_game_region = khi }
				
	}
	
	allowed = { tag = RUS }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	days_remove = 20
	cost = 55
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
	
	}
	remove_effect = {
		1363 = {
			create_unit = {
				division = "name = \"Central Asian Force\" division_template = \"Cavalry\" start_experience_factor = 0.5"
				owner = RUS
			}
		}
		652 = {
			create_unit = {
				division = "name = \"Central Asian Force\" division_template = \"Cavalry\" start_experience_factor = 0.5"
				owner = RUS
			}
			create_unit = {
				division = "name = \"Central Asian Force\" division_template = \"Cavalry\" start_experience_factor = 0.5"
				owner = RUS
			}
		}
		1369 = {
			create_unit = {
				division = "name = \"Central Asian Force\" division_template = \"Cavalry\" start_experience_factor = 0.5"
				owner = RUS
			}
		}
		set_country_flag = gg_RUS_central_asian_force
		unlock_decision_tooltip = great_game_RUS_end_khivan_raidings
	}

}
great_game_RUS_end_khivan_raidings = { #End the Khivan raidings once and for all
	
available = {
	BUK = {
		is_subject_of = RUS
	}
	RUS = {
		controls_state = 1369
		controls_state = 1363
	}
}

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
	check_variable = { focused_great_game_region = khi }
	has_country_flag = gg_RUS_central_asian_force
}

allowed = { tag = RUS }

fire_only_once = yes

custom_cost_trigger = {
	check_variable = {great_game_points > 4}
}
custom_cost_text = great_game_points_greater_5
days_remove = 25

ai_will_do ={
	base = 1
}

complete_effect = {
	subtract_from_variable = {great_game_points = 5}
}
remove_effect = {
	RUS = {
		declare_war_on = {
			target = KHI
			type = annex_everything
		}
	}
}

}
###

	great_game_RUS_tatar_teologian = { #Bring Tatar theologian Şihabetdin Märcani to Orenburg
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = buk }
			has_country_flag = gg_RUS_cotton_conard			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		days_remove = 20
		cost = 45
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
		
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
		}

	}

	great_game_RUS_valikhanov_expedition = { #Valikhanov's Expedition in Kyrgyzstan
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = buk }
			has_country_flag = gg_RUS_cotton_conard			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		days_remove = 30
		cost = 40
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
		}
	}

	great_game_RUS_chernyayev_army_rights = { #Grant General Chernyaev broad rights over the army in Central Asia
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kaz }	
			has_country_flag = gg_RUS_cotton_conard		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 2 }
		}
		custom_cost_text = great_game_points_greater_3
		
		ai_will_do ={
			base = 1
		}
		days_remove = 15
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_mil_power = 2
			}
			custom_effect_tooltip = gg_RUS_tt_chernyaev_sent
			set_country_flag = gg_RUS_chernyaev_sent
			unlock_decision_tooltip = great_game_RUS_kokand_area_map
		}
	}

	great_game_RUS_prevent_further_rebellions = { #Grant General Chernyaev broad rights over the army in Central Asia
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kaz }	
			has_country_flag = gg_RUS_prevent_rebellion	
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		days_remove = 15
		
		complete_effect = {
			
		}
		remove_effect = {
			custom_effect_tooltip = gg_RUS_tt_rebellions
			set_country_flag = gg_RUS_kill_collaborators
		}
	}

	great_game_RUS_kill_all_collaborators_in_khiva = { #Grant General Chernyaev broad rights over the army in Central Asia
	
	available = {
	}
	
	highlight_states = {
	}
	
	visible = {
		RUS = {
			exists = yes
		}
		check_variable = { focused_great_game_region = kaz }	
		has_country_flag = gg_RUS_kill_collaborators
	}
	
	allowed = { tag = RUS }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	cost = 50
	days_remove = 15
	
	complete_effect = {
		
	}
	remove_effect = {
		1367 = {
			add_manpower = -10000
		}
		1319 = {
			add_manpower = -10000
		}
		585 = {
			add_manpower = -10000
		}
		1368 = {
			add_manpower = -10000
		}
	}
}

great_game_RUS_kill_all_collaborators_in_kokand = { #Grant General Chernyaev broad rights over the army in Central Asia
	
	available = {
	}
	
	highlight_states = {
	}
	
	visible = {
		RUS = {
			exists = yes
		}
		check_variable = { focused_great_game_region = kaz }	
		has_country_flag = gg_RUS_kill_collaborators
	}
	
	allowed = { tag = RUS }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	cost = 50
	days_remove = 15
	
	complete_effect = {
		
	}
	remove_effect = {
		586= {
			add_manpower = -10000
		}
		732 = {
			add_manpower = -10000
		}
		1363 = {
			add_manpower = -10000
		}
		945 = {
			add_manpower = -1000
		}
		946 = {
			add_manpower = -10000
		}
	}
}

great_game_RUS_kill_all_collaborators_in_bukhara = { #Grant General Chernyaev broad rights over the army in Central Asia
	
	available = {
	}
	
	highlight_states = {
	}
	
	visible = {
		RUS = {
			exists = yes
		}
		check_variable = { focused_great_game_region = kaz }	
		has_country_flag = gg_RUS_kill_collaborators
	}
	
	allowed = { tag = RUS }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	cost = 50
	days_remove = 15
	
	complete_effect = {
		
	}
	remove_effect = {
		405= {
			add_manpower = -10000
		}
		1369 = {
			add_manpower = -10000
		}
		742 = {
			add_manpower = -10000
		}
	
	}
}

great_game_RUS_kill_all_collaborators_in_kazakhstan = { #Grant General Chernyaev broad rights over the army in Central Asia
	
	available = {
	}
	
	highlight_states = {
	}
	
	visible = {
		RUS = {
			exists = yes
		}
		check_variable = { focused_great_game_region = kaz }	
		has_country_flag = gg_RUS_kill_collaborators
	}
	
	allowed = { tag = RUS }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	cost = 50
	days_remove = 15
	
	complete_effect = {
		
	}
	remove_effect = {
		590= {
			add_manpower = -10000
		}
		589 = {
			add_manpower = -10000
		}
		1364 = {
			add_manpower = -10000
		}
		1370 = {
			add_manpower = -1000
		}
		404 = {
			add_manpower = -10000
		}
	}
}

	great_game_RUS_kokand_area_map = { #Appoint Abd al-Vali Qarabai in the making of a war map in Kokand area
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }	
			has_country_flag = gg_RUS_chernyaev_sent		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}

		days_remove = 20
		cost = 40
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_mil_power = 1
			}
			RUS = {
				country_event = {
					id = great_game.65
					days = 5
				}
			}
			clr_country_flag = gg_RUS_chernyaev_sent
		}
	}

	great_game_RUS_popularize_annexion = { #Popularize the Prisoedinenie idea
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kaz }	
			has_country_flag = gg_RUS_cotton_conard		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		days_remove = 25
		cost = 100
		
		complete_effect = {
			set_global_flag = gg_RUS_popularize_annexation
		}
		remove_effect = {
			add_to_variable = {
				gg_mil_power = 3
			}
			add_to_variable = {
				gg_dip_power = 3
			}
			add_to_variable = {
				gg_eco_power = 3
			}
			
			unlock_decision_tooltip = great_game_RUS_invade_northern_kokand
			custom_effect_tooltip = gg_RUS_tt_need_manifest
		}
	}

	great_game_RUS_kazakh_cavalry = { #Empower Kazakh Cavalry Force
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kaz }		
			has_country_flag = gg_RUS_cotton_conard	
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}

		days_remove = 15
		cost = 65
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
			RUS = {
				add_war_support = 0.01
				add_stability = -0.01 
			}
			custom_effect_tooltip = gg_RUS_tt_kazakh_cavalry
			1364= {
			create_unit = {
				division = "name = \"Cossacks\" division_template = \"Cossacks\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = RUS
			}
			create_unit = {
				division = "name = \"Cossacks\" division_template = \"Cossacks\" start_experience_factor = 0.1 start_equipment_factor = 1"
				owner = RUS
			}
			}
		}
	}

	great_game_RUS_persia_slave_problem = { #Solve Slave Problem in Persia
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266 }		
			has_country_flag = gg_RUS_cotton_conard	
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		days_remove = 15
		cost = 40

		complete_effect = {
			add_to_variable = {
				gg_dip_power = 5
			}
		}
		remove_effect = {
			set_country_flag = gg_RUS_slave_problem
			unlock_decision_tooltip = great_game_RUS_contact_shahs_slave_problem
		}
	}

	great_game_RUS_contact_shahs_slave_problem = { #Contact Shaks for the slavery problem
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266 }	
			has_country_flag = gg_RUS_slave_problem		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}

		days_remove = 15
		cost = 40
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 5
			}
		}
	}

	great_game_RUS_appoint_girs_in_tehran = { #Appoint Nikoai Girs in Teheran
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266 }			
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}

		days_remove = 20
		cost = 50
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_opinion_modifier = { target = PER modifier = medium_increase }
			reverse_add_opinion_modifier = { target = PER modifier = medium_increase }
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 5
			}
		}
	}

	great_game_RUS_salavan_railway_proposal = { #Salvan's Railway Proposal
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266 }	
			has_country_flag  = gg_RUS_gate_to_europe		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}

		days_remove = 15
		cost = 60
		
		complete_effect = {
			add_to_variable = {
				gg_eco_power = 5
			}
		}
		remove_effect = {
			PER = {
				country_event = {
					id = great_game.79
					days = 10
				}
			}
		}
	}

	great_game_RUS_caspian_railway = { #Caspian Railway
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266 }		
			has_country_flag = gg_RUS_per_accepts	
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}

		days_remove = 10
		cost = 60
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_eco_power = 5
			}
		}
	}

	great_game_RUS_manifest_destiny = { #The Russian Manifest Destiny
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kaz }		
			has_country_flag = gg_RUS_cotton_conard	
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 9}
		}
		custom_cost_text = great_game_points_greater_10
		
		ai_will_do ={
			base = 1
		}

		days_remove = 10
		
		complete_effect = {
			subtract_from_variable = {great_game_points = 10}
		}
		remove_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
			add_to_variable = {
				gg_eco_power = 5
			}
			add_to_variable = {
				gg_dip_power = 5
			}
			custom_effect_tooltip = gg_RUS_tt_manifest_destiny
			hidden_effect = {
				RUS = {
					add_state_claim = 585
					add_state_claim = 1319
					add_state_claim = 1368
					add_state_claim = 1367
					add_state_claim = 405
					add_state_claim = 1369
					add_state_claim = 742
					add_state_claim = 732
					add_state_claim = 586
					add_state_claim = 1363
					add_state_claim = 584
					add_state_claim = 1360
					add_state_claim = 1361
				}
			}
			set_country_flag = gg_RUS_manifest_destiny
			unlock_decision_tooltip = great_game_RUS_invade_northern_kokand
			custom_effect_tooltip = gg_RUS_tt_need_annexation
		}
	}
	
	great_game_ENG_parliamentary_trade_comitte_bukhara = { #Set up the Parliamentary Trade Committee in Bukhara
	
		available = {
			date > 1858.1.1
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = buk }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes

		cost = 100
		
		days_remove = 15
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_eco_power = 5
			}
		}
	}
	
	great_game_ENG_study_river_atrek = { #Study the basin of river Atrek in Northern Persia
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = 266}			
		}
		
		cost = 50

		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_eco_power = 5
			}
		}
	}

	great_game_ENG_expand_political_intel_on_the_gulf = { #Expand the political intelligence on the Gulf
	
	available = {
		has_country_leader ={
			character = ENG_Disraeli
			ruling_only = yes
		} 
		
	}
	
	highlight_states = {
	}

	days_remove = 10

	cost = 100
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 412}			
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_eco_power = 5
		}
		set_global_flag = expanded_political_intel
		if = {
			limit = {
				has_intelligence_agency = no
			}
			create_intelligence_agency = {
				name = "Directorate of Military Intelligence"
				icon = GFX_intelligence_agency_logo_uk
			}
			add_ideas = ENG_idea_expanded_political_intel_in_the_gulf
		}
		else = {
			add_ideas = ENG_idea_expanded_political_intel_in_the_gulf
		}
		activate_mission = great_game_ENG_anti_russian_coalition_mission
	}
}

great_game_ENG_anti_russian_coalition_mission = { #Expand the political intelligence on the Gulf
	
available = {
	custom_trigger_tooltip = {
		tooltip = gg_ENG_tt_anti_russian_coalition1
			AND = {
				BUK = {
					has_opinion = { 
						target = ENG
						value > 49 
					}
				}
				PER = {
					has_opinion = { 
						target = ENG
						value > 49 
					}
				}
				AFG = {
					has_opinion = { 
						target = ENG
						value > 49 
					}
				}
				TMS = {
					has_opinion = { 
						target = ENG
						value > 49 
					}
				}
				if = {
					limit = {
						NOT = {
							KHI = {
								is_subject_of = RUS
							}
						}
					}
					KHI = {
						has_opinion = { 
							target =ENG
							value > 49 
						}
					}
				}
				if = {
					limit = {
						NOT = {
							KOK = {
								is_subject_of = RUS
							}
						}
					}
					KOK = {
						has_opinion = { 
							target = ENG
							value > 49 
						}
					}
				}
			}
	}

	custom_trigger_tooltip = {
		tooltip = gg_ENG_tt_anti_russian_coalition2
		ROOT = {
			AND = {
				network_national_coverage = {
					target = BUK
					value > 29
				}
				network_national_coverage = {
					target = KOK
					value > 29
				}
				network_national_coverage = {
					target = KHI
					value > 29
				}
				network_national_coverage = {
					target = PER
					value > 29
				}
				network_national_coverage = {
					target = AFG
					value > 29
				}
				network_national_coverage = {
					target = TMS
					value > 29
				}
			}
		}
	}
	custom_trigger_tooltip = {
		tooltip = gg_ENG_tt_anti_russian_coalition3
		ROOT = {
			num_divisions_in_states = {
				count > 4
				states = { 442 1330 1000 }
			}
		}
	}

	custom_trigger_tooltip = {
		tooltip = gg_tt_dip_power_required
		set_temp_variable = { dip_power_required = 30 }
		ROOT = {
			check_variable = {
				var = gg_dip_power
				value = dip_power_required
				compare = greater_than_or_equals
			}	
		}
	}
}
activation = {
	has_global_flag = expanded_political_intel
}
allowed = { tag = ENG }
fire_only_once = yes
is_good = yes
days_mission_timeout = 365
ai_will_do = {
	base = 200
}
timeout_effect = {#Failed
	add_war_support = -0.05
}
complete_effect = {#Completed
clr_global_flag = expanded_political_intel
ENG = {
	country_event = {
		id = great_game.48
		days = 10
	}
}
}
}
great_game_ENG_establish_the_rast_consulate = { #Establish the Rast consulate
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 412}		
		has_country_flag = gg_ENG_persian_question	
	}

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		#Lowers Russia's points in the region
	}
}

great_game_ENG_appoint_alison_in_tehran = { #Appoint Charles Alison in Tehran
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}	
		has_country_flag = gg_ENG_persian_question		
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_dip_power = 5
		}
		add_opinion_modifier = {
			target = PER
			modifier = small_decrease
		}
		unlock_decision_tooltip = great_game_ENG_persian_indian_telegraph_line
		unlock_decision_tooltip = great_game_ENG_assure_jewish_rights_in_persia
		set_country_flag = gg_ENG_alison_in_tehran
	}
}

great_game_ENG_persian_indian_telegraph_line = { #Persian-Indian Telegraph Line
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}	
		has_country_flag = gg_ENG_alison_in_tehran		
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_eco_power = 3
		}
	}
}
great_game_ENG_assure_jewish_rights_in_persia = { #Assure the Jews in Persia rights
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_alison_in_tehran
	}

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_dip_power = 2
		}
		#pop growth for jews
	}
}
great_game_ENG_send_rawlinson_to_persia = { #Send Henry Rawlinson to the Persian court
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_qajar_in_windsor
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_dip_power = 2
		}
	}
}
great_game_ENG_begin_de_iranization_on_the_persian_gulf = { #Begin de-iranization on the Persian Gulf
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_qajar_in_windsor
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
		check_variable = {
			var = great_game_points
			value = gg_ENG_persia_ggpoint_price_var
			compare = greater_than_or_equals
		}
	}
	custom_cost_text = great_game_points_persia
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		subtract_from_variable = { great_game_points = gg_ENG_tibet_ggpoint_price_var }
	}
	remove_effect = {
		activate_mission = great_game_ENG_de_iranzation_mission
		unlock_decision_tooltip = great_game_ENG_establish_british_school_in_persia
		unlock_decision_tooltip = great_game_ENG_cms_operations_in_qajar_persia
		set_country_flag = gg_ENG_de_iranization_in_progress
	}
}

great_game_ENG_establish_british_school_in_persia = { #Establish British school in Persia 
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_de_iranization_in_progress
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	complete_effect = {
		
	}
	remove_effect = {
		PER = {
			country_event = {
				id = great_game.60
				days = 10
			}
		}
		add_to_variable = {
			gg_dip_power = 2
		}
	}
}
great_game_ENG_cms_operations_in_qajar_persia = { #CMS operations in Qajar Persia
	
	available = {
		
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 412}			
		has_country_flag = gg_ENG_de_iranization_in_progress
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_eco_power = 3
		}
		#PER = { -> Needs to increase chatolic pops in a random state
		#	random_owned_state = {
		#	}
		#}
	}
}

great_game_ENG_de_iranzation_mission = {
	available = {
		custom_trigger_tooltip = {
			tooltip = gg_tt_eco_power_required
			set_temp_variable = { eco_power_required = 15 }
			ROOT = {
				check_variable = {
					var = gg_eco_power
					value = eco_power_required
					compare = greater_than_or_equals
				}	
			}
		}
		
	}
	activation = {
	}
	allowed = { always = no}
	fire_only_once = yes
	is_good = yes
	days_mission_timeout = 1095
	ai_will_do = {
		base = 1
	}
	timeout_effect = {#Faliure
		add_stability = -0.02
	}
	complete_effect = {#Succes
		add_stability = 0.05
	}
}
great_game_ENG_goldsmith_treaty = { #The Goldsmith treaty
	
	available = {
		date > 1870.1.1
		custom_trigger_tooltip = {
			tooltip = gg_tt_mil_power_required
			set_temp_variable = { mil_power_required = 30 }
			ROOT = {
				check_variable = {
					var = gg_mil_power
					value = mil_power_required
					compare = greater_than_or_equals
				}	
			}
		}
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
		check_variable = {
			var = great_game_points
			value = gg_ENG_persia_ggpoint_price_var
			compare = greater_than_or_equals
		}
	}
	custom_cost_text = great_game_points_persia
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		subtract_from_variable = { great_game_points = gg_ENG_tibet_ggpoint_price_var }
	}
	remove_effect = {
		set_country_flag = gg_ENG_goldsmith_treaty_done
		ENG = {
			transfer_state = 444
		}
		unlock_decision_tooltip = great_game_ENG_persian_afghan_border_contract
		unlock_decision_tooltip = great_game_ENG_reuter_concession
	}
}

great_game_ENG_persian_afghan_border_contract = { #Persian-Afghanistani Border Contract
	
	available = {
		#requires at least 40 politcal; 15 economic and 20 mil points
		custom_trigger_tooltip = {
			tooltip = gg_tt_dip_power_required
			set_temp_variable = { dip_power_required = 30 }
			ROOT = {
				check_variable = {
					var = gg_dip_power
					value = dip_power_required
					compare = greater_than_or_equals
				}	
			}
		}
		custom_trigger_tooltip = {
			tooltip = gg_tt_eco_power_required
			set_temp_variable = { eco_power_required = 14 }
			ROOT = {
				check_variable = {
					var = gg_eco_power
					value = eco_power_required
					compare = greater_than_or_equals
				}	
			}
		}
		custom_trigger_tooltip = {
			tooltip = gg_tt_mil_power_required
			set_temp_variable = { mil_power_required = 20 }
			ROOT = {
				check_variable = {
					var = gg_mil_power
					value = mil_power_required
					compare = greater_than_or_equals
				}	
			}
		}
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_goldsmith_treaty_done
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes

	cost = var:ENG.gg_ENG_persia_pp_price_var
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}
	remove_effect = {
		#the Persian-Afghani border is stangant ???
	}
}

great_game_ENG_reuter_concession = { #The Reuteur Concession
	
	available = {
		#requires at least 70 politcal; 30 economic and 50 mil points
		custom_trigger_tooltip = {
			tooltip = gg_tt_dip_power_required
			set_temp_variable = { dip_power_required = 70 }
			ROOT = {
				check_variable = {
					var = gg_dip_power
					value = dip_power_required
					compare = greater_than_or_equals
				}	
			}
		}
		custom_trigger_tooltip = {
			tooltip = gg_tt_eco_power_required
			set_temp_variable = { eco_power_required = 30 }
			ROOT = {
				check_variable = {
					var = gg_eco_power
					value = eco_power_required
					compare = greater_than_or_equals
				}	
			}
		}
		custom_trigger_tooltip = {
			tooltip = gg_tt_mil_power_required
			set_temp_variable = { mil_power_required = 50 }
			ROOT = {
				check_variable = {
					var = gg_mil_power
					value = mil_power_required
					compare = greater_than_or_equals
				}	
			}
		}
	}
	
	highlight_states = {
	}

	days_remove = 10
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = 266}			
		has_country_flag = gg_ENG_goldsmith_treaty_done
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
		check_variable = {great_game_points > 9}
	}
	custom_cost_text = great_game_points_greater_10
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		subtract_from_variable = { great_game_points = gg_ENG_tibet_ggpoint_price_var }
	}
	remove_effect = {
		ENG = {
			puppet = {
				target = PER
				end_wars = yes
			}
		}
		custom_effect_tooltip = gg_ENG_tt_resource_rights
		hidden_effect = {
			give_resource_rights = { 
				receiver = ENG 
				state = 795
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 412
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 411
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 421
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 417
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 266
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 416
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 420
			}
			give_resource_rights = { 
				receiver = ENG 
				state = 419
			}
		}
	
	}
}


	great_game_RUS_invade_northern_kokand = { #Begin the invasion of Northwestern Kokand (Replaces Take Taraz)
	
		available = {
			custom_trigger_tooltip = {
				tooltip = gg_tt_mil_power_required
				set_temp_variable = { mil_power_required = 10 }
				ROOT = {
					check_variable = {
						var = gg_mil_power
						value = mil_power_required
						compare = greater_than_or_equals
					}	
				}
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }			
			AND = {
				has_country_flag = gg_RUS_manifest_destiny
				has_global_flag = gg_RUS_popularize_annexation
			}
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do ={
			base = 1
		}

		days_remove = 20
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = yes
				attacker = {
					state = 1370
					num_provinces = 4
					on_win = great_game.66
					on_lose = great_game.67
				}	
				defender = {
					state = 586
					num_provinces = 4
					on_win = great_game.67
					on_lose = great_game.66
				}
			}
			set_country_flag = gg_RUS_has_taken_north_kokand
			unlock_decision_tooltip = great_game_RUS_subjicate_kokand
		}
	}

	great_game_RUS_subjicate_kokand = { #Subjugate Kokand once and for all Kokand
	
		available = {
			custom_trigger_tooltip = {
				tooltip = gg_tt_mil_power_required
				set_temp_variable = { mil_power_required = 25 }
				ROOT = {
					check_variable = {
						var = gg_mil_power
						value = mil_power_required
						compare = greater_than_or_equals
					}	
				}
			}
		}
		
		days_remove = 25

		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }	
			has_country_flag = gg_RUS_has_taken_north_kokand		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			RUS = {
				add_stability = -0.05
				add_war_support = 0.07
				declare_war_on = {
					target = KOK
					type = annex_everything
				}
			}
			clr_country_flag = gg_RUS_has_taken_north_kokand
		}
	}

	great_game_RUS_siege_of_tashkent = {
		available = {
			controls_province = 1459
			RUS = {
				has_war_with = KOK
			}

			#x great game points
		}
		activation = {
		}
		allowed = { tag = RAJ }
		fire_only_once = yes
		is_good = no
		days_mission_timeout = 360
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#war loss
			RUS = {
				add_war_support = -0.1
			}
			KOK = {
				add_war_support = 0.03
			}
			if = {
				limit = {
					RUS = {
						controls_state = 586
					}
					
				}
				586 = {
					add_resistance = 15
				}
			}
			set_country_flag = gg_RUS_tashkent_lost
			
		}
		complete_effect = {#war won
			KOK = {
				add_war_support = -0.1
			}
			add_war_support = 0.03
			586 = {
				add_resistance = -5
			}
			set_country_flag = gg_RUS_tashkent_taken
		}
	}

	great_game_RUS_samarkand_progress = { #Progress to Samarkand
	
		available = {
			custom_trigger_tooltip = {
				tooltip = gg_tt_mil_power_required
				set_temp_variable = { mil_power_required = 25 }
				ROOT = {
					check_variable = {
						var = gg_mil_power
						value = mil_power_required
						compare = greater_than_or_equals
					}	
				}
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = buk }		
			has_country_flag = gg_RUS_kokand_has_fallen	
		}
		
		days_remove = 20

		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			RUS = {
				add_stability = -0.05
				add_war_support = 0.07
				declare_war_on = {
					target = BUK
					type = annex_everything
				}
			}
			set_global_flag = gg_RUS_progress_samarkand
			clr_country_flag = gg_RUS_kokand_has_fallen	
		}
	}



	great_game_RUS_form_turkestan_gen_gov = { #Form the Turkestan Governor-Generalship all Kokand
	
		available = {
			RUS = {
				controls_state = 586
				controls_state = 1363
				controls_state = 732
				controls_state = 945
				controls_state = 946
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }	
			#has_country_flag = gg_RUS_tashkent_taken		
		}
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 2}
		}
		custom_cost_text = great_game_points_greater_3

		days_remove = 15
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
		}
		remove_effect = {
			586 = {
				add_dynamic_modifier = {
					modifier = dynmod_RUS_turkestan_general_governorship
				}
			}
			1363 = {
				add_dynamic_modifier = {
					modifier = dynmod_RUS_turkestan_general_governorship
				}
			}
			732 = {
				add_dynamic_modifier = {
					modifier = dynmod_RUS_turkestan_general_governorship
				}
			}
			945 = {
				add_dynamic_modifier = {
					modifier = dynmod_RUS_turkestan_general_governorship
				}
			}
			946 = {
				add_dynamic_modifier = {
					modifier = dynmod_RUS_turkestan_general_governorship
				}
			}
			set_country_flag = gg_RUS_turkestan_gen_gov
		}
	}

	great_game_RUS_fedchencko_biological_mission = { #Olga and Alexei Fedchenko on a biological mission to the steppes
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }	
			has_country_flag = gg_RUS_turkestan_gen_gov
		}
		
		days_remove = 15
		cost = 50

		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
		}
		remove_effect = {
			add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = hospital_tech
			}
			clr_country_flag = gg_RUS_turkestan_gen_gov
		}
	}

	great_game_RUS_semirechie_cossack_host = { #The Semirichie Cossack Host
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = kok }			
			has_country_flag = gg_RUS_tashkent_taken
		}
		
		days_remove = 15
		cost = 45

		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
		}
		remove_effect = {
			create_unit = {
				division = "name = \"Cossack Cavalry\" division_template = \"Cossacks\" start_experience_factor = 0.5"
				owner = GER
			}
		}
	}

	great_game_RUS_cotton_conard = { 
	
		available = {
			AND = {
				tag = RUS
				has_global_flag = ACW_American_Civil_War
				has_completed_focus = RUS_great_game
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
		}
		
		days_remove = 15
		cost = 45

		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 5
			}
		}
		remove_effect = {
			country_event = {
				id = great_game.61
			}
		}
	}

	#Turkmens

	great_game_RUS_establish_krasnovodsk = { #Establish Krasnovodsk
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			RUS = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }		
			has_country_flag = gg_RUS_army_met_in_stpetersburg	
		}

		days_remove = 15
		
		allowed = { tag = RUS }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {great_game_points > 4}
		}
		custom_cost_text = great_game_points_greater_5
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_mil_power = 3
			}
			add_to_variable = {
				gg_dip_power = 5
			}
			subtract_from_variable = {great_game_points = 5}
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = yes
				attacker = {
					state = 587
					num_provinces = 2
					on_win = great_game.90
					on_lose = great_game.91
				}	
				defender = {
					state = 584
					num_provinces = 3
					on_win = great_game.91
					on_lose = great_game.90
				}
			}
			clr_country_flag = gg_RUS_army_met_in_stpetersburg	
			set_country_flag = gg_RUS_krasnovodsk
		}
	}

	
	great_game_ENG_contact_turkmen_chieftains = { #Contact the local Turkmen chieftains
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }					
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes

		cost = 75
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			add_to_variable = {
				gg_dip_power = 5
			}
			set_country_flag = ENG_contacted_turkmen_tribes
			unlock_decision_tooltip = great_game_ENG_send_straubenzee_to_turkmenistan 
			unlock_decision_tooltip = great_game_ENG_send_turkmenistan_weapons
			unlock_decision_tooltip = great_game_ENG_british_envoy_in_merv
		}
	}
	great_game_ENG_send_straubenzee_to_turkmenistan = { #Send Charles van Sraubenzee to Turkmenistan
	
	available = {
		date > 1870.1.1 
		custom_trigger_tooltip = {
			tooltip = gg_ENG_tt_contacted_turkmen_tribes
			ROOT={
				has_country_flag = ENG_contacted_turkmen_tribes
			}
	}
	}
	
	highlight_states = {
	}
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = tms }					
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
		check_variable = { great_game_points > 4 }
	}
	custom_cost_text = great_game_points_greater_5
	
	days_remove = 10

	ai_will_do ={
		base = 1
	}
	
	complete_effect = {

	}
	remove_effect = {
		add_to_variable = {
			gg_dip_power = 5
		}
		TMS = {
			set_country_flag = TSM_straubenzee_sent
			country_event = {
				id = great_game.47
				days = 5
			}
		}
		custom_effect_tooltip = gg_ENG_tt_send_straubenzee_to_turkmenistan
	}
}
great_game_ENG_send_turkmenistan_weapons = { #Provide the turkmen tribes enough means to wage wars
	
	available = {
		custom_trigger_tooltip = {
			tooltip = gg_ENG_tt_contacted_turkmen_tribes
			ROOT={
				has_country_flag = ENG_contacted_turkmen_tribes
			}
	}
	}
	
	highlight_states = {
	}
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = tms }					
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes

	days_remove = 25
	
	custom_cost_trigger = {
		check_variable = { great_game_points > 4 }
	}
	custom_cost_text = great_game_points_greater_5
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		add_to_variable = {
			gg_dip_power = 5
		}
		TMS = {
			country_event = {
				id = great_game.47
				days = 5
			}
		}
	}
	remove_effect = {
		send_equipment = {
			equipment = infantry_equipment
			amount = 2000
			target = TMS
		}
		send_equipment = {
			equipment = support_equipment
			amount = 200
			target = TMS
		}
		send_equipment = {
			equipment = cannon_equipment
			amount = 20
			target = TMS
		}
	}
}
great_game_ENG_british_envoy_in_merv = { #British envoy colonel MacGregor in Merv
	
	available = {
		custom_trigger_tooltip = {
			tooltip = gg_ENG_tt_contacted_turkmen_tribes
			ROOT={
				has_country_flag = ENG_contacted_turkmen_tribes
			}
	}
	}
	
	highlight_states = {
	}
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = tms }					
	}
	
	allowed = { tag = ENG }
	
	days_remove = 25
	
	fire_only_once = yes

	cost = 40
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
		
	}

	remove_effect = {
		add_to_variable = {
			gg_dip_power = 5
		}
		TMS = {
				add_ideas =TMS_idea_british_envoy
		}
	}
}
great_game_ENG_orenburg_mission = { #Orenburg Mission
	
	available = {
		custom_trigger_tooltip = {
			tooltip = gg_ENG_tt_contacted_turkmen_tribes
			ROOT={
				has_country_flag = ENG_contacted_turkmen_tribes
			}
	}
	}
	
	highlight_states = {
	}
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = tms }					
	}

	days_remove = 25
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}

	cost = 40
	
	complete_effect = {
		
	}
	remove_effect = {
		add_to_variable = {
			gg_dip_power = 5
		}
		set_country_flag = gg_ENG_oldenburg_mission		
		unlock_decision_tooltip = great_game_ENG_ensure_the_existence_of_central_asian_nations
	}
}
great_game_ENG_ensure_the_existence_of_central_asian_nations = { #Ensure the existence of the Central Asian nations
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }
			has_country_flag = gg_ENG_oldenburg_mission					
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = { great_game_points > 2 }
		}
		custom_cost_text = great_game_points_greater_3
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			subtract_from_variable = {great_game_points = 3}
		}
		remove_effect = {
			clr_country_flag = gg_ENG_oldenburg_mission
			set_country_flag = gg_arm_the_rebels
		}
	}
	great_game_ENG_arm_the_muslim = { #Ensure the existence of the Central Asian nations
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tms }
			has_country_flag = gg_arm_the_rebels		
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes

		custom_cost_trigger = {
			check_variable = { great_game_points > 2 }
		}
		custom_cost_text = great_game_points_greater_3
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			subtract_from_variable = {great_game_points = 3}
		}
		remove_effect = {
			clr_country_flag  = gg_arm_the_rebels
			send_equipment = {
				equipment = infantry_equipment
				amount = 3000
				target = KHI
			}
			send_equipment = {
				equipment = infantry_equipment
				amount = 3000
				target = BUK
			}
			send_equipment = {
				equipment = infantry_equipment
				amount = 4000
				target = PHK
			}
		}
	}

	#Afghanistan
	
	great_game_ENG_hindu_kush_voyage = { #Voyage to the Hindu-Kush range
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = afg }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		days_remove = 25

		cost = var:ENG.gg_ENG_afghanistan_pp_price_var
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_eco_power = 2
			}
			add_to_variable = {
				gg_dip_power = 2
			}
		}
	}
	
	great_game_ENG_recognize_sher_ali_khan = { #Recognize Sher Ali Khan as the new leader of Afghanistan
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = afg }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		days_remove = 25
		
		ai_will_do ={
			base = 1
		}

		cost = var:ENG.gg_ENG_afghanistan_pp_price_var
		
		complete_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
			
		}
		remove_effect = {
			add_opinion_modifier = {
				target = AFG
				modifier = improved_relations_light
			}
		}
	}
	
	great_game_AFG_contact_indian_authorities = { #Make contact with the Indian authorities
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			AFG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = afg }			
		}
		
		allowed = { tag = AFG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			#event here
			add_to_variable = {
				gg_dip_power = 5
			}
		}
	}



great_game_ENG_prepare_kalish_mansarovar_expedition = { #Prepare the Kaliash-Mansarovar expdition
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		cost = var:ENG.gg_ENG_tibet_pp_price_var

		days_remove = 25
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_dip_power = 2
			}
			add_opinion_modifier = {
				target = QNG
				modifier = small_decrease
			}
		}
	}
	great_game_ENG_destroy_chinese_tea_monopoly_in_tibet = { #Prepare the Kaliash-Mansarovar expdition
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}

		cost = var:ENG.gg_ENG_tibet_pp_price_var
		
		days_remove = 25

		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			
		}
		remove_effect = {
			add_to_variable = {
				gg_eco_power = 3
			}
			add_opinion_modifier = {
				target = QNG
				modifier = small_decrease
			}
		}
	}
	great_game_ENG_the_mongomerie_plan = { #The Mongomerie plan
	
		available = {
			custom_trigger_tooltip = {
				tooltip = gg_ENG_tt_yangtze
				ROOT = {
					has_country_flag = expedition_failed
				}
			}

		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {
				var = great_game_points
				value = gg_ENG_tibet_ggpoint_price_var
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = great_game_points_tibet

		days_remove = 25
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			subtract_from_variable = { great_game_points = gg_ENG_tibet_ggpoint_price_var }
		}
		remove_effect = {
			custom_effect_tooltip =  gg_ENG_tt_cheaper_tibet
			set_variable = {
				var = gg_ENG_tibet_ggpoint_price_var
				value = 3
			}
			set_variable = {
				var = gg_ENG_tibet_pp_price_var
				value = 50
			}
			ENG = {
				country_event = {
					id = great_game.54
					days = 10
				}
			}
			add_war_support	 = 0.01
			#Needs to cheaper the price of Tibet decisions
		}
	}

	
	great_game_ENG_tsangpo_river = { #Exploration to the Tsangpo river
	
	available = {
		has_country_flag = expedition_completed
	}
	activation = {
	}
	allowed = { always = no }
	fire_only_once = yes
	is_good = no
	days_mission_timeout = 120
	ai_will_do = {
		base = 1
	}
	timeout_effect = {
		add_to_variable = {
			gg_mil_power = 10
		}
		clr_country_flag = gg_ENG_kinthup
		set_country_flag = expedition_completed
	}

	}
	
	great_game_ENG_lasha_expedition_mission = { #Expedition to Lhasa
	
	available = {
		has_country_flag = expedition_completed
	}
	activation = {
	}
	allowed = { always = no}
	fire_only_once = yes
	is_good = no
	days_mission_timeout = 120
	ai_will_do = {
		base = 1
	}
	timeout_effect = {
		add_to_variable = {
			gg_dip_power = 10
		}
		clr_country_flag = gg_ENG_kishen
		set_country_flag = expedition_completed
	}

	}
	great_game_ENG_thok_jalung_goldfields = { #To the Thok Jalung goldfields
	
	available = {
		has_country_flag = expedition_completed
	}
	activation = {
	}
	allowed = { always = no }
	fire_only_once = yes
	is_good = no
	days_mission_timeout = 120
	ai_will_do = {
		base = 1
	}
	timeout_effect = {
		add_to_variable = {
			gg_eco_power = 10
		}
		clr_country_flag = gg_ENG_nain
		set_country_flag = expedition_completed
	}

	}

	great_game_ENG_begin_mapping_tibetan_mountains = { #Begin secret mapping of the Tibetan mountains
	
		available = {
			custom_trigger_tooltip = {
				tooltip = gg_ENG_tt_yangtze
				ROOT = {
					has_country_flag = expedition_failed
				}
			}
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = tib }			
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			check_variable = {
				var = great_game_points
				value = gg_ENG_tibet_ggpoint_price_var
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = great_game_points_tibet

		modifier = {
			political_power_factor = -0.05
			#Daily trade influence gain ??
		}

		

		days_remove = 30
		
		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
			subtract_from_variable = { great_game_points = gg_ENG_tibet_ggpoint_price_var }
		}
		remove_effect = {
			add_stability = 0.02
		}
	}

	great_game_ENG_expand_hindustan_tibet_road = { #Begin secret mapping of the Tibetan mountains
	
	available = {
		has_railway_connection = {
			start_state = 431
			target_state = 1169
		}
		
	}
	activation = {
	}
	allowed = { tag = RAJ }
	fire_only_once = yes
	is_good = no
	days_mission_timeout = 365
	ai_will_do = {
		base = 1
	}
	timeout_effect = {
		ENG = {
			country_event = {
				id = great_game.56
			}
		}
	}
	complete_effect = {
		ENG = {
			country_event = {
				id = great_game.55
			}
		}
	}
	}

	###India###
	great_game_ENG_fortify_india = { #Prepare the Kaliash-Mansarovar expdition
	
		available = {
		}
		
		highlight_states = {
		}
		
		visible = {
			ENG = {
				exists = yes
			}
			check_variable = { focused_great_game_region = raj }	
			has_country_flag = gg_ENG_forward_policy		
		}
		
		allowed = { tag = ENG }
		
		fire_only_once = yes
		
		custom_cost_trigger = {
		}
		
		cost = 50
		
		days_remove = 75

		ai_will_do ={
			base = 1
		}
		
		complete_effect = {
		}

		modifier = {
			consumer_goods_expected_value = 0.05
		}

		remove_effect = {
			442 = {
				add_building_construction = {
					type = bunker
					level = 2
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
			}
			1330 = {
				add_building_construction = {
					type = bunker
					level = 2
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
			}
			1000 = {
				add_building_construction = {
					type = bunker
					level = 2
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
			}
			clr_country_flag = gg_ENG_forward_policy
		}
	}

	great_game_ENG_focus_on_economic_development = { #Prepare the Kaliash-Mansarovar expdition
	
	available = {
	}
	
	highlight_states = {
	}
	
	visible = {
		ENG = {
			exists = yes
		}
		check_variable = { focused_great_game_region = raj }	
		has_country_flag = gg_ENG_close_border		
	}
	
	allowed = { tag = ENG }
	
	fire_only_once = yes
	
	custom_cost_trigger = {
	}
	
	cost = 50
	
	days_remove = 50

	ai_will_do ={
		base = 1
	}
	
	complete_effect = {
	}

	modifier = {
		consumer_goods_expected_value = 0.03
	}

	remove_effect = {
		RAJ = {
			random_core_state = {
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		clr_country_flag = gg_ENG_close_border
}
}
}

eoanb_category_diplomatic_actions={
	great_game_invasion_afghanistan_mission = {
		available = {
			controls_state = 442
			controls_state = 445
			#x great game points
		}
		activation = {
			AFG = {
				has_war_with = RAJ
			}
			check_variable = { global.great_game_stage > 3}
		}
		allowed = { tag = RAJ }
		fire_only_once = yes
		is_good = no
		days_mission_timeout = 360
		ai_will_do = {
			base = 1
		}
		timeout_effect = {#war loss
			white_peace = AFG
			set_variable = { global.great_game_peshawar = 3}
			set_variable = { global.great_game_afghanistan = 3}
			remove_state_core = 442
			remove_state_core = 445
		}
		complete_effect = {#war won
			white_peace = AFG
			set_variable = { global.great_game_peshawar = 5}
			set_variable = { global.great_game_afghanistan = 5}
			if={
				limit={AFG={controls_state = 1362}}
				set_variable = { global.great_game_wukhan = 5}
			}
			transfer_state = 445
			transfer_state = 442
			AFG={
				ROOT={puppet = PREV}
			}
		}
	}
	
	eoanb_decision_AFG_take_badakhshan = {

		icon = generic_prepare_civil_war

		available = {
			UCT = { controls_state = 1362 }
		}

		visible = {
			tag = AFG
			date > 1869.1.1
		}
		allowed = { TAG = AFG }

		fire_only_once = yes

		cost = 50

		complete_effect = {
			country_event = { id = great_game.44 }
		}

		ai_will_do = {
			base = 1000
		}
	}

	eoanb_decision_formalize_the_united_muslim_front = {

		icon = generic_prepare_civil_war

		available = {
			any_country = {
					OR = {
						tag = PER
						tag = AFG
						tag = BUK
						tag = KOK
						tag = TMS
						tag = KHI			
					}
					has_war_with = RUS
					has_idea = idea_united_muslim_front
			}
		}

		visible = {
			AND = {
				has_idea = idea_united_muslim_front
				num_divisions > 8
			}
			
		}
		allowed = {
				tag = PER
		}

		fire_only_once = yes

		days_remove = 10

		modifier = {
		}


		complete_effect = { create_faction_from_template = faction_template_muslim_front }
		remove_effect = {
			every_country = {
				limit = {
					has_idea = idea_united_muslim_front
					NOT = {
						has_country_flag = muslim_front_creator
					}
				}
				PER = {
					add_to_faction = PREV
				}
			}
			
		}

		ai_will_do = {
			base = 1000
		}
	}
	great_game_RUS_kaufmann_peace_solution = { #Talk with von Kaufmann about peacefull solution
	
	available = {
		BUK = {
			surrender_progress > 0.19
		}
		RUS = {
			exists = yes
		}
		OR = {
			has_global_flag = gg_RUS_progress_samarkand
			has_global_flag = gg_RUS_buk_refuses1
			has_global_flag = gg_RUS_buk_refuses2
		}
	}
	
	highlight_states = {
	}
	
	visible = {
		
	}
	
	days_remove = 5

	allowed = { tag = BUK }
	
	fire_only_once = no
	
	custom_cost_trigger = {
	}
	
	ai_will_do ={
		base = 1
	}
	
	remove_effect = {
		RUS = {
			country_event = {
				id = great_game.69
			}
		}
		clr_global_flag = gg_RUS_progress_samarkand
	}
}
great_game_PER_infiltrate_turkmen_border = { #Initiate raids along the Turkmen border
	
available = {
	
}

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
	has_country_flag = gg_PER_warrior
}

days_remove = 5
cost = 40

allowed = { tag = PER }

fire_only_once = no

custom_cost_trigger = {
}

ai_will_do ={
	base = 1
}

remove_effect = {
	#Starts border war against TMS
}
}
great_game_PER_supply_russia_with_supplies = { #Supply the Russian army with food supplies
	
available = {
}

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
	has_global_flag = gg_PER_asia_together
}

days_remove = 5

allowed = { tag = PER }

fire_only_once = no

custom_cost_trigger = {
}

ai_will_do ={
	base = 1
}

remove_effect = {
	RUS = {
		add_ideas = RUS_idea_persian_aids
	}
}
}

great_game_support_your_ally_in_the_war_against_the_turkmens = { #Support your ally in the war against the Turkmens
	
available = {
}

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
	OR = {
		RUS = {
			has_war_with = TMS
		}
		PER = {
			has_war_with = TMS
		}
	}
}

days_remove = 5
cost = 40

allowed = { 
	tag = PER 
	tag = RUS
}

fire_only_once = no

custom_cost_trigger = {
}

ai_will_do ={
	base = 1
}

remove_effect = {
	if = {
		limit = {
			tag = PER
		}
		PER = {
			add_to_war = {
				targeted_alliance = RUS
				enemy = TMS
			}
		}
	}
	else = {
		RUS = {
			add_to_war = {
				targeted_alliance = PER
				enemy = TMS
			}
		}
	}
}
}

great_game_russia_is_the_menace = { #Russia is the menace
	
available = {
	KOK = {
		has_capitulated = yes
	}
}

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
	PKH = {
		exists = yes
	}
}

days_remove = 5
cost = 20

allowed = { 
	tag = PKH
}

fire_only_once = no

custom_cost_trigger = {
}

ai_will_do ={
	base = 1
}

remove_effect = {
	declare_war_on = {
		target = RUS
		type = take_state
	}
	RUS = {
		country_event = {
			id = great_game.83
			days = 5
		}
	}
	PKH = {
		set_capital = {
			state = 732
			remember_old_capital = no
		  }
	}
	732 = {
		add_building_construction = {
			type = bunker
			level = 3
			instant_build = yes
			province = 12581
		}
	}
}
}

great_game_sabotage_kazakh_infrastructure1 = { #Sabotage Kazakh Infrastructure
	
available = {
	#AND = {
	#	has_global_flag = gg__schorched_earth
	#	has_completed_focus = PKH_take_back_what_is_ours
	#}
}

state_target = yes
on_map_mode = map_only

targets = {943 588 589 1370 1364 590 404 402 587 583 }

highlight_states = {
}

visible = {
	RUS = {
		exists = yes
	}
}

days_remove = 3
cost = 10

icon = infrastructure

allowed = { 
	tag = KOK
}

fire_only_once = no

custom_cost_trigger = {
}

ai_will_do ={
	base = 1
}

remove_effect = {
	FROM = {
		damage_building = {
			type = infrastructure
			damage = 3
		}
	}
}
}


}
