##############################
##############################
##### WW BELGIAN EVENTS #####
##############################
##############################

#template

#country_event = { #Our Southern Neighbour
#	id = ww_BEL_event_our_sourthern_neighbour.1
#	title = ww_BEL_event_our_sourthern_neighbour.1.t
#	desc = ww_BEL_event_our_sourthern_neighbour.1.desc
#	picture = GFX_ 
#
#	fire_only_once = yes
#
#	is_triggered_only = yes
#
#	option = { #First Option
#		name = ww_BEL_event_our_sourthern_neighbour.1.a
#		ai_chance = {
#			base = 10
#		}		
#		
#		hidden_effect = {
#		}
#		effect_tooltip = {
#		}
#	}
#	option = { #Second Option
#		name = ww_BEL_event_our_sourthern_neighbour.1.b
#		ai_chance = {
#			base = 1
#		}
#
#		hidden_effect = {
#		}
#
#		effect_tooltip = {
#		}
#	}
#}

add_namespace = ww_BEL_event_political
add_namespace = ww_BEL_event_diplomatic
add_namespace = ww_BEL_event_war
add_namespace = ww_BEL_event_spanish_interaction
add_namespace = ww_BEL_event_misc

#ai_chance = {
#	base = 5
#	modifier = {
#		factor = 100
#		OR = {
#			BEL_historical_ai = yes
#			BEL_nationalist_fascist_ai = yes
#			BEL_expansionist_fascist_ai = yes
#			BEL_defensive_democrat_ai = yes
#			BEL_communist_ai = yes
#		}
#	}
#}

#### Historical Events ####

# Government Resigns + Election -for BEL
country_event = { 
	id = ww_BEL_event_political.1
	title = ww_BEL_event_political.1.t
	desc = ww_BEL_event_political.1.desc 
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	option = { #Government of National Unity
		name = ww_BEL_event_political.1.a
		ai_chance = {
			base = 25
			modifier = {
				factor = 100
				OR = {
					BEL_historical_ai = yes
					BEL_nationalist_fascist_ai = yes
					BEL_expansionist_fascist_ai = yes
					BEL_defensive_democrat_ai = yes
				}
			}
		}

		custom_effect_tooltip = BEL_paul_van_zeeland_remains_tt

		add_stability = 0.05

		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}

		complete_national_focus = BEL_government_of_national_unity
	}

	option = { #Vandervelde Minority
		name = ww_BEL_event_political.1.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 100
				OR = {
					BEL_communist_ai = yes
				}
			}
		}

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			name = BEL_labour_party
			long_name = BEL_labour_party_long
		}	

		add_country_leader_role = {
		    character = BEL_emile_vanderveld
		    promote_leader = yes
		    country_leader = {
		        ideology = socialism
		        expire = "1965.1.1.1"
		        traits = { BEL_le_patron }
		    }
		}

		add_popularity = {
			ideology = communism
			popularity = 0.1
		}

		complete_national_focus = BEL_vandervelde_minority
	}
}

#Paul van Zeeland is corrupt! -for BEL
country_event = { 
	id = ww_BEL_event_political.2
	title = ww_BEL_event_political.2.t
	desc = ww_BEL_event_political.2.desc 
	picture = GFX_report_event_BEL_paul_van_zeeland

	trigger = {
		original_tag = BEL
		has_country_leader = { 
			character = BEL_paul_van_zeeland
			ruling_only = yes
		}
		has_completed_focus = BEL_investigate_bribery_charges
	}

	fire_only_once = yes

	mean_time_to_happen = {
		days = 140
	}

	option = { #Is There No End?
		name = ww_BEL_event_political.2.a
		ai_chance = {
			base = 100
		}

		add_ideas = BEL_collapsing_government_ns 
	}
}

#Royal Appointment
country_event = { 
	id = ww_BEL_event_political.3
	title = ww_BEL_event_political.3.t
	desc = ww_BEL_event_political.3.desc 
	picture = GFX_report_event_BEL_leopold

	is_triggered_only = yes

	option = { #Appoint Paul-Émile Janson
		name = ww_BEL_event_political.3.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}

		add_country_leader_role = {
		    character = BEL_paul_emile_janson
		    promote_leader = yes
		    country_leader = {
		        ideology = conservatism
		        expire = "1965.1.1.1"
		        traits = { BEL_royal_appointee }
		    }
		}

		set_party_name = {
			ideology = democratic
			long_name = BEL_liberal_party_long
			name = BEL_liberal_party
		}

		remove_ideas = BEL_collapsing_government_ns 

		complete_national_focus = BEL_paul_emile_janson
	}

	option = { #Appoint Leon Degrelle
		name = ww_BEL_event_political.3.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 100
				OR = {
					BEL_nationalist_fascist_ai = yes
					BEL_expansionist_fascist_ai = yes
					BEL_defensive_democrat_ai = yes
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		add_country_leader_role = {
		    character = BEL_leon_degrelle
		    promote_leader = yes
		    country_leader = {
		        ideology = rexism
		        expire = "1965.1.1.1"
		        traits = { BEL_belgian_inquisitor }
		    }
		}
		

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}	

		remove_ideas = BEL_collapsing_government_ns

		complete_national_focus = BEL_degrelle	

		add_popularity = {
			ideology = fascism
			popularity = 0.15
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = BEL_modify_corruption_dynamic_modifier_tt
		add_to_variable = { 
			BEL_corruption_political_power_gain = 0.05
			tooltip = political_power_gain_tt				
		}	
		add_to_variable = { 
			BEL_corruption_stability_factor = 0.05
			tooltip = stability_factor_tt				
		}
	}

	option = { #Appoint Leon Degrelle temporarily
		name = ww_BEL_event_political.3.c
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_global_flag = allies_mainland_withdrawal
			}
		}

		add_country_leader_role = {
		    character = BEL_leon_degrelle
		    promote_leader = yes
		    country_leader = {
		        ideology = rexism
		        expire = "1965.1.1.1"
		        traits = { BEL_belgian_inquisitor }
		    }
		}	

		remove_ideas = BEL_collapsing_government_ns

		complete_national_focus = BEL_degrelle	

		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}
		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = BEL_modify_corruption_dynamic_modifier_tt
		add_to_variable = { 
			BEL_corruption_political_power_gain = 0.05
			tooltip = political_power_gain_tt				
		}	
		add_to_variable = { 
			BEL_corruption_stability_factor = 0.05
			tooltip = stability_factor_tt				
		}
	}
}

#Budgetary Crisis
country_event = { 
	id = ww_BEL_event_political.4
	title = ww_BEL_event_political.4.t
	desc = ww_BEL_event_political.4.desc 
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = { #Hopefully Prime Minister Spaak lasts longer!
		name = ww_BEL_event_political.4.a
		ai_chance = {
			base = 100
		}
		add_country_leader_role = {
		    character = BEL_paul_henri_spaak
		    promote_leader = yes
		    country_leader = {
		        ideology = socialism
		        expire = "1965.1.1.1"
		        traits = { BEL_diplomatic_titan }
		    }
		}

		set_party_name = {
			ideology = democratic
			long_name = BEL_labour_party_long
			name = BEL_labour_party
		}

		add_stability = -0.10
	}
}

#Adriaan Martens Crisis
country_event = { 
	id = ww_BEL_event_political.5
	title = ww_BEL_event_political.5.t
	desc = ww_BEL_event_political.5.desc 
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = { #The Prime Minister should resign and call a snap election
		name = ww_BEL_event_political.5.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				OR = {
					BEL_historical_ai = yes
				}
			}
		}

		add_country_leader_role = {
		    character = BEL_hubert_pierlot
		    promote_leader = yes
		    country_leader = {
		        ideology = conservatism
		        expire = "1965.1.1.1"
		        traits = { BEL_determined_prime_minister }
		    }
		}

		set_party_name = {
			ideology = democratic
			long_name = BEL_democratic_party_long
			name = BEL_democratic_party
		}
	}

	option = { #Spaak has the political support to survive this
		name = ww_BEL_event_political.5.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		add_stability = -0.25 
	}
}

#The Flemish Question
country_event = { 
	id = ww_BEL_event_political.6
	title = ww_BEL_event_political.6.t
	desc = ww_BEL_event_political.6.desc 
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #Dutch Primacy
		name = ww_BEL_event_political.6.a
		ai_chance = {
			base = 5
		}
		swap_ideas = {
			add_idea = BEL_language_barriers_fas_nl_ns
			remove_idea = BEL_language_barriers_ns	
		}
	}

	option = { #French Primacy
		name = ww_BEL_event_political.6.b
		ai_chance = {
			base = 10
		}
		swap_ideas = {
			add_idea = BEL_language_barriers_fas_fr_ns
			remove_idea = BEL_language_barriers_ns
		}
	}

	option = { #Grammar Nazi
		name = ww_BEL_event_political.6.c
		ai_chance = {
			base = 2
		}
		add_political_power = -150
		remove_ideas = BEL_language_barriers_ns
	}
}

# Snap Election -for BEL
country_event = { 
	id = ww_BEL_event_political.7
	title = ww_BEL_event_political.7.t
	desc = ww_BEL_event_political.7.desc 
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	option = { #Pierlot Liberal Victory
		name = ww_BEL_event_political.7.a
		ai_chance = {
			base = 7
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}

		add_stability = 0.05

		complete_national_focus = BEL_liberal_victory
	}

	option = { #Spaak Socialist Victory
		name = ww_BEL_event_political.7.b
		ai_chance = {
			base = 3
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			name = BEL_labour_party
			long_name = BEL_labour_party_long
		}	

		add_country_leader_role = {
		    character = BEL_paul_henri_spaak
		    promote_leader = yes
		    country_leader = {
		        ideology = socialism
		        expire = "1965.1.1.1"
		        traits = { BEL_diplomatic_titan }
		    }
		}

		add_popularity = {
			ideology = communism
			popularity = 0.1
		}

		complete_national_focus = BEL_socialist_victory
	}
}

country_event = { #BEL: communist solving the language problems communism
	id = ww_BEL_event_political.8
	title = ww_BEL_event_political.8.t
	desc = ww_BEL_event_political.8.desc 
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #Dutch Primacy
		name = ww_BEL_event_political.8.a
		ai_chance = {
			base = 2
		}
		swap_ideas = {
			add_idea = BEL_language_barriers_fas_nl_ns
			remove_idea = BEL_language_barriers_ns	
		}
	}

	option = { #French Primacy
		name = ww_BEL_event_political.8.b
		ai_chance = {
			base = 5
		}
		swap_ideas = {
			add_idea = BEL_language_barriers_fas_fr_ns
			remove_idea = BEL_language_barriers_ns
		}
	}

	option = { #Grammar Nazi
		name = ww_BEL_event_political.8.c
		ai_chance = {
			base = 10
		}
		add_political_power = -150
		remove_ideas = BEL_language_barriers_ns
	}
}

#### DIPLOMACY AND TRADE EVENTS ####

#Repudiate Treaty -for BEL
country_event = { 
	id = ww_BEL_event_diplomatic.1
	title = ww_BEL_event_diplomatic.1.t
	desc = ww_BEL_event_diplomatic.1.desc 
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Regretable
		name = ww_BEL_event_diplomatic.1.a
		
		effect_tooltip = {
			ROOT = {
				diplomatic_relation = { 
					country = FROM 
					relation = guarantee
					active = no
				}
			}
			if = {
				limit = {
					FROM = {
						has_guaranteed = ROOT
					}
				}
				FROM = {
					diplomatic_relation = { 
						country = ROOT 
						relation = guarantee
						active = no
					}
				}
			}
		}
	}
}

# Luxembourg Receives Ultimatum
country_event = {
	id = ww_BEL_event_diplomatic.2
	title = ww_BEL_event_diplomatic.2.t
	desc = ww_BEL_event_diplomatic.2.desc
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = { # Yield
		name = ww_BEL_event_diplomatic.2.a
		ai_chance = {
			base = 40
			modifier = {
				factor = 0
				OR = {			
					any_other_country = {
						OR = {
							is_major = yes
							original_tag = HOL
						}
						NOT = { tag = FROM }
						OR = {
							has_guaranteed = ROOT
							AND = {
								is_in_faction_with = ROOT
								OR = {
									NOT = { is_in_faction_with = FROM }
									AND = {
										is_in_faction_with = FROM
										FROM = { is_faction_leader = no }
									}
								}
							}
						}
					}
					AND = {
						is_subject = yes
						NOT = { is_subject_of = FROM }
					}
				}
			}
			modifier = {
				factor = 5
				is_subject_of = FROM
			}
		}
		
		FROM = {
			country_event = { days = 1 id = ww_BEL_event_diplomatic.3 }
		}
		custom_effect_tooltip = GAME_OVER_TT

		BEL = {
			if = {
				limit = {
					has_wargoal_against = {
						target = LUX
					}
				}

				hidden_effect = {
					remove_wargoal = {
					    type = all
					    target = LUX
					}
				}
			}
		}

	}
	option = { # Resist
		name = ww_BEL_event_diplomatic.2.b
		ai_chance = {
			base = 20 
			modifier = {
				factor = 0
				OR = {
					AND = {
						is_in_faction_with = FROM
						FROM = { is_faction_leader = yes }
					}
					AND = {
						is_in_faction = no 
						NOT = {
							any_other_country = {
								NOT = { tag = FROM }
								has_guaranteed = ROOT
							} 
						}
					}
				}
			}
			modifier = {
				add = 100
				is_in_faction = yes
				NOT = { is_in_faction_with = FROM }
			}
			modifier = {
				add = 100
				is_subject = yes
				NOT = { is_subject_of = FROM }
			}
		}
		FROM = {
			effect_tooltip = {
				create_wargoal = {
					type = take_state_focus
					target = ROOT
					generator = { 8 }
				}
			}
			country_event = { days = 1 id = ww_BEL_event_diplomatic.4 }
		}
	}
}

# Luxembourg Yields
country_event = {
	id = ww_BEL_event_diplomatic.3
	title = ww_BEL_event_diplomatic.3.t
	desc = ww_BEL_event_diplomatic.3.desc
	picture = GFX_report_event_royal_parade
	
	is_triggered_only = yes
	
	option = {
		name = ww_BEL_event_diplomatic.3.a

		annex_country = { 
			target = FROM 
		}
		add_named_threat = { threat = 2 name = BEL_luxembourg_war_goal }
	}
}

# Luxembourg Rejects the Ultimatum
country_event = {
	id = ww_BEL_event_diplomatic.4
	title = ww_BEL_event_diplomatic.4.t
	desc = ww_BEL_event_diplomatic.4.desc
	picture = GFX_report_event_soviet_tank_parade
	
	is_triggered_only = yes
	
	option = {
		name = ww_BEL_event_diplomatic.4.a
		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 8 }
		}
	}
}

## Demand Calais Events

# To Belgium : What can we offer?
country_event = {
	id = ww_BEL_event_diplomatic.5
	title = ww_BEL_event_diplomatic.5.t
	desc = ww_BEL_event_diplomatic.5.desc
	picture = GFX_report_event_baltic_entente_one
	
	is_triggered_only = yes
	
	option = { #Demand Calais
		name = ww_BEL_event_diplomatic.5.a
		ai_chance = {
			base = 10 

			modifier = {
				add = 5
				has_army_manpower = { size > 299999 }
			}

			modifier = {
				add = 3
				has_war = no
			}

			modifier = {
				add = 2
				num_of_factories > 25
			}

		}

		FRA = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.6 }
		}
	}

	option = { #Congo for Calais
		name = ww_BEL_event_diplomatic.5.b
		ai_chance = {
			base = 10 

			modifier = {
				add = -5
				has_government = communism
			}

			modifier = {
				add = -2
				has_government = fascism
			}
			
			modifier = {
				add = 5
				has_government = democratic
			}

			modifier = {
				add = 10
				has_government = neutrality
			}
		}

		FRA = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.7 }
		}

		effect_tooltip = {
			538 = {	transfer_state_to = FRA }

			718 = {	transfer_state_to = FRA }
		}
	}

	option = { # Pay for Calais
		name = ww_BEL_event_diplomatic.5.c
		ai_chance = {
			base = 10 

			modifier = {
				add = 4
				num_of_factories > 25
			}

			modifier = {
				add = 2
				num_of_factories > 15
			}

			modifier = {
				add = 4
				has_stability > 80
			}

			modifier = {
				add = 2
				has_stability > 60
			}

			modifier = {
				add = 3
				has_war = no
			}
		}

		FRA = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.8 }

			effect_tooltip = {
				random_owned_state = {
					limit = {
						is_in_home_area = yes
						NOT = {
							state = 29
						}
						free_building_slots = {
							building = industrial_complex
							size > 2
							include_locked = yes
						}
					}

					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}
}

# To France : Belgium demand Calais
country_event = {
	id = ww_BEL_event_diplomatic.6
	title = ww_BEL_event_diplomatic.6.t
	desc = ww_BEL_event_diplomatic.6.desc
	picture = GFX_report_event_lithuania_army
	
	is_triggered_only = yes
	
	option = { # Hell no! Bring it.
		name = ww_BEL_event_diplomatic.6.a
		ai_chance = {
			base = 10 

			modifier = {
				add = 10
				is_in_faction = yes
			}

			modifier = {
				add = 10
				has_war = no
			}
		}

		FROM = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.11 }
		}

	}

	option = { # We accept, give land.
		name = ww_BEL_event_diplomatic.6.b
		ai_chance = {
			base = 10 

			modifier = {
				add = 5
				has_war = yes
			}

			modifier = {
				add = 2
				is_in_faction = no
			}

			modifier = {
				add = 2
				has_stability < 20
			}

			modifier = {
				add = 2
				has_stability < 40
			}

			modifier = {
				add = 2
				has_stability < 60
			}
		}

		FROM = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.10 }
		}

	}
}

# To France : Belgium offers Congo land for Calais
country_event = {
	id = ww_BEL_event_diplomatic.7
	title = ww_BEL_event_diplomatic.7.t
	desc = ww_BEL_event_diplomatic.7.desc
	picture = GFX_report_event_tur_kemalist_officers
	
	is_triggered_only = yes
	
	option = { # Nope!
		name = ww_BEL_event_diplomatic.7.a
		ai_chance = {
			base = 10 

			modifier = {
				add = 5
				has_government = communism
			}

			modifier = {
				add = 3
				has_war = no
			}

			modifier = {
				add = 2
				has_government = fascism
			}

		}

		FROM = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.11 }
		}
	}

	option = { # We accept. Give land.
		name = ww_BEL_event_diplomatic.7.b
		ai_chance = {
			base = 10 

			modifier = {
				add = 8
				has_government = neutrality
			}

			modifier = {
				add = 2
				has_government = democratic
			}

			modifier = {
				add = 4
				has_war = yes
			}

		}

		FROM = {
			country_event = { days = 1 id = ww_BEL_event_diplomatic.10 }
		}

		COG = {
			country_event = { days = 1 id = ww_BEL_event_diplomatic.9 }
		}

		event_option_tooltip = ww_BEL_event_diplomatic.9.a
	}
}

# To France : Belgium offers payment for Calais
country_event = {
	id = ww_BEL_event_diplomatic.8
	title = ww_BEL_event_diplomatic.8.t
	desc = ww_BEL_event_diplomatic.8.desc
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = { # Nope!
		name = ww_BEL_event_diplomatic.8.a
		ai_chance = {
			base = 10 

			modifier = {
				add = 5
				is_in_faction = yes
			}

			modifier = {
				add = 5
				has_war = no
			}

		}

		FROM = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.11 }
		}
	}

	option = { # We accept. Give land.
		name = ww_BEL_event_diplomatic.8.b
		ai_chance = {
			base = 10 

			modifier = {
				add = 3
				AND = {
					has_war = yes
					has_army_manpower = { size < 499999 }
				}
			}

			modifier = {
				add = 2
				has_army_manpower = { size < 749999 }
			}

			modifier = {
				add = 3
				num_of_factories < 75
			}

			modifier = {
				add = 2
				num_of_factories < 100
			}
		}

		FROM = {
			country_event = { days = 2 id = ww_BEL_event_diplomatic.10 }

			random_owned_state = {
				limit = {
					is_in_home_area = yes
					industrial_complex > 2
				}
				
				remove_building = {
					type = industrial_complex
					level = 2
				}
			}
		}

		random_owned_state = {
			limit = {
				is_in_home_area = yes
				NOT = {
					state = 29
				}
				free_building_slots = {
					building = industrial_complex
					size > 2
					include_locked = yes
				}
			}

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
}

# To Congo : Belgium just handed land over to France
country_event = {
	id = ww_BEL_event_diplomatic.9
	title = ww_BEL_event_diplomatic.9.t
	desc = ww_BEL_event_diplomatic.9.desc
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = { # Gah, fine.
		name = ww_BEL_event_diplomatic.9.a

		538 = {	transfer_state_to = FROM }

		718 = {	transfer_state_to = FROM }
	}
}

# To Belgium : France accepted! We got the land.
country_event = {
	id = ww_BEL_event_diplomatic.10
	title = ww_BEL_event_diplomatic.10.t
	desc = ww_BEL_event_diplomatic.10.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	option = { # Woohoo!
		name = ww_BEL_event_diplomatic.10.a
		29 = { 	transfer_state_to = ROOT }
	}
}

# To Belgium : France refused. Escalate?
country_event = {
	id = ww_BEL_event_diplomatic.11
	title = ww_BEL_event_diplomatic.11.t
	desc = ww_BEL_event_diplomatic.11.desc
	picture = GFX_report_event_HUN_hungary_occupies_area
	
	is_triggered_only = yes
	
	option = { # Claims
		name = ww_BEL_event_diplomatic.11.a
		ai_chance = {
			base = 10 

			modifier = {
				add = 10
				FRA = { is_in_faction = yes }
			}

			modifier = {
				add = 10
				FRA = { has_war = no }
			}
		}
		add_state_claim = 29

	}

	option = { # War!
		name = ww_BEL_event_diplomatic.11.b
		ai_chance = {
			modifier = {
				add = 10
				FRA = { has_war = yes }
			}
		}
		add_state_claim = 29
		declare_war_on = {
			target = FRA
			type = take_claimed_state
		}
	}
}

## End Demand Calais Event Chain ##

country_event = { #To ENG/FRA/SOV: Belgium requests guarantee
	id = ww_BEL_event_diplomatic.12
	title = ww_BEL_event_diplomatic.12.t
	desc = ww_BEL_event_diplomatic.12.desc
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	option = { # sure
		name = ww_BEL_event_diplomatic.12.a
		ai_chance = {
			base = 10 
			modifier = { #makes it 50/50 the soviets accept if you are democratic
				factor = 10
				original_tag = SOV
				FROM = {
					OR = {
						has_completed_focus = BEL_raise_the_red_flag
						has_government = communism
					}
				}
			}

			modifier = { #no one wants to guarantee the fascists, this should never happen
				factor = 0.1
				FROM = { has_government = fascism }
			}
		}

		give_guarantee = FROM

		add_ai_strategy = { 
			type = alliance 
			id = FROM
			value = 100
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.13
				hours = 12
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}

			FROM = {
				add_equipment_subsidy = {
					cic = 1500 #Amount of CIC for the subsidy. 
					equipment_type = infantry_equipment
					seller_tags = { ROOT } 
				}
			}
		}

		ELSE = {
			FROM = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 1000
					producer = ROOT
				}
			}
		}
	}

	option = { # Nah
		name = ww_BEL_event_diplomatic.12.b
		ai_chance = {
			base = 1
			modifier = { #makes it 50/50 the soviets accept if you are democratic
				factor = 10
				original_tag = SOV
				FROM = {
					NOT = { has_completed_focus = BEL_raise_the_red_flag } 
				}
			}
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.14
				hours = 12
			}
		}
	}
}

country_event = { #To Belgium: Gets guarantee from ENG/FRA/SOV
	id = ww_BEL_event_diplomatic.13
	title = ww_BEL_event_diplomatic.13.t
	desc = ww_BEL_event_diplomatic.13.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.13.a
		ai_chance = {
			base = 10
		}

		effect_tooltip = {
			FROM = {
				give_guarantee = ROOT
			}
			custom_effect_tooltip = generic_skip_one_line_tt

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}

				add_equipment_subsidy = {
					cic = 1500 #Amount of CIC for the subsidy. 
					equipment_type = infantry_equipment
					seller_tags = { FROM } 
				}
			}

			ELSE = {
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 1000
					producer = FROM
				}
			}
		}
	}
}

country_event = { #To Belgium: Does not get guarantee from ENG/FRA/SOV
	id = ww_BEL_event_diplomatic.14
	title = ww_BEL_event_diplomatic.14.t
	desc = ww_BEL_event_diplomatic.14.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.14.a
		ai_chance = {
			base = 10
		}
	}
}

country_event = { #To GER/USA/ENG: BEL requests equipment
	id = ww_BEL_event_diplomatic.15
	title = ww_BEL_event_diplomatic.15.t
	desc = ww_BEL_event_diplomatic.15.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #sure, inf
		name = ww_BEL_event_diplomatic.15.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_equipment = {
					infantry_equipment > 1999
				}
			}
		}

		ROOT = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 2000
				target = FROM
			}
		}

		hidden_effect = {
			FROM = {
				set_country_flag = BEL_got_inf_eqiupment_flag
				country_event = {
					id = ww_BEL_event_diplomatic.18
					hours = 6
				}
			}
		}
		
	}

	option = { #sure, support
		name = ww_BEL_event_diplomatic.15.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_equipment = {
					support_equipment > 1999
				}
			}
		}

		ROOT = {
			send_equipment = {
				equipment = support_equipment
				amount = 2000
				target = FROM
			}
		}
		

		hidden_effect = {
			FROM = {
				set_country_flag = BEL_got_support_eqiupment_flag
				country_event = {
					id = ww_BEL_event_diplomatic.18
					hours = 6
				}
			}
		}
		
	}

	option = { #no
		name = ww_BEL_event_diplomatic.15.c
		ai_chance = {
			base = 1
			modifier = {
				factor = 1000
				has_equipment = {
					infantry_equipment < 2000
				}
				has_equipment = {
					support_equipment < 2000
				}
			}
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.19
				hours = 6
			}
		}
	}
}

country_event = { #To GER/USA/ENG: BEL requests factory access
	id = ww_BEL_event_diplomatic.16
	title = ww_BEL_event_diplomatic.16.t
	desc = ww_BEL_event_diplomatic.16.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #sure
		name = ww_BEL_event_diplomatic.16.a
		ai_chance = {
			base = 10
		}

		ROOT = {
			add_popularity = {
				ideology = ROOT
				popularity = 0.05
			}
		}

		FROM = {
			add_offsite_building = {
				type = industrial_complex
				level = 1
			}
			add_offsite_building = {
				type = arms_factory
				level = 1
			}

			hidden_effect = {
				set_country_flag = BEL_got_factory_access_flag
				country_event = {
					id = ww_BEL_event_diplomatic.18
					hours = 6
				}
			}
		}
	}

	option = { #no
		name = ww_BEL_event_diplomatic.16.b
		ai_chance = {
			base = 1
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.19
				hours = 6
			}
		}
	}
}

country_event = { #To GER/USA/ENG: BEL requests military experience sharing
	id = ww_BEL_event_diplomatic.17
	title = ww_BEL_event_diplomatic.17.t
	desc = ww_BEL_event_diplomatic.17.desc
	picture = GFX_report_event_military_planning

	is_triggered_only = yes

	option = { #sure
		name = ww_BEL_event_diplomatic.17.a
		ai_chance = {
			base = 10
		}

		ROOT = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = land_doctrine
			}

			army_experience = 25
		}

		

		FROM = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = land_doctrine
			}

			army_experience = 25
			hidden_effect = {
				set_country_flag = BEL_joint_military_exercises_flag
				country_event = {
					id = ww_BEL_event_diplomatic.18
					hours = 6
				}
			}
		}
	}

	option = { #no 
		name = ww_BEL_event_diplomatic.17.b
		ai_chance = {
			base = 1
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.19
				hours = 6
			}
		}
	}
}

country_event = { #To BEL: Generic accept
	id = ww_BEL_event_diplomatic.18
	title = ww_BEL_event_diplomatic.18.t
	desc = ww_BEL_event_diplomatic.18.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.18.a
		ai_chance = {
			base = 10
		}

		add_legitimacy = 3

		IF = {
			limit = { has_country_flag = BEL_got_inf_eqiupment_flag }

			clr_country_flag = BEL_got_inf_eqiupment_flag

			event_option_tooltip = ww_BEL_event_diplomatic.15.a
		}

		IF = {
			limit = { has_country_flag = BEL_got_support_eqiupment_flag }

			clr_country_flag = BEL_got_support_eqiupment_flag

			event_option_tooltip = ww_BEL_event_diplomatic.15.b
		}

		IF = {
			limit = { has_country_flag = BEL_got_factory_access_flag }

			clr_country_flag = BEL_got_factory_access_flag

			event_option_tooltip = ww_BEL_event_diplomatic.16.a
		}

		IF = {
			limit = { has_country_flag = BEL_joint_military_exercises_flag }

			clr_country_flag = BEL_joint_military_exercises_flag 

			event_option_tooltip = ww_BEL_event_diplomatic.17.a
		}
	}
}

country_event = { #To BEL: generic reject
	id = ww_BEL_event_diplomatic.19
	title = ww_BEL_event_diplomatic.19.t
	desc = ww_BEL_event_diplomatic.19.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.19.a
		ai_chance = {
			base = 10
		}
	}
}

# EU Events

country_event = { # To potential EU member: Please join the EU
	id = ww_BEL_event_diplomatic.20
	title = ww_BEL_event_diplomatic.20.t
	desc = ww_BEL_event_diplomatic.20.desc
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes
	
	option = { # yes!
		name = ww_BEL_event_diplomatic.20.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_government = ROOT
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = ROOT
					value > 24
				}
			}
		}

		event_option_tooltip = ww_BEL_event_diplomatic.21.a

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.21
				hours = 6
			}
		}

		add_ai_strategy = { 
			type = alliance 
			id = FROM
			value = 100
		}
	}

	option = { #nah
		name = ww_BEL_event_diplomatic.20.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				has_opinion = {
					target = ROOT
					value < -24
				}
			}
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.22
				hours = 6
			}
		}
	}
}

country_event = { #To BEL: New EU member joins
	id = ww_BEL_event_diplomatic.21
	title = ww_BEL_event_diplomatic.21.t
	desc = ww_BEL_event_diplomatic.21.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.21.a
		ai_chance = {
			base = 10
		}

		add_to_faction = FROM
	}
}

country_event = { #To BEL: No new members for the EU
	id = ww_BEL_event_diplomatic.22
	title = ww_BEL_event_diplomatic.22.t
	desc = ww_BEL_event_diplomatic.22.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.22.a
		ai_chance = {
			base = 10
		}
	}
}

country_event = { #To EU Member: Tech Sharing group?
	id = ww_BEL_event_diplomatic.23
	title = ww_BEL_event_diplomatic.23.t
	desc = ww_BEL_event_diplomatic.23.desc
	picture = GFX_report_event_generic_research_lab

	is_triggered_only = yes

	option = { #sure
		name = ww_BEL_event_diplomatic.23.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_government = ROOT
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = ROOT
					value > 24
				}
			}
		}

		event_option_tooltip = ww_BEL_event_diplomatic.24.a

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.24
				hours = 6
			}
		}
	}

	option = { #nope
		name = ww_BEL_event_diplomatic.23.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				has_opinion = {
					target = ROOT
					value < -24
				}
			}			
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.25
				hours = 6
			}
		}
	}
}

country_event = { #To BEL: New EU member joins tech share
	id = ww_BEL_event_diplomatic.24
	title = ww_BEL_event_diplomatic.24.t
	desc = ww_BEL_event_diplomatic.24.desc
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.24.a
		ai_chance = {
			base = 10
		}

		FROM = { add_to_tech_sharing_group = EU_tech_sharing_group }
	}
}

country_event = { #To BEL: No new members for the EU tech share
	id = ww_BEL_event_diplomatic.25
	title = ww_BEL_event_diplomatic.25.t
	desc = ww_BEL_event_diplomatic.25.desc
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	option = {
		name = ww_BEL_event_diplomatic.25.a
		ai_chance = {
			base = 10
		}
	}
}

country_event = { #To EU Member: subjugation request
	id = ww_BEL_event_diplomatic.26
	title = ww_BEL_event_diplomatic.26.t
	desc = ww_BEL_event_diplomatic.26.desc
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	option = { #sure
		name = ww_BEL_event_diplomatic.26.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_government = ROOT
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = ROOT
					value > 24
				}
			}
		}

		event_option_tooltip = ww_BEL_event_diplomatic.27.a

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.27
				hours = 6
			}
		}
	}

	option = { #nope
		name = ww_BEL_event_diplomatic.26.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_opinion = {
					target = ROOT
					value < -24
				}
			}
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.28
				hours = 6
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = ww_BEL_event_diplomatic.26.b_tt
	}
}

country_event = { #To BEL: EU member subjugates
	id = ww_BEL_event_diplomatic.27
	title = ww_BEL_event_diplomatic.27.t
	desc = ww_BEL_event_diplomatic.27.desc
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Woop
		name = ww_BEL_event_diplomatic.27.a
		ai_chance = {
			base = 10
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_eu_member
			freedom_level = 0.5
			end_wars = no
		}
	}
}

country_event = { #To BEL: EU member refuses subjugation
	id = ww_BEL_event_diplomatic.28
	title = ww_BEL_event_diplomatic.28.t
	desc = ww_BEL_event_diplomatic.28.desc
	picture = GFX_report_event_generic_battle

	is_triggered_only = yes

	option = { #darn
		name = ww_BEL_event_diplomatic.28.a
		ai_chance = {
			base = 5
		}
	}

	option = { #darn, but aggressive
		name = ww_BEL_event_diplomatic.28.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
			
		}

		remove_from_faction = FROM
	}
}

country_event = { #To BEL: Otto von Habsburg offers his help
	id = ww_BEL_event_diplomatic.29
	title = ww_BEL_event_diplomatic.29.t
	desc = ww_BEL_event_diplomatic.29.desc
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	option = { #Woop
		name = ww_BEL_event_diplomatic.29.a
		ai_chance = {
			base = 10
		}

		HUN = {
			HUN_otto_von_habsburg = {
				set_nationality = BEL
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = HUN_otto_von_habsburg
						traits = {
							habsburg_eu_delegate
						}
						allowed = {}
					}
				}
			}
		}
	}

	option = { #Nope
		name = ww_BEL_event_diplomatic.29.b
		ai_chance = {
			base = 10
		}

	}
}

country_event = { #To GER: BEL wants to join the Axis
	id = ww_BEL_event_diplomatic.30
	title = ww_BEL_event_diplomatic.30.t
	desc = ww_BEL_event_diplomatic.30.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #Woop
		name = ww_BEL_event_diplomatic.30.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				has_government = fascism
			}
		}

		effect_tooltip = {
			add_to_faction = FROM
		}
		
		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.31
				hours = 6
			}
		}
	}

	option = { #nope
		name = ww_BEL_event_diplomatic.30.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				NOT = { has_government = fascism }
			}
		}
		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.32
				hours = 6
			}
		}
	}
}

country_event = { #To BEL: Ger allows us to join
	id = ww_BEL_event_diplomatic.31
	title = ww_BEL_event_diplomatic.31.t
	desc = ww_BEL_event_diplomatic.31.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #Woop
		name = ww_BEL_event_diplomatic.31.a
		ai_chance = {
			base = 10

		}

		FROM = {
			add_to_faction = ROOT
		}
	}
}

country_event = { #To BEL: Ger rejects
	id = ww_BEL_event_diplomatic.32
	title = ww_BEL_event_diplomatic.32.t
	desc = ww_BEL_event_diplomatic.32.desc
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	option = { #Woop
		name = ww_BEL_event_diplomatic.32.a
		ai_chance = {
			base = 10
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		uncomplete_national_focus = {
			focus = BEL_join_axis
			uncomplete_children = yes
		}

		set_country_flag = BEL_tried_to_join_the_axis_flag
	}
}

country_event = { #To BEL: break neutrality or not
	id = ww_BEL_event_diplomatic.33
	title = ww_BEL_event_diplomatic.33.t
	desc = ww_BEL_event_diplomatic.33.desc
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	option = { #break neutrality
		name = ww_BEL_event_diplomatic.33.a
		ai_chance = {
			base = 6
		}

		remove_dynamic_modifier = {	modifier = BEL_neutrality_dynamic_modifier }
	}

	option = { #keep it
		name = ww_BEL_event_diplomatic.33.b
		ai_chance = {
			base = 4
		}

		add_ideas = BEL_volunteer_effort2_ns
	}
}

country_event = { #To BEL: How do we regard France
	id = ww_BEL_event_diplomatic.34
	title = ww_BEL_event_diplomatic.34.t
	desc = ww_BEL_event_diplomatic.34.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #friend
		name = ww_BEL_event_diplomatic.34.a
		ai_chance = {
			base = 6
			modifier = {
				factor = 10
				has_government = ROOT
			}
		}

		FRA = {
			country_event = {
				id = ww_BEL_event_diplomatic.35
				hours = 6
			}
		}
	}

	option = { #foe
		name = ww_BEL_event_diplomatic.34.b
		ai_chance = {
			base = 4
			modifier = {
				factor = 0.1
				has_opinion = {
					target = FRA
					value < 0
				}
			}
		}

		IF = {
			limit = {
				980 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 9444
					}
				}
			}

			980 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = 9444
				}
			}
			
		}

		IF = {
			limit = {
				980 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 9418
					}
				}
			}

			980 = {
				add_building_construction = {
				type = bunker
				level = 1
				instant_build = yes
				province = 9418
			}
			}
			
		}

		IF = {
			limit = {
				34 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 9536
					}
				}
			}

			34 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = 9536
				}
			}
			
		}

		IF = {
			limit = {
				34 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 13081
					}
				}
			}

			34 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = 13081
				}
			}
			
		}

		IF = {
			limit = {
				6 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 6446
					}
				}
			}

			6 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = 6446
				}
			}
		}

		IF = {
			limit = {
				6 = {
					free_building_slots = {
						building = bunker
						size > 0
						province = 3576
					}
				}
			}

			6 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = 3576
				}
			}
		}
	}
}

country_event = { #To FRA: BEL wants to be friends
	id = ww_BEL_event_diplomatic.35
	title = ww_BEL_event_diplomatic.35.t
	desc = ww_BEL_event_diplomatic.35.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #sure!
		name = ww_BEL_event_diplomatic.35.a
		ai_chance = {
			base = 6
			modifier = {
				factor = 10
				has_government = ROOT
			}
		}

		diplomatic_relation = { 
			country = FROM 
			relation = non_aggression_pact 
			active = yes
		}

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}

			add_equipment_subsidy = {
				cic = 1500 
				equipment_type = infantry_equipment
				seller_tags = { FROM }
			}

			FROM = {
				add_equipment_subsidy = {
					cic = 1500 
					equipment_type = light_tank_chassis
					seller_tags = { ROOT } 
				}
			}

			hidden_effect = {
				FROM = {
					country_event = {
						id = ww_BEL_event_diplomatic.36
						hours = 6
					}
				}
			}	
		}
	}

	option = { #nah
		name = ww_BEL_event_diplomatic.35.b
		ai_chance = {
			base = 4
			modifier = {
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		FROM = {
			country_event = {
				id = ww_BEL_event_diplomatic.37
				hours = 6
			}
		}
	}
}

country_event = { #To BEL: FRA accepts
	id = ww_BEL_event_diplomatic.36
	title = ww_BEL_event_diplomatic.36.t
	desc = ww_BEL_event_diplomatic.36.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #woop
		name = ww_BEL_event_diplomatic.36.a
		ai_chance = {
			base = 6
		}

		event_option_tooltip = ww_BEL_event_diplomatic.35.a
	}
}

country_event = { #To BEL: FRA rejects
	id = ww_BEL_event_diplomatic.37
	title = ww_BEL_event_diplomatic.37.t
	desc = ww_BEL_event_diplomatic.37.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #darn
		name = ww_BEL_event_diplomatic.37.a
		ai_chance = {
			base = 6
		}
		
	}
}

#### WAR EVENTS ####

#Relocate Air Production

country_event = {
    id = ww_BEL_event_war.1
    title = ww_BEL_event_war.1.t
    desc = ww_BEL_event_war.1.desc
    picture = GFX_report_event_generic_factory
 
    fire_only_once = yes
 
    trigger = {
        original_tag = BEL
        has_completed_focus = BEL_relocate_air_production
        has_war = yes
    }

    mean_time_to_happen = {
        days = 7
    }

    option = {
        name = ww_BEL_event_war.1.a
        add_offsite_building = { 
        	type = arms_factory
        	level = 2 
        }
    }
}

### King Surrenders - Belgium at war with Major

#Unknown Sympathies - Warning that you may capitulate because of the King
country_event = {
    id = ww_BEL_event_war.2
    title = ww_BEL_event_war.2.t
    desc = ww_BEL_event_war.2.desc
    picture = GFX_report_event_BEL_leopold
 
    fire_only_once = yes
 
    is_triggered_only = yes

    option = {
        name = ww_BEL_event_war.2.a
        custom_effect_tooltip = BEL_unknown_sympathies_tt
        add_war_support = 0.1
    }
}

#The King's Surrender - Choice of whether to capitulate or not.
country_event = {
    id = ww_BEL_event_war.3
    title = ww_BEL_event_war.3.t
    desc = ww_BEL_event_war.3.desc
    picture = GFX_report_event_spr_civil_war_faction_defeated
 
    fire_only_once = yes
 
	is_triggered_only = yes

    mean_time_to_happen = {
        days = 1
    }

    option = { #It is the King's Will - Capitulate (End)
        name = ww_BEL_event_war.3.a

		ai_chance = {
			base = 25
			modifier = {
				factor = 100
				GER = { is_ai = yes }
			}
			modifier = {
				factor = 0
				GER = { is_ai = no }
			}
		}

        hidden_effect = {
        	add_timed_idea = { 
        		idea = BEL_surrender_ns
        		days = 14
    		}
    		set_country_flag = BEL_king_surrendered_flag
        }
        custom_effect_tooltip = BEL_surrender_tt 
        complete_national_focus = BEL_the_king_surrenders
    }

    option = { #We will fight on! 
        name = ww_BEL_event_war.3.b

		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				OR = {
					BEL_defensive_democrat_ai = yes
				}
			}
		}

        add_timed_idea = { idea = BEL_the_kings_surrender_ns days = 30 }

    }

    option = { #Fascist - Arrest the king!
        name = ww_BEL_event_war.3.c

		ai_chance = {
			base = 5000
			modifier = {
				factor = 100
				OR = {
					BEL_nationalist_fascist_ai = yes
					BEL_expansionist_fascist_ai = yes
				}
			}
		}

    	if = {
		limit = {
			has_government = fascism
		}
		add_stability = -0.15
    		add_war_support = -0.05
	}

    	else_if = {
		limit = {
			NOT = { has_government = fascism }
		}
		add_stability = -1.00
    		add_war_support = 0.50

        	add_country_leader_role = {
            		character = BEL_charles_count_of_flanders_person
            		promote_leader = yes
            		country_leader = {
                		ideology = conservatism
                		expire = "1965.1.1.1"
                		traits = { BEL_royal_regent }
           	 	}
        	}
	}
	if = {
		limit = {
			has_government = fascism
		}
    		country_event = { 
	    		id = ww_BEL_event_war.4 
	    		days = 14
    		}
	}

	}
}

#Royal Prisoner - Choice who should replace Leopold.
country_event = {
    id = ww_BEL_event_war.4
    title = ww_BEL_event_war.4.t
    desc = ww_BEL_event_war.4.desc
    picture = GFX_report_event_BEL_leopold
 
    fire_only_once = yes
 
	is_triggered_only = yes

    option = {
	trigger = { has_government = fascism }
        name = ww_BEL_event_war.4.a

        swap_ruler_traits = { 
        	remove = BEL_belgian_inquisitor
        	add = BEL_belgian_fuhrer
    	}
    	hidden_effect =  {
    		clr_country_flag = BEL_leopold_flag
    	}
    }

    option = {
        name = ww_BEL_event_war.4.b
	trigger = { has_government = fascism }

        add_country_leader_role = {
            character = BEL_charles_count_of_flanders_person
            promote_leader = yes
            country_leader = {
                ideology = fascism_ideology
                expire = "1965.1.1.1"
                traits = { BEL_royal_regent }
            }
        }
    	clr_country_flag = BEL_leopold_flag
    }

    option = {
        name = ww_BEL_event_war.4.b
	trigger = { has_government = democratic }

        add_country_leader_role = {
            character = BEL_charles_count_of_flanders_person
            promote_leader = yes
            country_leader = {
                ideology = conservatism
                expire = "1965.1.1.1"
                traits = { BEL_royal_regent }
            }
        }
    }
}

#The King's Surrender - Trigger via capitulation
country_event = {
    id = ww_BEL_event_war.5
    title = ww_BEL_event_war.5.t
    desc = ww_BEL_event_war.5.desc
    picture = GFX_report_event_spr_civil_war_faction_defeated
 
    fire_only_once = yes
 
    trigger = {
		has_capitulated = yes
		has_country_flag = BEL_leopold_flag
		NOT = {
			has_country_flag = BEL_king_surrendered_flag
		}
    }

    mean_time_to_happen = {
        days = 1
    }

    option = {
        name = ww_BEL_event_war.5.a
        complete_national_focus = BEL_the_king_surrenders
    }
}

# Belgiums demands special treatment (-_-)ゞ゛ - Event for any occupier of Belgium
country_event = {
    id = ww_BEL_event_war.6
    title = ww_BEL_event_war.6.t
    desc = ww_BEL_event_war.6.desc
    picture = GFX_report_event_journalists_speech
 
    fire_only_once = no

    is_triggered_only = yes

    # Sure why not apply the thing
    option = {
        name = ww_BEL_event_war.6.a
        
        set_occupation_law_where_available = secretaries_general # Set law in all countries/states where it's available.
        custom_effect_tooltip = BEL_set_secretaries_general_tt

    }

    # Sure why not but we wont use it 
    option = {
        name = ww_BEL_event_war.6.b

        custom_effect_tooltip = BEL_available_secretaries_general_tt
       	
    }

    # We just don't care actually... 
    option = {
        name = ww_BEL_event_war.6.c

        hidden_effect = {
        	BEL = {
	        	add_offsite_building = { 
					type = industrial_complex
					level = -2 
				}
			}
		}

		set_global_flag = BEL_no_secretaries_general
		custom_effect_tooltip = BEL_no_secretaries_general_tt      
		BEL = { custom_effect_tooltip = BEL_remove_secretaries_general_civs_tt } 
    }
}


# Sue for peace with Belgium? - Event for France (seems like Belgium?)
country_event = {
    id = ww_BEL_event_war.7
    title = ww_BEL_event_war.7.t
    desc = ww_BEL_event_war.7.desc
    picture = GFX_report_event_german_parade_paris
 
    fire_only_once = yes

    trigger = {
    	original_tag = BEL
    	
    	NOT = {
    		has_global_flag = FRA_and_BEL_already_sought_peace_flag
    	}

    	has_war_with = FRA

    	is_subject = no

    	has_completed_focus = BEL_demand_calais

    	has_dlc = "Gotterdammerung"
    }

    mean_time_to_happen = { days = 1 }

    hidden = no

    # Okies (We need to take Paris)
    option = {
        name = ww_BEL_event_war.7.a
    }
}

# Sue for peace with Belgium? - Event for France
country_event = {
    id = ww_BEL_event_war.8
    title = ww_BEL_event_war.8.t
    desc = ww_BEL_event_war.8.desc
    picture = GFX_report_event_german_parade_paris
 
    fire_only_once = yes

    is_triggered_only = yes

    immediate = {
    	set_global_flag = FRA_and_BEL_already_sought_peace_flag  
    }

    # We should sue for peace
    option = {
        name = ww_BEL_event_war.8.a
        
        every_country = {
        	limit = {
        		original_tag = BEL
        		has_war_with = ROOT
        	}
        	country_event = {
        		id = ww_BEL_event_war.9
        		hours = 6
        	}	
        }
        effect_tooltip = {
        	29 = {
        		transfer_state_to = BEL
        	}

        	BEL = {
        		add_political_power = 100
        	}

        	every_country = {
        		limit = {
        			OR = {
        				original_tag = FRA
        				is_in_faction_with = FRA
        				is_subject_of = FRA
        			}
        		}
        		white_peace = {
        			tag = BEL
        			message = treaty_of_calais
        		}
        	}
        }

    }

    # Keep fighting! 
    option = {
        name = ww_BEL_event_war.8.b
    }
}

# France actually surrenders huh - Event for Belgium
country_event = {
    id = ww_BEL_event_war.9
    title = ww_BEL_event_war.9.t
    desc = ww_BEL_event_war.9.desc
    picture = GFX_report_event_german_parade_paris
 
    fire_only_once = no

    is_triggered_only = yes

    # An acceptable deal indeed
    option = {
        name = ww_BEL_event_war.9.a
        
       	29 = {
       		transfer_state_to = ROOT
       	}

       	add_political_power = 100

       	every_country = {
       		limit = {
       			OR = {
       				original_tag = FRA
       				is_in_faction_with = FRA
       				is_subject_of = FRA
       			}
       		}
       		white_peace = {
       			tag = ROOT
       			message = treaty_of_calais
       		}
       	}

    }

    # Keep fighting! 
    option = {
        name = ww_BEL_event_war.9.b

        add_war_support = -0.05
       	
    }
}

country_event = { #Belgium controls Paris, do we sue for peace? - Event for BEL
    id = ww_BEL_event_war.10
    title = ww_BEL_event_war.10.t
    desc = ww_BEL_event_war.10.desc
    picture = GFX_report_event_polish_tanks_01
 
    fire_only_once = no

    is_triggered_only = yes

    option = { #We got what we came for
    	name = ww_BEL_event_war.10.a

    	random_country = {
    		limit = {
    			original_tag = FRA
    			has_war_with = ROOT
    		}

    		country_event = {
				id = ww_BEL_event_war.8
				hours = 6
			}
    	}

    }

    option = { #We shall have all of france!
    	name = ww_BEL_event_war.10.b
    	
    }
}

#country_event = { #Our Southern Neighbour -for BEL
#	id = ww_BEL_event_diplomatic.2
#	title = ww_BEL_event_diplomatic.2.t
#	desc = ww_BEL_event_diplomatic.2.desc
#	picture = GFX_ 
#
#	fire_only_once = yes
#
#	is_triggered_only = yes
#
#	option = { #First Option
#		name = ww_BEL_event_diplomatic.2.a
#		ai_chance = {
#			base = 10
#		}		
#		
#		hidden_effect = {
#		}
#		effect_tooltip = {
#		}
#	}
#	option = { #Second Option
#		name = ww_BEL_event_diplomatic.2.b
#		ai_chance = {
#			base = 1
#		}
#
#		hidden_effect = {
#		}
#
#		effect_tooltip = {
#		}
#	}
#}

#country_event = { #The King Surrenders -for BEL
#	id = ww_BEL_event_the_king_surrenders.1
#	title = ww_BEL_event_the_king_surrenders.1.t
#	desc = ww_BEL_event_the_king_surrenders.1.desc
#	picture = GFX_ 
#
#	fire_only_once = yes
#
#	is_triggered_only = yes
#
#	option = { #The King Surrenders - Auto Complete Focus
#		name = ww_BEL_event_the_king_surrenders.1.a
#		ai_chance = {
#			base = 10
#		}		
#		
#		hidden_effect = {
#		}
#		effect_tooltip = {
#		}
#	}
#}

############################################
###### SPANISH CW INTERACTION EVENTS #######
############################################

country_event = { #Event for SPD: BEL offers rifles
	id = ww_BEL_event_spanish_interaction.1
	title = ww_BEL_event_spanish_interaction.1.t
	desc = ww_BEL_event_spanish_interaction.1.desc
	picture = GFX_report_event_generic_rifles

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.1.a
		ai_chance = {
			base = 10
		}		
		
		add_equipment_to_stockpile = { 
			type = infantry_equipment
			amount = 2000
			producer = FROM
		}
	}
}

country_event = { #Event for BEL: what kind of equipment to give.
	id = ww_BEL_event_spanish_interaction.2
	title = ww_BEL_event_spanish_interaction.2.t
	desc = ww_BEL_event_spanish_interaction.2.desc
	picture = GFX_report_event_generic_rifles

	fire_only_once = yes

	is_triggered_only = yes

	option = { # more guns!
		name = ww_BEL_event_spanish_interaction.2.a
		ai_chance = {
			base = 10
		}		
		
		add_equipment_to_stockpile = { 
			type = infantry_equipment
			amount = -2000
			producer = ROOT
		}

		set_country_flag = BEL_offered_more_inf_equipment_flag

		random_other_country = {
			limit = {
				original_tag = SPR
				OR = {
					has_government = democratic
					has_government = communism
				}
				has_civil_war = yes
			}

			country_event = {
				id = ww_BEL_event_spanish_interaction.3
				hours = 6
			}
		}
	}

	option = { # Send support!
		name = ww_BEL_event_spanish_interaction.2.b
		ai_chance = {
			base = 5
		}

		add_equipment_to_stockpile = { 
			type = support_equipment
			amount = -1000
			producer = ROOT
		}

		set_country_flag = BEL_offered_support_equipment_flag	

		random_other_country = {
			limit = {
				original_tag = SPR
				OR = {
					has_government = democratic
					has_government = communism
				}
				has_civil_war = yes
			}

			country_event = {
				id = ww_BEL_event_spanish_interaction.3
				hours = 6
			}
		}	
	}

	option = { # BIG GUNS FOR BIG BOOMS >:D
		name = ww_BEL_event_spanish_interaction.2.c
		ai_chance = {
			base = 2
		}		
		
		add_equipment_to_stockpile = { 
			type = artillery_equipment
			amount = -200
			producer = ROOT
		}

		set_country_flag = BEL_offered_artillery_equipment_flag

		random_other_country = {
			limit = {
				original_tag = SPR
				OR = {
					has_government = democratic
					has_government = communism
				}
				has_civil_war = yes
			}

			country_event = {
				id = ww_BEL_event_spanish_interaction.3
				hours = 6
			}
		}
	}
}

country_event = { #Event for SPD: BEL offers equipment
	id = ww_BEL_event_spanish_interaction.3
	title = ww_BEL_event_spanish_interaction.3.t
	desc = ww_BEL_event_spanish_interaction.3.desc
	picture = GFX_report_event_generic_rifles

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.3.a
		ai_chance = {
			base = 10
		}	

		IF = {
			limit = {FROM = { has_country_flag = BEL_offered_more_inf_equipment_flag }}

			add_equipment_to_stockpile = { 
				type = infantry_equipment
				amount = 2000
				producer = FROM
			}
		}	
		
		ELSE_IF = {
			limit = { FROM = { has_country_flag = BEL_offered_artillery_equipment_flag } }

			add_equipment_to_stockpile = { 
				type = artillery_equipment
				amount = 200
				producer = FROM
			}
		}

		ELSE_IF = {
			limit = { FROM = { has_country_flag = BEL_offered_support_equipment_flag } }

			add_equipment_to_stockpile = { 
				type = support_equipment
				amount = 1000
				producer = FROM
			}
		}
	}
}

country_event = { #Event for SPD: BEL offers speech in our support
	id = ww_BEL_event_spanish_interaction.4
	title = ww_BEL_event_spanish_interaction.4.t
	desc = ww_BEL_event_spanish_interaction.4.desc
	picture = GFX_report_event_generic_rally

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.4.a
		ai_chance = {
			base = 10
		}		
		
		add_political_power = 150
	}
}

country_event = { #Event for SPD: BEL promotes emigration to us
	id = ww_BEL_event_spanish_interaction.5
	title = ww_BEL_event_spanish_interaction.5.t
	desc = ww_BEL_event_spanish_interaction.5.desc
	picture = GFX_report_event_generic_rally2

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.5.a
		ai_chance = {
			base = 10
		}		
		
		add_timed_idea = {
			idea = BEL_belgian_immigration_ns
			days = 365
		}
	}
}

country_event = { #Event for SPD: BEL proposes faction
	id = ww_BEL_event_spanish_interaction.6
	title = ww_BEL_event_spanish_interaction.6.t
	desc = ww_BEL_event_spanish_interaction.6.desc
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.6.a
		ai_chance = {
			base = 10
		}		
		
		FROM = {
			create_faction = BEL_SPR_alliance
			add_to_faction = ROOT
			country_event = {
				id = ww_BEL_event_spanish_interaction.7
				hours = 6
			}
		}

		add_ai_strategy = { 
			type = alliance 
			id = SPD
			value = 200
		}
	}

	option = {
		name = ww_BEL_event_spanish_interaction.6.b
		ai_chance = {
			base = 10
		}		
		
		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}
		}
	}
}

country_event = { #Event for BEL: SPD accepts
	id = ww_BEL_event_spanish_interaction.7
	title = ww_BEL_event_spanish_interaction.7.t
	desc = ww_BEL_event_spanish_interaction.7.desc
	picture = GFX_report_event_generic_sign_treaty1

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.7.a
		ai_chance = {
			base = 10
		}		
		
		effect_tooltip = {
			create_faction = BEL_SPR_alliance
			add_to_faction = FROM
		}
	}
}

country_event = { #Event for BEL: SPD rejects
	id = ww_BEL_event_spanish_interaction.8
	title = ww_BEL_event_spanish_interaction.8.t
	desc = ww_BEL_event_spanish_interaction.8.desc
	picture = GFX_report_event_generic_sign_treaty1

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.8.a
		ai_chance = {
			base = 10
		}		
		
	}
}

country_event = { #Event for SPD: BEL dismantles the faction
	id = ww_BEL_event_spanish_interaction.9
	title = ww_BEL_event_spanish_interaction.9.t
	desc = ww_BEL_event_spanish_interaction.9.desc
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes

	is_triggered_only = yes

	option = { # Great!
		name = ww_BEL_event_spanish_interaction.9.a
		ai_chance = {
			base = 10
		}		
		
	}
}

##########################
###### Misc Events #######
##########################

country_event = { #Vandervelde Dies (Prime Minister)
	id = ww_BEL_event_misc.1
	title = ww_BEL_event_misc.1.t
	desc = ww_BEL_event_misc.1.desc 
	picture = GFX_report_event_generic_funeral

	is_triggered_only = yes

	option = { #Ok!
		name = ww_BEL_event_misc.1.a
		ai_chance = {
			base = 100
		}
		add_country_leader_role = {
		    character = BEL_henri_de_man
		    promote_leader = yes
		    country_leader = {
		        ideology = socialism
		        expire = "1965.1.1.1"
		        traits = { BEL_man_with_a_plan_leader }
		    }
		}
		hidden_effect = {
			add_country_leader_role = {
			    character = BEL_henri_de_man
			    promote_leader = yes
			    country_leader = {
			        ideology = marxism
			        expire = "1965.1.1.1"
			        traits = { BEL_man_with_a_plan_leader }
			    }
			}
		}
		add_stability = -0.05
	}
}


country_event = { #Tintin
	id = ww_BEL_event_misc.2
	title = ww_BEL_event_misc.2.t
	desc = ww_BEL_event_misc.2.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #Ok!
		name = ww_BEL_event_misc.2.a
		ai_chance = {
			base = 100
		}
	}
}

country_event = { #Cockerill
	id = ww_BEL_event_misc.3
	title = ww_BEL_event_misc.3.t
	desc = ww_BEL_event_misc.3.desc 
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Ok!
		name = ww_BEL_event_misc.3.a
		ai_chance = {
			base = 100
		}
	}
}