
###########################
#New Dahomey Events
###########################
#By IratePirate
###########################

add_namespace = dahomeynew

country_event = { #Dahomey Intro Event
	id = dahomeynew.1
	title = dahomeynew.1.t
	desc = dahomeynew.1.d
	picture = GFX_report_event_NFA_event_FlavorDahomey
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.1.a
		ai_chance = {
			factor = 100
		}
		country_event = dahomeynew.3
	}
	option = {
		name = dahomeynew.1.b
		ai_chance = {
			factor = 0
		}
	}
}
country_event = { #Porto Novo Rising once war won
	id = dahomeynew.2
	title = dahomeynew.2.t
	desc = dahomeynew.2.d
	picture = GFX_report_event_streets4
	is_triggered_only = yes
	
	option = { #succeeds
		name = dahomeynew.2.a
		ai_chance = {
			factor = 100
		}
			add_stability = -0.05
			set_cosmetic_tag = DAH_REPUBLIC
			add_named_threat = { 
				threat = 0.5
				name = dahomeyrevolution
			}
				set_politics = {
					ruling_party = radical_socialist
				}
			overlord = {
					set_autonomy = {
						target = ROOT
						autonomous_state = autonomy_free
					}
					remove_from_faction = ROOT
				}
				ROOT = {
					separate_peace_all_wars = yes
				}	
			add_popularity = {
				ideology = totalist
				popularity = 0.1
			}
			add_popularity = {
				ideology = syndicalist
				popularity = 0.1
			}
			add_popularity = {
				ideology = radical_socialist
				popularity = 0.1
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.1
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = -0.4
			}
		hidden_effect = {
			set_country_flag = DAH_portonovorising
			set_victory_points = {
				province = 13878
				value = 1
				}
			set_victory_points = {
				province = 13877
				value = 2
				}
			}
		}
	option = { #fails
		name = dahomeynew.2.b
		ai_chance = {
			factor = 100
		}
		add_stability = -0.05
		add_political_power = -50
		hidden_effect = {
			set_country_flag = DAH_portonovorisingfailed
			set_victory_points = {
				province = 13878
				value = 2
				}
			set_victory_points = {
				province = 13877
				value = 1
				}
			}
		}
	}

country_event = { #Intro part 2
	id = dahomeynew.3
	title = dahomeynew.3.t
	desc = dahomeynew.3.d
	picture = GFX_report_event_port_city
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.3.a
		ai_chance = {
			factor = 100
		}

		}
	}

country_event = { #Congress
	id = dahomeynew.4
	title = dahomeynew.4.t
	desc = dahomeynew.4.d
	picture = GFX_report_event_port_city
	is_triggered_only = yes
	
	option = { #our current status quo is the best
		name = dahomeynew.4.a
		ai_chance = {
			factor = 100
		}
		add_stability = 0.05

		}
		
	option = {
		name = dahomeynew.4.b
		ai_chance = {
			factor = 100
		}
		set_politics = {
			ruling_party = syndicalist
		}		
		add_popularity = {
			ideology = syndicalist
			popularity = 0.15
			}	

		}
		
	option = {
		name = dahomeynew.4.c
		ai_chance = {
			factor = 100
		}
		set_politics = {
			ruling_party = totalist
		}		
		add_popularity = {
			ideology = totalist
			popularity = 0.15
			}	

		}
	}
	
country_event = { #Le Pacte de sang au Dahomey
	id = dahomeynew.5
	title = dahomeynew.5.t
	desc = dahomeynew.5.d
	picture = GFX_report_event_port_city
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.5.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
			add_stability = 0.01
		}

		}
	}
	
country_event = { #Survey of Dahomey
	id = dahomeynew.6
	title = dahomeynew.6.t
	desc = dahomeynew.6.d
	picture = GFX_report_event_port_military
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.6.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
			add_stability = -0.01
			add_political_power = -20
		}

		}
	}
	
country_event = { #Restoration of the House of Aladaxonu
	id = dahomeynew.7
	title = dahomeynew.7.t
	desc = dahomeynew.7.d
	picture = GFX_report_event_NFA_event_FlavorDahomey
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.7.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_war_support = 0.02
		add_political_power = -20
		}

		}
	}
	
country_event = { #The Legacy of Tacoondonou
	id = dahomeynew.8
	title = dahomeynew.8.t
	desc = dahomeynew.8.d
	picture = GFX_report_event_chiefs
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.8.a
		ai_chance = {
			factor = 100
		}
		add_political_power = 10

		}
	}
	
country_event = { #The Return of Behanzin
	id = dahomeynew.9
	title = dahomeynew.9.t
	desc = dahomeynew.9.d
	picture = GFX_report_event_oyo
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.9.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_stability = -0.01
		add_war_support = -0.01
		}

		}
	}
country_event = { #Exhaustion of Soil in Djidja
	id = dahomeynew.10
	title = dahomeynew.10.t
	desc = dahomeynew.10.d
	picture = GFX_report_event_rural
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.10.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_political_power = -20
		add_war_support = -0.01
		}

		}
	}
country_event = { #Success of the Palm Tree Programme
	id = dahomeynew.11
	title = dahomeynew.11.t
	desc = dahomeynew.11.d
	picture = GFX_report_event_playing
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = dahomeynew.11.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_political_power = 10
		add_stability = 0.01
		}

		}
	}
country_event = { #Calendar Confusion
	id = dahomeynew.12
	title = dahomeynew.12.t
	desc = dahomeynew.12.d
	picture = GFX_report_event_streets4
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = dahomeynew.12.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_political_power = -10
		}

		}
	}
country_event = { #The Gletanu
	id = dahomeynew.13
	title = dahomeynew.13.t
	desc = dahomeynew.13.d
	picture = GFX_report_event_rural
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = dahomeynew.13.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				OR = {
					tag = DAH
					tag = CIV
				}
			}
		add_stability = 0.01
		}

		}
	}
country_event = { #Regulating the Sodudo
	id = dahomeynew.14
	title = dahomeynew.14.t
	desc = dahomeynew.14.d
	picture = GFX_report_event_streets5
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.14.a
		ai_chance = {
			factor = 100
		}
		add_political_power = -20
	}
}
country_event = { #Murder of Kojo Tovalou Houénou
	id = dahomeynew.15
	title = dahomeynew.15.t
	desc = dahomeynew.15.d
	picture = GFX_report_event_kojo
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.15.a
		ai_chance = {
			factor = 100
		}
	}
}
country_event = { #Publication of 'Les Vrais Chefs de l'Empire'
	id = dahomeynew.16
	title = dahomeynew.16.t
	desc = dahomeynew.16.d
	picture = GFX_report_event_delavignette
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.16.a
		ai_chance = {
			factor = 100
		}
	}
}
country_event = { #Café Touba
	id = dahomeynew.17
	title = dahomeynew.17.t
	desc = dahomeynew.17.d
	picture = GFX_report_event_shop
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.17.a
		ai_chance = {
			factor = 100
		}
	}
}
country_event = { #'Doguicimi - The First Dahomeyan Novel'
	id = dahomeynew.18
	title = dahomeynew.18.t
	desc = dahomeynew.18.d
	picture = GFX_report_event_NFA_event_flavor33
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = dahomeynew.18.a
		ai_chance = {
			factor = 100
		}
	}
}