#Burgundian events

namespace = FEE_Burgundy_Events

#Philip the Good parleys with Emperor Frederick III
country_event = {
	id = FEE_Burgundy_Events.1
	title = FEE_Burgundy_Events.1.T
	desc = FEE_Burgundy_Events.1.D
	picture = HRE_eventPicture

	fire_only_once = yes

	trigger = {
		tag = BUR
		is_at_war = no
		stability = 3
		west_burgundy_area = {
			type = all
			owned_by = ROOT
		}
		bourgogne_area = {
			type = all
			owned_by = ROOT
		}
		97 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		4383 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		96 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		1865 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		90 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		92 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		1744 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		89 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		88 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		1743 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		91 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		1866 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		181 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		94 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		187 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		189 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		191 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
		188 = {
			country_or_non_sovereign_subject_holds = ROOT
		}
	}

	mean_time_to_happen = {
		months = 3
	}

	option = {
		name = FEE_Burgundy_Events.1.OPT1
		ai_chance = {
			factor = 75
		}

		add_opinion = {
			who = FRA
			modifier = fee_bur_king_of_loth
		}
		add_opinion = {
			who = SWI
			modifier = fee_bur_king_of_loth
		}
		add_opinion = {
			who = SAV
			modifier = fee_bur_king_of_loth
		}
	}

	option = {
		name = FEE_Burgundy_Events.1.OPT2

		add_opinion = {
			who = HAB
			modifier = fee_bur_king_of_loth_hab
		}
	}
}

#A Burgundian feast?
country_event = {
	id = FEE_Burgundy_Events.2
	title = FEE_Burgundy_Events.2.T
	desc = FEE_Burgundy_Events.2.D
	picture = FEAST_eventPicture

	fire_only_once = no

	trigger = {
		tag = BUR
		NOT = { is_year = 1480 }
	}

	mean_time_to_happen = {
		months = 180
	}

	# Option A: Host a grand feast!
	option = {
		name = FEE_Burgundy_Events.2.OPT1
		ai_chance = {
			factor = 50
		}

		add_years_of_income = -0.2
		add_prestige_or_monarch_power = { amount = 20 }
		if = {
			limit = { has_dlc = "Mandate of Heaven" }
			add_splendor = 100
		}
		else = {
			add_dip_power = 50
		}
	}

	# Option B: We can wait...
	option = {
		name = FEE_Burgundy_Events.2.OPT2
		ai_chance = {
			factor = 50
		}

		add_prestige = -5
	}
}

#Mary of Guelders
country_event = {
	id = FEE_Burgundy_Events.3
	title = FEE_Burgundy_Events.3.T
	desc = FEE_Burgundy_Events.3.D
	picture = MARY_OF_GUELDERS_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = BUR
			tag = GEL
			tag = SCO
		}
		is_year = 1451
	}

	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.5
			tag = BUR
		}
	}

	# Option A: She should be an advisor!
	option = {
		name = FEE_Burgundy_Events.3.OPT1
		ai_chance = {
			factor = 50
		}

		# Gains level 2 female stateman advisor Maria van Gelre of Dutch culture and state religion
		define_advisor = {
			type = statesman
			culture = dutch
			religion = root
			skill = 2
			name = "Maria van Gelre"
			female = yes
		}
	}

	# Option B: We can learn from her
	option = {
		name = FEE_Burgundy_Events.3.OPT2
		ai_chance = {
			factor = 30
		}

		add_dip_power = 50
	}

	# Option C: How nice
	option = {
		name = FEE_Burgundy_Events.3.OPT3
		ai_chance = {
			factor = 20
		}

		add_prestige_or_monarch_power = { amount = 10 }
	}
}

# Georges Chastellain
country_event = {
	id = FEE_Burgundy_Events.4
	title = FEE_Burgundy_Events.4.T
	desc = FEE_Burgundy_Events.4.D
	picture = GEORGES_CHASTELLAIN_eventPicture

	fire_only_once = yes

	trigger = {
		tag = BUR
	}

	mean_time_to_happen = {
		months = 12
	}

	# Option A: His histories will record our deeds for our posterity forever
	option = {
		name = FEE_Burgundy_Events.4.OPT1
		ai_chance = {
			factor = 50
		}

		change_government_reform_progress = 100
		define_advisor = {
			type = artist
			culture = flemish
			religion = root
			skill = 2
			name = "Georges Chastellain"
			female = no
			discount = yes
			location = 1865 # Aalst in Ghent (Flanders)
		}
	}
}

# #Jean Le Fèvre de Saint-Remy (reserved / in design phase)
# country_event = {
# 	id = FEE_Burgundy_Events.5
# 	title = FEE_Burgundy_Events.5.T
# 	desc = FEE_Burgundy_Events.5.D
# 	picture = event_test
# }

# # Jacques de Lalaing
# country_event = {
# 	id = FEE_Burgundy_Events.6
# 	title = FEE_Burgundy_Events.6.T
# 	desc = FEE_Burgundy_Events.6.D
# 	picture = JACQUES_DE_LALAING_eventPicture

# 	trigger = {
# 		tag = BUR
# 		NOT = { is_year = 1453 }
# 	}

# 	fire_only_once = yes

# 	# Option A: He must lead our armies!
# 	option = {
# 		name = FEE_Burgundy_Events.6.OPT1
# 		ai_chance = {
# 			factor = 50
# 		}

# 		add_prestige_or_monarch_power = { amount = 10 }
# 		create_general = {
# 			name = "Jacques de Lalaing"
# 			tradition = 100
# 		}
# 	}

# 	# Option B: # This man shall serve our court!
# 	option = {
# 		name = FEE_Burgundy_Events.6.OPT2
# 		ai_chance = {
# 			factor = 50
# 		}

# 		change_government_reform_progress = 25
# 		define_advisor = {
# 			type = army_reformer
# 			culture = wallonian
# 			religion = root
# 			skill = 3
# 			name = "Jacques de Lalaing"
# 			female = no
# 			cost_multiplier = 0.25
# 			location = 91 # Hainaut
# 		}
# 	}
# }

# #Guns of Burgundy
# country_event = {
# 	id = FEE_Burgundy_Events.7
# 	title = FEE_Burgundy_Events.7.T
# 	desc = FEE_Burgundy_Events.7.D
# 	picture = GUNS_FOR_BURGUNDY_eventPicture

# 	fire_only_once = yes

# 	trigger = {
# 		tag = BUR
# 		employed_advisor = { type = army_reformer}
# 	}

# 	mean_time_to_happen = {
# 		months = 24
# 	}

# 	 # Option A: Ok
# 	option = {
# 		name = FEE_Burgundy_Events.7.OPT1
# 		ai_chance = {
# 			factor = 100
# 		}

# 		add_mil_power = 100
# 		add_country_modifier = {
# 			name = fee_guns_of_burgundy
# 			duration = 9125
# 		}
# 		capital_scope = {
# 			ROOT = {
# 				large_cast_bronze_mortar = PREV
# 			}
# 		}
# 	}
# }

# #The Salt Tax
# country_event = {
# 	id = FEE_Burgundy_Events.8
# 	title = FEE_Burgundy_Events.8.T
# 	desc = FEE_Burgundy_Events.8.D
# 	picture = THE_SALT_TAX_eventPicture

# 	fire_only_once = yes

# 	trigger = {
# 		tag = BUR
# 		is_year = 1447
# 		has_ruler = "Philippe III"
# 		owns_or_subject_of = 1865 # Ghent
# 	}

# 	mean_time_to_happen = {
# 		months = 6
# 	}

# 	 # Option A: Propose the tax
# 	option = {
# 		name = FEE_Burgundy_Events.8.OPT1
# 		ai_chance = {
# 			factor = 75
# 		}

# 		random_list = {
# 			75 = {
# 				# trigger event "Revolt of Gent"
# 				country_event = { id = FEE_Burgundy_Events.9 }
# 			}
# 			25 = {
# 				# trigger event "Gent accepts"
# 				country_event = { id = FEE_Burgundy_Events.10 }
# 			}
# 		}
# 	}

# 	# Option B: We shall respect their rights and privileges
# 	option = {
# 		name = FEE_Burgundy_Events.8.OPT2
# 		ai_chance = {
# 			factor = 25
# 		}

# 		add_stability_or_adm_power_per_stab = { amount = 1 }
# 		add_country_modifier = {
# 			name = fee_respected_independence
# 			duration = 10950 # 30 years
# 		}
# 	}
# }

# #Revolt of Gent
# country_event = {
# 	id = FEE_Burgundy_Events.9
# 	title = FEE_Burgundy_Events.9.T
# 	desc = FEE_Burgundy_Events.9.D
# 	picture = REVOLT_OF_GENT_eventPicture

# 	is_triggered_only = yes

# 	# Option A: Rally the Troops!
# 	option = {
# 		name = FEE_Burgundy_Events.9.OPT1

# 		add_prestige = -10
# 		if = {
# 			limit = {
# 				1865 = {
# 					owned_by = BUR }
# 			}
# 			1865 = {
# 				spawn_rebels = {
# 					size = 3
# 					culture = flemish
# 					type = nationalist_rebels
# 				}
# 			}
# 			add_estate_loyalty = {
# 				estate = estate_burghers
# 				loyalty = -20
# 			}
# 		}
# 		else = {
# 			1865 = {
# 				spawn_rebels = {
# 					size = 3
# 					type = pretender_rebels
# 				}
# 			}
# 		}
# 	}
# }

# #Gent accepts
# country_event = {
# 	id = FEE_Burgundy_Events.10
# 	title = FEE_Burgundy_Events.10.T
# 	desc = FEE_Burgundy_Events.10.D
# 	picture = GENT_ACCEPTS_eventPicture

# 	is_triggered_only = yes

# 	# Option A: Excellent
# 	option = {
# 		name = FEE_Burgundy_Events.10.OPT1

# 		add_years_of_income = 0.2
# 		add_ruler_modifier = {
# 			name = fee_burgundian_salt_tax
# 			duration = -1
# 		}
# 	}
# }

# #Treaty of Peronne
# country_event = {
# 	id = FEE_Burgundy_Events.11
# 	title = FEE_Burgundy_Events.11.T
# 	desc = FEE_Burgundy_Events.11.D
# 	picture = TREATY_OF_PERONNE_eventPicture

# 	fire_only_once = yes

# 	trigger = {
# 		tag = BUR
# 		is_year = 1460
# 		FRA = {
# 			exists = yes
# 		}
# 		ROOT = {
# 			is_at_war = no
# 			has_ruler_flag = is_charles_of_burg_flag
# 		}
# 	}
# 	mean_time_to_happen = {
# 		months = 100
# 	}

# 	# Option A: Peace in our time!
# 	option = {
# 		name = FEE_Burgundy_Events.11.OPT1

# 		add_legitimacy_equivalent = { amount = 20 republican_tradition = 10 }
# 		add_opinion = {
# 			who = FRA
# 			modifier = fee_treaty_of_peronne
# 		}
# 		reverse_add_opinion = {
# 			who = FRA
# 			modifier = fee_treaty_of_peronne
# 		}

# 		every_province = {
# 			limit = {
# 				owned_by = BUR
# 				is_claim = FRA
# 			}
# 			remove_claim = FRA
# 		}
# 		every_province = {
# 			limit = {
# 				owned_by = BUR
# 				is_core = FRA
# 			}
# 			remove_core = FRA
# 		}
# 	}
# }