country_event = {
	id = imperial_story.17
	title = imperial_story.17.t
	desc = imperial_story.17.d
	picture = GFX_soviet
	
	fire_only_once = yes
	
	trigger = {
		tag = IMP
		date > 1939.08.01
		OR = {			
			AND = {
				country_exists = PER
				PER = { is_puppet = no }
			}
		}
		
	}
	
	option = {
		name = imperial_story.17.a
		# Annex puppeted territories as Tarkin
		IMP = {
			if = {
				limit = {
					SAU = {
						OR = {
							is_puppet_of = IMP
							is_subject_of = IMP
						}
					}
				}
				annex_country = {
					target = SAU
					transfer_troops = yes
				}
			}
			if = {
				limit = {
					IRQ = {
						OR = {
							is_puppet_of = IMP
							is_subject_of = IMP
						}
					}
				}
				annex_country = {
					target = IRQ
					transfer_troops = yes
				}
			}
			if = {
				limit = {
					TUR = {
						OR = {
							is_puppet_of = IMP
							is_subject_of = IMP
						}
					}
				}
				annex_country = {
					target = TUR
					transfer_troops = yes
				}
			}
			if = {
				limit = {
					AFG = {
						OR = {
							is_puppet_of = IMP
							is_subject_of = IMP
						}
					}
				}
				annex_country = {
					target = AFG
					transfer_troops = yes
				}
			}
			if = {
				limit = {
					PER = {
						OR = {
							is_puppet_of = IMP
							is_subject_of = IMP
						}
					}
				}
				annex_country = {
					target = PER
					transfer_troops = yes
				}
			}
		}
		# Check if soviet defectors invited
		if = {
			limit = {
				has_idea = soviet_defectors
			}
			#Give defectors part of Saudi Arabia
			CPG = {
				transfer_state = 948
				transfer_state = 679
				set_province_name = {
					id = 12883
					name = "Militia Headquarters"
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment_1
					amount = 6000
					producer = SOV
				}				
				679 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes				
					}
				}
				# Give Defectors recruit-level blaster units
				load_oob = "CPG_militia_army"
			}
		}
		
		# Give Yularen his Land
		#REP = {
		#	transfer_state = 291
		#	transfer_state = 676
		#	set_province_name = {
		#		id = 2097
		#		name = "Army Headquarters"
		#	}
		#	add_equipment_to_stockpile = {
		#		type = republic_equipment_1 
		#		amount = 7000
		#		producer = IMP
		#	}
		#	
		#	676 = {
		#		add_extra_state_shared_building_slots = 2
		#		add_building_construction = {
		#			type = arms_factory
		#			level = 2
		#			instant_build = yes				
		#		}
		#	}
		#	#Give Yularen his army
		#	load_oob = "REP_army"
		#}
		# Start Civil War
		#remove_ideas = soviet_defectors
		IMP = {
			start_civil_war = {
				ruling_party = fascism
				ideology = democratic
				size = 0.2
				only_own_territory = no
				states = { 
					944
				}
				capital = 944
			}
		}
		
		
		set_province_name = {
			id = 10791
			name = "Gulf City"
		}
		
		## Enable Focus Tree
	}
}

country_event = {
	id = imperial_story.18
	title = imperial_story.18.t
	desc = imperial_story.18.d
	picture = GFX_soviet
	
	is_triggered_only = no
	fire_only_once = no
	
	trigger = {
		CPG = {
			country_exists = yes
		}
		tag = IMP
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = imperial_story.18.a
		CPG = {
			change_tag_from = IMP
		}
		
	}
	
	option = {
		name = imperial_story.18.b
	}

}