add_namespace = oman

#Peninsula Shield Force Invitation
country_event = { 
    id = oman.1
    title = oman.1.t
    desc = oman.1.d
    picture = GFX_report_Peninsula_Shield_Force

    is_triggered_only = yes

    option = {
        name = oman.1.o1
        OMA = { add_to_faction = ROOT }
		OMA = { country_event = diplomatic_response.1 }
		ai_chance = {
			factor = 90
			modifier = {
				factor = 40
				is_neutral = yes
			}
			modifier = {
				factor = 50
				is_in_faction = yes
			}
		}
    }
	option = {
        name = oman.1.o2
        OMA = {
			country_event = diplomatic_response.2
		}
		ai_chance = {
			factor = 10
		}
    }
}
#Axis of Resistance Invitation
country_event = { 
    id = oman.2
    title = oman.2.t
    desc = oman.2.d
    picture = GFX_report_Axis_of_Resistance

    is_triggered_only = yes

    option = {
        name = oman.2.o1
        OMA = { add_to_faction = ROOT }
		OMA = { country_event = diplomatic_response.1 }
		ai_chance = {
			factor = 90
			modifier = {
				factor = 40
				is_neutral = yes
			}
			modifier = {
				factor = 50
				is_in_faction = yes
			}
		}
    }
	option = {
        name = oman.2.o2
        OMA = {
			country_event = diplomatic_response.2
		}
		ai_chance = {
			factor = 10
		}
    }
}
#PFLO Uprising
country_event = { 
    id = oman.3
    title = oman.3.t
    desc = oman.3.d
    picture = GFX_report_Oman_PFLO_Uprising

    is_triggered_only = yes

    option = {
        name = oman.3.o1
		add_popularity = {
			ideology = communist
			popularity = 0.35
		}
		set_politics = {
			ruling_party = communist
			elections_allowed = no
		}
        start_civil_war = {
			ideology = monarchist
			size = 0.3
			states = {1088 294}
			capital = 294
		}
		add_ideas = government_system_one_party
		hidden_effect = {
			division_template = {
				name = "PFLO Soldier"
				priority = 2
				#division_names_group = SOV_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }

					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
				}
				support = {
					engineer = { x = 0 y = 0 }
					recon = { x = 0 y = 1 }
				}
				is_locked = yes 
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"PFLO Soldier\" division_template = \"PFLO Soldier\" start_experience_factor = 1.0"
					owner = OMA
				}
			}
		}
    }
}
#A New Oman
country_event = { 
    id = oman.4
    title = oman.4.t
    desc = oman.4.d
    picture = GFX_report_A_New_Oman

    is_triggered_only = yes

    option = {
        name = oman.4.o1
        delete_unit_template_and_units = {
			division_template = "PFLO Soldier"
			disband = yes #will refund equipment and manpower
		}
		add_popularity = {
			ideology = communist
			popularity = 0.05
		}
		add_stability = 0.075
		add_ideas = OMA_Economic_Chaos
		add_ideas = OMA_Government_Chaos
    }
}

country_event = {	#CSTO Join Request
	id = oman.5
	title = oman.5.t
	desc = oman.5.d
	picture = GFX_report_CSTO_Join_Request
	
	is_triggered_only = yes
	
	option = {
		name = oman.5.o1
		add_to_faction = FROM
	}

	option = {
		name = oman.5.o2
		OMA = {
			country_event = diplomatic_response.2
		}
	}
}

country_event = {	#Shanghai Pact Join Request
	id = oman.6
	title = oman.6.t
	desc = oman.6.d
	picture = GFX_report_Shanghai_Pact_Join_Request
	
	is_triggered_only = yes
	
	option = {
		name = oman.6.o1
		add_to_faction = FROM
	}

	option = {
		name = oman.6.o2
		OMA = {
			country_event = diplomatic_response.2
		}
	}
}