add_namespace = luxemburg

###lux_invest_in_cze
country_event = { #germany demands sudet (luxemburg edition)
	id = luxemburg.1
    title = luxemburg.1.t
    desc = luxemburg.1.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #demand cze
		name = luxemburg.1.a
		
		CZE = { country_event = { hours = 2 id = luxemburg.2} }
	}
	
	option = { #gain wargoal
		name = luxemburg.1.b
	}
}

country_event = { #CZE recives german ultimatum
	id = luxemburg.2
    title = luxemburg.2.t
    desc = luxemburg.2.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #deny
		name = luxemburg.2.a
		
		GER = { country_event = { hours = 2 id = luxemburg.3} }
	}
	
	option = { #accept
		name = luxemburg.2.b
		ai_chance = {
			base = 0
		}
		
		GER = { }
	}
}

country_event = { #CZE denies
	id = luxemburg.3
    title = luxemburg.3.t
    desc = luxemburg.3.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.3.a
		
		GER = {
			create_wargoal = {
				type = take_state_focus
				target = CZE
				generator = { 123 321 }
				expire = 0
			}
		}
		
		LUX = { country_event = { hours = 2 id = luxemburg.5 } }
	}
	
}

country_event = { #CZE accepts
	id = luxemburg.4
    title = luxemburg.4.t
    desc = luxemburg.4.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.4.a
		
		GER = { country_event = { hours = 2 id = germany.49 } }
		LUX = { country_event = { hours = 2 id = luxemburg.6 } }
	}
	
}

country_event = { #LUX watches situation in CZE
	id = luxemburg.5
    title = luxemburg.5.t
    desc = luxemburg.5.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.5.a
	}
	
}

country_event = { #LUX watches situation in CZE
	id = luxemburg.6
    title = luxemburg.6.t
    desc = luxemburg.6.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.6.a
	}
	
}


###Austria
country_event = { #Austrian industry arrives to neighbors
	id = luxemburg.7
    title = luxemburg.7.t
    desc = luxemburg.7.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.7.a
		trigger = { NOT = { TAG = LUX } }
		random_owned_controlled_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex 
				level = 1
				instant_build = yes
			}
		}
	}
	
	option = {
		name = luxemburg.7.b
		trigger = { TAG = LUX }
		
		48 = {
			add_building_construction = {
				add_extra_state_shared_building_slots = 1
				type = industrial_complex 
				level = 1
				instant_build = yes
			}
		}
	}
	
}

###urbanize_lux
country_event = {
	id = luxemburg.8
    title = luxemburg.8.t
    desc = luxemburg.8.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.8.a
	}
	
}

country_event = {
	id = luxemburg.9
    title = luxemburg.9.t
    desc = luxemburg.9.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.9.a
	}
	
}

country_event = {
	id = luxemburg.10
    title = luxemburg.10.t
    desc = luxemburg.10.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.10.a
	}
	
}

country_event = {
	id = luxemburg.11
    title = luxemburg.11.t
    desc = luxemburg.11.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.11.a
	}
	
}

country_event = {
	id = luxemburg.12
    title = luxemburg.12.t
    desc = luxemburg.12.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.12.a
	}
	
}

country_event = {
	id = luxemburg.12
    title = luxemburg.12.t
    desc = luxemburg.12.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.12.a
	}
	
}

country_event = {
	id = luxemburg.13
    title = luxemburg.13.t
    desc = luxemburg.13.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #help denmark
		name = luxemburg.13.a
		DEN = {
			remove_ideas = grc_failed_bop
			country_event = { id = luxemburg.14 }
			
			99 = {
				add_building_construction = {
					type = bunker
					level = 10
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border_country = GER
					}
				}
			}
			911 = {
				add_building_construction = {
					type = coastal_bunker 
					level = 10
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border_country = GER
					}
				}
			}

		}
		
		LUX = {
			add_political_power = -300
		}
	}
	
	option = { #
		name = luxemburg.13.b
	}
	
}

country_event = {
	id = luxemburg.14
    title = luxemburg.14.t
    desc = luxemburg.14.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.14.a
	}
	
}

country_event = {
	id = luxemburg.15
    title = luxemburg.15.t
    desc = luxemburg.15.d
    picture = GFX_report_event_usa_election_generic
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #landon
		name = luxemburg.15.a
		USA = {
			set_party_name = { ideology = democratic long_name = USA_republican_party name = USA_republican_party }
			create_country_leader = {
				name = "Alf Landon"
				desc = "POLITICS_ALF_LANDON_DESC"
				picture = GFX_portrait_Alf_Landon
				expire = "1965.1.1"
				ideology = conservatism
				traits = {
					staunch_constitutionalist
				}
			}
			if = {
				limit = {
					NOT = { has_idea = standard_oil_california }
				}
				add_ideas = standard_oil_california
			}
		}
	}
	
	option = { #willkies
		name = luxemburg.15.b
		USA = {
			set_party_name = { ideology = democratic long_name = USA_republican_party name = USA_republican_party }
			create_country_leader = {
				name = "Wendell Wilkie"
				desc = "POLITICS_WENDELL_WILKIE_DESC"
				picture = GFX_portrait_Wendell_Wilkie
				expire = "1965.1.1"
				ideology = liberalism
				traits = {
					
				}
			}
			if = {
				limit = { has_idea = new_deal }
				remove_ideas = new_deal
			}
			add_ideas = wilkies_new_deal
		}
	}
	
	option = { #dewey
		name = luxemburg.15.c
	
		USA = {
			set_party_name = { ideology = democratic long_name = USA_republican_party name = USA_republican_party }
			create_country_leader = {
				name = "Thomas E. Dewey"
				desc = "POLITICS_THOMAS_DEWEY_DESC"
				picture = GFX_portrait_Thomas_E_Dewey
				expire = "1965.1.1"
				ideology = conservatism
				traits = {
					
				}
			}
		}
	}
	
	option = { #macarthur
		name = luxemburg.15.e
	
		USA = {
			set_party_name = { ideology = democratic long_name = USA_republican_party name = USA_republican_party }
			create_country_leader = {
				name = "Douglas MacArthur"
				desc = "POLITICS_DOUGLAS_MACARTHUR_DESC"
				picture = GFX_portrait_Douglas_MacArthur
				expire = "1965.1.1"
				ideology = conservatism
				traits = {
					
				}
			}
		}
	}
	
}

country_event = {
	id = luxemburg.16
    title = luxemburg.16.t
    desc = luxemburg.16.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #
		name = luxemburg.16.a 
		FRA = {
			add_popularity = {
				ideology = communism
				popularity = 0.2
			}
			set_politics = {
				ruling_party = communism
			}
		}
	}
	
	option = { #
		name = luxemburg.16.b
		FRA = {
			add_popularity = {
				ideology = communism
				popularity = -0.2
			}
			if = {
				limit = { has_government = communism }
				set_politics = {
					ruling_party = democratic
				}
			}
			
		}
	}
	
}

country_event = {
	id = luxemburg.17
    title = luxemburg.17.t
    desc = luxemburg.17.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.17.a 
	}
	
	option = {
		name = luxemburg.17.b
	}
	
}

country_event = {
	id = luxemburg.18
    title = luxemburg.18.t
    desc = luxemburg.18.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.18.a 
	}
	
	option = {
		name = luxemburg.18.b
	}
	
}

country_event = {
	id = luxemburg.19
    title = luxemburg.19.t
    desc = luxemburg.19.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.19.a 
	}
	
	option = {
		name = luxemburg.19.b
	}
	
}

country_event = {
	id = luxemburg.20
    title = luxemburg.20.t
    desc = luxemburg.20.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = {
		name = luxemburg.20.a 
	}
	
	option = {
		name = luxemburg.20.b
	}
	
}

country_event = { #lux_invest_in_maginot
	id = luxemburg.21
    title = luxemburg.21.t
    desc = luxemburg.21.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	
	option = { #ally belgium
		name = luxemburg.21.a 
		FRA = {
			set_country_flag = puppeted_bel
			unlock_national_focus = FRA_extend_the_maginot_line
			puppet = BEL
		}
		6 = {
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = HOL
				}
			}
		}
		34 = {
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = HOL
				}
			}
		}
		
	}
	
	option = { #split belgium
		name = luxemburg.21.b
		BEL = {
			transfer_units_fraction = {
				target = HOL
				size = 0.5
				stockpile_ratio = 0.5
			}
		}
		HOL = {
			transfer_state = 6
			add_state_core = 6
		}
		FRA = {
			transfer_state = 34
			add_state_core = 34
			unlock_national_focus = FRA_extend_the_maginot_line
			annex_country = {
				target = BEL
				transfer_troops = yes
			}
		}
		34 = {
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = HOL
				}
			}
		}
		29 = {
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = HOL
				}
			}
		}
	}
	
	option = { #fortify only france
		name = luxemburg.21.c
		FRA = { complete_national_focus = FRA_extend_the_maginot_line }
		#18 = { }
		#785 = { }
		#29 = { }
	}
	
	option = { #fortify benilux
		name = luxemburg.21.e
		trigger = {
			OR = { 
				AND = {
					owns_state = 34
					owns_state = 35
					owns_state = 6
				}
				has_completed_focus = lux_puppet_benilux
			}
			NOT = {
				GER = {
					OR = {
						controls_state = 34
						controls_state = 35
						controls_state = 36
					}
				}
			}
		}
		FRA = { unlock_national_focus = FRA_extend_the_maginot_line }
		
		34 = { #wallony
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = GER
				}
			}
		}
		35 = { #brabant
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					all_provinces = yes
				}
			}
		}
		7 = { #amsterdam
			add_building_construction = {
				type = bunker
				level = 5
				instant_build = yes
				province = {
					id = 9498
				}
			}
		}
		8 = {
			add_building_construction = {
				type = bunker
				level = 10
				instant_build = yes
				province = {
					all_provinces = yes
					limit_to_border = yes
					limit_to_border_country = GER
				}
			}
		}
	}
	
}

news_event = {
	id = luxemburg.22
    title = luxemburg.22.t
    desc = luxemburg.22.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	major = yes
	
	option = {
		name = luxemburg.22.a 
	}
	
}

news_event = {
	id = luxemburg.23
    title = luxemburg.23.t
    desc = luxemburg.23.d
    picture = GFX_report_event_generic_sign_treaty2
	fire_only_once = no
    is_triggered_only = yes
	major = yes
	
	option = {
		name = luxemburg.23.a 
		puppet = HOL
		set_autonomy = {
			target = HOL
			autonomous_state = integrated_puppet
		}
		puppet = BEL
		set_autonomy = {
			target = BEL
			autonomous_state = integrated_puppet
		}
		
	}
	
	option = {
		name = luxemburg.23.b 
		annex_country = {
				target = HOL
				transfer_troops = yes
			}
		annex_country = {
				target = BEL
				transfer_troops = yes
			}
			
		#decision form_united_netherlands_category 
		set_cosmetic_tag = UNL_UNIFIED
			8 = { add_core_of = ROOT }
			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt
			hidden_effect = {
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
			}
			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.58 hours = 6 }
				set_global_flag = form_united_netherlands_flag
			}
	}
	
	option = {
		name = luxemburg.23.c 
		LUX = {
			add_state_core = 6
			add_state_core = 7
			add_state_core = 35
			add_state_core = 36
			add_state_core = 37
		}
		annex_country = {
				target = HOL
				transfer_troops = yes
			}
		annex_country = {
				target = BEL
				transfer_troops = yes
			}
	}
	
	option = {
		name = luxemburg.23.e
		
		add_political_power = 100
		add_stability = 0.1
	}
	
}