add_namespace = mor

country_event = { #History of Morocco
	id = mor.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.1" }
	title = mor.1.t
	desc = mor.1.d
	picture = GFX_report_event_chad
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes

	option = {
		name = mor.1.a
	}
}

country_event = { # Berber issue
	id = mor.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.2" }
	title = mor.2.t
	desc = mor.2.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = { #Status quo
		name = mor.2.a
		add_political_power = -80
	}
	option = { #Arabization
		name = mor.2.b
		add_political_power = -20
		add_stability = -0.03
		add_manpower = 20000
	}
}

country_event = { # MOR_the_new_western_realm
	id = mor.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.3" }
	title = mor.3.t
	desc = mor.3.d
	picture = GFX_report_event_factory

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Industrialization
		name = mor.3.a
		462 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
	option = { #Infrastructure
		name = mor.3.b
		462 = {
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
	}
}
country_event = {
	id = mor.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.4" }
	title = mor.4.t
	desc = mor.4.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Totalist
		name = mor.4.a
		add_popularity = {
			ideology = totalist
			popularity = 0.10
		}
		add_stability = -0.1
		add_political_power = 100
	}
	option = { #Syndi
		name = mor.4.b
		add_popularity = {
			ideology = syndicalist
			popularity = 0.10
		}
		add_political_power = 50
	}

	option = { #radsoc
		name = mor.4.c
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.10
		}
		add_stability = 0.1
		add_political_power = 20
	}
}

country_event = { # German help
	id = mor.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.5" }
	title = mor.5.t
	desc = mor.5.d
	picture = GFX_report_event_port_goods

	fire_only_once = yes

	is_triggered_only = yes


	option = { #Refuse help
		name = mor.5.a
		ai_chance = {
			factor = 10
		}
		MOR = {
			country_event = {
				id = mor.6
				days = 1
			}
		}
	}
	option = { #Send Military mission
		name = mor.5.b
		ai_chance = {
			factor = 90
		}
		add_manpower = -2000
		MOR = {
			country_event = {
				id = mor.7
				days = 1
			}
		}
	}
}

country_event = { # Germany refuses
	id = mor.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.6" }
	title = mor.6.t
	desc = mor.6.d
	picture = GFX_report_event_port_goods

	fire_only_once = yes

	is_triggered_only = yes

	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	
	option = {
		name = mor.6.a
		add_political_power = -10
	}
}
country_event = { # Germany sends mission
	id = mor.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.7" }
	title = mor.7.t
	desc = mor.7.d
	picture = GFX_report_event_port_goods

	fire_only_once = yes

	is_triggered_only = yes


	option = {
		name = mor.7.a
		add_ideas = MOR_germanmission_idea
	}
}
country_event = { # Morocco wants to join Entente
	id = mor.100
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.100" }
	title = mor.100.t
	desc = mor.100.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Let them in###

		name = mor.100.a
		ai_chance = {
			factor = 90
		}
		add_to_faction = MOR
		MOR = {
			country_event = mor.101
		}
	}
	option = { #refuse

		name = mor.100.b
		ai_chance = {
			factor = 10
		}
		MOR = {
			country_event = mor.102
		}
	}
}
country_event = { #Join Entente
	id = mor.101
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.101" }
	title = mor.101.t
	desc = mor.101.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = mor.101.a
	}
}
country_event = { #Refused
	id = mor.102
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.102" }
	title = mor.102.t
	desc = mor.102.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes

	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	
	option = {
		name = mor.102.a
		add_stability = 0.1
	}
}
country_event = { # Morocco wants to join Egypt
	id = mor.103
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.103" }
	title = mor.103.t
	desc = mor.103.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Let them in###

		name = mor.103.a
		ai_chance = {
			factor = 100
		}
		add_to_faction = MOR
		MOR = {
			country_event = mor.104
		}
	}
	option = { #refuse
		ai_chance = {
			factor = 0
		}
		name = mor.103.b
		MOR = {
			country_event = mor.105
		}
	}
}
country_event = { #Join Egypt
	id = mor.104
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.104" }
	title = mor.104.t
	desc = mor.104.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	
	option = {
		name = mor.104.a
	}
}
country_event = { #Refused
	id = mor.105
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.105" }
	title = mor.105.t
	desc = mor.105.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = mor.105.a
		add_stability = 0.1
	}
}
#country_event = {
#	id = mor.106
#	title = mor.106.t
#	desc = mor.106.d
#	picture = GFX_report_event_wadai
#
#	fire_only_once = yes
#
#	is_triggered_only = yes
#
#
#}


country_event = { #Claim Timbuktu
	id = mor.200
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.200" }
	title = mor.200.t
	desc = mor.200.d
	picture = GFX_report_event_wadai

	fire_only_once = yes

	is_triggered_only = yes

	option = { #To War
		name = mor.200.a
		556 = {
			owner = {
				save_event_target_as = tim_dude
			}
		}
		declare_war_on = {
			target = event_target:tim_dude
			type = annex_everything
		}
	}

	option = { # Only stake our claims
		name = mor.200.b
		ai_chance = {
			factor = 10
		}
	}
}

country_event = { #Rene Coup
	id = mor.2005
	immediate = { log = "[GetDateText]: [Root.GetName]: event mor.2005" }
	title = mor.2005.t
	desc = mor.2005.d
	picture = GFX_report_event_lactchad

	fire_only_once = yes

	is_triggered_only = yes

	option = { #
		name = mor.2005.a
	}

	option = { # 
		name = mor.2005.b
		ai_chance = {
			factor = 10
		}
		MOR_rene_takeover = yes
	}
}
