﻿add_namespace = isis
add_namespace = isis_news

country_event = {
	id = isis.1
	title = isis.1.t
	desc = isis.1.d
	
	fire_only_once = yes
	
	trigger = {
		tag = USA
		NOT = { ISS = { exists = yes } }
		NOT = { has_global_flag = isis_exists }
		IRQ = { NOT = { has_government = nationalist} }
		IRQ = { NOT = { has_civil_war = yes } }
	}
	
	mean_time_to_happen = {
		days = 1095
	}		
	
	immediate = {
		set_global_flag = isis_exists
	}
	
	option = {
		name = isis.1.o1
		
		
		676 = { add_core_of = ISS }
		680 = { add_core_of = ISS }
		814 = { add_core_of = ISS }
		815 = { add_core_of = ISS }
		ISS = { set_state_owner = 676 }
		ISS = { set_state_controller = 676 }
		ISS = { set_state_owner = 814 }
		ISS = { set_state_controller = 814 }
		
		every_state = {
			limit = {
				is_on_continent = middle_east
			}
					
			add_claim_by = ISS
		}
		ISS = {
			load_oob = "ISS_2016"
		}
		
		
	}
}

country_event = {
	id = isis.2
	title = isis.2.t
	desc = isis.2.d
	
	fire_only_once = yes
	
	trigger = {
		has_global_flag = isis_exists
		tag = ISS
	}
	
	
	immediate = {
		clr_global_flag = isis_exists
	}
	
	option = {
		name = isis.2.o1
	
		if = {
			limit = {
				country_exists = KUR
			}
			ISS = {
				declare_war_on = { target = KUR type = annex_everything }
			}
		}
		
		if = {
			limit = {
				country_exists = IRQ
			}
			ISS = {
				declare_war_on = { target = IRQ type = annex_everything }
			}
		}
		
		if = {
			limit = {
				country_exists = SYR
			}
			ISS = {
				declare_war_on = { target = SYR type = annex_everything }
			}
		}
		add_ideas = {
			service_by_requirement
			war_economy
			closed_economy
		}
		complete_national_focus = generic_political_start
		complete_national_focus = generic_school_of_ideology
		complete_national_focus = generic_national_power
		complete_national_focus = generic_path_of_order
		complete_national_focus = generic_path_of_allah
		complete_national_focus = generic_jihad
		remove_ideas = idea_focus_generic_path_of_allah
	}
}
