##############################
##############################
##### WUW GERMANY EVENTS #####
##############################
##############################

add_namespace = germany_mefo_bills
add_namespace = wuw_GER_military_events
add_namespace = wuw_GER_diplomacy
add_namespace = wuw_GER_news
add_namespace = wuw_GER_releasable
add_namespace = wuw_GER_civil_war
add_namespace = wuw_GER_mutual_guarantees
add_namespace = wuw_GER_weltpolitik
add_namespace = wuw_GER_chinese_diplomacy
add_namespace = wuw_GER_monroe
add_namespace = wuw_GER_monroe_news
add_namespace = wuw_GER_reichskommissariats
add_namespace = wuw_GER_legions
add_namespace = wuw_GER_realpolitik
add_namespace = GOT_GER_integrated_puppet_economies
add_namespace = wuw_GER_the_battle_of_britain
add_namespace = wuw_GER_uncertain_future
add_namespace = wuw_GER_german_politics
add_namespace = GER_operation_panzerfaust_events
add_namespace = GOT_GER_amerikabomber
add_namespace = GOT_GER_fading_eagle

#### INNER CIRCLE ###
add_namespace = GER_inner_circle
add_namespace = GER_inner_circle_todt
add_namespace = GER_inner_circle_speer
add_namespace = GER_inner_circle_goring
add_namespace = GER_inner_circle_himmler
add_namespace = GER_inner_circle_goebbels
add_namespace = GER_inner_circle_hess
add_namespace = GER_inner_circle_bormann




country_event = { #MEFO Bills have been cancelled
	id = germany_mefo_bills.1
	title = germany_mefo_bills.1.t
	desc = germany_mefo_bills.1.desc
	picture = GFX_report_event_tank_factory

	fire_only_once = yes

	is_triggered_only = yes

	option = { #Continue to rearm - get Economy of Conquest
		name = germany_mefo_bills.1.a
		ai_chance = {
			base = 10
		}		
		
		custom_effect_tooltip = GER_replace_mefo_with_economy_of_conquest_tt
		hidden_effect = {
			remove_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
			add_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
		}
		#effect_tooltip = {
		#	custom_effect_tooltip = GER_industrial_consumer_goods_factor_tt
		#	set_variable = { 
		#		GER_industrial_consumer_goods_factor = GER_industrial_consumer_goods_factor
		#		tooltip = consumer_goods_factor_tt
		#	}
		#}
		add_to_variable = {
			GER_mefo_bills_civilian_intel_to_others = 0.25
			tooltip = civilian_intel_to_others_tt
		}
		add_to_variable = {
			GER_mefo_bills_army_intel_to_others = 0.25
			tooltip = army_intel_to_others_tt
		}
		add_to_variable = {
			GER_mefo_bills_navy_intel_to_others = 0.25
			tooltip = navy_intel_to_others_tt
		}
		add_to_variable = {
			GER_mefo_bills_airforce_intel_to_others = 0.25
			tooltip = airforce_intel_to_others_tt
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = GER_unlock_seize_gold_reserves_tt	
		
		custom_effect_tooltip = generic_skip_one_line_tt

		effect_tooltip = {
			retire_character = GER_hjalmar_schacht
			show_ideas_tooltip = hjalmar_schacht
		}
	}
	option = { #Stop rearmaming and receive Recovering Economy or Wirtschaftswunder
		name = germany_mefo_bills.1.b
		ai_chance = {
			base = 0
		}
		GER_stop_rearmament = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		effect_tooltip = {
			retire_character = GER_hjalmar_schacht
			show_ideas_tooltip = hjalmar_schacht
		}
	}
}

country_event = { #MEFO Bills are getting a bit expensive and players must be warned, but nothing too urgent
	id = germany_mefo_bills.2
	title = germany_mefo_bills.2.t
	desc = germany_mefo_bills.2.desc
	picture = GFX_report_event_tank_factory

	fire_only_once = yes

	trigger = {
		original_tag = GER
		OR = {
			has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
			has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
		}
		check_variable = { GER_industrial_consumer_goods_factor > 0.245 }
	}

	option = { 
		name = germany_mefo_bills.2.a

		custom_effect_tooltip = GER_mefo_bills_warning_tt
			
	}
}

country_event = { #MEFO Bills are getting expensive and players must be warned, you might want to keep an eye on them
	id = germany_mefo_bills.3
	title = germany_mefo_bills.3.t
	desc = germany_mefo_bills.3.desc
	picture = GFX_report_event_tank_factory

	fire_only_once = yes

	trigger = {
		original_tag = GER
		OR = {
			has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
			has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
		}
		check_variable = { GER_industrial_consumer_goods_factor > 0.495 }
	}

	option = { 
		name = germany_mefo_bills.3.a

		custom_effect_tooltip = GER_mefo_bills_warning_tt
			
	}
}

country_event = { #MEFO Bills have gotten real expensive and players must be warned, the economy is tanking!
	id = germany_mefo_bills.4
	title = germany_mefo_bills.4.t
	desc = germany_mefo_bills.4.desc
	picture = GFX_report_event_tank_factory

	fire_only_once = yes

	trigger = {
		original_tag = GER
		OR = {
			has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
			has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
		}
		check_variable = { var = GER_industrial_consumer_goods_factor value = 1 compare = greater_than_or_equals }
	}

	option = { 
		name = germany_mefo_bills.4.a

		custom_effect_tooltip = GER_mefo_bills_warning_tt
			
	}
}

#### MILITARY EVENTS ####
country_event = { #clear country flag so we can do more Operational Planning
	id = wuw_GER_military_events.1

	hidden = yes

	is_triggered_only = yes

	immediate = {
		clr_country_flag = GER_operational_planning_flag
	}
}

country_event = { #Charlie Brown and Franz Stigler incident (GER)
	id = wuw_GER_military_events.2
	title = wuw_GER_military_events.2.t
	desc = wuw_GER_military_events.2.desc
	picture = GFX_report_event_fighters

	fire_only_once = yes

	trigger = {
		date > 1943.12.20
		original_tag = GER
		has_government = fascism
		any_country = {
			original_tag = USA
			has_government = democratic
			has_war_with = ROOT
			has_deployed_air_force_size = {
				size > 0
				type = strategic_bomber
			}
		}
	}

	option = { #A hero through and through
		name = wuw_GER_military_events.2.a
		ai_chance = {
			base = 10
		}	

		add_ace = {
			name = Franz
			surname = Stigler
			callsign = "Kugel" #Made up. means "bullet" in German... none of which flew :D
			type = fighter_unique
		}

		add_war_support = 0.03

		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}	
	}

	option = { #Make an example of him for defying us
		name = wuw_GER_military_events.2.b
		ai_chance = {
			base = 20
		}

		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}	

		add_war_support = 0.03	
	}

	option = { #Silence this situation! The troops cannot know
		name = wuw_GER_military_events.2.c
		ai_chance = {
			base = 10
			modifier = { #historically this was silenced
				factor = 10
				is_historical_focus_on = yes
			}
		}		
	}
}

#### DIPLOMACY AND TRADE EVENTS ####
#German Trade Event
country_event = { 
	id = wuw_GER_diplomacy.1
	title = wuw_GER_diplomacy.1.t
	desc = AAT_germany.1.desc #Intentional
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Accepts
		name = wuw_GER_diplomacy.1.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				industrial_complex < 15
			}
		}		
		effect_tooltip = {
			ROOT = {
				add_ideas = GER_german_trade_ns
				add_opinion_modifier = {
					target = FROM
					modifier = GER_trading_partners
				}
			}
		}
		if = {
			limit = {
				original_tag = HOL
				has_country_flag = GER_trading_proposal_flag
			}
			effect_tooltip = {
				INS = {
					add_ideas = GER_german_trade_ns

					add_opinion_modifier = {
						target = FROM
						modifier = GER_trading_partners
					}
				}
			}
		}
		if = {
			limit = {
				original_tag = BEL
				has_country_flag = GER_trading_proposal_flag
			}
			effect_tooltip = {
				COG = {
					add_ideas = GER_german_trade_ns

					add_opinion_modifier = {
						target = FROM
						modifier = GER_trading_partners
					}
				}
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
		FROM = {
			country_event = { id = wuw_GER_diplomacy.2 hours = 5 random_hours = 5 }
		}
	}

	option = { #Rejects
		name = wuw_GER_diplomacy.1.b
		ai_chance = {
			base = 1
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -29
				}
			}
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -49
				}
			}
			modifier = {
				add = 20
				FROM = {
					has_added_tension_amount > 15
				}
			}
		}		
		FROM = {
			country_event = { id = wuw_GER_diplomacy.3 hours = 5 random_hours = 5 }
		}
	}
}
country_event = { #FROM accepts our trade deal
	id = wuw_GER_diplomacy.2
	title = wuw_GER_diplomacy.2.t
	desc = wuw_GER_diplomacy.2.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Good!
		name = wuw_GER_diplomacy.1.a #Intentional 
		FROM = {
			add_ideas = GER_german_trade_ns
			add_opinion_modifier = {
				target = PREV
				modifier = GER_trading_partners
			}
			set_country_flag = GER_getting_offshore_civ_flag
		}
		if = {
			limit = {
				FROM = {
					original_tag = HOL
					has_country_flag = GER_trading_proposal_flag
				}
			}
			INS = {
				add_ideas = GER_german_trade_ns
				add_opinion_modifier = {
					target = GER
					modifier = GER_trading_partners
				}
			}
		}
		if = {
			limit = {
				FROM = {
					original_tag = BEL
					has_country_flag = GER_trading_proposal_flag
				}
			}
			COG = {
				add_ideas = GER_german_trade_ns
				add_opinion_modifier = {
					target = GER
					modifier = GER_trading_partners
				}
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
		hidden_effect = {
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}
}
country_event = { #FROM rejects our trade deal
	id = wuw_GER_diplomacy.3
	title = wuw_GER_diplomacy.3.t
	desc = wuw_GER_diplomacy.3.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Too bad for them...
		name = wuw_GER_diplomacy.3.a	
	}
}

#Germany is influencing other countries
country_event = {
	id = wuw_GER_diplomacy.10
	title = generic.1.t #Intentional
	desc = { #Intentional
		text = generic.1.d_neutral_good
		trigger = {
			has_government = FROM
		}
	}
	desc = { #Intentional
		text = generic.1.d_bad
		trigger = {
			NOT = { has_government = FROM }
		}
	}
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #Very well....
		name = wuw_GER_diplomacy.10.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 1.5
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 1.5
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 1
				}
			}
			modifier = {
				factor = 0
				is_major = yes
			}
		}

		IF = {
			limit = {
				FROM = {
					has_government = fascism
				}
			}
			add_timed_idea = {
				idea = GER_fascism_influence
				days = 730
			}
		}		
		ELSE_IF = {
			limit = {
				FROM = {
					has_government = democratic
				}
			}
			add_timed_idea = {
				idea = GER_democratic_influence
				days = 730
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					has_government = neutrality
				}
			}
			add_timed_idea = {
				idea = GER_neutrality_influence
				days = 730
			}
		}

		if = {
			limit = {
				original_tag = CZE
				has_country_flag = GER_influencing_CZE_flag
			}
			add_opinion_modifier = { target = GER modifier = ger_cze_diplomatic_focus }
			clr_country_flag = GER_influencing_CZE_flag
		}
		else = {
			add_opinion_modifier = { 
				target = GER 
				modifier = GER_german_influence
			}
		}

	}

	option = { #How dare they?!
		name = wuw_GER_diplomacy.10.b
		ai_chance = {
			base = 1
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -29
				}
			}
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -49
				}
			}
		}

		add_political_power = -25
		
		FROM = {
			country_event = { id = wuw_GER_diplomacy.11 hours = 5 random_hours = 5 }
		}
	}
}
country_event = { #FROM has foiled our influencing efforts
	id = wuw_GER_diplomacy.11
	title = wuw_GER_diplomacy.11.t
	desc = wuw_GER_diplomacy.11.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #How dare they?!
		name = wuw_GER_diplomacy.11.a 

		effect_tooltip = {
			FROM = {
				IF = {
					limit = {
						ROOT = {
							has_government = fascism
						}
					}
					remove_ideas = {
						idea = fascist_influence
					}
				}		
				ELSE_IF = {
					limit = {
						ROOT = {
							has_government = democratic
						}
					}
					remove_ideas = {
						idea = democratic_influence
					}
				}
				ELSE_IF = {
					limit = {
						ROOT = {
							has_government = neutrality
						}
					}
					remove_ideas = {
						idea = neutrality_influence
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				remove_opinion_modifier = { 
					target = GER 
					modifier = GER_german_influence
				}
			}
		}

	}
}

#Germany invites Country to their faction
country_event = { 
	id = wuw_GER_diplomacy.20
	title = wuw_GER_diplomacy.20.t
	desc = AAT_germany.1.desc #Intentional
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Accepts
		name = wuw_GER_diplomacy.20.a
		ai_chance = {
			base = 6
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0.5
				has_civil_war = yes
			}
		}
		FROM = {
			add_to_faction = ROOT
		}
		FROM = {
			country_event = { id = wuw_GER_diplomacy.21 hours = 5 random_hours = 5 }
		}
	}

	option = { #Rejects
		name = wuw_GER_diplomacy.20.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
			modifier = {
				add = 10
				FROM = {
					has_added_tension_amount > 25
				}
			}
		}		
		FROM = {
			country_event = { id = wuw_GER_diplomacy.22 hours = 5 random_hours = 5 }
		}
	}
}
country_event = { #FROM accepts our faction invitation
	id = wuw_GER_diplomacy.21
	title = wuw_GER_diplomacy.21.t
	desc = wuw_GER_diplomacy.2.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Good!
		name = wuw_GER_diplomacy.21.a  
		effect_tooltip = {
			ROOT = {
				add_to_faction = FROM
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
	}
}
country_event = { #FROM rejects our faction invitation
	id = wuw_GER_diplomacy.22
	title = wuw_GER_diplomacy.22.t
	desc = wuw_GER_diplomacy.22.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Too bad for them...
		name = wuw_GER_diplomacy.22.a	
	}
}

country_event = { #FROM wants their old colonies back (ROOT is Japan)
	id = wuw_GER_diplomacy.23
	title = wuw_GER_diplomacy.23.t
	desc = wuw_GER_diplomacy.23.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	fire_only_once = yes

	option = { #They make a good case
		name = wuw_GER_diplomacy.23.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		IF = {
			limit = {
				684 = {
					is_fully_controlled_by = ROOT
				}
			}

			684 = { #Caroline Islands
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				647 = {
					is_fully_controlled_by = ROOT
				}
			}

			647 = { #Palau
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				646 = {
					is_fully_controlled_by = ROOT
				}
			}

			646 = { #Saipan
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				633 = {
					is_fully_controlled_by = ROOT
				}
			}

			633 = { #Marshall Islands
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				743 = {
					is_fully_controlled_by = ROOT
				}
			}

			743 = { #Qingdao
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				979 = {
					is_fully_controlled_by = ROOT
				}
			}

			979 = { #Kaiser-Wilhelmsland
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				737 = {
					is_fully_controlled_by = ROOT
				}
			}

			737 = { #Bismarck
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				726 = {
					is_fully_controlled_by = ROOT
				}
			}

			726 = { #Samoa
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				725 = {
					is_fully_controlled_by = ROOT
				}
			}

			725 = { #Nauru
				transfer_state_to = FROM
			}
		}

		IF = {
			limit = {
				634 = {
					is_fully_controlled_by = ROOT
				}
			}

			634 = { #Solomon Islands (IF Bougainville is ever added, this should be that isntead)
				transfer_state_to = FROM
			}
		}

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

			add_equipment_subsidy = {
				cic = 1000 #Amount of CIC for the subsidy. 
				equipment_type = light_tank_chassis 
				seller_tags = { FROM } 
			}
		}
		
		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = armor
		}

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

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.24
				hours = 3
			}
		}
	}

	option = { #No way.
		name = wuw_GER_diplomacy.23.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
		}

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.25
				hours = 3
			}
		}
	}
}

country_event = { #Japanese transfer of old colonies to Germany
	id = wuw_GER_diplomacy.24
	title = wuw_GER_diplomacy.24.t
	desc = wuw_GER_diplomacy.24.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes 

	fire_only_once = yes

	option ={ #GReat
		name = wuw_GER_diplomacy.24.a

		effect_tooltip = {
			IF = {
				limit = {
					684 = {
						is_fully_controlled_by = ROOT
					}
				}

				684 = { #Caroline Islands
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					647 = {
						is_fully_controlled_by = ROOT
					}
				}

				647 = { #Palau
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					646 = {
						is_fully_controlled_by = ROOT
					}
				}

				646 = { #Saipan
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					633 = {
						is_fully_controlled_by = ROOT
					}
				}

				633 = { #Marshall Islands
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					743 = {
						is_fully_controlled_by = ROOT
					}
				}

				743 = { #Qingdao
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					979 = {
						is_fully_controlled_by = ROOT
					}
				}

				979 = { #Kaiser-Wilhelmsland
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					737 = {
						is_fully_controlled_by = ROOT
					}
				}

				737 = { #Bismarck
					transfer_state_to = ROOT
				}
			}

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				FROM = {
					add_equipment_subsidy = {
						cic = 1000 #Amount of CIC for the subsidy. 
						equipment_type = light_tank_chassis 
						seller_tags = { ROOT } 
					}
				}
			}
			
			FROM = {
				add_tech_bonus = {
					bonus = 0.5
					uses = 1
					category = armor
				}
			}
			
			give_guarantee = FROM
		}
	}
}

country_event = { #Japan refuses to transfer our old colonies
	id = wuw_GER_diplomacy.25
	title = wuw_GER_diplomacy.25.t
	desc = wuw_GER_diplomacy.25.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes 

	fire_only_once = yes

	option ={ #BAKA! o_O'
		name = wuw_GER_diplomacy.25.a
	}
}

country_event = { #FROM wants a tech sharing group
	id = wuw_GER_diplomacy.26
	title = wuw_GER_diplomacy.26.t
	desc = wuw_GER_diplomacy.26.desc
	picture = GFX_report_event_merchant_ship_01

	is_triggered_only = yes

	fire_only_once = yes

	option = { #tech sharing sounds great
		name = wuw_GER_diplomacy.26.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		every_country = {
			limit = {
				OR = {
					AND = {
						original_tag = GER
						OR = {
							has_government = fascism
							has_government = neutrality	#r56 - Rt56 monarchist branch can reach this and I see no reason to block it for them
						}
					}
					AND = {
						original_tag = JAP
						has_government = fascism
					}
				}
			}
			add_to_tech_sharing_group = GER_JAP_naval_tech_sharing
		}

		add_named_threat = { 
			threat = 2
			name = GER_japanese_naval_cooperation
		}

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

	}

	option = { #NO!
		name = wuw_GER_diplomacy.26.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
		}

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

country_event = { #FROM agrees to the tech sharing group
	id = wuw_GER_diplomacy.27
	title = wuw_GER_diplomacy.27.t
	desc = wuw_GER_diplomacy.27.desc
	picture = GFX_report_event_generic_naval_treaty

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.27.a

		effect_tooltip = {
			every_country = {
				limit = {
					OR = {
						AND = {
							original_tag = GER
							has_government = fascism
						}
						AND = {
							original_tag = JAP
							has_government = fascism
						}
					}
				}
				add_to_tech_sharing_group = GER_JAP_naval_tech_sharing
			}
		}
	}
}

country_event = { #FROM rejects the tech sharing group
	id = wuw_GER_diplomacy.28
	title = wuw_GER_diplomacy.28.t
	desc = wuw_GER_diplomacy.28.desc
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.31.a #Intentional
	}
}

country_event = { #FROM suggests trade improvements
	id = wuw_GER_diplomacy.29
	title = wuw_GER_diplomacy.29.t
	desc = wuw_GER_diplomacy.29.desc
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	fire_only_once = yes

	option = { #sure
		name = wuw_GER_diplomacy.29.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		add_offsite_building = { type = arms_factory level = 2 }
		add_opinion_modifier = { target = FROM modifier = ger_chi_diplomacy_focus } 

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = GER_chi_ger_trade_ns

		FROM = {
			add_ideas = GER_ger_chi_trade_ns

			country_event = {
				id = wuw_GER_diplomacy.30
				hours = 6
			}
		}

		hidden_effect = {
			set_global_flag = CHI_has_accepted_german_overtures
		}
		
	}

	option = { #no thanks
		name = wuw_GER_diplomacy.29.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
			
		}

		FROM = { 
			country_event = {
				id = wuw_GER_diplomacy.31
				hours = 6
			}
		}
	}
}

country_event = { #FROM agrees to trade thing
	id = wuw_GER_diplomacy.30
	title = wuw_GER_diplomacy.30.t
	desc = wuw_GER_diplomacy.30.desc
	picture = GFX_report_event_generic_stock_traders

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.30.a

		effect_tooltip = {
			add_ideas = GER_chi_ger_trade_ns

			FROM = {
				add_ideas = GER_ger_chi_trade_ns
			}
		}
	}
}

country_event = { #FROM rejects trade thing
	id = wuw_GER_diplomacy.31
	title = wuw_GER_diplomacy.31.t
	desc = wuw_GER_diplomacy.31.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.31.a
	}
}

country_event = { #FROM requests Qingdao
	id = wuw_GER_diplomacy.32
	title = wuw_GER_diplomacy.32.t
	desc = wuw_GER_diplomacy.21.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes

	option = { #NO
		name = wuw_GER_diplomacy.32.a
		ai_chance = {
			base = 2
		}

		add_opinion_modifier = {
			target = FROM
			modifier = small_decrease
		}

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.33
				hours = 12
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = small_decrease
			}
		}

		effect_tooltip = {
			743 = {
				add_claim_by = FROM
			}
		}
	}

	option = { #why not
		name = wuw_GER_diplomacy.32.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		743 = {
			transfer_state_to = FROM
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_increase
		}
		give_guarantee = FROM


		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.34
				hours = 12
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}

			give_guarantee = ROOT
		}

	}
}

country_event = { #FROM rejects transferral of Qingdao
	id = wuw_GER_diplomacy.33
	title = wuw_GER_diplomacy.33.t
	desc = wuw_GER_diplomacy.33.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.33.a

		effect_tooltip = {
			add_opinion_modifier = {
				target = FROM
				modifier = small_decrease
			}

			FROM = {
				add_opinion_modifier = {
					target = FROM
					modifier = small_decrease
				}
			}
		}

		743 = {
			add_claim_by = ROOT
		}
	}
}

country_event = { #FROM transfers Qingdao
	id = wuw_GER_diplomacy.34
	title = wuw_GER_diplomacy.34.t
	desc = wuw_GER_diplomacy.34.desc
	picture = GFX_report_event_hitler_handshake # R56

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = wuw_GER_diplomacy.34.a

		effect_tooltip = {
			743 = {
				transfer_state_to = ROOT
			}

			add_opinion_modifier = {
				target = FROM
				modifier = medium_increase
			}
			give_guarantee = FROM

			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = medium_increase
				}
				give_guarantee = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		743 = {
			add_dynamic_modifier = {
				modifier = GER_qingdao_reintegrated_modifier
				days = 360
			}
		}
	}
}

country_event = { #FROM request control of state
	id = wuw_GER_diplomacy.35
	title = wuw_GER_diplomacy.35.t
	desc = wuw_GER_diplomacy.35.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #NO
		name = wuw_GER_diplomacy.35.a
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -25
				}
			}
			modifier = { 
				
				factor = 0.1
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
				
			}
		}

		effect_tooltip = {

			IF = {
				limit = {
					333 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				333 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					334 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				334 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					335 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				335 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					336 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				336 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					667 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				667 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					668 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				668 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					672 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				672 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					673 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				673 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					721 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				721 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					738 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				738 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					684 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				684 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					647 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				647 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					646 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				646 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					633 = {
						is_fully_controlled_by = ROOT
					}
				}
	
				633 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					979 = {
						is_fully_controlled_by = ROOT
					}
				}

				979 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					737 = {
						is_fully_controlled_by = ROOT
					}
				}

				737 = {
					add_claim_by = FROM
				}
			}
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}

			create_wargoal = {
				type = take_claimed_state
				target = ROOT
			}
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.36
					hours = 12
				}
			}
		}
	}

	option = { #FINE
		name = wuw_GER_diplomacy.35.b
		ai_chance = { 
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					333 = {
						is_fully_controlled_by = ROOT
					}
				}

				333 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					334 = {
						is_fully_controlled_by = ROOT
					}
				}

				334 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					335 = {
						is_fully_controlled_by = ROOT
					}
				}

				335 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					336 = {
						is_fully_controlled_by = ROOT
					}
				}

				336 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					667 = {
						is_fully_controlled_by = ROOT
					}
				}

				667 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					668 = {
						is_fully_controlled_by = ROOT
					}
				}

				668 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					672 = {
						is_fully_controlled_by = ROOT
					}
				}

				672 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					673 = {
						is_fully_controlled_by = ROOT
					}
				}

				673 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					721 = {
						is_fully_controlled_by = ROOT
					}
				}

				721 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					738 = {
						is_fully_controlled_by = ROOT
					}
				}

				738 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					684 = {
						is_fully_controlled_by = ROOT
					}
				}

				684 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					647 = {
						is_fully_controlled_by = ROOT
					}
				}

				647 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					646 = {
						is_fully_controlled_by = ROOT
					}
				}

				646 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					633 = {
						is_fully_controlled_by = ROOT
					}
				}

				633 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					979 = {
						is_fully_controlled_by = ROOT
					}
				}

				979 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					737 = {
						is_fully_controlled_by = ROOT
					}
				}

				737 = {
					transfer_state_to = FROM
				}
			}
		}
		

		FROM = {
			add_opinion_modifier = {
				target = FROM
				modifier = medium_increase
			}
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.37
					hours = 12
				}
			}
		}
	}
}

country_event = { #FROM denies control of state
	id = wuw_GER_diplomacy.36
	title = wuw_GER_diplomacy.36.t
	desc = wuw_GER_diplomacy.36.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #scheisse!
		name = wuw_GER_diplomacy.36.a

		IF = {
			limit = {
				333 = {
					is_fully_controlled_by = FROM
				}
			}

			333 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				334 = {
					is_fully_controlled_by = FROM
				}
			}

			334 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				335 = {
					is_fully_controlled_by = FROM
				}
			}

			335 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				336 = {
					is_fully_controlled_by = FROM
				}
			}

			336 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				667 = {
					is_fully_controlled_by = FROM
				}
			}

			667 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				668 = {
					is_fully_controlled_by = FROM
				}
			}

			668 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				672 = {
					is_fully_controlled_by = FROM
				}
			}

			672 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				673 = {
					is_fully_controlled_by = FROM
				}
			}

			673 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				721 = {
					is_fully_controlled_by = FROM
				}
			}

			721 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				738 = {
					is_fully_controlled_by = FROM
				}
			}

			738 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				684 = {
					is_fully_controlled_by = FROM
				}
			}

			684 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				647 = {
					is_fully_controlled_by = FROM
				}
			}

			647 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				646 = {
					is_fully_controlled_by = FROM
				}
			}

			646 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				633 = {
					is_fully_controlled_by = FROM
				}
			}

			633 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				979 = {
					is_fully_controlled_by = FROM
				}
			}

			979 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				737 = {
					is_fully_controlled_by = FROM
				}
			}

			737 = {
				add_claim_by = ROOT
			}
		}
	}
}

country_event = { #FROM accepts giving control of state
	id = wuw_GER_diplomacy.37
	title = wuw_GER_diplomacy.37.t
	desc = wuw_GER_diplomacy.37.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #wunderbar
		name = wuw_GER_diplomacy.37.a

		IF = {
			limit = {
				333 = {
					is_fully_controlled_by = FROM
				}
			}

			333 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				334 = {
					is_fully_controlled_by = FROM
				}
			}

			334 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				335 = {
					is_fully_controlled_by = FROM
				}
			}

			335 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				336 = {
					is_fully_controlled_by = FROM
				}
			}

			336 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				667 = {
					is_fully_controlled_by = FROM
				}
			}

			667 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				668 = {
					is_fully_controlled_by = FROM
				}
			}

			668 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				672 = {
					is_fully_controlled_by = FROM
				}
			}

			672 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				673 = {
					is_fully_controlled_by = FROM
				}
			}

			673 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				721 = {
					is_fully_controlled_by = FROM
				}
			}

			721 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				738 = {
					is_fully_controlled_by = FROM
				}
			}

			738 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				684 = {
					is_fully_controlled_by = FROM
				}
			}

			684 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				647 = {
					is_fully_controlled_by = FROM
				}
			}

			647 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				646 = {
					is_fully_controlled_by = FROM
				}
			}

			646 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				633 = {
					is_fully_controlled_by = FROM
				}
			}

			633 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				979 = {
					is_fully_controlled_by = FROM
				}
			}

			979 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				737 = {
					is_fully_controlled_by = FROM
				}
			}

			737 = {
				transfer_state_to = ROOT
			}
		}
	}
}

country_event = { #FROM requests their old colonies back
	id = wuw_GER_diplomacy.38
	title = wuw_GER_diplomacy.38.t
	desc = wuw_GER_diplomacy.38.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Fine
		name = wuw_GER_diplomacy.38.a

		effect_tooltip = {
			IF = {
				limit = {
					OR = {
						541 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 541
						}
						
					}
				}

				541 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						546 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 546
						}
						
					}
				}

				546 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						777 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 777
						}
						
					}
				}

				777 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						893 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 893
						}
						
					}
				}

				893 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						894 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 894
						}
						
					}
				}

				894 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						895 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 895
						}
						
					}
				}

				895 = {
					transfer_state_to = FROM
				}
			}
		}
	}
	option = { #NO
		name = wuw_GER_diplomacy.38.a
		trigger = {
			NOT = {
				ROOT = {
					is_subject_of = FROM
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					OR = {
						541 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 541
						}
						
					}
				}

				541 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						546 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 546
						}
						
					}
				}

				546 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						777 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 777
						}
						
					}
				}

				777 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						893 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 893
						}
						
					}
				}

				893 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						894 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 894
						}
						
					}
				}

				894 = {
					add_claim_by = FROM
				}
			}
			IF = {
				limit = {
					OR = {
						895 = {
							is_fully_controlled_by = ROOT
						}
						any_subject_country = {
							controls_state = 895
						}
						
					}
				}

				895 = {
					add_claim_by = FROM
				}
			}
		}
	}
}

country_event = { #FROM gives the colonies back
	id = wuw_GER_diplomacy.39
	title = wuw_GER_diplomacy.39.t
	desc = wuw_GER_diplomacy.39.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Fine
		name = wuw_GER_diplomacy.39.a

		IF = {
			limit = {
				OR = {
					541 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 541
					}
					
				}
			}

			541 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					546 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 546
					}
					
				}
			}

			546 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					777 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 777
					}
					
				}
			}

			777 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					893 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 893
					}
					
				}
			}

			893 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					894 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 894
					}
					
				}
			}

			894 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					895 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 895
					}
					
				}
			}

			895 = {
				transfer_state_to = ROOT
			}
		}
	}
}

country_event = { #FROM does not give the colonies back
	id = wuw_GER_diplomacy.40
	title = wuw_GER_diplomacy.40.t
	desc = wuw_GER_diplomacy.40.desc
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Fine, we'll take them!
		name = wuw_GER_diplomacy.40.a

		IF = {
			limit = {
				OR = {
					541 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						is_subject_of = FROM
						controls_state = 541
					}
					
				}
			}

			541 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					546 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 546
					}
					
				}
			}

			546 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					777 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 777
					}
					
				}
			}

			777 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					893 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 893
					}
					
				}
			}

			893 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					894 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 894
					}
					
				}
			}

			894 = {
				add_claim_by = ROOT
			}
		}
		IF = {
			limit = {
				OR = {
					895 = {
						is_fully_controlled_by = FROM
					}
					any_subject_country = {
						controls_state = 895
					}
					
				}
			}

			895 = {
				add_claim_by = ROOT
			}
		}
	}
}


country_event = { #No more occupation cost payments from Vichy France
	id = wuw_GER_diplomacy.100
	title = wuw_GER_diplomacy.100.t
	desc = wuw_GER_diplomacy.100.desc 
	picture = GFX_report_event_gathering_protest

	is_triggered_only = yes

	option = { #Too bad for us...
		name = wuw_GER_diplomacy.100.a
		
		GER_modify_industrial_modifier = yes
		custom_effect_tooltip = GER_increase_increasing_consumer_goods_tt
	}
}


# Germany wants to initate Naval Development Cooperation - event for ENG
country_event = {
	id = wuw_GER_diplomacy.50
	title = wuw_GER_diplomacy.50.t
	desc = wuw_GER_diplomacy.50.desc
	picture = GFX_report_event_SOV_purge_navy

	is_triggered_only = yes

	option = { # Bloody Splendid!
		name = wuw_GER_diplomacy.50.a
		ai_chance = {
			base = 100
		}

		effect_tooltip = { # R56
			add_to_tech_sharing_group = GER_anglo_german_naval_development_group
			GER = {
				add_to_tech_sharing_group = GER_anglo_german_naval_development_group
				if = {
					limit = {
						has_idea = GER_redirecting_naval_production
					}
					swap_ideas = {
						remove_idea = GER_redirecting_naval_production
						add_idea = GER_redirecting_naval_production_2
					}	
				}
			}
		}

		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.5
		}
		
		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			# FROM Accepts the Deal
			country_event = {
				id = wuw_GER_diplomacy.51
				hours = 12
				random_hours = 24
			}	
		}
	}
	option = { # No cooperation with the Krauts!
		name = wuw_GER_diplomacy.50.b
		ai_chance = {
			base = 0
		}
		
		FROM = {
			# FROM Refuses to Cooperate
			country_event = {
				id = wuw_GER_diplomacy.52
				hours = 12
				random_hours = 24
			}	
		}
	}
}


# England accepts Naval Development Cooperation - event for GER
country_event = {
	id = wuw_GER_diplomacy.51
	title = wuw_GER_diplomacy.51.t
	desc = wuw_GER_diplomacy.51.desc
	picture = GFX_report_event_ast_navy

	is_triggered_only = yes

	option = { # Our Marine will grow strong once again
		name = wuw_GER_diplomacy.51.a
		ai_chance = {
			base = 100
		}
		# FROM = { # R56
		# 	add_to_tech_sharing_group = GER_anglo_german_naval_development_group
		# }

		# custom_effect_tooltip = generic_skip_one_line_tt # R56
		
		add_to_tech_sharing_group = GER_anglo_german_naval_development_group
		ENG = { # R56
			add_to_tech_sharing_group = GER_anglo_german_naval_development_group
		}
		if = {
			limit = {
				has_idea = GER_redirecting_naval_production
			}
			swap_ideas = {
				remove_idea = GER_redirecting_naval_production
				add_idea = GER_redirecting_naval_production_2
			}	
		}

		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.5
		}
	}
}

# England rejects Naval Development Cooperation - event for GER
country_event = {
	id = wuw_GER_diplomacy.52
	title = wuw_GER_diplomacy.52.t
	desc = wuw_GER_diplomacy.52.desc
	picture = GFX_report_event_canada_treaty

	is_triggered_only = yes

	option = { # A foolish choice
		name = wuw_GER_diplomacy.52.a
		ai_chance = {
			base = 100
		}
		add_war_support = 0.025
	}
}

#German Trade Event
country_event = { 
	id = wuw_GER_diplomacy.53
	title = wuw_GER_diplomacy.53.t
	desc = wuw_GER_diplomacy.53.desc 
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Accepts
		name = wuw_GER_diplomacy.53.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				industrial_complex < 15
			}
		}		
		effect_tooltip = {
			ROOT = {
				add_offsite_building = { type = industrial_complex level = 1 }
				add_opinion_modifier = {
					target = FROM
					modifier = GER_trading_partners
				}
			}
			every_country = {
				limit = {
					is_subject_of = ROOT
				}
				add_ideas = GER_german_trade_subject_ns
				add_opinion_modifier = {
					target = FROM
					modifier = GER_trading_partners
				}
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
		FROM = {
			country_event = { id = wuw_GER_diplomacy.54 hours = 5 random_hours = 5 }
		}
	}

	option = { #Rejects
		name = wuw_GER_diplomacy.53.b
		ai_chance = {
			base = 1
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -29
				}
			}
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -49
				}
			}
			modifier = {
				add = 20
				FROM = {
					has_added_tension_amount > 15
				}
			}
		}		
		FROM = {
			country_event = { id = wuw_GER_diplomacy.55 hours = 5 random_hours = 5 }
		}
	}
}

country_event = { #FROM accepts our trade deal
	id = wuw_GER_diplomacy.54
	title = wuw_GER_diplomacy.54.t
	desc = wuw_GER_diplomacy.54.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Good!
		name = wuw_GER_diplomacy.54.a

		FROM = {
			add_offsite_building = { type = industrial_complex level = 1 }
			add_opinion_modifier = {
				target = FROM
				modifier = GER_trading_partners
			}
			set_country_flag = GER_getting_offshore_civ_flag
		}
		every_country = {
			limit = {
				is_subject_of = FROM
			}
			add_ideas = GER_german_trade_subject_ns
			add_opinion_modifier = {
				target = FROM
				modifier = GER_trading_partners
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
		hidden_effect = {
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}
}

country_event = { #FROM rejects our trade deal
	id = wuw_GER_diplomacy.55
	title = wuw_GER_diplomacy.55.t
	desc = wuw_GER_diplomacy.55.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Too bad for them...
		name = wuw_GER_diplomacy.55.a	
	}
}

# [FROM.GetNameDefCap] Empties our Accounts - event for HUN
country_event = { 
	id = wuw_GER_diplomacy.56
	title = wuw_GER_diplomacy.56.t
	desc = wuw_GER_diplomacy.56.desc 
	picture = GFX_report_event_german_politician_speech

	is_triggered_only = yes

	# How dare they!
	option = { 
		name = wuw_GER_diplomacy.56.a	
		ai_chance = {
			base = 100
		}

		add_opinion_modifier = {
			target = FROM
			modifier = GER_stole_our_money_opm
		}	
		remove_ideas = HUN_gombos_trade_treaty

		custom_effect_tooltip = generic_skip_one_line_tt

		remove_opinion_modifier = {
			target = FROM
			modifier = HUN_GER_trade_modifier
		}	
		FROM = {
			remove_opinion_modifier = {
				target = HUN
				modifier = HUN_GER_trade_modifier
			}	
		}

		hidden_effect = {
			set_country_flag = HUN_can_not_trust_germany_again_flag
			add_ai_strategy = { 
				type = befriend
				id = GER
				value = -150
			}	
			add_ai_strategy = { 
				type = antagonize
				id = GER
				value = 50
			}	
		}

	}
}

# Germany demands the return of North Schleswig - event for DEN
country_event = { 
	id = wuw_GER_diplomacy.57
	title = wuw_GER_diplomacy.57.t
	desc = wuw_GER_diplomacy.57.desc 
	picture = GFX_report_event_DEN_danish_politics

	is_triggered_only = yes

	option = { # We do not wish for conflict, so we must comply
		name = wuw_GER_diplomacy.57.a
		ai_chance = {
			base = 90
		}		
		
		FROM = {
			# DEN caves to our demands
			country_event = { 
				id = wuw_GER_diplomacy.58 
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			964 = { # R56
				transfer_state_to = FROM
				add_core_of = FROM
			}
		}

	}

	option = { # They can come and get it!
		name = wuw_GER_diplomacy.57.b
		ai_chance = {
			base = 10
		}		

		add_war_support = 0.05
		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt
		
		FROM = {
			# DEN stands firm
			country_event = { 
				id = wuw_GER_diplomacy.59
				days = 1
				random_days = 2 
			}
		}

	}
}

# Denmark returns North Schleswig - event for GER
country_event = { 
	id = wuw_GER_diplomacy.58
	title = wuw_GER_diplomacy.58.t
	desc = wuw_GER_diplomacy.58.desc 
	picture = GFX_report_event_DEN_danish_politics

	is_triggered_only = yes

	option = { # A great day for the German people!
		name = wuw_GER_diplomacy.58.a
		ai_chance = {
			base = 100
		}		

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

		custom_effect_tooltip = generic_skip_one_line_tt
		
		964 = { # R56
			transfer_state_to = ROOT
			add_core_of = ROOT
		}

	}
}

# Denmark refuses to return North Schleswig - event for GER
country_event = { 
	id = wuw_GER_diplomacy.59
	title = wuw_GER_diplomacy.59.t
	desc = wuw_GER_diplomacy.59.desc 
	picture = GFX_report_event_DEN_danish_troops

	is_triggered_only = yes

	option = { # Then we will pry it from their cold hands!
		name = wuw_GER_diplomacy.59.a
		ai_chance = {
			base = 85
		}		
		
		964 = { # R56
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = take_core_state	
			target = FROM
			generator = { 964 } # R56
			expire = 0
		}	

	}

	option = { # We shouldn't escalate...
		name = wuw_GER_diplomacy.59.b
		ai_chance = {
			base = 15
		}		

		add_political_power = 50
		964 = { # R56
			remove_claim_by = ROOT
		}

	}
}

# Germany demands the return of North Schleswig - event for owner of the state (not DEN)
country_event = { 
	id = wuw_GER_diplomacy.60
	title = wuw_GER_diplomacy.60.t
	desc = wuw_GER_diplomacy.60.desc 
	picture = GFX_report_event_DEN_danish_politics

	is_triggered_only = yes

	option = { # We do not wish for conflict, so we must comply
		name = wuw_GER_diplomacy.60.a
		ai_chance = {
			base = 80
		}		
		
		FROM = {
			# FROM caves to our demands
			country_event = { 
				id = wuw_GER_diplomacy.61 
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			964 = { # R56
				transfer_state_to = FROM
				add_core_of = FROM
			}
		}

	}

	option = { # They can come and get it!
		name = wuw_GER_diplomacy.60.b
		ai_chance = {
			base = 20
		}		

		add_war_support = 0.05
		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt
		
		FROM = {
			# FROM stands firm
			country_event = { 
				id = wuw_GER_diplomacy.62
				days = 1
				random_days = 2 
			}
		}

	}
}

# FROM returns North Schleswig - event for owner of the state (not DEN)
country_event = { 
	id = wuw_GER_diplomacy.61
	title = wuw_GER_diplomacy.61.t
	desc = wuw_GER_diplomacy.61.desc 
	picture = GFX_report_event_DEN_danish_politics

	is_triggered_only = yes

	option = { # A great day for the German people!
		name = wuw_GER_diplomacy.61.a
		ai_chance = {
			base = 100
		}		

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

		custom_effect_tooltip = generic_skip_one_line_tt
		
		964 = { # R56
			transfer_state_to = ROOT
			add_core_of = ROOT
		}

	}
}

# FROM refuses to return North Schleswig - event for owner of the state (not DEN)
country_event = { 
	id = wuw_GER_diplomacy.62
	title = wuw_GER_diplomacy.62.t
	desc = wuw_GER_diplomacy.62.desc 
	picture = GFX_report_event_GER_grenzshutz_forces

	is_triggered_only = yes

	option = { # Then we will pry it from their cold hands!
		name = wuw_GER_diplomacy.62.a
		ai_chance = {
			base = 85
		}		
		
		964 = { # R56
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = take_core_state	
			target = FROM
			generator = { 964 } # R56
			expire = 0
		}	

	}

	option = { # We shouldn't escalate...
		name = wuw_GER_diplomacy.62.b
		ai_chance = {
			base = 15
		}		

		add_political_power = 50
		964 = { # R56
			remove_claim_by = ROOT
		}

	}
}

# Germany seizes North Schleswig - event for puppet of GER
country_event = { 
	id = wuw_GER_diplomacy.63
	title = wuw_GER_diplomacy.63.t
	desc = wuw_GER_diplomacy.63.desc 
	picture = GFX_report_event_DEN_danish_politics

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			964 = { # R56
				transfer_state_to = FROM
				add_core_of = FROM
			}
		}
	}

	option = { # We do not wish for conflict, so we must comply
		name = wuw_GER_diplomacy.63.a
		ai_chance = {
			base = 100
		}		

		add_autonomy_score = { 
			value = 100
			localization = GER_seized_north_schleswig
		}	
		
		effect_tooltip = {
			964 = { # R56
				transfer_state_to = FROM
				add_core_of = FROM
			}
		}
	}
}

### GUARANTEES FOR TRIBUTES ###

# Germany offers protection in exchange for Tributes - event for LIT, LAT and EST
country_event = { 
	id = wuw_GER_diplomacy.64
	title = wuw_GER_diplomacy.64.t
	desc = wuw_GER_diplomacy.64.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
	}

	option = { # If it is what it takes
		name = wuw_GER_diplomacy.64.a
		ai_chance = {
			base = 85
			modifier = {
				factor = 1.5
				ROOT = {
					has_opinion = {
						target = FROM
						value > 70
					}	
				}
			}
		}		

		FROM = {
			# FROM agrees
			country_event = { 
				id = wuw_GER_diplomacy.65
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			IF = {
				limit = {
					original_tag = LIT
					owns_state = 188
				}
				add_ideas = anti_soviet_pact
				FROM = {
					give_guarantee = ROOT
				}
				188 = {
					transfer_state_to = FROM
					add_core_of = FROM
				}
			}
			ELSE_IF = {
				limit = {
					original_tag = LIT
					NOT = {
						owns_state = 188
					}
				}
				add_ideas = anti_soviet_pact
				add_ideas = GER_paying_tributes_to_germany_idea
				FROM = {
					give_guarantee = ROOT
				}
			}
			ELSE_IF = {
				limit = {
					OR = {
						original_tag = LAT
						original_tag = EST
					}
				}
				FROM = {
					give_guarantee = ROOT
				}
				add_ideas = GER_paying_tributes_to_germany_idea
				add_ideas = anti_soviet_pact
			}
		}

	}

	option = { # It is simply too expensive to accept...
		name = wuw_GER_diplomacy.64.b
		ai_chance = {
			base = 15
			modifier = {
				factor = 0
				threat > 30
			}
		}		

		FROM = {
			# FROM rejects our offer
			country_event = { 
				id = wuw_GER_diplomacy.66
				days = 1
				random_days = 2 
			}
		}

	}
}

# FROM accetps protection in exchange for Tributes - event for GER
country_event = { 
	id = wuw_GER_diplomacy.65
	title = wuw_GER_diplomacy.65.t
	desc = wuw_GER_diplomacy.65.desc 
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = no

	is_triggered_only = yes

	immediate = {
	}

	option = { # It's all coming together!
		name = wuw_GER_diplomacy.65.a		

		IF = {
			limit = {
				NOT = {
					has_idea = anti_soviet_pact
				}
			}
			add_ideas = anti_soviet_pact
			custom_effect_tooltip = generic_skip_one_line_tt
		}

		IF = {
			limit = {
				FROM = {
					original_tag = LIT
					owns_state = 188
				}
			}
			FROM = {
				add_ideas = anti_soviet_pact
			}
			give_guarantee = FROM
			188 = {
				transfer_state_to = ROOT
				add_core_of = ROOT
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = LIT
					NOT = {
						owns_state = 188
					}
				}
			}
			FROM = {
				add_ideas = anti_soviet_pact
				add_ideas = GER_paying_tributes_to_germany_idea
			}
			give_guarantee = FROM
			add_timed_idea = {
				idea = GER_recieving_payments_from_lithuania_idea
				days = 180
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = LAT
				}
			}
			FROM = {
				add_ideas = anti_soviet_pact
				add_ideas = GER_paying_tributes_to_germany_idea
			}
			give_guarantee = FROM
			add_timed_idea = {
				idea = GER_recieving_payments_from_latvia_idea
				days = 180
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = EST
				}
			}
			FROM = {
				add_ideas = anti_soviet_pact
				add_ideas = GER_paying_tributes_to_germany_idea
			}
			give_guarantee = FROM
			add_timed_idea = {
				idea = GER_recieving_payments_from_estonia_idea
				days = 180
			}
		}

	}
}

# FROM rejects protection in exchange for Tributes - event for GER
country_event = { 
	id = wuw_GER_diplomacy.66
	title = wuw_GER_diplomacy.66.t
	desc = wuw_GER_diplomacy.66.desc 
	picture = GFX_report_event_generic_sign_treaty1

	fire_only_once = no

	is_triggered_only = yes

	immediate = {
	}

	option = { # Oh well
		name = wuw_GER_diplomacy.66.a
		ai_chance = {
			base = 95
		}

	}

	option = { # They still need protection, even if they refuse to pay for it!
		name = wuw_GER_diplomacy.66.b
		ai_chance = {
			base = 5
		}

		give_guarantee = FROM

	}
}


### BACKDOOR NEGOTIATIONS ###

# Germany Offers a Secret Pact - event for HOL or BEL
country_event = { 
	id = wuw_GER_diplomacy.67
	title = wuw_GER_diplomacy.67.t
	desc = wuw_GER_diplomacy.67.desc 
	picture = GFX_report_event_vienna_award_negotiations

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
	}

	option = { # This will surely benefit us
		name = wuw_GER_diplomacy.67.a
		ai_chance = {
			base = 50
			modifier = {
				factor = 1.5
				ROOT = {
					has_opinion = {
						target = FROM
						value > 70
					}	
				}
			}
			modifier = {
				factor = 3
				FROM = {
					has_country_flag = GER_was_rejected_once_for_backdoor_negotiations
				}
			}
		}		

		FROM = {
			# FROM agrees
			country_event = { 
				id = wuw_GER_diplomacy.68
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			IF = {
				limit = {
					original_tag = BEL
				}
				IF = {
					limit = {
						FROM = {
							is_faction_leader = no
						}
					}
					FROM = {
						create_faction = GER_mitteleuropa_alliance
					}
				}
				ROOT = {
					add_state_claim = 35
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					add_state_claim = 7
					add_state_claim = 36
					add_to_faction = ROOT
					create_wargoal = {
						type = take_claimed_state
						target = HOL
						generator = { 7 36 }
					}
				}
				
			}
			ELSE_IF = {
				limit = {
					original_tag = HOL
				}
				IF = {
					limit = {
						FROM = {
							is_faction_leader = no
						}
					}
					FROM = {
						create_faction = GER_mitteleuropa_alliance
					}
				}
				ROOT = {
					add_state_claim = 977
					add_state_claim = 6
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				FROM = {
					add_state_claim = 980
					add_state_claim = 34
					add_to_faction = ROOT
					create_wargoal = {
						type = take_claimed_state
						target = BEL
						generator = { 980 34 }
					}	
				}
				
			}
		}

		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 250
		}
		add_ai_strategy = {
			type = befriend
			id = FROM
			value = 250
		}

		hidden_effect = {
			IF = {
				limit = {
					original_tag = BEL
				}
				FROM = {
					set_country_flag = GER_bel_responded_to_backdoor_negotiations_flag
					set_country_flag = GER_bel_accepted_backdoor_negotiations_flag
				}
			}
			ELSE_IF = {
				limit = {
					original_tag = HOL
				}
				FROM = {
					set_country_flag = GER_hol_responded_to_backdoor_negotiations_flag
					set_country_flag = GER_hol_accepted_backdoor_negotiations_flag
				}
			}
		}

	}

	option = { # This is unethical!
		name = wuw_GER_diplomacy.67.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0.5
				FROM = {
					has_country_flag = GER_was_rejected_once_for_backdoor_negotiations
				}
			}
			modifier = {
				factor = 0.5
				ROOT = {
					has_government = FROM
				}
			}
		}		

		FROM = {
			# FROM rejects our offer
			country_event = { 
				id = wuw_GER_diplomacy.69
				days = 1
				random_days = 2 
			}
		}
		custom_effect_tooltip = warning_they_may_instead_apporach_our_neighbor_tt

		hidden_effect = {
			IF = {
				limit = {
					original_tag = BEL
				}
				FROM = {
					set_country_flag = GER_bel_responded_to_backdoor_negotiations_flag
				}
			}
			ELSE_IF = {
				limit = {
					original_tag = HOL
				}
				FROM = {
					set_country_flag = GER_hol_responded_to_backdoor_negotiations_flag
				}
			}
		}

	}
}

# FROM accepts the Secret Pact - event for GER
country_event = { 
	id = wuw_GER_diplomacy.68
	title = wuw_GER_diplomacy.68.t
	desc = wuw_GER_diplomacy.68.desc 
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
	}

	option = { # Then it is time to strike!
		name = wuw_GER_diplomacy.68.a
		ai_chance = {
			base = 100
		}		

		IF = {
			limit = {
				FROM = {
					original_tag = HOL
				}
			}
			IF = {
				limit = {
					is_faction_leader = no
				}
				create_faction = GER_mitteleuropa_alliance
			}
			FROM = {
				add_state_claim = 977
				add_state_claim = 6
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_state_claim = 980
			add_state_claim = 34
			add_to_faction = FROM
			add_threat = 2
			create_wargoal = {
				type = take_claimed_state
				target = BEL
				generator = { 980 34 }
			}	
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = BEL
				}
			}
			IF = {
				limit = {
					is_faction_leader = no
				}
				create_faction = GER_mitteleuropa_alliance
			}
			FROM = {
				add_state_claim = 35
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_state_claim = 7
			add_state_claim = 36
			add_to_faction = FROM
			add_threat = 2
			create_wargoal = {
				type = take_claimed_state
				target = HOL
				generator = { 7 36 }
			}
		}

		hidden_effect = {
			clr_country_flag = GER_currently_holding_backdoor_negitations_flag
		}

	}

	option = { # Great news. We must however be patient
		name = wuw_GER_diplomacy.68.b
		ai_chance = {
			base = 0
		}		

		IF = {
			limit = {
				FROM = {
					original_tag = HOL
				}
			}
			IF = {
				limit = {
					is_faction_leader = no
				}
				create_faction = GER_mitteleuropa_alliance
			}
			FROM = {
				add_state_claim = 977
				add_state_claim = 6
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_state_claim = 980
			add_state_claim = 34
			add_to_faction = FROM	
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = BEL
				}
			}
			IF = {
				limit = {
					is_faction_leader = no
				}
				create_faction = GER_mitteleuropa_alliance
			}
			FROM = {
				add_state_claim = 35
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_state_claim = 7
			add_state_claim = 36
			add_to_faction = FROM
		}

		hidden_effect = {
			clr_country_flag = GER_currently_holding_backdoor_negitations_flag
		}

	}
}

# FROM rejects the Secret Pact - event for GER
country_event = { 
	id = wuw_GER_diplomacy.69
	title = wuw_GER_diplomacy.69.t
	desc = wuw_GER_diplomacy.69.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
	}

	option = { # We will have to seek other allies
		name = wuw_GER_diplomacy.69.a	

		add_political_power = 25 # You get half of the spent pp back

		hidden_effect = {
			set_country_flag = GER_was_rejected_once_for_backdoor_negotiations
			clr_country_flag = GER_currently_holding_backdoor_negitations_flag
		}

	}
}

### SWAYING AUSTRIAN PUBLIC OPINION ###

# Germany Interferes in our Politics - event for AUS
country_event = { 
	id = wuw_GER_diplomacy.70
	title = wuw_GER_diplomacy.70.t
	desc = wuw_GER_diplomacy.70.desc 
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
	}

	option = { # Not a bad idea, we could use another ally
		name = wuw_GER_diplomacy.70.a	
		ai_chance = {
			base = 100
		}	
		
		add_popularity = {
			ideology = GER
			popularity = 0.1
		}

		IF = {
			limit = {
				FROM = {
					has_government = democratic
				}
			}
			add_timed_idea = {
				idea = GER_propagandists_swaying_public_opinion_dem
				days = 180
			}	
		}
		ELSE_IF = {
			limit = {
				FROM = {
					has_government = neutrality
				}
			}
			add_timed_idea = {
				idea = GER_propagandists_swaying_public_opinion_neu
				days = 180
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_opinion_modifier = {
			target = FROM
			modifier = GER_public_opinion_in_favour_of_an_alliance_opm
		}	

		hidden_effect = {
			set_country_flag = AUS_is_more_likely_to_accept_being_brothers_in_arms_flag
		}

	}

	option = { # No cooperation with the [FROM.GetAdjective]s, shut these propagandists up immediately!
		name = wuw_GER_diplomacy.70.b	
		ai_chance = {
			base = 0
		}
		
		add_popularity = {
			ideology = GER
			popularity = 0.1
		}	

		add_opinion_modifier = {
			target = FROM
			modifier = GER_foreign_propaganda_opm
		}	

	}
}

#Volkskommissariats

country_event = { #Germany makes us a volkskommissariat
	id = wuw_GER_diplomacy.71
	title = wuw_GER_diplomacy.71.t
	desc = wuw_GER_diplomacy.71.desc
	picture = GFX_report_event_generic_communist_congress

	is_triggered_only = yes

	option = { #For the workers we will!
		name = wuw_GER_diplomacy.71.a
		ai_chance = {
			base = 10
		}

		FROM = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_volkskommissariat
				end_wars = no 
				end_civil_wars = no 
			}
		}

		IF = {
			limit = {
				FROM = {
					has_completed_focus = GER_instill_german_discipline
				}

				NOT = {
					has_idea = GER_volkskommissariat_military
				}
			}

			add_ideas = GER_volkskommissariat_military
		}

		IF = {
			limit = {
				FROM = {
					has_completed_focus = GER_integrate_subjects_economies
				}

				NOT = {
					has_idea = GER_volkskommissariat_economic_integration
				}
			}

			add_ideas = GER_volkskommissariat_economic_integration
		}
	}
}

country_event = { #Germany wants us to be more communist, and might be plotting to overthrow us
	id = wuw_GER_diplomacy.72
	title = wuw_GER_diplomacy.72.t
	desc = wuw_GER_diplomacy.72.desc
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes

	option = { #It will be fine
		name = wuw_GER_diplomacy.72.a
		ai_chance = {
			base = 10
		}

		add_timed_idea = {
			idea = GER_communist_influence
			days = 730
		}

		if = {
			limit = {
				FROM = {
					has_completed_focus = GER_legacy_of_the_spartacus_league
				}
			}
			custom_effect_tooltip = wuw_GER_diplomacy.72.a_tt
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.73
					hours = 6
				}
			}
		}
	}

	option = { #Absolutely not
		name = wuw_GER_diplomacy.72.b
		ai_chance = {
			base = 2
		}

		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.74
					hours = 6
				}
			}
		}
	}
}

country_event = { #From allows us to influence them
	id = wuw_GER_diplomacy.73
	title = wuw_GER_diplomacy.73.t
	desc = wuw_GER_diplomacy.73.desc
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	option = {
		name = wuw_GER_diplomacy.73.a
		ai_chance = {
			base = 10
		}

		effect_tooltip = {
			FROM = { add_ideas = GER_communist_influence }
		}
	}
}

country_event = { #From refuses our influence
	id = wuw_GER_diplomacy.74
	title = wuw_GER_diplomacy.74.t
	desc = wuw_GER_diplomacy.74.desc
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes

	option = {
		name = wuw_GER_diplomacy.74.a
		ai_chance = {
			base = 10
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}

country_event = { #The Civil War broke out
	id = wuw_GER_diplomacy.75
	title = wuw_GER_diplomacy.75.t
	desc = wuw_GER_diplomacy.75.desc
	picture = GFX_report_event_generic_communist_militia

	is_triggered_only = yes

	option = { #we are communist now!
		name = wuw_GER_diplomacy.75.a
		ai_chance = {
			base = 10
		}

		hidden_effect = {
			IF = {
				limit = {
					GER = {
						has_completed_focus = GER_the_proletarian_legion
						NOT = {
							has_idea = GER_proletarian_legion_ns
						}
					}
				}
				GER = {
					 add_ideas = GER_proletarian_legion_ns
				}
			}
			if = {
				limit = {
					capital_scope = { is_on_continent = europe }
				}
				random_owned_controlled_state = {
					limit = { is_on_continent = europe }
					set_variable = { ROOT.temp_capital = THIS.id }
				}
			}
			else = {
				random_owned_controlled_state = {
					set_variable = { ROOT.temp_capital = THIS.id }
				}
			}
		}

		start_civil_war = {
			ideology = ROOT
			ruling_party = communism
			size = 0.5 #since this triggers when the country goes over 50% communism
			capital = var:ROOT.temp_capital
		}

		every_country = {
			limit = {
				original_tag = ROOT
				has_government = communism
			}

			add_to_array = { GER.started_communist_cw_here = THIS }
			log = "[THIS.GetName] was added to cw array"

			set_country_flag = GER_spurred_communist_cw_flag
		}
	}

	option = { #Fight back the red menace!
		name = wuw_GER_diplomacy.75.b
		ai_chance = {
			base = 2
		}

		hidden_effect = {
			IF = {
				limit = {
					GER = {
						has_completed_focus = GER_the_proletarian_legion
						NOT = {
							has_idea = GER_proletarian_legion_ns
						}
					}
				}
				GER = {
					 add_ideas = GER_proletarian_legion_ns
				}
			}
			if = {
				limit = {
					capital_scope = { is_on_continent = europe }
				}
				random_owned_controlled_state = {
					limit = { is_on_continent = europe }
					set_variable = { ROOT.temp_capital = THIS.id }
				}
			}
			else = {
				random_owned_controlled_state = {
					set_variable = { ROOT.temp_capital = THIS.id }
				}
			}
		}

		start_civil_war = {
			ideology = communism
			ruling_party = ROOT
			size = 0.5 #since this triggers when the country goes over 50% communism
			capital = var:ROOT.temp_capital
		}

		every_country = {
			limit = {
				original_tag = ROOT
				has_government = communism
			}

			add_to_array = { GER.started_communist_cw_here = THIS }
			log = "[THIS.GetName] was added to cw array"

			set_country_flag = GER_spurred_communist_cw_flag
		}
	}
}

country_event = { #Germany informing someone they helped through a communist cw that they will be subjugated
	id = wuw_GER_diplomacy.76
	title = wuw_GER_diplomacy.76.t
	desc = wuw_GER_diplomacy.76.desc
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = { #the price we pay
		name = wuw_GER_diplomacy.76.a
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 2
				ROOT = {
					any_home_area_neighbor_country = {
						original_tag = FROM
					}
				}
			}
		}

		FROM = {
			puppet = ROOT 
		}
	}
	option = { #Something smells fishy
		name = denmark_protection_event.100.b #Intentional
		ai_chance = {
			base = 0
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				add = 5
				any_other_country = {
					is_major = yes
					is_in_faction_with = ROOT
				}
			}
		}

		FROM = {
			puppet = ROOT 
		}
		FROM = {
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			country_event = {
				id = wuw_GER_diplomacy.116
				hours = 3
			}
		}
	}
}

country_event = { #Germany insists Austria hold a referendum to join them
	id = wuw_GER_diplomacy.77
	title = wuw_GER_diplomacy.77.t
	desc = wuw_GER_diplomacy.77.desc
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = { #sure 
		name = wuw_GER_diplomacy.77.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 2
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
			modifier = {
				factor = 2
				has_government = communism
				FROM = {
					has_completed_focus = GER_proletarian_dictatorship
				}
			}
			modifier = {
				factor = 2
				has_government = democratic
				FROM = {
					has_government = democratic #Just in case the player has done something wacky
				}
			}
			modifier = {
				factor = 3
				has_government = democratic
				FROM = {
					has_completed_focus = GER_legacy_of_the_spartacus_league
				}
			}
		}

		event_option_tooltip = wuw_GER_diplomacy.78.a

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.78
				hours = 12
			}
		}
		
	}

	option = { #no way
		name = wuw_GER_diplomacy.77.b
		ai_chance = {
			base = 5
		}
		
		event_option_tooltip = wuw_GER_diplomacy.79.a

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.79
				hours = 12
			}
		}
	}
}

country_event = { #Austria joins us
	id = wuw_GER_diplomacy.78
	title = wuw_GER_diplomacy.78.t
	desc = wuw_GER_diplomacy.78.desc
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = { #splendid
		name = wuw_GER_diplomacy.78.a

		puppet = FROM
	}
}

country_event = { #Austria refuses to join us
	id = wuw_GER_diplomacy.79
	title = wuw_GER_diplomacy.79.t
	desc = wuw_GER_diplomacy.79.desc
	picture = GFX_report_event_GER_grenzshutz_forces

	is_triggered_only = yes

	option = { #they will submit
		name = wuw_GER_diplomacy.79.a

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}

country_event = { #Germany starts industrial efforts in our country
	id = wuw_GER_diplomacy.80
	title = wuw_GER_diplomacy.80.t
	desc = wuw_GER_diplomacy.80.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #thanks?
		name = wuw_GER_diplomacy.80.a

		add_timed_idea = {
			idea = GER_volkskommissariat_industrialization
			days = 365
		}
	}
}

country_event = { #Germany integrates us
	id = wuw_GER_diplomacy.81
	title = wuw_GER_diplomacy.81.t
	desc = wuw_GER_diplomacy.81.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = { #we had a good run
		name = wuw_GER_diplomacy.81.a

		FROM = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}

		every_controlled_state = {
			limit = {
				is_core_of = ROOT
			}
			add_compliance = 50
			add_extra_state_shared_building_slots = 1
		}

		custom_effect_tooltip = GAME_OVER_TT
	}
}

country_event = { #Germany offers equiipment for our civil war
	id = wuw_GER_diplomacy.82
	title = wuw_GER_diplomacy.82.t
	desc = wuw_GER_diplomacy.82.desc
	picture = GFX_report_event_generic_rifles

	is_triggered_only = yes

	option = { #great!
		name = wuw_GER_diplomacy.82.a

		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 2000
		}
	}
}

country_event = { #Germany invites us to the faction
	id = wuw_GER_diplomacy.83
	title = wuw_GER_diplomacy.83.t
	desc = wuw_GER_diplomacy.83.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #yes!
		name = wuw_GER_diplomacy.83.a

		GER = {
			add_to_faction = ROOT
		}
	}

	option = { #no
		name = wuw_GER_diplomacy.83.b
		trigger = {
			NOT = { is_subject_of = GER }
		}
	}
}

country_event = { #Germany offers trade deal
	id = wuw_GER_diplomacy.84
	title = wuw_GER_diplomacy.84.t
	desc = wuw_GER_diplomacy.84.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #sweet
		name = wuw_GER_diplomacy.84.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = { 
				is_subject_of = FROM
			}

			add_ideas = GER_proletarian_solidarity_subject_ns
		}
		ELSE = {
			add_ideas = GER_proletarian_solidarity_ns
		}
	}

	option = { #nah
		name = wuw_GER_diplomacy.84.b
		ai_chance = {
			base = 1
		}
		trigger = {
			NOT = {
				is_subject_of = FROM
			}
		}
	}
}

country_event = { #Germany demands integration
	id = wuw_GER_diplomacy.85
	title = wuw_GER_diplomacy.85.t
	desc = wuw_GER_diplomacy.85.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #whelp
		name = wuw_GER_diplomacy.85.a

		IF = {
			limit = {
				ROOT = {
					original_tag = CZE
				}
			}

			IF = {
				limit = {
					SOV = {
						has_government = communism
					}
				}

				SOV = {
					transfer_state = 70
					transfer_state = 664
					transfer_state = 71
					transfer_state = 73

					set_country_flag = SOV_got_slo_from_ger
				}

				FROM = {
					transfer_state = 69
					transfer_state = 1078
					transfer_state = 9
					transfer_state = 75
					transfer_state = 74
					transfer_state = 72
				}

				custom_effect_tooltip = GAME_OVER_TT

			
					IF = {
						limit = {
							FROM = {
								original_tag = GER
							}
						}

						SOV = {
							country_event = {
								id = wuw_GER_diplomacy.86
								hours = 6
							}
						}
					}
				
			}

			ELSE = {
				FROM = {
					annex_country = {
						target = ROOT
						transfer_troops = yes
					} 
				}

				release_puppet = SLO 
			}
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = POL
				}
			}

			IF = {
				limit = {
					SOV = {
						has_government = communism 
					}
				}

				SOV = {
					transfer_state = 89
					transfer_state = 91
					transfer_state = 93
					transfer_state = 94
					transfer_state = 95
					transfer_state = 96
					transfer_state = 97

					set_country_flag = SOV_got_east_pol_from_ger
				}

				FROM = {
					transfer_state = 807
					transfer_state = 85
					transfer_state = 86
					transfer_state = 87
					transfer_state = 88
					transfer_state = 90
					transfer_state = 92
					transfer_state = 98
					transfer_state = 10
					transfer_state = 762
				}

				custom_effect_tooltip = GAME_OVER_TT
			}

			ELSE = {
				FROM = {
					annex_country = {
						target = ROOT
						transfer_troops = yes
					} 
				}

				custom_effect_tooltip = GAME_OVER_TT
			}
		}

		ELSE = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}

			custom_effect_tooltip = GAME_OVER_TT
		}
		
	}

	option = { # no!
		name = wuw_GER_diplomacy.85.b

		IF = {
			limit = {
				ROOT = {
					is_in_faction_with = FROM
				}
			}

			FROM = {
				remove_from_faction = ROOT
			}
		}

		FROM = {
			create_wargoal = {
				type = annex_everything
				target = ROOT
			}
		}
	}
}

country_event = { #FROM.FROM hands over territories in ROOT's Sphere of influence
	id = wuw_GER_diplomacy.86
	title = wuw_GER_diplomacy.86.t
	desc = wuw_GER_diplomacy.86.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #great
		name = wuw_GER_diplomacy.86.a

		
		IF = {
			limit = {
				ROOT = {
					has_country_flag = SOV_got_slo_from_ger
				}
			}
			effect_tooltip = {
				transfer_state = 70
				transfer_state = 664
				transfer_state = 71
				transfer_state = 73
			}
			clr_country_flag = SOV_got_slo_from_ger
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					has_country_flag = SOV_got_east_pol_from_ger
				}
			}
			effect_tooltip = {
				transfer_state = 89
				transfer_state = 91
				transfer_state = 93
				transfer_state = 94
				transfer_state = 95
				transfer_state = 96
				transfer_state = 97
			}
			clr_country_flag = SOV_got_east_pol_from_ger
		}
	}
}

country_event = { #After War SOV/GER asked to honour the sphere of influences
	id = wuw_GER_diplomacy.87
	title = wuw_GER_diplomacy.87.t
	desc = wuw_GER_diplomacy.87.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Honour the deal
		name = wuw_GER_diplomacy.87.a
		ai_chance = {
			base = 10
		} 
		IF = {
			limit = {
				ROOT = {
					original_tag = GER
				}
			}

			SOV = {
				country_event = {
					id = wuw_GER_diplomacy.88
					hours = 6
				}
			}
		}

		ELSE_IF = {
			limit = {
				ROOT = {
					original_tag = SOV
				}
			}

			GER = {
				country_event = {
					id = wuw_GER_diplomacy.88
					hours = 6
				}
			}
		}

	}

	option = { #the land is ours
		name = wuw_GER_diplomacy.87.b 
		ai_chance = {
			base = 1
		}
	}
}

country_event = { #After War SOV/GER hands over states to GER/SOV
	id = wuw_GER_diplomacy.88
	title = wuw_GER_diplomacy.88.t
	desc = wuw_GER_diplomacy.88.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #As they should.
		name = wuw_GER_diplomacy.88.a

		IF = {
			limit = {
				FROM = {
					original_tag = GER
				}
			}
			IF = {
				limit = {
					FROM = {
						has_country_flag = capitulated_POL_flag
					}
				}

				transfer_state = 89
				transfer_state = 91
				transfer_state = 93
				transfer_state = 94
				transfer_state = 95
				transfer_state = 96
				transfer_state = 97
			}

			ELSE_IF = {
				limit = {
					FROM = {
						has_country_flag = capitulated_CZE_flag
					}
				}

				transfer_state = 70
				transfer_state = 664
				transfer_state = 71
				transfer_state = 73
			}
		}

		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = SOV
				}
			}
			IF = {
				limit = {
					FROM = {
						has_country_flag = capitulated_POL_flag
					}
				}

				transfer_state = 807
				transfer_state = 85
				transfer_state = 86
				transfer_state = 87
				transfer_state = 88
				transfer_state = 90
				transfer_state = 92
				transfer_state = 98
				transfer_state = 10
				transfer_state = 762
			}

			ELSE_IF = {
				limit = {
					FROM = {
						has_country_flag = capitulated_CZE_flag
					}
				}

				transfer_state = 69
				transfer_state = 1078
				transfer_state = 9
				transfer_state = 75
				transfer_state = 74
				transfer_state = 72
			}
		}

	}
}

country_event = { #informs SOV of GER's sphere of influence
	id = wuw_GER_diplomacy.89
	title = wuw_GER_diplomacy.89.t
	desc = wuw_GER_diplomacy.89.desc
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #okay
		name = wuw_GER_diplomacy.89.a
		ai_chance = {
			base = 10
		} 
		FROM = {
			set_country_flag = GER_SOV_agreed_sphere_of_influence
			country_event = {
				id = wuw_GER_diplomacy.104
				hours = 6
			}
		}

		GER_setup_GER_sphere_of_influence_array = yes
		GER_setup_SOV_sphere_of_influence_array = yes
	}

	option = { #No thanks
		name = wuw_GER_diplomacy.89.b
		ai_chance = {
			base = 1
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}
		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}

			country_event = {
				id = wuw_GER_diplomacy.105
				hours = 6
			}
		}

	}

}

country_event = { #FROM requests NAP
	id = wuw_GER_diplomacy.90
	title = wuw_GER_diplomacy.90.t
	desc = wuw_GER_diplomacy.90.desc
	picture = GFX_report_event_generic_handshake # R56

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #sure
		name = wuw_GER_diplomacy.90.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		diplomatic_relation = { 
			country = FROM
			relation = non_aggression_pact 
		}

		if = {
			limit = {
				original_tag = JAP
				has_country_flag = GER_JAP_nap_request_flag
			}
			add_opinion_modifier = { target = GER modifier = ger_jap_diplomacy_focus }
		}
		else =  {
			add_opinion_modifier = {
				target = FROM
				modifier = medium_increase 
			}
		}


		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.102
				hours = 6
			}
		}
		
	}

	option = { #we have other plans
		name = wuw_GER_diplomacy.90.b
		ai_chance ={
			base = 2
		}
		hidden_effect = {
			if = {
				limit = {
			 		has_country_flag = GER_JAP_nap_request_flag
				}
				clr_country_flag = GER_JAP_nap_request_flag
			}
		}
		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.103
				hours = 6
			}
		}
	}
}

country_event = { #informs SOV of GER's wishes to align
	id = wuw_GER_diplomacy.91
	title = wuw_GER_diplomacy.91.t
	desc = wuw_GER_diplomacy.91.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #ask for Ulbricht in charge
		name = wuw_GER_diplomacy.91.a

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.92
				hours = 12
			}
		}
	}
}

country_event = { #SOV wants Ulbricht in charge
	id = wuw_GER_diplomacy.92
	title = wuw_GER_diplomacy.92.t
	desc = wuw_GER_diplomacy.92.desc
	picture = GFX_report_event_generic_communist_congress

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #ja!
		name = wuw_GER_diplomacy.92.a

		retire_character = GER_ernst_thalmann

		GER_walter_ulbricht = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					ideology = leninism
					expire = 1965.1.1
					traits = { GER_staunch_stalinist_leader } 
				}
			}
		}

		

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.93
				hours = 12
			}

			add_opinion_modifier = {
				target = ROOT
				modifier = medium_increase
			}
		}
	}

	option = { #nein
		name = wuw_GER_diplomacy.92.b

		add_political_power = 50

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.94
				hours = 12
			}
		}
	}
}

country_event = { #Ger replaces Thalman
	id = wuw_GER_diplomacy.93
	title = wuw_GER_diplomacy.93.t
	desc = wuw_GER_diplomacy.93.desc
	picture = GFX_report_event_generic_communist_congress

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #Da comrade!
		name = wuw_GER_diplomacy.93.a

		effect_tooltip = {
			FROM = {
				retire_character = GER_ernst_thalmann

				GER_walter_ulbricht = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = leninism
							expire = 1965.1.1
							traits = { GER_staunch_stalinist_leader } 
						}
					}
				}
			}
		}

		add_political_power = 50
	}
}

country_event = { #Ger does not replace Thalman
	id = wuw_GER_diplomacy.94
	title = wuw_GER_diplomacy.94.t
	desc = wuw_GER_diplomacy.94.desc
	picture = GFX_report_event_generic_communist_congress

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #sad
		name = wuw_GER_diplomacy.94.a
		
		add_opinion_modifier = {
			target = FROM
			modifier = small_decrease
		}
	}

	
}

country_event = { #Ger proposes industrial cooperation
	id = wuw_GER_diplomacy.95
	title = wuw_GER_diplomacy.95.t
	desc = wuw_GER_diplomacy.95.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #sure
		name = wuw_GER_diplomacy.95.a
		ai_chance = {
			base = 10
		}

		add_ideas = GER_SOV_industrial_cooperation_ns

		FROM = {
			add_ideas = GER_SOV_industrial_cooperation_ns
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.96
					hours = 12
				}
			}
		}
	}

	option = { #no!
		name = wuw_GER_diplomacy.95.b
		ai_chance = {
			base = 1
		}

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.97
				hours = 12
			}
		}
	}
}

country_event = { #SOV agrees
	id = wuw_GER_diplomacy.96
	title = wuw_GER_diplomacy.96.t
	desc = wuw_GER_diplomacy.96.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #great
		name = wuw_GER_diplomacy.96.a

		event_option_tooltip = wuw_GER_diplomacy.95.a
	}	
}

country_event = { #SOV disagrees
	id = wuw_GER_diplomacy.97
	title = wuw_GER_diplomacy.97.t
	desc = wuw_GER_diplomacy.97.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #then we do it ourselves!
		name = wuw_GER_diplomacy.97.a

		add_timed_idea = {
			idea = GER_stricter_industrial_organization_ns
			days = 365
		}
	}	
}

country_event = { #SOV invited to tech sharing group
	id = wuw_GER_diplomacy.98
	title = wuw_GER_diplomacy.98.t
	desc = wuw_GER_diplomacy.98.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #yes
		name = wuw_GER_diplomacy.98.a
		ai_chance = {
			base = 10
		}

		add_to_tech_sharing_group = GER_SOV_industrial_development_group
		FROM = {
			add_to_tech_sharing_group = GER_SOV_industrial_development_group
		}

		hidden_effect = {
			FROM = {
				country_event = {
					id = wuw_GER_diplomacy.99
					hours = 12
				}
			}
		}

	}

	option = { #Njet
		name = wuw_GER_diplomacy.98.b
		ai_chance = {
			base = 1
		}

		FROM = {
			country_event = {
				id = wuw_GER_diplomacy.101
				hours = 12
			}
		}
	}	
}

country_event = { #SOV accepts
	id = wuw_GER_diplomacy.99
	title = wuw_GER_diplomacy.99.t
	desc = wuw_GER_diplomacy.99.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #great
		name = wuw_GER_diplomacy.99.a

		event_option_tooltip = wuw_GER_diplomacy.98.a
	}	
}

country_event = { #SOV disagrees
	id = wuw_GER_diplomacy.101
	title = wuw_GER_diplomacy.101.t
	desc = wuw_GER_diplomacy.101.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #aw man
		name = wuw_GER_diplomacy.101.a
	}	
}

country_event = { #SOV accepts NAP
	id = wuw_GER_diplomacy.102
	title = wuw_GER_diplomacy.102.t
	desc = wuw_GER_diplomacy.102.desc
	picture = GFX_report_event_hitler_handshake # R56

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #yay
		name = wuw_GER_diplomacy.102.a

		if = {
			limit = {
				NOT = {
					original_tag = JAP
					has_country_flag = GER_JAP_nap_request_flag
				}
			}
			add_opinion_modifier = {
				target = FROM
				modifier = medium_increase 
			}
		}
		else =  {
			FROM =  { clr_country_flag = GER_JAP_nap_request_flag }
		}

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

country_event = { #SOV rejects NAP
	id = wuw_GER_diplomacy.103
	title = wuw_GER_diplomacy.103.t
	desc = wuw_GER_diplomacy.103.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #angy
		name = wuw_GER_diplomacy.103.a
	}
}

country_event = { #SOV accepts sphere of influence
	id = wuw_GER_diplomacy.104
	title = wuw_GER_diplomacy.104.t
	desc = wuw_GER_diplomacy.104.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #yay
		name = wuw_GER_diplomacy.104.a
	}
}

country_event = { #SOV rejects sphere of influence
	id = wuw_GER_diplomacy.105
	title = wuw_GER_diplomacy.105.t
	desc = wuw_GER_diplomacy.105.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #angy
		name = wuw_GER_diplomacy.105.a
	}
}

country_event = { #SOV asked about resources for industry
	id = wuw_GER_diplomacy.107
	title = wuw_GER_diplomacy.107.t
	desc = wuw_GER_diplomacy.107.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #sure
		name = wuw_GER_diplomacy.107.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = { FROM = { has_country_flag = GER_requests_oil_flag }}

			FROM.FROM = {
				add_resource = {
					type = oil
					amount = -5
				}

				set_state_flag = GER_trades_for_oil_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

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

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = GER_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = GER_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = GER_industrial_relocation_resources_modify_tt
				}

				
				add_to_variable = { GER_industrial_relocation_resources_country_resource_oil = 5 tooltip = country_resource_oil_tt }

				clr_country_flag = GER_requests_oil_flag

				hidden_effect = {
					country_event = {
						id = wuw_GER_diplomacy.108
						hours = 6
					}
				}
			}
			
		}

		ELSE_IF = {
			limit = { FROM = { has_country_flag = GER_requests_tungsten_flag }}

			FROM.FROM = {
				add_resource = {
					type = tungsten
					amount = -5
				}

				set_state_flag = GER_trades_for_tungsten_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

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

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = GER_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = GER_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = GER_industrial_relocation_resources_modify_tt
				}
				
				add_to_variable = { GER_industrial_relocation_resources_country_resource_tungsten = 5 tooltip = country_resource_tungsten_tt }
				

				clr_country_flag = GER_requests_tungsten_flag

				hidden_effect = {
					country_event = {
						id = wuw_GER_diplomacy.108
						hours = 6
					}
				}
			}
		}

		ELSE_IF = {
			limit = { FROM = { has_country_flag = GER_requests_chromium_flag }}

			FROM.FROM = {
				add_resource = {
					type = chromium
					amount = -5
				}

				set_state_flag = GER_trades_for_chromium_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

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

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = GER_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = GER_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = GER_industrial_relocation_resources_modify_tt
				}
				
				add_to_variable = { GER_industrial_relocation_resources_country_resource_chromium = 5 tooltip = country_resource_chromium_tt }

				clr_country_flag = GER_requests_chromium_flag

				hidden_effect = {
					country_event = {
						id = wuw_GER_diplomacy.108
						hours = 6
					}
				}
			}
		}
	}

	option = { #no, ask me later
		name = wuw_GER_diplomacy.107.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		FROM = {
			IF = {
				limit = { has_country_flag = GER_requests_oil_flag }

				clr_country_flag = GER_requests_oil_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = GER_requests_tungsten_flag }

				clr_country_flag = GER_requests_tungsten_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = GER_requests_chromium_flag }

				clr_country_flag = GER_requests_chromium_flag
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_diplomacy.109
				hours = 6
			}
		}
	}

	option = { #no, don't ask again
		name = wuw_GER_diplomacy.107.c
		ai_chance = {
			base = 0 #this is just for a player to opt out of events
		}

		FROM = {
			IF = {
				limit = { has_country_flag = GER_requests_oil_flag }

				clr_country_flag = GER_requests_oil_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = GER_requests_tungsten_flag }

				clr_country_flag = GER_requests_tungsten_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = GER_requests_chromium_flag }

				clr_country_flag = GER_requests_chromium_flag
			}
			set_country_flag = GER_SOV_no_industrial_relocation_flag

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = wuw_GER_diplomacy.110
				hours = 6
			}
		}
	}
}

country_event = { #SOV agrees to industrial relocation
	id = wuw_GER_diplomacy.108
	title = wuw_GER_diplomacy.108.t
	desc = wuw_GER_diplomacy.108.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #yay
		name = wuw_GER_diplomacy.108.a

		event_option_tooltip = wuw_GER_diplomacy.107.a
	}
}

country_event = { #SOV rejects industrial relocation for now
	id = wuw_GER_diplomacy.109
	title = wuw_GER_diplomacy.109.t
	desc = wuw_GER_diplomacy.109.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #angy
		name = wuw_GER_diplomacy.109.a
	}
}

country_event = { #SOV rejects industrial relocation altogether
	id = wuw_GER_diplomacy.110
	title = wuw_GER_diplomacy.110.t
	desc = wuw_GER_diplomacy.110.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #angy
		name = wuw_GER_diplomacy.110.a

		custom_effect_tooltip = GER_SOV_have_had_enough_tt
	}
}

#German Trade Event to Romania
country_event = { 
	id = wuw_GER_diplomacy.111
	title = wuw_GER_diplomacy.111.t
	desc = AAT_germany.1.desc #Intentional
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #Accept the offer
		name = wuw_GER_diplomacy.111.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 0.5
				any_other_country = {
					has_guaranteed = ROOT
					is_major = yes
				}
			}
		}		
		ROOT = {
			add_ideas = GER_development_of_economic_relations_ns
			add_opinion_modifier = {
				target = FROM
				modifier = GER_trading_partners
			}
			add_opinion_modifier = {
				target = FROM
				modifier = GER_align_romania
			}	
			IF = {
				limit = {
					FROM = {
						has_government = fascism
					}
				}
				add_ideas = GER_align_romania
			}
			ELSE_IF = {
				limit = {
					FROM = {
						has_government = neutrality
					}
				}
				add_ideas = GER_align_romania_unaligned
			}
			ELSE_IF = {
				limit = {
					FROM = {
						has_government = democratic
					}
				}
				add_ideas = GER_align_romania_democratic
			}
		}

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

		custom_effect_tooltip = war_will_cancel_deal_tt
		FROM = {
			country_event = { id = wuw_GER_diplomacy.112 hours = 5 random_hours = 5 }
		}
	}

	option = { #Reject the offer
		name = wuw_GER_diplomacy.111.b
		ai_chance = {
			base = 1
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -29
				}
			}
			modifier = {
				add = 15
				has_opinion = {
					target = FROM
					value < -49
				}
			}
		}

		add_ai_strategy = { 
			type = befriend 
			id = FROM
			value = -50
		}

		custom_effect_tooltip = generic_could_lead_to_tt
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = annex_everything
					target = ROOT
				}
			}
		}

		FROM = {
			country_event = { id = wuw_GER_diplomacy.113 hours = 5 random_hours = 5 }
		}
	}
}
country_event = { #FROM accepts our trade deal
	id = wuw_GER_diplomacy.112
	title = wuw_GER_diplomacy.2.t #Intentional
	desc = wuw_GER_diplomacy.112.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Good!
		name = wuw_GER_diplomacy.1.a #Intentional 
		effect_tooltip = {
			FROM = {
				add_ideas = GER_development_of_economic_relations_ns
				add_opinion_modifier = {
					target = PREV
					modifier = GER_trading_partners
				}
			}
		}
		custom_effect_tooltip = war_will_cancel_deal_tt
		add_ai_strategy = { 
			type = befriend 
			id = FROM
			value = 100
		}
	}
}
country_event = { #FROM rejects our trade deal
	id = wuw_GER_diplomacy.113
	title = wuw_GER_diplomacy.3.t #Intentional
	desc = wuw_GER_diplomacy.113.desc 
	picture = GFX_report_event_tank_factory

	is_triggered_only = yes

	option = { #Too bad for them...
		name = wuw_GER_diplomacy.3.a #Intentional
		ai_chance = {
			base = 10
		}

		add_ai_strategy = { 
			type = befriend 
			id = FROM
			value = -50
		}
	}
	option = { #This means war
		name = wuw_GER_diplomacy.113.b
		ai_chance = {
			base = 1
		}
		if = {
			limit = {
				ROOT = {
					has_guaranteed = FROM
				}
			}
			ROOT = {
				diplomatic_relation = {
					country = FROM
					relation = guarantee
					active = no
				}
			}
		}

		if = {
			limit = {
				has_non_aggression_pact_with = FROM
			}
			ROOT = {
				diplomatic_relation = {
					country = FROM
					relation = non_aggression_pact
					active = no
				}
			}
		}

		if = {
			limit = {
				FROM = {
					is_in_faction_with = ROOT
				}
			}
			if = {
				limit = {
					is_faction_leader = yes
				}
				ROOT = { remove_from_faction = FROM }
			}
			else = {
				ROOT = { leave_faction = yes }
			}
		}

		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}
}


# Germany demands subjugation
country_event = { 
	id = wuw_GER_diplomacy.114
	title = denmark_expansion_event.800.t # These are intentional
	desc = denmark_expansion_event.800.desc
	picture = GFX_report_event_military_planning

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Accept
		name = denmark_expansion_event.600.a #Intentional
		ai_chance = {
			base = 5
			modifier = {
				factor = 2
				has_civil_war = yes
			}
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				is_in_faction = no
			}
			modifier = {
				factor = 0.5
				is_faction_leader = yes
			}
			modifier = {
				factor = 0.5
				any_other_country = {
					is_major = yes
					has_guaranteed = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					OR = {
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						surrender_progress > 0.1
					}
				}
			}
		}

		effect_tooltip = {
			IF = {
				limit = {
					FROM = {
						has_government = democratic
					}
				}
				FROM = {
					add_to_faction = ROOT
				}
			}
			ELSE = {
				FROM = { puppet = ROOT }
			}

			GER_setup_faction_wide_aoe_effects_from = yes

		}

		FROM = {
			country_event = { id = wuw_GER_diplomacy.115 days = 2 } 
		}

	}
	option = { #Refuse
		name = denmark_protection_event.100.b #Intentional
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
		}
		FROM = {
			country_event = { id = wuw_GER_diplomacy.116 days = 2 } 
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
		}
	}
}

# Germany gets a puppet
country_event = { 
	id = wuw_GER_diplomacy.115
	title = denmark_expansion_event.801.t # Also intentional 
	desc = denmark_expansion_event.801.desc
	picture = GFX_report_event_generic_sign_treaty1

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Great
		name = denmark_expansion_event.301.a #Intentional

		puppet = FROM 

	}
}

# FROM doesn't want to become a German Puppet
country_event = { 
	id = wuw_GER_diplomacy.116
	title = denmark_expansion_event.802.t # Still intentional
	desc = denmark_expansion_event.802.desc
	picture = GFX_report_event_journalists_speech

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Time for the consequences!
		name = denmark_protection_event.102.a #Intentional
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}

#GER wants to integrate CZE
country_event = { 
	id = wuw_GER_diplomacy.117
	title = wuw_GER_realpolitik.16.t #Intentional
	desc = wuw_GER_realpolitik.16.desc #Intentional
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	#We cannot refuse them
	option = {
		name = wuw_GER_diplomacy.117.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 0.5
				any_other_country = {
					is_major = yes
					has_guaranteed = ROOT
				}
			}
			modifier = {
				factor = 0.5
				any_other_country = {
					is_major = yes
					is_in_faction_with = ROOT
				}
			}
		}

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_diplomacy.118
				hours = 5 
				random_hours = 6
			}
		}

		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
			every_state = {
				limit = {
					is_owned_and_controlled_by = CZE
					OR = {
						state = 69
						state = 1078
						state = 74
					}
				}
				add_core_of = PREV
			}
		}
	}

	# We will never submit!
	option = {
		name = wuw_GER_diplomacy.117.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 0
				is_subject_of = FROM
			}
		}

		add_war_support = 0.1

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_diplomacy.119
				hours = 5 
				random_hours = 6
			}
		}
	}
}
 
# Germany annexes CZE peacefully
country_event = { 
	id = wuw_GER_diplomacy.118
	title = wuw_GER_diplomacy.118.t
	desc = wuw_GER_realpolitik.8.desc #Intentional
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # A great day for the German nation!
		name = wuw_GER_realpolitik.8.a #Intentional
		
		annex_country = {
			target = FROM
			transfer_troops = yes
		}

		custom_effect_tooltip =  generic_skip_one_line_tt
		
		every_state = {
			limit = {
				OR = {
					state = 69
					state = 1078
					state = 74
				}
			}
			add_core_of = PREV
		}

		custom_effect_tooltip =  generic_skip_one_line_tt

		every_state = {
			limit = {
				is_owned_by = ROOT
				OR = {
					state = 9
					state = 75
					state = 72
				}
			}
			add_compliance = 60
		}

		custom_effect_tooltip =  generic_skip_one_line_tt

		every_state = {
			limit = {
				is_owned_by = ROOT
				OR = {
					state = 70
					state = 71
					state = 664
					state = 73
				}
			}
			add_compliance = 15
		}

		custom_effect_tooltip =  generic_skip_one_line_tt
		
		GER_czechoslovakia_modify_mefo_bills_or_economy_of_conquest = yes
		GER_seize_gold_reserves_in_europe_peacefully = yes
	}
}

#CZE Rejects our offer - event for GER
country_event = { 
	id = wuw_GER_diplomacy.119
	title = wuw_GER_diplomacy.119.t
	desc = wuw_GER_diplomacy.113.desc #Intentional
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	# In that case we must respect their wishes
	option = { 
		name = wuw_GER_realpolitik.38.a	#Intentional	
		ai_chance = {
			base = 10
		}

		add_stability = 0.1
		add_political_power = 50

	}

	#CZE must be destroyed
	option = { 
		name = wuw_GER_realpolitik.9.a #Intentional	
		ai_chance = {
			base = 90
		}

		create_wargoal = {
			type = annex_everything
			target = FROM
		}

		if = {
			limit = {
				FROM = {
					is_subject_of = ROOT
				}
			}
			end_puppet = FROM
		}
		if = {
			limit = {
				is_faction_leader = yes
				FROM = {
					is_in_faction_with = ROOT
				}
			}
			ROOT = { remove_from_faction = FROM }
		}
		else_if = {
			limit = {
				FROM = {
					is_in_faction_with = ROOT
				}
			}
			ROOT = { leave_faction = yes }
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_owned_and_controlled_by = CZE
				OR = {
					state = 69
					state = 1078
					state = 74
				}
			}
			add_core_of = PREV
		}
	}
}


### MUTUAL GUARANTEES EVENTS ###

# Germany Requests Mutual Cooperation - event for target (can be FRA or whoever)
country_event = { 
	id = wuw_GER_mutual_guarantees.1
	title = wuw_GER_mutual_guarantees.1.t
	desc = wuw_GER_mutual_guarantees.1.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Of course we must agree
		name = wuw_GER_mutual_guarantees.1.a
		ai_chance = {
			base = 80
			modifier = {
				factor = 2
				ROOT = {
					has_opinion = {
						target = FROM
						value > 50
					}	
				}
			}
		}		
		
		FROM = {
			# FROM agrees
			country_event = { 
				id = wuw_GER_mutual_guarantees.2
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			give_guarantee = FROM
			FROM = {
				give_guarantee = ROOT
			}
			IF = {
				limit = {
					original_tag = FRA
				}
				FROM = {
					add_to_tech_sharing_group = ger_fra_research 
				}
				ROOT = {
					add_to_tech_sharing_group = ger_fra_research 
				}
			}
		}

	}

	option = { # We see no value in this pact
		name = wuw_GER_mutual_guarantees.1.b
		ai_chance = {
			base = 20
		}		
		
		FROM = {
			# FROM disagrees
			country_event = { 
				id = wuw_GER_mutual_guarantees.3
				days = 1
				random_days = 2 
			}
		}

	}
}

# FROM Welcomes Mutual Cooperation - event for GER
country_event = { 
	id = wuw_GER_mutual_guarantees.2
	title = wuw_GER_mutual_guarantees.2.t
	desc = wuw_GER_mutual_guarantees.2.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Great
		name = wuw_GER_mutual_guarantees.2.a
		ai_chance = {
			base = 100
		}		
		
		give_guarantee = FROM
		FROM = {
			give_guarantee = ROOT
		}
		IF = {
			limit = {
				FROM = {
					original_tag = FRA
				}
			}
			ROOT = {
				add_to_tech_sharing_group = ger_fra_research 
			}
			FROM = {
				add_to_tech_sharing_group = ger_fra_research 
			}
		}
		IF = {
			limit = {
				FROM = {
					original_tag = ENG
				}
			}
			set_global_flag = ENG_accepted_GER_diplomatic_overtures
			ROOT = {
				add_opinion_modifier = {
					target = FROM
					modifier = GER_signed_the_anglo_german_defence_pact_opm
				}	
			}
			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_signed_the_anglo_german_defence_pact_opm
				}	
			}
		}

	}
}

# FROM Denies Mutual Cooperation - event for GER
country_event = { 
	id = wuw_GER_mutual_guarantees.3
	title = wuw_GER_mutual_guarantees.3.t
	desc = wuw_GER_mutual_guarantees.3.desc 
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { # They are making a great mistake
		name = wuw_GER_mutual_guarantees.3.a
		ai_chance = {
			base = 100
		}		
		
		

	}
}



### WELTPOLITIK EVENTS ###

# Germany Requests the Return of Former Colonial Territories - event for FRA
country_event = { 
	id = wuw_GER_weltpolitik.1
	title = wuw_GER_weltpolitik.1.t
	desc = wuw_GER_weltpolitik.1.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # Anything for our friends
		name = wuw_GER_weltpolitik.1.a
		ai_chance = {
			base = 70
			modifier = {
				factor = 2
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
			modifier = {
				factor = 3
				ROOT = {
					has_opinion = {
						target = FROM
						value > 90
					}	
				}
			}
		}		

		add_political_power = 100

		custom_effect_tooltip = generic_skip_one_line_tt
		
		FROM = {
			# FROM gives us the land ☆*:.｡.o(≧▽≦)o.｡.:*☆
			country_event = { 
				id = wuw_GER_weltpolitik.2
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			ROOT = {
				every_state = { # R56
					limit = {
						is_owned_and_controlled_by = ROOT # R56
						OR = {
							state = 777
							state = 773
							state = 895
							state = 894
							state = 541
							state = 893
							state = 768
							state = 769
							state = 546
						}
					}
					transfer_state_to = FROM
				}
			}
		}
	}

	option = { # No, they are ours now
		name = wuw_GER_weltpolitik.1.b
		ai_chance = {
			base = 30
			modifier = {
				factor = 0.5
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
		}		
		
		add_political_power = -50

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			# FROM denies us the land 。：゜(；´∩｀；)゜：。
			country_event = { 
				id = wuw_GER_weltpolitik.3
				days = 1
				random_days = 2 
			}
		}

	}
}

# France returns our Colonies - event for GER
country_event = { 
	id = wuw_GER_weltpolitik.2
	title = wuw_GER_weltpolitik.2.t
	desc = wuw_GER_weltpolitik.2.desc 
	picture = GFX_report_event_spr_army_of_africa

	is_triggered_only = yes

	option = { # We are fast approaching a new Golden Age!
		name = wuw_GER_weltpolitik.2.a
		ai_chance = {
			base = 100
		}		
		
		every_state = { # R56
			limit = {
				is_owned_and_controlled_by = FROM # R56
				OR = {
					state = 777
					state = 773
					state = 895
					state = 894
					state = 541
					state = 893
					state = 768
					state = 769
					state = 546
				}
			}
			transfer_state_to = ROOT
		}
		
	}
}

# France doesn't return our Colonies - event for GER
country_event = { 
	id = wuw_GER_weltpolitik.3
	title = wuw_GER_weltpolitik.3.t
	desc = wuw_GER_weltpolitik.3.desc 
	picture = GFX_report_event_gre_allied_diplomacy

	is_triggered_only = yes

	option = { # It wasn't meant to be...
		name = wuw_GER_weltpolitik.3.a
		ai_chance = {
			base = 100
		}		
		
		add_war_support = 0.01
		add_stability = -0.02

	}
}

# Germany Wants to Carve up the Congo - event for ENG
country_event = { 
	id = wuw_GER_weltpolitik.4
	title = wuw_GER_weltpolitik.4.t
	desc = wuw_GER_weltpolitik.4.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # It is a mutually beneficial deal
		name = wuw_GER_weltpolitik.4.a
		ai_chance = {
			base = 75
			modifier = {
				factor = 2
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
			modifier = {
				factor = 2
				FROM = {
					has_added_tension_amount > 10
				}
			}
			modifier = {
				factor = 0.02
				FROM = {
					has_added_tension_amount > 29
				}
			}
		}	

		IF = {
			limit = {
				295 = {
					OWNER = {
						NOT = {
							OR = {
								original_tag = COG
								original_tag = BEL
							}
						}
					}
				}
				889 = {
					OWNER = {
						NOT = {
							OR = {
								original_tag = COG
								original_tag = BEL
							}
						}
					}
				}
				718 = {
					OWNER = {
						NOT = {
							OR = {
								original_tag = COG
								original_tag = BEL
							}
						}
					}
				}
				890 = {
					OWNER = {
						NOT = {
							OR = {
								original_tag = COG
								original_tag = BEL
							}
						}
					}
				}
				768 = {
					OWNER = {
						NOT = {
							OR = {
								original_tag = COG
								original_tag = BEL
							}
						}
					}
				}
			}
			every_state = {
				limit = {
					OR = {
						state = 769
						state = 768
						state = 295
						state = 538
						state = 890
						state = 718
					}
				}
				add_claim_by = GER
			}
			every_country = {
				limit = {
					OR = {
						owns_state = 769 
						owns_state = 768
						owns_state = 295
						owns_state = 538
						owns_state = 890
						owns_state = 718
					}
					NOT = {
						OR = {
							is_subject_of = GER
							is_in_faction_with = GER
						}
					}
				}
				GER = {
					create_wargoal = {
						type = take_claimed_state
						target = PREV
					}	
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			every_state = {
				limit = {
					OR = {
						state = 889
						state = 888
					}
				}
				add_claim_by = ROOT
			}
			every_country = {
				limit = {
					OR = {
						owns_state = 889 
						owns_state = 888
					}
					NOT = {
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
					}
				}
				ROOT = {
					create_wargoal = {
						type = take_claimed_state
						target = PREV
					}	
				}
			}
		}	
		ELSE_IF = {
			limit = {
				OR = {
					295 = {
						is_owned_and_controlled_by = BEL
					}
					COG = {
						exists = yes
						OR = {
							is_subject_of = BEL
							is_in_faction_with = BEL
						}
					}
				}
			}
			BEL = {
				# England demands we give up the Congo
				country_event = { 
					id = wuw_GER_weltpolitik.5
					days = 1
					random_days = 2 
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				every_state = {
					limit = {
						OR = {
							state = 888
							state = 889
						}
						OR = {
							is_fully_controlled_by = BEL
							is_fully_controlled_by = COG
						}
					}
					transfer_state_to = ENG
				}
				every_state = {
					limit = {
						OR = {
							state = 295
							state = 538
							state = 718
							state = 890
							state = 768
							state = 769
						}
						OR = {
							is_fully_controlled_by = BEL
							is_fully_controlled_by = COG
						}
					}
					transfer_state_to = GER
				}
			}
		}
	}

	option = { # We will not sponsor this aggression
		name = wuw_GER_weltpolitik.4.b
		ai_chance = {
			base = 25
			modifier = {
				factor = 0.5
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
		}		

		FROM = {
			# FROM rejects the deal 。：゜(；´∩｀；)゜：。
			country_event = { 
				id = wuw_GER_weltpolitik.6
				days = 1
				random_days = 2 
			}
		}
	}
}

# Britain Demands we give up the Congo - event for BEL
country_event = { 
	id = wuw_GER_weltpolitik.5
	title = wuw_GER_weltpolitik.5.t
	desc = wuw_GER_weltpolitik.5.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # Sadly not much can be done about it
		name = wuw_GER_weltpolitik.5.a
		ai_chance = {
			base = 90
			modifier = {
				factor = 2
				GER = {
					has_added_tension_amount > 10
				}
			}
		}	
		
		ENG = {
			# Belgium decides to give up the Congo
			country_event = { 
				id = wuw_GER_weltpolitik.8
				days = 1
			}
		}
		GER = {
			# Belgium decides to give up the Congo
			country_event = { 
				id = wuw_GER_weltpolitik.8
				days = 1
			}
		}
		IF = {
			limit = {
				COG = {
					exists = no
				}
			}
			effect_tooltip = {
				every_state = { # R56
					limit = {
						OR = {
							state = 888
							state = 889
						}
						is_owned_by = ROOT # R56
					}
					transfer_state_to = ENG # R56
				}

				custom_effect_tooltip = generic_skip_one_line_tt
				every_state = { # R56
					limit = {
						OR = {
							state = 295
							state = 538
							state = 718
							state = 890
							state = 768
							state = 769
						}
						is_owned_by = ROOT # R56
					}
					transfer_state_to = GER
				}
			}
		}

		IF = {
			limit = {
				COG = {
					exists = yes
				}
			}
			COG = {
				# Belgium decides to split us
				country_event = { 
					id = wuw_GER_weltpolitik.7
					days = 2
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				every_state = { # R56
					limit = {
						OR = {
							state = 888
							state = 889
						}
					}
					transfer_state_to = ENG # R56
				}
				
				every_state = { # R56
					limit = {
						OR = {
							state = 295
							state = 538
							state = 718
							state = 890
							state = 768
							state = 769
						}
					}
					transfer_state_to = GER
				}
			}
		}
	}

	option = { # We can not accept this
		name = wuw_GER_weltpolitik.5.b
		ai_chance = {
			base = 10
		}	

		ENG = {
			# Belgium decides NOT to give up the Congo
			country_event = { 
				id = wuw_GER_weltpolitik.9
				days = 1
			}
		}
		GER = {
			# Belgium decides NOT to give up the Congo
			country_event = { 
				id = wuw_GER_weltpolitik.9
				days = 1
			}
		}	
		effect_tooltip = {

			every_state = {
				limit = {
					OR = {
						state = 888
						state = 889
					}
					# OR = { # R56
					# 	is_fully_controlled_by = BEL
					# 	is_fully_controlled_by = COG
					# }
				}
				add_claim_by = ENG
			}
		
		
			every_state = {
				limit = {
					OR = {
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
					# OR = { # R56
					# 	is_fully_controlled_by = BEL
					# 	is_fully_controlled_by = COG
					# }
				}
				add_claim_by = GER
			}
			
			
			IF = {
				limit = {
					COG = {
						exists = yes
					}
				}
				every_country = {
					limit = {
						OR = {
							original_tag = ENG
							original_tag = GER
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = COG
					}
				}	
			}
			IF = {
				limit = {
					any_state = {
						OR = {
							state = 888
							state = 889
							state = 295
							state = 538
							state = 718
							state = 890
							state = 768
							state = 769
						}
						is_owned_by = ROOT # R56
					}
				}
				every_country = {
					limit = {
						OR = {
							original_tag = ENG
							original_tag = GER
						}
					}
					create_wargoal = {
						type = take_claimed_state
						target = ROOT
					}
				}	
			}
		}

	}
}

# Britain Rejects our deal - event for GER
country_event = { 
	id = wuw_GER_weltpolitik.6
	title = wuw_GER_weltpolitik.6.t
	desc = wuw_GER_weltpolitik.6.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # In that case it will all be ours!
		name = wuw_GER_weltpolitik.6.a
		ai_chance = {
			base = 60
		}	

		add_threat = 3
		
		every_state = {
			limit = {
				OR = {
					is_core_of = COG
					is_core_of = RWA
					is_core_of = BRD
				}
			}
			add_claim_by = ROOT
		}

		IF = {
			limit = {
				COG = {
					exists = yes
					owns_state = 295
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = COG
			}	
		}
		ELSE_IF = {
			limit = {
				BEL = {
					owns_state = 295
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = BEL
			}	
		}
		
	}

	option = { # We should not push further
		name = wuw_GER_weltpolitik.6.b
		ai_chance = {
			base = 40
		}	

		add_war_support = -0.05
		add_threat = -2

	}
}

# Belgium will give up our freedom - event for COG
country_event = { 
	id = wuw_GER_weltpolitik.7
	title = wuw_GER_weltpolitik.7.t
	desc = wuw_GER_weltpolitik.7.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # We can not fight this...
		name = wuw_GER_weltpolitik.7.a
		ai_chance = {
			base = 100
		}	
		
		custom_effect_tooltip = GAME_OVER_TT

		ENG = {
			# Congo is split
			country_event = { 
				id = wuw_GER_weltpolitik.10
				days = 2
			}
		}
		GER = {
			# Congo is split
			country_event = { 
				id = wuw_GER_weltpolitik.10
				days = 2
			}
		}

		BEL = {
			# Congo folds
			country_event = { 
				id = wuw_GER_weltpolitik.11
				days = 1
			}
		}
		
		
	}

	option = { # We can not accept this, to arms!
		name = wuw_GER_weltpolitik.7.b
		ai_chance = {
			base = 0
		}	

		add_war_support = 0.01

		custom_effect_tooltip = generic_skip_one_line_tt

		ENG = {
			# Congo needs to be pacified
			country_event = { 
				id = wuw_GER_weltpolitik.10
				days = 2
			}
		}
		GER = {
			# Congo needs to be pacified
			country_event = { 
				id = wuw_GER_weltpolitik.10
				days = 2
			}
		}

		BEL = {
			# Congo goes against our wishes
			country_event = { 
				id = wuw_GER_weltpolitik.11
				days = 1
			}
		}

		set_global_flag = COG_refused_partition_flag

	}
}

# Belgium will give up the Congo (but we are usually awaiting to see Congo's response if they exist) - event for GER and ENG
country_event = { 
	id = wuw_GER_weltpolitik.8
	title = wuw_GER_weltpolitik.8.t
	desc = wuw_GER_weltpolitik.8.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	fire_only_once = no

	option = { # Perfect
		name = wuw_GER_weltpolitik.8.a
		
		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				original_tag = ENG
			}
			every_state = {
				limit = {
					OR = {
						state = 888
						state = 889
					}
					is_owned_by = BEL
				}
				transfer_state_to = ROOT
			}
		}
		ELSE_IF = {
			limit = {
				original_tag = GER
			}
			every_state = {
				limit = {
					OR = {
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
					is_owned_by = BEL
				}
				transfer_state_to = ROOT
			}
		}
		
	}
}

# Belgium refuses to give up the Congo - event for GER and ENG
country_event = { 
	id = wuw_GER_weltpolitik.9
	title = wuw_GER_weltpolitik.9.t
	desc = wuw_GER_weltpolitik.9.desc 
	picture = GFX_report_event_gre_diplomacy

	fire_only_once = no

	is_triggered_only = yes

	option = { # Then they will be destroyed
		name = wuw_GER_weltpolitik.9.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				original_tag = ENG
			}
		}

		IF = {
			limit = {
				original_tag = ENG
			}
			every_state = {
				limit = {
					OR = {
						state = 888
						state = 889
					}
				}
				add_claim_by = ROOT
			}
		}
		ELSE_IF = {
			limit = {
				original_tag = GER
			}
			every_state = {
				limit = {
					OR = {
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
				}
				add_claim_by = ROOT
			}
		}
		
		IF = {
			limit = {
				COG = {
					exists = yes
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = COG
			}	
		}
		IF = {
			limit = {
				any_state = {
					OR = {
						state = 888
						state = 889
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
					is_owned_by = BEL
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = BEL
			}	
		}
		
	}

	option = { # There is no need to push for it then
		name = wuw_GER_weltpolitik.9.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				original_tag = GER
			}
		}

		add_stability = 0.05
		
	}
}

# The Congo Crisis - event for GER and ENG
country_event = { 
	id = wuw_GER_weltpolitik.10
	title = wuw_GER_weltpolitik.10.t
	desc = wuw_GER_weltpolitik.10.desc 
	picture = GFX_report_event_gre_diplomacy

	fire_only_once = no

	is_triggered_only = yes

	option = { # We will take it by force (OBS: "CONGO SAID NO")
		name = wuw_GER_weltpolitik.10.a
		trigger = {
			has_global_flag = COG_refused_partition_flag
		}
		ai_chance = {
			base = 100
		}	
		
		IF = {
			limit = {
				original_tag = ENG
			}
			every_state = {
				limit = {
					OR = {
						state = 888
						state = 889
					}
				}
				add_claim_by = ROOT
			}
		}
		ELSE_IF = {
			limit = {
				original_tag = GER
			}
			every_state = {
				limit = {
					OR = {
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
				}
				add_claim_by = ROOT
			}
		}
		
		IF = {
			limit = {
				COG = {
					exists = yes
				}
			}
			create_wargoal = {
				type = take_claimed_state
				target = COG
			}	
		}

	}
	option = { # Today is a good day (OBS: "CONGO SAID YES")
		name = wuw_GER_weltpolitik.10.b
		trigger = {
			NOT = {
				has_global_flag = COG_refused_partition_flag
			}
		}
		ai_chance = {
			base = 100
		}	
		
		IF = {
			limit = {
				original_tag = ENG
			}
			every_state = {
				limit = {
					OR = {
						state = 888
						state = 889
					}
				}
				transfer_state_to = ROOT
			}
		}
		ELSE_IF = {
			limit = {
				original_tag = GER
			}
			every_state = {
				limit = {
					OR = {
						state = 295
						state = 538
						state = 718
						state = 890
						state = 768
						state = 769
					}
				}
				transfer_state_to = ROOT
			}
		}

	}
}

# The Congo Crisis - event for BEL
country_event = { 
	id = wuw_GER_weltpolitik.11
	title = wuw_GER_weltpolitik.11.t
	desc = wuw_GER_weltpolitik.11.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	immediate = {

		hidden_effect = {

			IF = {
				limit = {
					COG = {
						is_subject_of = ROOT
					}
				}
				ROOT = {
					set_autonomy = {
						target = COG
						autonomy_state = autonomy_free
						freedom_level = 1
						end_wars  = no
						end_civil_wars = no
					}
				}
			}
			IF = {
				limit = {
					COG = {
						has_cosmetic_tag = COG_belgian_congo
					}
				}
				COG = {
					drop_cosmetic_tag = yes
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}	
					add_popularity = {
						ideology = democratic
						popularity = 0.25
					}	
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}	 
				}
				
			}

			IF = {
				limit = {
					COG = {
						has_idea = BEL_albert_de_vleeschauwer
					}
				}
				COG = {
					remove_ideas = BEL_albert_de_vleeschauwer
				}
			}

			COG = {
				set_party_name = {
					ideology = neutrality
					long_name = house_of_agua_rosada_long
					name = house_of_agua_rosada
				}

				add_country_leader_role = {
					character =  COG_pedro_vii_alfonso
					promote_leader = yes
					country_leader = {
						ideology = despotism
						expire = "1969.1.1.1"
						traits = { manikongo_of_kongo } 
					}
				}
			}

		}

	}

	option = { # We must destroy them for the protection of our people! ("CONGO SAID NO!!!")
		name = wuw_GER_weltpolitik.11.a	

		create_wargoal = {
			type = puppet_wargoal_focus
			target = COG
		}	
		
	}
}

# Germany Requests the Return of Former Colonial Territories - event for ENG
country_event = { 
	id = wuw_GER_weltpolitik.12
	title = wuw_GER_weltpolitik.12.t
	desc = wuw_GER_weltpolitik.12.desc 
	picture = GFX_report_event_king_speech

	is_triggered_only = yes

	option = { # Anything for our friends
		name = wuw_GER_weltpolitik.12.a
		ai_chance = {
			base = 70
			modifier = {
				factor = 2
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
			modifier = {
				factor = 3
				ROOT = {
					has_opinion = {
						target = FROM
						value > 90
					}	
				}
			}
		}		

		add_political_power = 100

		custom_effect_tooltip = generic_skip_one_line_tt
		
		FROM = {
			# FROM gives us the land ☆*:.｡.o(≧▽≦)o.｡.:*☆
			country_event = { 
				id = wuw_GER_weltpolitik.13
				days = 1
				random_days = 2 
			}
		}
		effect_tooltip = {
			every_state = {
				limit = {
					OR = {
						is_owned_and_controlled_by = ROOT
						is_owned_and_controlled_by = SAF
						is_owned_and_controlled_by = NZL
						is_owned_and_controlled_by = AST
					}
					OR = {
						state = 773
						state = 777
						state = 546
						state = 768
						state = 769
						state = 895
						state = 894
						state = 541
						state = 893
						state = 743
						state = 647
						state = 979
						state = 737
						state = 684
						state = 633
						state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
						state = 646
						state = 726
						state = 725
					}
				}
				transfer_state_to = FROM
			}
		}
		
	}

	option = { # No, they are ours now
		name = wuw_GER_weltpolitik.12.b
		ai_chance = {
			base = 30
			modifier = {
				factor = 0.5
				ROOT = {
					has_opinion = {
						target = FROM
						value > 55
					}	
				}
			}
		}		
		
		add_political_power = -50

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			# FROM denies us the land 。：゜(；´∩｀；)゜：。
			country_event = { 
				id = wuw_GER_weltpolitik.14
				days = 1
				random_days = 2 
			}
		}

	}
}

# Britain returns our Colonies - event for GER
country_event = { 
	id = wuw_GER_weltpolitik.13
	title = wuw_GER_weltpolitik.13.t
	desc = wuw_GER_weltpolitik.13.desc 
	picture = GFX_report_event_journalists_speech

	is_triggered_only = yes

	option = { # Imperialism is back on the menu!
		name = wuw_GER_weltpolitik.13.a	
		
		every_state = {
			limit = {
				is_owned_and_controlled_by = FROM
				OR = {
					state = 773
					state = 777
					state = 546
					state = 768
					state = 769
					state = 895
					state = 894
					state = 541
					state = 893
					state = 743
					state = 647
					state = 979
					state = 737
					state = 684
					state = 633
					state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
					state = 646
					state = 726
					state = 725
				}
			}
			transfer_state_to = ROOT
		}

		custom_effect_tooltip =  generic_skip_one_line_tt

		IF = {
			limit = {
				NZL = {
					is_subject_of = FROM
				}
			}
			effect_tooltip = {
				every_state = {
					limit = {
						is_owned_and_controlled_by = NZL
						OR = {
							state = 773
							state = 777
							state = 546
							state = 768
							state = 769
							state = 895
							state = 894
							state = 541
							state = 893
							state = 743
							state = 647
							state = 979
							state = 737
							state = 684
							state = 633
							state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
							state = 646
							state = 726
							state = 725
						}
					}
					transfer_state_to = ROOT
				}
			}
			NZL = {
				country_event = { 
					id = wuw_GER_weltpolitik.15
					hours = 1
					random_hours = 2 
				}
			}
		}

		custom_effect_tooltip =  generic_skip_one_line_tt

		IF = {
			limit = {
				AST = {
					is_subject_of = FROM
				}
			}
			effect_tooltip = {
				every_state = {
					limit = {
						is_owned_and_controlled_by = AST
						OR = {
							state = 773
							state = 777
							state = 546
							state = 768
							state = 769
							state = 895
							state = 894
							state = 541
							state = 893
							state = 743
							state = 647
							state = 979
							state = 737
							state = 684
							state = 633
							state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
							state = 646
							state = 726
							state = 725
						}
					}
					transfer_state_to = ROOT
				}
			}
			AST = {
				country_event = { 
					id = wuw_GER_weltpolitik.15
					hours = 1
					random_hours = 2 
				}
			}
		}
		
		custom_effect_tooltip =  generic_skip_one_line_tt

		IF = {
			limit = {
				SAF = {
					is_subject_of = FROM
				}
			}
			effect_tooltip = {
				every_state = {
					limit = {
						is_owned_and_controlled_by = SAF
						OR = {
							state = 773
							state = 777
							state = 546
							state = 768
							state = 769
							state = 895
							state = 894
							state = 541
							state = 893
							state = 743
							state = 647
							state = 979
							state = 737
							state = 684
							state = 633
							state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
							state = 646
							state = 726
							state = 725
						}
					}
					transfer_state_to = ROOT
				}
			}
			SAF = {
				country_event = { 
					id = wuw_GER_weltpolitik.15
					hours = 1
					random_hours = 2 
				}
			}
		}

	}
}

# Britain doesn't return our Colonies - event for GER
country_event = { 
	id = wuw_GER_weltpolitik.14
	title = wuw_GER_weltpolitik.14.t
	desc = wuw_GER_weltpolitik.14.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # It wasn't meant to be...
		name = wuw_GER_weltpolitik.14.a	
		
		add_political_power = -25

	}
}

# Our Overlords hands some of our states to GER - event for British subject that owns former German colonies
country_event = { 
	id = wuw_GER_weltpolitik.15
	title = wuw_GER_weltpolitik.15.t
	desc = wuw_GER_weltpolitik.15.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # We demand compesnation!
		name = wuw_GER_weltpolitik.15.a		

		every_state = {
			every_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					OR = {
						state = 773
						state = 777
						state = 546
						state = 768
						state = 769
						state = 895
						state = 894
						state = 541
						state = 893
						state = 743
						state = 647
						state = 979
						state = 737
						state = 684
						state = 633
						state = 634 # If Bougainville is ever made it's own state switch this and the associated decision from 634 to that!
						state = 646
						state = 726
						state = 725
					}
				}
				transfer_state_to = GER
			}
		}
		
		add_political_power = 120
		add_timed_idea = {
			idea = GER_compensation_for_transferred_colonies
			days = 365
		}	

	}
}

country_event = { # GER wants Asian Spheres of influence - event for CHINA 
	id = wuw_GER_weltpolitik.16
	title = wuw_GER_weltpolitik.16.t
	desc = wuw_GER_weltpolitik.16.desc
	picture = GFX_report_event_german_italian_pact

	is_triggered_only = yes

	fire_only_once = yes 

	option = { # okay
		name = wuw_GER_weltpolitik.16.a

		FROM = {
			set_country_flag = GER_CHI_agreed_sphere_of_influence
			country_event = {
				id = wuw_GER_weltpolitik.17
				hours = 6
			}
		}

		GER_setup_GER_asia_sphere_of_influence_array = yes
		GER_setup_CHI_sphere_of_influence_array = yes
	}

	option = { # No thanks
		name = wuw_GER_weltpolitik.16.b

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = medium_decrease
			}

			country_event = {
				id = wuw_GER_weltpolitik.18
				hours = 6
			}
		}

	}

}

country_event = { # CHI accepts sphere of influence - event for GER
	id = wuw_GER_weltpolitik.17
	title = wuw_GER_weltpolitik.17.t
	desc = wuw_GER_weltpolitik.17.desc
	picture = GFX_report_event_hitler_handshake # R56

	is_triggered_only = yes

	fire_only_once = yes 

	option = { # yatta!
		name = wuw_GER_weltpolitik.17.a

	}
}

country_event = { # CHI rejects sphere of influence - event for GER
	id = wuw_GER_weltpolitik.18
	title = wuw_GER_weltpolitik.18.t
	desc = wuw_GER_weltpolitik.18.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	fire_only_once = yes 

	option = { # meesa angy
		name = wuw_GER_weltpolitik.18.a

	}
}

# Germany demands ownership of our Angolan territories - event for owner of a Angolan core
country_event = {
	id = wuw_GER_weltpolitik.19
	title = wuw_GER_weltpolitik.19.t
	desc = wuw_GER_weltpolitik.19.desc
	picture = GFX_report_event_GER_grenzshutz_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = wuw_GER_weltpolitik.19.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.3
				original_tag = ANG
			}
			modifier = {
				strength_ratio = { tag = GER ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_weltpolitik.20
				days = 2
				random_days = 3
			}
		} 

	}

	# Then come and get it!
	option = { 
		name = wuw_GER_weltpolitik.19.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 1.5
				original_tag = ANG
			}
			modifier = {
				strength_ratio = { tag = GER ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_weltpolitik.21
				days = 2
				random_days = 3
			}
		} 

	}
}

# FROM hands over their Angolan territories - event for GER
country_event = {
	id = wuw_GER_weltpolitik.20
	title = wuw_GER_weltpolitik.20.t
	desc = wuw_GER_weltpolitik.20.desc
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = wuw_GER_weltpolitik.20.a
		ai_chance = {
			factor = 100
		}

		add_war_support = 0.01
		add_stability = 0.01

		every_state = {
			limit = {
				is_core_of = ANG
				is_owned_and_controlled_by = FROM
			}
			transfer_state_to = ROOT
		}

	}
}

# FROM does not hand over their Angolan territories - event for GER
country_event = {
	id = wuw_GER_weltpolitik.21
	title = wuw_GER_weltpolitik.21.t
	desc = wuw_GER_weltpolitik.21.desc
	picture = GFX_report_event_GER_black_reichswehr_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = wuw_GER_weltpolitik.21.a
		ai_chance = {
			factor = 80
		}

		add_war_support = 0.02

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = wuw_GER_weltpolitik.21.b
		ai_chance = {
			factor = 20
		}

		add_political_power = 25

		add_war_support = -0.02
		add_stability = -0.02

	}
}



### CHINESE OVERTURES EVENTS ###

# Germany Sends us Arms and Materials - event for CHI (any country which is LITERALLY china) (＞▽＜)b OK!!
country_event = { 
	id = wuw_GER_chinese_diplomacy.1 
	title = wuw_GER_chinese_diplomacy.1.t
	desc = wuw_GER_chinese_diplomacy.1.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # This will come in handy
		name = wuw_GER_chinese_diplomacy.1.a
		ai_chance = {
			base = 100
		}		
		
		add_equipment_to_stockpile = { 
			type = infantry_equipment
			amount = 2500
			producer = GER
		}
		add_equipment_to_stockpile = { 
			type = support_equipment
			amount = 250
			producer = GER
		}	
		add_equipment_to_stockpile = { 
			type = artillery_equipment
			amount = 100
			producer = GER
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_timed_idea = {
			idea = GER_aid_in_military_industrialization
			days = 365
		}

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

			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_airframe
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = infantry_equipment
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = motorized_equipment
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = artillery_equipment
				seller_tags = { GER } 
			}
		}

	}
}

# Germany Offers Industrial Aid in Exchange for Resource Rights - event for CHI (any country which is LITERALLY china) (＞▽＜)b OK!!
country_event = { 
	id = wuw_GER_chinese_diplomacy.2
	title = wuw_GER_chinese_diplomacy.2.t
	desc = wuw_GER_chinese_diplomacy.2.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # A great friend indeed
		name = wuw_GER_chinese_diplomacy.2.a
		ai_chance = {
			base = 98
		}	

		IF = {
			limit = {
				has_idea = GER_chi_ger_trade_ns
			}
			swap_ideas = {
				remove_idea = GER_chi_ger_trade_ns
				add_idea = GER_chi_ger_trade_ns_2
			}	
		}
		ELSE = {
			add_ideas = GER_chi_ger_trade_ns_2
		}
		
		add_timed_idea = {
			idea = GER_aid_in_industrialization
			days = 365
		}

		custom_effect_tooltip = generic_skip_one_line_tt	

		FROM = {
			# FROM Accepts our Offer （｡>‿‿<｡ ）
			country_event = { 
				id = wuw_GER_chinese_diplomacy.3
				days = 2
				random_days = 3 
			}
		}
		
	}

	option = { # We can't offer up our natural resources
		name = wuw_GER_chinese_diplomacy.2.b
		ai_chance = {
			base = 2
		}		
		
		FROM = {
			# FROM Refuses our Offer ｢(ﾟﾍﾟ)
			country_event = { 
				id = wuw_GER_chinese_diplomacy.4
				days = 2
				random_days = 3 
			}
		}

	}
}

# China Accepts our Offer - event for GER
country_event = { 
	id = wuw_GER_chinese_diplomacy.3
	title = wuw_GER_chinese_diplomacy.3.t
	desc = wuw_GER_chinese_diplomacy.3.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # Great
		name = wuw_GER_chinese_diplomacy.3.a
		ai_chance = {
			base = 100
		}	

		add_political_power = 10
		
	}
}

# China Rejects our Offer - event for GER
country_event = { 
	id = wuw_GER_chinese_diplomacy.4
	title = wuw_GER_chinese_diplomacy.4.t
	desc = wuw_GER_chinese_diplomacy.4.desc 
	picture = GFX_report_event_gre_diplomacy

	is_triggered_only = yes

	option = { # Great
		name = wuw_GER_chinese_diplomacy.4.a
		ai_chance = {
			base = 100
		}	

		
		
	}
}

# The Sino-German Joint Research Program - event for CHI (any country which is LITERALLY china) (＞▽＜)b OK!!
country_event = { 
	id = wuw_GER_chinese_diplomacy.5
	title = wuw_GER_chinese_diplomacy.5.t
	desc = wuw_GER_chinese_diplomacy.5.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # A great initiative!
		name = wuw_GER_chinese_diplomacy.5.a
		ai_chance = {
			base = 100
		}	

		FROM = {
			# FROM Accepts our Offer (و ˃̵ᴗ˂̵)و
			country_event = { 
				id = wuw_GER_chinese_diplomacy.6
				days = 2
				random_days = 3 
			}
		}
		effect_tooltip = {
			add_timed_idea = {
				idea = GER_investments_into_sino_german_research_cooperation_idea
				days = 360
			}	

			custom_effect_tooltip = generic_skip_one_line_tt

			FROM = {
				add_to_tech_sharing_group = ger_chi_research
			}
			add_to_tech_sharing_group = ger_chi_research 
			
		}
		
	}

	option = { # We don't feel like this will help us
		name = wuw_GER_chinese_diplomacy.5.b
		ai_chance = {
			base = 0
		}		
		
		FROM = {
			# FROM Refuses our Offer ¯\(ツ)/¯
			country_event = { 
				id = wuw_GER_chinese_diplomacy.7
				days = 2
				random_days = 3 
			}
		}

	}
}

# China Accepts our Offer (tech exchange) - event for GER
country_event = { 
	id = wuw_GER_chinese_diplomacy.6
	title = wuw_GER_chinese_diplomacy.6.t
	desc = wuw_GER_chinese_diplomacy.6.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Yippee
		name = wuw_GER_chinese_diplomacy.6.a
		ai_chance = {
			base = 100
		}	

		add_political_power = 100

		FROM = {
			add_timed_idea = {
				idea = GER_investments_into_sino_german_research_cooperation_idea
				days = 360
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_to_tech_sharing_group = ger_chi_research
		FROM = {
			add_to_tech_sharing_group = ger_chi_research 
		}
		
	}
}

# China Rejects our Offer (tech exchange) - event for GER
country_event = { 
	id = wuw_GER_chinese_diplomacy.7
	title = wuw_GER_chinese_diplomacy.7.t
	desc = wuw_GER_chinese_diplomacy.7.desc 
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { # Sadge
		name = wuw_GER_chinese_diplomacy.7.a
		ai_chance = {
			base = 100
		}	

		add_political_power = 50
		
	}
}

### REICHSKOMMISSARIAT EVENTS ###

# A Leader for Belgien-Nordfrankreich - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.1
	title = wuw_GER_reichskommissariats.1.t
	desc = wuw_GER_reichskommissariats.1.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					BEL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				BEL = {
					set_nationality = {
					    target_country = RKB
					    character = BEL_leon_degrelle
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.1.a
		ai_chance = {
			base = 85
		}	

		RKB = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					BEL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKB = {
					set_nationality = {
					    target_country = BEL
					    character = BEL_leon_degrelle
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.1.b
		trigger = {
			BEL = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKB = {
			BEL_leon_degrelle = {
				promote_character = yes 
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Niederlande - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.2
	title = wuw_GER_reichskommissariats.2.t
	desc = wuw_GER_reichskommissariats.2.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {

		hidden_effect = {
			IF = {
				limit = {
					AUS = {
						exists = no
					}
				}
				AUS = {
					set_nationality = {
					    target_country = RKN
					    character = AUS_arthur_seyss-inquart
					}
				}
			}
			ELSE_IF = {
				limit = {
					AUS = {
						exists = yes
					}
				}
				AUS = {
					set_nationality = {
					    target_country = RKN
					    character = AUS_edmund_glaise_horstenau
					}
				}
			}

			IF = {
				limit = {
					HOL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				HOL = {
					set_nationality = {
					    target_country = RKN
					    character = HOL_anton_mussert
					}
				}
			}
		}

	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.2.a
		ai_chance = {
			base = 85
		}	

		RKN = {
			IF = {
				limit = {
					AUS = {
						exists = no
					}
				}
				AUS_arthur_seyss-inquart = {
					remove_country_leader_role = {
						ideology = nazism
					}	
				}
				add_country_leader_role = {
					character = AUS_arthur_seyss-inquart
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1954.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}
			}
			ELSE_IF = {
				limit = {
					AUS = {
						exists = yes
					}
				}
				AUS_edmund_glaise_horstenau = {
					remove_country_leader_role = {
						ideology = nazism
					}	
				}
				add_country_leader_role = {
					character = AUS_edmund_glaise_horstenau
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1954.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					HOL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKN = {
					set_nationality = {
					    target_country = HOL
					    character = HOL_anton_mussert
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.2.b
		trigger = {
			HOL = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKN = {
			HOL_anton_mussert = {
				promote_character = yes 
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					AUS = {
						exists = no
					}
				}
				RKN = {
					set_nationality = {
					    target_country = AUS
					    character = AUS_arthur_seyss-inquart
					}
				}
			}
			ELSE_IF = {
				limit = {
					AUS = {
						exists = yes
					}
				}
				RKN = {
					set_nationality = {
					    target_country = AUS
					    character = AUS_edmund_glaise_horstenau
					}
				}
			}
		}

	}
}

# A Leader for Norwegen - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.3
	title = wuw_GER_reichskommissariats.3.t
	desc = wuw_GER_reichskommissariats.3.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					NOR = {
						NOT = {
							has_country_leader = {
								ruling_only = yes
								character = NOR_vidkun_quisling
							}	
						}
					}
				}
				NOR = {
					set_nationality = {
					    target_country = RKG
					    character = NOR_vidkun_quisling
					}
				}
			}
			IF = {
				limit = {
					NOR = {
						NOT = {
							has_country_leader = {
								ruling_only = yes
								character = NOR_josef_terboven
							}	
						}
					}
				}
				NOR = {
					set_nationality = {
					    target_country = RKG
					    character = NOR_josef_terboven
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.3.a
		trigger = {
			NOR = {
				NOT = {
					has_country_leader = {
						ruling_only = yes
						character = NOR_josef_terboven
					}	
				}
			}
		}
		ai_chance = {
			base = 85
		}	

		RKG = {
			NOR_josef_terboven = {
				promote_character = yes 
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					NOR = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKG = {
					set_nationality = {
					    target_country = NOR
					    character = NOR_vidkun_quisling
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.3.b
		trigger = {
			NOR = {
				NOT = {
					has_country_leader = {
						ruling_only = yes
						character = NOR_vidkun_quisling
					}	
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKG = {
			NOR_vidkun_quisling = {
				promote_character = yes 
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Ukraine - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.4
	title = wuw_GER_reichskommissariats.4.t
	desc = wuw_GER_reichskommissariats.4.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					UKR = {
						exists = no
					}
				}
				UKR = {
					set_nationality = {
					    target_country = RKU
					    character = UKR_mykhailo_omelianovych_pavlenko
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.4.a
		ai_chance = {
			base = 85
		}	

		RKU = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					UKR = {
						exists = no
					}
				}
				RKU = {
					set_nationality = {
					    target_country = UKR
					    character = UKR_mykhailo_omelianovych_pavlenko
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.4.b
		trigger = {
			UKR = {
				exists = no
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKU = {
			UKR_mykhailo_omelianovych_pavlenko = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Ostland - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.5
	title = wuw_GER_reichskommissariats.5.t
	desc = wuw_GER_reichskommissariats.5.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					BLR = {
						OR = {
							exists = no
							AND = {
								exists = yes
							}
							NOT = {
								has_government = fascism
							}
						}
					}
				}
				BLR = {
					set_nationality = {
					    target_country = RKO
					    character = BLR_radaslau_astrouski #R56
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.5.a
		ai_chance = {
			base = 85
		}	

		RKO = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					BLR = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKO = {
					set_nationality = {
					    target_country = BLR
					    character = BLR_radaslau_astrouski #R56
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.5.b
		trigger = {
			BLR = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKO = {
			BLR_radaslau_astrouski = { #R56
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = "1965.3.1"
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Kaukasien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.6
	title = wuw_GER_reichskommissariats.6.t
	desc = wuw_GER_reichskommissariats.6.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					GEO = {
						exists = no
					}
				}
				GEO = {
					set_nationality = {
					    target_country = RKK
					    character = GEO_shalva_maglakelidze
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.6.a
		ai_chance = {
			base = 85
		}	

		RKK = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					GEO = {
						exists = no
					}
				}
				RKK = {
					set_nationality = {
					    target_country = GEO
					    character = GEO_shalva_maglakelidze
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.6.b
		trigger = {
			GEO = {
				exists = no
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKK = {
			GEO_shalva_maglakelidze = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Turkestan - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.7
	title = wuw_GER_reichskommissariats.7.t
	desc = wuw_GER_reichskommissariats.7.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = GER_lessons_of_the_great_war
						}
					}
				}
				ROOT = {
					set_nationality = {
					    target_country = RKT
					    character = GER_friedrich_schulz
					}
				}
			}
			IF = {
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = GER_panzer_troops_school
						}
					}
				}
				ROOT = {
					set_nationality = {
					    target_country = RKT
					    character = GER_hasso_von_manteuffel
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.7.a
		ai_chance = {
			base = 15
		}	

		IF = {
			limit = {
				ROOT = {
					NOT = {
						has_completed_focus = GER_lessons_of_the_great_war
					}
				}
			}
			RKT = {
				GER_friedrich_schulz = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_ideas = GER_german_controlled_reichskommissariat
			}
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = GER_panzer_troops_school
						}
					}
				}
				RKT = {
					set_nationality = {
					    target_country = ROOT
					    character = GER_hasso_von_manteuffel
					}
				}
			}
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					NOT = {
						has_completed_focus = GER_panzer_troops_school
					}
				}
			}
			RKT = {
				GER_hasso_von_manteuffel = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_ideas = GER_german_controlled_reichskommissariat
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.7.b
		trigger = {
		}
		ai_chance = {
			base = 85
		}		
		
		RKT = {
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = GER_lessons_of_the_great_war
						}
					}
				}
				RKT = {
					set_nationality = {
					    target_country = ROOT
					    character = GER_friedrich_schulz
					}
				}
			}
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = GER_panzer_troops_school
						}
					}
				}
				RKT = {
					set_nationality = {
					    target_country = ROOT
					    character = GER_hasso_von_manteuffel
					}
				}
			}
		}

	}
}

# A Leader for Moskowien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.8
	title = wuw_GER_reichskommissariats.8.t
	desc = wuw_GER_reichskommissariats.8.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					SOV = {
						NOT = {
							has_government = fascism
						}
					}
				}
				SOV = {
					set_nationality = {
					    target_country = RKM
					    character = SOV_konstantin_rodzayevsky
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.8.a
		ai_chance = {
			base = 95
		}	

		RKM = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					SOV = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKM = {
					set_nationality = {
					    target_country = SOV
					    character = SOV_konstantin_rodzayevsky
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.8.b
		trigger = {
			SOV = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 5
		}		
		
		RKM = {
			SOV_konstantin_rodzayevsky = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# The Status of Volga Germany - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.9
	title = wuw_GER_reichskommissariats.9.t
	desc = wuw_GER_reichskommissariats.9.desc 
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	option = { # It should be turned into a Reichsgebieten!
		name = wuw_GER_reichskommissariats.9.a
		ai_chance = {
			base = 80
		}	

		add_political_power = -75

		custom_effect_tooltip = generic_skip_one_line_tt

		829 = {
			transfer_state_to = ROOT
			add_core_of = ROOT
		}
		
	}

	option = { # It should be incorporated into Moskowien
		name = wuw_GER_reichskommissariats.9.b
		trigger = {
			RKM = {
				exists = yes
			}
		}
		ai_chance = {
			base = 20
		}		
		
		829 = {
			transfer_state_to = RKM
			add_compliance = 45	
		}

	}

	option = { # It should be incorporated into Turkestan
		name = wuw_GER_reichskommissariats.9.c
		trigger = {
			RKT = {
				exists = yes
			}
		}
		ai_chance = {
			base = 0
		}		
		
		829 = {
			transfer_state_to = RKT
			add_compliance = 45	
		}

	}
}

# The Status of the Southern Urals - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.10
	title = wuw_GER_reichskommissariats.10.t
	desc = wuw_GER_reichskommissariats.10.desc 
	picture = GFX_report_event_fascist_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				POL = {
					set_nationality = {
					    target_country = RKL
					    character = POL_rudinger_von_der_goltz
					}
				}
			}
			ELSE = {
				ROOT = {
					set_nationality = {
					    target_country = RKL
					    character = GER_friedrich_paulus
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # It should be its own Reichskommissariat
		name = wuw_GER_reichskommissariats.10.a
		ai_chance = {
			base = 25
		}	
		
		GER_improve_rosenbergs_trait_effect = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		251 = {
			transfer_state_to = RKL
			add_compliance = 30
		}

		custom_effect_tooltip = GER_reichskommissariat_ural_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_RK_south_urals_state = yes
					NOT = {
						state = 251
					}
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKL
				add_compliance = 25
			}
			every_state = {	
				limit = {
					GER_is_RK_south_urals_state = yes
					NOT = {
						state = 251
					}
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
				}
				add_contested_owner = RKL
				set_state_controller_to = RKL
				add_claim_by = RKL
				add_compliance = 25
			}

			RKL = {
				add_manpower = 50000
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 5000
					producer = GER
				}	
				add_equipment_to_stockpile = { 
					type = support_equipment
					amount = 500
					producer = GER
				}	
				load_oob = "RK_OOB"
			}
		}

		set_autonomy = { 
			target = RKL 
			autonomy_state = autonomy_integrated_puppet 
		}

		IF = {
			limit = {
				POL = {
					NOT = {
						AND = {
							has_completed_focus = POL_restore_bermontians
							exists = yes
						}
					}
				}
			}
			RKL = {
				POL_rudinger_von_der_goltz = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_ideas = GER_german_controlled_reichskommissariat
			}
		}
		ELSE = {
			RKL = {
				GER_friedrich_paulus = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_ideas = GER_german_controlled_reichskommissariat
			}
		}
		
	}

	option = { # It should be incorporated into Moskowien
		name = wuw_GER_reichskommissariats.10.b
		trigger = {
			RKM = {
				exists = yes
			}
		}
		ai_chance = {
			base = 70
		}		
		
		custom_effect_tooltip = GER_reichskommissariat_ural_rkm_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_RK_south_urals_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKM
			}
			every_state = {	
				limit = {
					GER_is_RK_south_urals_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
				}
				add_contested_owner = RKM
				set_state_controller_to = RKM
				add_claim_by = RKM
			}

			RKM = {
				add_manpower = 15000
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = GER
				}	
				add_equipment_to_stockpile = { 
					type = support_equipment
					amount = 250
					producer = GER
				}	
			}

			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				RKL = {
					set_nationality = {
					    target_country = POL
					    character = POL_rudinger_von_der_goltz
					}
				}
			}
		}

	}

	option = { # It should be incorporated into Turkestan
		name = wuw_GER_reichskommissariats.10.c
		trigger = {
			RKT = {
				exists = yes
			}
		}
		ai_chance = {
			base = 5
		}		
		
		custom_effect_tooltip = GER_reichskommissariat_ural_rkt_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_RK_south_urals_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKT
			}
			every_state = {	
				limit = {
					GER_is_RK_south_urals_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
				}
				add_contested_owner = RKT
				set_state_controller_to = RKT
				add_claim_by = RKT
			}

			RKT = {
				add_manpower = 15000
				add_equipment_to_stockpile = { 
					type = infantry_equipment
					amount = 500
					producer = GER
				}	
				add_equipment_to_stockpile = { 
					type = support_equipment
					amount = 250
					producer = GER
				}	
			}

			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				RKL = {
					set_nationality = {
					    target_country = POL
					    character = POL_rudinger_von_der_goltz
					}
				}
			}
		}

	}
}

# The Status of Eastern Karelia - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.11
	title = wuw_GER_reichskommissariats.11.t
	desc = wuw_GER_reichskommissariats.11.desc 
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	option = { # Finland should be rewarded
		name = wuw_GER_reichskommissariats.11.a
		ai_chance = {
			base = 50
		}	
		trigger = {
			FIN = {
				exists = yes
				OR = {
					is_subject_of = ROOT
					is_in_faction_with = ROOT
					AND = {
						has_idea = FIN_the_lone_wolf
						NOT = {
							has_country_flag = FIN_already_attempted_an_armistice
						}
					}
				}
				OR = {
					owns_state = 722
					owns_state = 147
					owns_state = 146
					owns_state = 929
				}
			}
		}
		
		custom_effect_tooltip = GER_karelia_fin_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					OR = {
						GER_is_soviet_greater_finland_state = yes
						GER_is_additional_soviet_greater_finland_state = yes
					}
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
						is_controlled_by = ROOT
						is_controlled_by = FIN
					}
				}
				transfer_state_to = FIN
			}
		}
		
	}

	option = { # It should be incorporated into Moskowien
		name = wuw_GER_reichskommissariats.11.b
		trigger = {
			RKM = {
				exists = yes
			}
		}
		ai_chance = {
			base = 50
		}		
		
		custom_effect_tooltip = GER_karelia_rkm_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					OR = {
						GER_is_soviet_greater_finland_state = yes
						GER_is_additional_soviet_greater_finland_state = yes
					}
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKM
			}
			every_state = {	
				limit = {
					OR = {
						GER_is_soviet_greater_finland_state = yes
						GER_is_additional_soviet_greater_finland_state = yes
					}
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				add_contested_owner = RKM
				set_state_controller_to = RKM
				add_claim_by = RKM
			}
		}

	}
}

# A Leader for the Generalgouvernement - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.12
	title = wuw_GER_reichskommissariats.12.t
	desc = wuw_GER_reichskommissariats.12.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					POL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				POL = {
					set_nationality = {
					    target_country = GEN
					    character = POL_boleslaw_piasecki
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.12.a
		ai_chance = {
			base = 100
		}	

		GEN = {
			add_ideas = GER_government_general_idea
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					POL = {
						NOT = {
							has_government = fascism
						}
					}
				}
				GEN = {
					set_nationality = {
					    target_country = POL
					    character = POL_boleslaw_piasecki
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.12.b
		trigger = {
			POL = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 0
		}		
		
		GEN = {
			POL_boleslaw_piasecki = {
				remove_country_leader_role = {
					ideology = falangism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = falangism
						expire = 1960.1.1
						traits = { unruly_falangist_marionette } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_government_general_idea
		}

	}
}

# A Leader for the Böhmen-Mähren - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.13
	title = wuw_GER_reichskommissariats.13.t
	desc = wuw_GER_reichskommissariats.13.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					CZE = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				CZE = {
					set_nationality = {
					    target_country = RKH
					    character = CZE_jaroslav_krejchi
					}
				}
			}

			IF = {
				limit = {
					has_completed_focus = GER_reorganize_the_wehrmacht
				}
				GER = {
					set_nationality = {
					    target_country = RKH
					    character = GER_konstantin_von_neurath
					}
				}
			}
			ELSE_IF = {
				limit = {
					has_completed_focus = GER_heed_von_neuraths_concerns
				}
				GER = {
					set_nationality = {
					    target_country = RKH
					    character = GER_johannes_blaskowitz
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.13.a
		ai_chance = {
			base = 100
		}	

		RKH = {
			add_ideas = GER_reichsprotectorate_idea
			IF = {
				limit = {
					ROOT = {
						has_completed_focus = GER_reorganize_the_wehrmacht
					}
				}
				GER_konstantin_von_neurath = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichsprotektor_trait } 
						}
					}	
				}
			}
			ELSE_IF = {
				limit = {
					ROOT = {
						has_completed_focus = GER_heed_von_neuraths_concerns
					}
				}
				GER_johannes_blaskowitz = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichsprotektor_trait } 
						}
					}	
				}
			}
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					CZE = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RKH = {
					set_nationality = {
					    target_country = CZE
					    character = CZE_jaroslav_krejchi
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.13.b
		trigger = {
			CZE = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 0
		}		
		
		RKH = {
			CZE_jaroslav_krejchi = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichsprotektor_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_reichsprotectorate_idea
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					has_completed_focus = GER_reorganize_the_wehrmacht
				}
				RKH = {
					set_nationality = {
					    target_country = GER
					    character = GER_konstantin_von_neurath
					}
				}
			}
			ELSE_IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					has_completed_focus = GER_heed_von_neuraths_concerns
				}
				RKH = {
					set_nationality = {
					    target_country = GER
					    character = GER_johannes_blaskowitz
					}
				}
			}
		}

	}
}

# A Leader for Iberien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.14
	title = wuw_GER_reichskommissariats.14.t
	desc = wuw_GER_reichskommissariats.14.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					SPR = {
						NOT = {
							has_government = fascism
						}
					}
					SPA = {
						NOT = {
							has_government = fascism
						}
					}
				}
				every_possible_country = {
					limit = {
						has_character = SPA_emilio_mola
					}
					set_nationality = {
					    target_country = RKI
					    character = SPA_emilio_mola
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.14.a
		ai_chance = {
			base = 95
		}	

		RKI = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					SPR = {
						NOT = {
							has_government = fascism
						}
					}
				}
				RKI = {
					set_nationality = {
					    target_country = SPR
					    character = SPA_emilio_mola
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.14.b
		trigger = {
			SPR = {
				NOT = {
					has_government = fascism
				}
			}
			SPA = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 5
		}		
		
		RKI = {
			SPA_emilio_mola = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}

# A Leader for Balkan - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.15
	title = wuw_GER_reichskommissariats.15.t
	desc = wuw_GER_reichskommissariats.15.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			# Local Guy
			IF = {
				limit = {
					CRO = {
						OR = {
							NOT = {
								has_government = fascism
							}
							exists = no
						}
					}
				}
				CRO = {
					set_nationality = {
					    target_country = RKC
					    character = CRO_ante_pavelic
					}
				}
			}

			# German Guy
			IF = {
				limit = {
					HUN = {
						OR = {
							NOT = {
								has_completed_focus = HUN_elect_a_fascist_king
								has_completed_focus = wuw_HUN_elect_a_fascist_king
							}
							exists = no
						}
					}
				}
				HUN = {
					set_nationality = {
					    target_country = RKC
					    character = HUN_franz_friedrich
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RKC
					    character = GER_georghans_reinhardt
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.15.a
		ai_chance = {
			base = 55
		}	

		RKC = {
			IF = {
				limit = {
					HUN = {
						OR = {
							NOT = {
								has_completed_focus = HUN_elect_a_fascist_king
								has_completed_focus = wuw_HUN_elect_a_fascist_king
							}
							exists = no
						}
					}
				}
				HUN_franz_friedrich = {
					remove_country_leader_role = {
						ideology = nazism
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE = {
				GER_georghans_reinhardt = {
					remove_country_leader_role = {
						ideology = nazism
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					CRO = {
						OR = {
							NOT = {
								has_government = fascism
							}
							exists = no
						}
					}
				}
				RKC = {
					set_nationality = {
					    target_country = CRO
					    character = CRO_ante_pavelic
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.15.b
		trigger = {
			CRO = {
				OR = {
					NOT = {
						has_government = fascism
					}
					exists = no
				}
			}
		}
		ai_chance = {
			base = 45 # R56 vanilla fix
		}		
		
		RKC = {
			CRO_ante_pavelic = {
				remove_country_leader_role = {
					ideology = nazism
				}
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					HUN = {
						OR = {
							NOT = {
								has_completed_focus = HUN_elect_a_fascist_king
								has_completed_focus = wuw_HUN_elect_a_fascist_king
							}
							exists = no
						}
					}
				}
				RKC = {
					set_nationality = {
					    target_country = HUN
					    character = HUN_franz_friedrich
					}
				}
			}
			ELSE = {
				RKC = {
					set_nationality = {
					    target_country = GER
					    character = GER_georghans_reinhardt
					}
				}
			}
		}

	}
}

# A Leader for Großbritannien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.16
	title = wuw_GER_reichskommissariats.16.t
	desc = wuw_GER_reichskommissariats.16.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			# Local Guy
			IF = {
				limit = {
					ENG = {
						OR = {
							NOT = {
								has_government = fascism
							}
							exists = no
						}
					}
				}
				ENG = {
					set_nationality = {
					    target_country = RGB
					    character = ENG_oswald_mosley
					}
				}
			}

			# German Guy
			IF = {
				limit = {
					HES = {
						exists = no
					}
				}
				HES = {
					set_nationality = {
					    target_country = RGB
					    character = HES_philipp_of_hesse
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RGB
					    character = GER_otto_strasser
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.16.a
		ai_chance = {
			base = 55
		}	

		RGB = {
			IF = {
				limit = {
					HES = {
						exists = no
					}
				}
				HES_philipp_of_hesse = {
					remove_country_leader_role = {
						ideology = nazism
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_otto_strasser = {
					remove_country_leader_role = {
						ideology = nazism
					}
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					ENG = {
						OR = {
							NOT = {
								has_government = fascism
							}
							exists = no
						}
					}
				}
				RGB = {
					set_nationality = {
					    target_country = ENG
					    character = ENG_oswald_mosley
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.16.b
		trigger = {
			CRO = {
				OR = {
					NOT = {
						has_government = fascism
					}
					exists = no
				}
			}
		}
		ai_chance = {
			base = ´45
		}		
		
		RGB = {
			ENG_oswald_mosley = {
				remove_country_leader_role = {
					ideology = nazism
				}
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					HES = {
						exists = no
					}
				}
				RGB = {
					set_nationality = {
					    target_country = HES
					    character = HES_philipp_of_hesse
					}
				}
			}
			ELSE = {
				RGB = {
					set_nationality = {
					    target_country = GER
					    character = GER_otto_strasser
					}
				}
			}
		}

	}
}

# The Status of Slovakia - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.17
	title = wuw_GER_reichskommissariats.17.t
	desc = wuw_GER_reichskommissariats.17.desc 
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	option = { # Hungary should be rewarded
		name = wuw_GER_reichskommissariats.17.a
		ai_chance = {
			base = 35
		}	
		trigger = {
			HUN = {
				exists = yes
				has_capitulated = no
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				OR = {
					owns_state = 155
					owns_state = 43
				}
			}
		}
		
		custom_effect_tooltip = GER_slovakia_hun_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_far_north_RKC_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
						is_controlled_by = ROOT
						is_controlled_by = HUN
					}
				}
				transfer_state_to = HUN
			}
		}
		
	}

	option = { # It should be incorporated into Balkan
		name = wuw_GER_reichskommissariats.17.b
		trigger = {
			RKC = {
				exists = yes
			}
			has_country_flag = GER_decided_on_hungarian_status
		}
		ai_chance = {
			base = 60
		}		
		
		custom_effect_tooltip = GER_slovakia_rkc_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_far_north_RKC_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKC
			}
			every_state = {	
				limit = {
					GER_is_far_north_RKC_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				add_contested_owner = RKC
				set_state_controller_to = RKC
				add_claim_by = RKC
			}
		}

	}

	option = { # It should be incorporated into Böhmen-Mähren
		name = wuw_GER_reichskommissariats.17.c
		trigger = {
			AND = {
				RKH = {
					exists = yes
				}
				SLO = {
					exists = no
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		custom_effect_tooltip = GER_slovakia_rkh_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_far_north_RKC_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RKH
			}
			every_state = {	
				limit = {
					GER_is_far_north_RKC_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				add_contested_owner = RKH
				set_state_controller_to = RKH
				add_claim_by = RKH
			}
		}

	}

	option = { # It should be incorporated into Germany
		name = wuw_GER_reichskommissariats.17.d
		trigger = {
			AND = {
				73 = {
					is_owned_and_controlled_by = ROOT
				}
				664 = {
					is_owned_and_controlled_by = ROOT
				}
				71 = {
					is_owned_and_controlled_by = ROOT
				}
				70 = {
					is_owned_and_controlled_by = ROOT
				}
				72 = {
					is_owned_and_controlled_by = ROOT
				}
				4 = {
					is_owned_and_controlled_by = ROOT
				}
			}
		}
		ai_chance = {
			base = 5
		}	

		add_political_power = -250	
		
		custom_effect_tooltip = GER_slovakia_ger_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_far_north_RKC_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = ROOT
				add_core_of = ROOT
			}
		}

	}
}


# A Leader for Mittelafrika - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.18
	title = wuw_GER_reichskommissariats.18.t
	desc = wuw_GER_reichskommissariats.18.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					SAF = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				SAF = {
					set_nationality = {
					    target_country = RKA
					    character = SAF_d_f_malan
					}
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.18.a
		ai_chance = {
			base = 85
		}	

		RKA = {
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					SAF = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RKA = {
					set_nationality = {
					    target_country = SAF
					    character = SAF_d_f_malan
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.18.b
		trigger = {
			SAF = {
				NOT = {
					has_government = fascism
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKA = {
			SAF_d_f_malan = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

	}
}


# A Leader for Klein-Venedig - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.19
	title = wuw_GER_reichskommissariats.19.t
	desc = wuw_GER_reichskommissariats.19.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			ROOT = {
				set_nationality = {
				    target_country = RKV
				    character = GER_adolf_friedrich_von_mecklenburg
				}
			}

			IF = {
				limit = {
					BRA = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				BRA = {
					set_nationality = {
					    target_country = RKV
					    character = BRA_plinio_salgado
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.19.a
		ai_chance = {
			base = 85
		}	

		RKV = {
			GER_adolf_friedrich_von_mecklenburg = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			IF = { # The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
				limit = {
					SAF = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RKV = {
					set_nationality = {
					    target_country = BRA
					    character = BRA_plinio_salgado
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.19.b
		trigger = {
			BRA = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 15
		}		
		
		RKV = {
			BRA_plinio_salgado = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			RKV = {
				set_nationality = {
				    target_country = GER
				    character = GER_adolf_friedrich_von_mecklenburg
				}
			}
			
		}

	}
}

# A Leader for Anden - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.20
	title = wuw_GER_reichskommissariats.20.t
	desc = wuw_GER_reichskommissariats.20.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			IF = {
				limit = {
					MEK = {
						exists = no
					}
				}
				MEK = {
					set_nationality = {
					    target_country = RAN
					    character = MEK_christian_louis
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RAN
					    character = GER_rolf_carls
					}
				}
			}

			IF = {
				limit = {
					PRU = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				PRU = {
					set_nationality = {
					    target_country = RAN
					    character = PRU_oscar_benavides # R56
					}
				}
			}
			ELSE = {
				CHL = {
					set_nationality = {
					    target_country = RAN
					    character = CHL_jorge_gonzales_von_marees # R56
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.20.a
		ai_chance = {
			base = 95
		}	

		RAN = {
			IF = {
				limit = {
					MEK = {
						exists = no
					}
				}
				MEK_christian_louis = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_rolf_carls = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					PRU = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RAN = {
					set_nationality = {
					    target_country = PRU
					    character = PRU_oscar_benavides # R56
					}
				}
			}
			ELSE = {
				RAN = {
					set_nationality = {
					    target_country = CHL
					    character = CHL_jorge_gonzales_von_marees # R56
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.20.b
		trigger = {
		}
		ai_chance = {
			base = 5
		}		
		
		RAN = {
			IF = {
				limit = {
					PRU = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				PRU_oscar_benavides = { # R56
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				CHL_jorge_gonzales_von_marees = { # R56
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					MEK = {
						exists = no
					}
				}
				RAN = {
					set_nationality = {
					    target_country = MEK
					    character = MEK_christian_louis
					}
				}
			}
			ELSE = {
				RAN = {
					set_nationality = {
					    target_country = GER
					    character = GER_rolf_carls
					}
				}
			}
			
		}

	}
}

# A Leader for Kolumbus - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.21
	title = wuw_GER_reichskommissariats.21.t
	desc = wuw_GER_reichskommissariats.21.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			IF = {
				limit = {
					SAX = {
						exists = no
					}
				}
				SAX = {
					set_nationality = {
					    target_country = RCO
					    character = SAX_george_of_saxony
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RCO
					    character = GER_gunther_lutjens
					}
				}
			}

			IF = {
				limit = {
					MEX = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				MEX = {
					set_nationality = {
					    target_country = RCO
					    character = MEX_salvador_abascal
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.21.a
		ai_chance = {
			base = 95
		}	

		RCO = {
			IF = {
				limit = {
					SAX = {
						exists = no
					}
				}
				SAX_george_of_saxony = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_gunther_lutjens = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					MEX = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RCO = {
					set_nationality = {
					    target_country = MEX
					    character = MEX_salvador_abascal
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.21.b
		trigger = {
			MEX = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 5
		}		
		
		RCO = {
			MEX_salvador_abascal = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					SAX = {
						exists = no
					}
				}
				RCO = {
					set_nationality = {
					    target_country = SAX
					    character = SAX_george_of_saxony
					}
				}
			}
			ELSE = {
				RCO = {
					set_nationality = {
					    target_country = GER
					    character = GER_gunther_lutjens
					}
				}
			}
			
		}

	}
}


# A Leader for Nordamerika - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.22
	title = wuw_GER_reichskommissariats.22.t
	desc = wuw_GER_reichskommissariats.22.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			IF = {
				limit = {
					HUN = {
						OR = {
							exists = no
							NOT = {
								has_completed_focus = wuw_HUN_volksbund_der_deutschen_in_ungarn
							}
						}
					}
					NOT = {
						has_global_flag = GER_installed_franz_anton_bach_as_governor_of_hungary_flag
					}
				}
				HUN = {
					set_nationality = {
					    target_country = RUS
					    character = HUN_franz_anton_bach
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RUS
					    character = GER_alfred_jodl
					}
				}
			}

			IF = {
				limit = {
					USA = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				USA = {
					set_nationality = {
					    target_country = RUS
					    character = USA_william_dudley_pelley
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.22.a
		ai_chance = {
			base = 95
		}	

		RUS = {
			IF = {
				limit = {
					HUN = {
						OR = {
							exists = no
							NOT = {
								has_completed_focus = wuw_HUN_volksbund_der_deutschen_in_ungarn
							}
						}
					}
					NOT = {
						has_global_flag = GER_installed_franz_anton_bach_as_governor_of_hungary_flag
					}
				}
				HUN_franz_anton_bach = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_alfred_jodl = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					USA = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RUS = {
					set_nationality = {
					    target_country = USA
					    character = USA_william_dudley_pelley
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.22.b
		trigger = {
			USA = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 5
		}		
		
		RUS = {
			USA_william_dudley_pelley = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					HUN = {
						OR = {
							exists = no
							NOT = {
								has_completed_focus = wuw_HUN_volksbund_der_deutschen_in_ungarn
							}
						}
					}
					NOT = {
						has_global_flag = GER_installed_franz_anton_bach_as_governor_of_hungary_flag
					}
				}
				RUS = {
					set_nationality = {
					    target_country = HUN
					    character = HUN_franz_anton_bach
					}
				}
			}
			ELSE = {
				RUS = {
					set_nationality = {
					    target_country = GER
					    character = GER_alfred_jodl
					}
				}
			}
			
		}

	}
}

# The Status of the American West coast - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.23
	title = wuw_GER_reichskommissariats.23.t
	desc = wuw_GER_reichskommissariats.23.desc 
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	option = { # Treaties with Japan should be honored
		name = wuw_GER_reichskommissariats.23.a
		ai_chance = {
			base = 15
		}	
		trigger = {
			JAP = {
				exists = yes
				has_government = ROOT
				NOT = {
					has_war_with = ROOT
				}
				OR = {
					owns_state = 645 # Iwo Jima
					owns_state = 629 # Hawaii
					owns_state = 650 # Attu
					owns_state = 631 # Midway
				}
			}
		}
		
		custom_effect_tooltip = GER_west_coast_america_jap_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_west_coast_north_america_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
						is_controlled_by = ROOT
						is_controlled_by = JAP
					}
				}
				transfer_state_to = JAP
			}
		}
		
	}

	option = { # It should be incorporated into Nordamerika
		name = wuw_GER_reichskommissariats.23.b
		trigger = {
			RUS = {
				exists = yes
			}
		}
		ai_chance = {
			base = 50
		}		
		
		custom_effect_tooltip = GER_west_coast_america_rus_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_west_coast_north_america_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RUS
			}
			every_state = {	
				limit = {
					GER_is_west_coast_north_america_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				add_contested_owner = RUS
				set_state_controller_to = RUS
				add_claim_by = RUS
			}
		}

	}

	option = { # It should be incorporated into Kolumbus
		name = wuw_GER_reichskommissariats.23.c
		trigger = {
			RCO = {
				exists = yes
			}
		}
		ai_chance = {
			base = 50
		}		
		
		custom_effect_tooltip = GER_west_coast_america_rco_effect_tt
			
		hidden_effect = {
			every_state = {
				limit = {
					GER_is_west_coast_north_america_state = yes
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = RCO
			}
			every_state = {	
				limit = {
					GER_is_west_coast_north_america_state = yes
					NOT = {
						OR = {
							is_owned_by = ROOT
							any_country = {
								is_subject_of = ROOT
								owns_state = PREV
							}
						}
					}
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				add_contested_owner = RCO
				set_state_controller_to = RCO
				add_claim_by = RCO
			}
		}

	}
}


# A Leader for Arabien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.24
	title = wuw_GER_reichskommissariats.24.t
	desc = wuw_GER_reichskommissariats.24.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			IF = {
				limit = {
					has_dlc = "By Blood Alone"
					SWI = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				SWI = {
					set_nationality = {
					    target_country = RAR
					    character = SWI_robert_tobler
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RAR
					    character = GER_walter_model
					}
				}
			}

			IF = {
				limit = {
					IRQ = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				IRQ = {
					set_nationality = {
					    target_country = RAR
					    character = IRQ_rashid_ali_algaylani
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.24.a
		ai_chance = {
			base = 5
		}	

		RAR = {
			IF = {
				limit = {
					has_dlc = "By Blood Alone"
					SWI = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				SWI_robert_tobler = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_walter_model = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					IRQ = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RAR = {
					set_nationality = {
					    target_country = IRQ
					    character = IRQ_rashid_ali_algaylani
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.24.b
		trigger = {
			IRQ = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 95
		}		
		
		RAR = {
			IRQ_rashid_ali_algaylani = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					has_dlc = "By Blood Alone"
					SWI = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RAR = {
					set_nationality = {
					    target_country = SWI
					    character = SWI_robert_tobler
					}
				}
			}
			ELSE = {
				RAR = {
					set_nationality = {
					    target_country = GER
					    character = GER_walter_model
					}
				}
			}
			
		}

	}
}

# A Leader for Großhindustan - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.25
	title = wuw_GER_reichskommissariats.25.t
	desc = wuw_GER_reichskommissariats.25.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {

			IF = {
				limit = {
					WUR = {
						NOT = {
							AND = {
								has_government = neutrality
								exists = yes
							}
						}
					}
				}
				WUR = {
					set_nationality = {
					    target_country = RHD
					    character = WUR_philipp_albrecht
					}
				}
			}
			ELSE = {
				GER = {
					set_nationality = {
					    target_country = RHD
					    character = GER_alfred_saalwachter
					}
				}
			}

			IF = {
				limit = {
					RAJ = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RAJ = {
					set_nationality = {
					    target_country = RHD
					    character = RAJ_v_d_savarkar
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.25.a
		ai_chance = {
			base = 5
		}	

		RHD = {
			IF = {
				limit = {
					WUR = {
						NOT = {
							AND = {
								has_government = neutrality
								exists = yes
							}
						}
					}
				}
				WUR_philipp_albrecht = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_alfred_saalwachter = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					RAJ = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RHD = {
					set_nationality = {
					    target_country = RAJ
					    character = RAJ_v_d_savarkar
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.25.b
		trigger = {
			RAJ = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 95
		}		
		
		RHD = {
			RAJ_v_d_savarkar = {
				remove_country_leader_role = {
					ideology = clerical_fascism # R56
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					WUR = {
						NOT = {
							AND = {
								has_government = neutrality
								exists = yes
							}
						}
					}
				}
				RHD = {
					set_nationality = {
					    target_country = WUR
					    character = WUR_philipp_albrecht
					}
				}
			}
			ELSE = {
				RHD = {
					set_nationality = {
					    target_country = GER
					    character = GER_alfred_saalwachter
					}
				}
			}
			
		}

	}
}


# A Leader for Ostasien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.26
	title = wuw_GER_reichskommissariats.26.t
	desc = wuw_GER_reichskommissariats.26.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			
			GER = {
				set_nationality = {
				    target_country = ROA
				    character = GER_franz_ritter_von_epp
				}
			}

			IF = {
				limit = {
					CHI = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				CHI = {
					set_nationality = {
					    target_country = ROA
					    character = CHI_wang_jingwei
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.26.a
		ai_chance = {
			base = 50
		}	

		ROA = {
			
			GER_franz_ritter_von_epp = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					CHI = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				ROA = {
					set_nationality = {
					    target_country = CHI
					    character = CHI_wang_jingwei
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.26.b
		trigger = {
			CHI = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 50
		}		
		
		ROA = {
			CHI_wang_jingwei = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			ROA = {
				set_nationality = {
				    target_country = GER
				    character = GER_franz_ritter_von_epp
				}
			}
			
		}

	}
}


# A Leader for Australasien - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.27
	title = wuw_GER_reichskommissariats.27.t
	desc = wuw_GER_reichskommissariats.27.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			
			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				POL = {
					set_nationality = {
					    target_country = RAA
					    character = POL_pavel_bermondt_avalov
					}
				}
			}
			ELSE = {
				ROOT = {
					set_nationality = {
					    target_country = RAA
					    character = GER_werner_von_fritsch
					}
				}
			}

			IF = {
				limit = {
					AST = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				AST = {
					set_nationality = {
					    target_country = RAA
					    character = AST_eric_campbell
					}
				}
			}

		}
	}

	is_triggered_only = yes

	option = { # We Need a German Official
		name = wuw_GER_reichskommissariats.27.a
		ai_chance = {
			base = 60
		}	

		RAA = {
			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				POL_pavel_bermondt_avalov = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			ELSE = {
				GER_werner_von_fritsch = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat
		}

		hidden_effect = {
			# The IF is left here so that it doesn't try to transfer a character back if it hasn' been moved here to begin with
			IF = {
				limit = {
					AST = {
						NOT = {
							AND = {
								has_government = fascism
								exists = yes
							}
						}
					}
				}
				RAA = {
					set_nationality = {
					    target_country = AST
					    character = AST_eric_campbell
					}
				}
			}

		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.27.b
		trigger = {
			AST = {
				NOT = {
					AND = {
						has_government = fascism
						exists = yes
					}
				}
			}
		}
		ai_chance = {
			base = 40
		}		
		
		RAA = {
			AST_eric_campbell = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			IF = {
				limit = {
					POL = {
						NOT = {
							AND = {
								has_completed_focus = POL_restore_bermontians
								exists = yes
							}
						}
					}
				}
				RAA = {
					set_nationality = {
					    target_country = POL
					    character = POL_pavel_bermondt_avalov
					}
				}
			}
			ELSE = {
				RAA = {
					set_nationality = {
					    target_country = GER
					    character = GER_werner_von_fritsch
					}
				}
			}
			
		}

	}
}

# A Leader for Burgundy - event for GER
country_event = { 
	id = wuw_GER_reichskommissariats.28
	title = wuw_GER_reichskommissariats.28.t
	desc = wuw_GER_reichskommissariats.28.desc 
	picture = GFX_report_event_german_politician_speech

	immediate = {
		hidden_effect = {
			
			IF = {
				limit = {
					GER = {
						GER_heinrich_himmler = {
							is_country_leader = no
						}
					}
				}
				GER = {
					set_nationality = {
					    target_country = RKS
					    character = GER_heinrich_himmler
					}
				}
			}

			GER = {
				set_nationality = {
					target_country = RKS
					character = GER_reinhard_heydrich
				}
			}

		}
	}

	is_triggered_only = yes

	option = { #Himmler
		name = wuw_GER_reichskommissariats.28.a
		ai_chance = {
			base = 60
		}	

		trigger = {
			GER_heinrich_himmler = {
				is_country_leader = no
			}
		}

		RKS = {
			IF = {
				limit = {
					GER = {
						GER_heinrich_himmler = {
							is_country_leader = no
						}
					}
				}
				GER_heinrich_himmler = {
					remove_country_leader_role = {
						ideology = nazism
					}	
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = nazism
							expire = 1960.1.1
							traits = { GER_reichskommissar_trait } 
						}
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_german_controlled_reichskommissariat

			hidden_effect = {
				RKS = {
					set_nationality = {
						target_country = GER
						character = GER_reinhard_heydrich
					}
				}
			}
		}
		
	}

	option = { # It might be wise to use a local puppet
		name = wuw_GER_reichskommissariats.28.b
		trigger = {
		}
		ai_chance = {
			base = 40
		}		
		
		RKS = {
			GER_reinhard_heydrich = {
				remove_country_leader_role = {
					ideology = nazism
				}	
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = nazism
						expire = 1960.1.1
						traits = { GER_reichskommissar_trait } 
					}
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = GER_local_controlled_reichskommissariat
		}

		hidden_effect = {
			
			RKS = {
				set_nationality = {
					target_country = GER
					character = GER_heinrich_himmler
				}
			}
			
		}

	}
}

### CIVIL WAR EVENTS ###

# Expatriated Communists Returning Home - event for GER (the non-fascist side)
country_event = {
	id = wuw_GER_civil_war.1
	title = wuw_GER_civil_war.1.t
	desc = wuw_GER_civil_war.1.desc 
	picture = GFX_report_event_communists_in_riga

	is_triggered_only = yes

	option = { # They will prove very helpeful
		name = wuw_GER_civil_war.1.a
		ai_chance = {
			base = 85
			modifier = {
				factor = 0
				OR = {
					has_country_flag = GER_AI_RANDOM_KAISER
					has_game_rule = {
						rule = GER_ai_behavior
						option = MONARCHIST_ALLIES # R56
					}
					has_game_rule = { rule = GER_ai_behavior option = MONARCHIST_CENTRAL_POWERS } # R56
				}
			}
		}
		
		add_timed_idea = {
			idea = GER_expatriated_communists_return_home_ns
			days = 365
		}

		hidden_effect = { 
			country_event = { 
				id = wuw_GER_civil_war.2
				days = 14
				random_days = 16
			}
		}
		
	}
	option = { # Someone needs to keep an eye on them!
		name = wuw_GER_civil_war.1.b
		ai_chance = {
			base = 15
			modifier = {
				factor = 0
				OR = {
					has_country_flag = GER_AI_RANDOM_COMMUNIST_STALINIST
					has_game_rule = {
						rule = GER_ai_behavior
						option = COMMUNIST_COMINTERN # R56
					}
					has_country_flag = GER_AI_RANDOM_COMMUNIST_SPARTACUS
					has_game_rule = {
						rule = GER_ai_behavior
						option = COMMUNIST_WORLD_REVOLUTION # R56
					}
				}
			}
		}

		add_popularity = {
			ideology = neutrality
			popularity = 0.1
		}	

		custom_effect_tooltip = generic_skip_one_line_tt
		
		add_timed_idea = {
			idea = GER_expatriated_communists_return_home_supressed_ns
			days = 365
		}
		
	}
}

# Ernst Thälmann Liberated from Prison - event for GER (the non-fascist side)
country_event = {
	id = wuw_GER_civil_war.2
	title = wuw_GER_civil_war.2.t
	desc = wuw_GER_civil_war.2.desc 
	picture = GFX_report_event_ITA_partisans

	is_triggered_only = yes

	option = { # An Intersting Development
		name = wuw_GER_civil_war.2.a
		ai_chance = {
			base = 100
		}
		
		custom_effect_tooltip = GER_thalmann_freed_from_prison_tt
		hidden_effect = {
			set_country_flag = GER_thalmann_freed_from_prison_flag
			GER_ernst_thalmann = {
				set_portraits = {
					civilian = {
						small = GFX_portrait_GER_ernst_thalmann_small
					}
				}
			}
		}
		
	}
}

# The Reformation of Paramilitary Wings - event for GER (the non-fascist side, triggered from GER_rally_the_nation)
country_event = {
	id = wuw_GER_civil_war.3
	title = wuw_GER_civil_war.3.t
	desc = wuw_GER_civil_war.3.desc 
	picture = GFX_report_event_GER_black_reichswehr_forces

	is_triggered_only = yes

	option = { # A New Bismarckjugend should be top priority
		name = wuw_GER_civil_war.3.a
		ai_chance = {
			base = 60
		}
		
		add_popularity = {
			ideology = neutrality
			popularity = 0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = GER_bismarckjugend_idea
		
	}
	option = { # We should empower the Iron Front if anything
		name = wuw_GER_civil_war.3.b
		ai_chance = {
			base = 40
		}

		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = GER_eiserne_front_idea
		
	}
}

# The Future of the Paramilitary Wings - event for GER after having completed the civil war
country_event = {
	id = wuw_GER_civil_war.4
	title = wuw_GER_civil_war.4.t
	desc = wuw_GER_civil_war.4.desc 
	picture = GFX_report_event_german_advisors_remain

	is_triggered_only = yes

	option = { # Attempt to disband them alltogether
		name = wuw_GER_civil_war.4.a
		ai_chance = {
			base = 80
		}
		
		IF = {
			limit = {
				has_idea = GER_bismarckjugend_idea
			}
			remove_ideas = GER_bismarckjugend_idea
			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = 0.05
		}
		ELSE_IF = {
			limit = {
				has_idea = GER_eiserne_front_idea
			}
			remove_ideas = GER_eiserne_front_idea
			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = 0.05
		}
		
	}
	option = { # Perhaps we could simply demobilize them for now?
		name = wuw_GER_civil_war.4.b
		ai_chance = {
			base = 20
		}

		IF = {
			limit = {
				has_idea = GER_bismarckjugend_idea
			}
			swap_ideas = {
				remove_idea = GER_bismarckjugend_idea
				add_idea = GER_weakened_bismarckjugend_idea
			}	
		}
		ELSE_IF = {
			limit = {
				has_idea = GER_eiserne_front_idea
			}
			swap_ideas = {
				remove_idea = GER_eiserne_front_idea
				add_idea = GER_weakened_eiserne_front_idea
			}
		}
		
	}
}

# The Fourth Silesian Uprising - event for GER (the non-fascist side)
country_event = {
	id = wuw_GER_civil_war.5
	title = wuw_GER_civil_war.5.t
	desc = wuw_GER_civil_war.5.desc 
	picture = GFX_report_event_generic_polish_machinegunners

	immediate = {
		hidden_effect = {
			every_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
				}
				news_event = { 
					id = wuw_GER_news.2
					hours = 12
				}
			}
			IF = {
				limit = {
					any_country = {
						original_tag = GER
						controls_state = 66
					}
				}
				66 = {
					transfer_state_to = SIL
				}
			}
			IF = {
				limit = {
					any_country = {
						original_tag = GER
						controls_state = 67
					}
				}
				67 = {
					transfer_state_to = SIL
				}
			}
			IF = {
				limit = {
					any_country = {
						original_tag = GER
						controls_state = 762
					}
				}
				762 = {
					transfer_state_to = SIL
				}
			}
			IF = {
				limit = {
					any_country = {
						original_tag = GER
						controls_state = 74
					}
				}
				74 = {
					transfer_state_to = SIL
					add_core_of = SIL
				}
			}
		}
	}

	is_triggered_only = yes

	option = { # They can not be allowed to succeed!
		name = wuw_GER_civil_war.5.a
		ai_chance = {
			base = 100
		}
		
		hidden_effect = {
			SIL = {
				delete_unit_template_and_units = {
					division_template = "Polska Organizacja Wojskowa Górnego Śląska"
					disband = yes #if yes, will refund equipment/manpower.
				}

				division_template = {
				    name = "Polska Organizacja Wojskowa Górnego Śląska"
				    is_locked = yes
				    division_names_group = POL_INF_01
				    priority = 0
				    regiments = {
				        infantry = { x = 0 y = 0 } 
				        infantry = { x = 0 y = 1 } 
				        infantry = { x = 0 y = 2 }
				        infantry = { x = 1 y = 0 }
				        infantry = { x = 1 y = 1 }
				    }
				} 

				delete_unit_template_and_units = {
					division_template = "Ferajn Gůrnoślůnzokůw Rebels"
					disband = yes #if yes, will refund equipment/manpower.
				}

				division_template = {
				    name = "Ferajn Gůrnoślůnzokůw Rebels"
				    is_locked = yes
				    division_names_group = POL_INF_01
				    priority = 0
				    regiments = {
				        infantry = { x = 0 y = 0 } 
				        infantry = { x = 0 y = 1 } 
				        infantry = { x = 0 y = 2 }
				        infantry = { x = 1 y = 0 }
				        infantry = { x = 1 y = 1 }
				        infantry = { x = 1 y = 2 }
				    }
				}
			}
		}
		
		random_state = {
			limit = {
				OR = {
					state = 66
					state = 67
					state = 762
					state = 74
				}
				is_owned_and_controlled_by = SIL
			}
			create_unit = {
			    division = "name = \"1. Polska Organizacja Wojskowa Górnego Śląska\" division_template = \"Polska Organizacja Wojskowa Górnego Śląska\" start_experience_factor = 0.5 start_equipment_factor = 0.9"
			    owner = SIL 
			}
			create_unit = {
			    division = "name = \"2. Polska Organizacja Wojskowa Górnego Śląska\" division_template = \"Polska Organizacja Wojskowa Górnego Śląska\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
			    owner = SIL 
			}
		}

		random_state = {
			limit = {
				OR = {
					state = 66
					state = 67
					state = 762
					state = 74
				}
				is_owned_and_controlled_by = SIL
			}
			create_unit = {
			    division = "name = \"3. Polska Organizacja Wojskowa Górnego Śląska\" division_template = \"Polska Organizacja Wojskowa Górnego Śląska\" start_experience_factor = 0.5 start_equipment_factor = 0.7"
			    owner = SIL 
			}
		}

		random_state = {
			limit = {
				OR = {
					state = 66
					state = 67
					state = 762
					state = 74
				}
				is_owned_and_controlled_by = SIL
			}
			create_unit = {
			    division = "name = \"1. Ferajn Gůrnoślůnzokůw Rebels\" division_template = \"Ferajn Gůrnoślůnzokůw Rebels\" start_experience_factor = 0.5 start_equipment_factor = 0.4"
			    owner = SIL 
			}
			create_unit = {
			    division = "name = \"2. Ferajn Gůrnoślůnzokůw Rebels\" division_template = \"Ferajn Gůrnoślůnzokůw Rebels\" start_experience_factor = 0.5 start_equipment_factor = 0.5"
			    owner = SIL 
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_country = {
			limit = {
				original_tag = GER
			}
			declare_war_on = {
				target = SIL
				type = take_core_state
			}	
		}
		
	}
}

country_event = { #Communist civil war starts
	id = wuw_GER_civil_war.6
	title = wuw_GER_civil_war.6.t
	desc = wuw_GER_civil_war.6.desc
	picture = GFX_report_event_generic_communist_militia

	is_triggered_only = yes

	fire_only_once = yes

	option = { #For the workers
		name = wuw_GER_civil_war.6.a
		ai_chance = {
			base = 10
		}

		hidden_effect = { 
			IF = {
				limit = {
					61 = {
						has_dynamic_modifier = {
							modifier = GER_proletariat_uprising_modifier
						}
					}
				}

				set_capital =  {
					state = 61
				}
			}
			ELSE_IF = {
				limit = {
					60 = {
						has_dynamic_modifier = {
							modifier = GER_proletariat_uprising_modifier
						}
					}
				}

				set_capital =  {
					state = 60
				}
			}
			ELSE_IF = {
				limit = {
					65 = {
						has_dynamic_modifier = {
							modifier = GER_proletariat_uprising_modifier
						}
					}
				}

				set_capital =  {
					state = 65
				}
			}
			else = {
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
						has_dynamic_modifier = {
							modifier = GER_proletariat_uprising_modifier
						}
					}

					prioritize = { 909 61 54 58 } #schleswig, Mecklenburg, Franken and holstein

				}
				set_capital =  {
					state = PREV
				}
			}
		}

		set_variable = {
			var = GER_total_anti_com_size #used to calculate how big portion of the army that is NOT supporting the communists
			value = party_popularity@democratic #democratic support
		}
		
		add_to_variable = {
			var = GER_total_anti_com_size
			value = party_popularity@fascism #adds fascist support to variable
		}
		
		add_to_variable = {
			var = GER_total_anti_com_size
			value = party_popularity@neutrality #adds non-aligned support to variable
		}

		start_civil_war = {
			ideology = neutrality
			ruling_party = communism
			size = GER_total_anti_com_size
			states = all  #these will be filtered, not to worry!
			states_filter = { #only states that do not have this modifier goes to non-communist
				OR = {
					#state = 64
					NOT = {
						has_dynamic_modifier = {
							modifier = GER_proletariat_uprising_modifier
						}
					}
				}	
			}
			hidden_effect = {
				add_political_power = 250
			}
			if = {
				limit = {
					NOT = { has_completed_focus = GER_reorganize_nationale_volksarmee }
				}
				PREV = {# Original country
					GER_maximilian_von_weichs = { # Character
					    set_nationality = PREV.PREV
					    # Transfers to breakaway	
					}
				}
				PREV = {# Original country
					GER_ewald_von_kleist = { # Character
					    set_nationality = PREV.PREV
					    # Transfers to breakaway	
					}
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = 50
		if = {
			limit = {
				check_variable = {
					var = GER_communist_stability_influence
					value > 0.01
				}
			}
			add_stability = GER_communist_stability_influence
			add_war_support = GER_communist_stability_influence
		}

		if = { #Just to ensure that Communist generals stay Communist
			limit = {
				has_completed_focus = GER_reorganize_nationale_volksarmee
			}
			GER_vincenz_muller = {
				set_nationality = ROOT
			}
			GER_hans_kahle = {
				set_nationality = ROOT
			}
			GER_hans_marchwitza = {
				set_nationality = ROOT
			}
			GER_arno_von_lenski = {
				set_nationality = ROOT
			}
		}

		if = {
			limit = {
				has_completed_focus = GER_ressurect_the_red_front_fighters_league
			}
			every_core_state = {
				limit = {
					OR = {
						has_dynamic_modifier = { modifier = GER_proletariat_uprising_modifier }
						AND = {
							controller = {
								has_government = communism
								original_tag = GER
							}
						}
					}
				}
				random_select_amount = 3

				create_unit = {
					division = "division_template =\"Roter Frontkämpferbund Division\" start_experience_factor = 0.2 start_equipment_factor = 0.7"
					owner = PREV
					count = 2
				}
			}
		}

		every_state = {
			limit = {
				has_dynamic_modifier = { modifier = GER_proletariat_uprising_modifier }
			}
			remove_dynamic_modifier = { modifier = GER_proletariat_uprising_modifier }
		}

		hidden_effect = {
			set_country_flag = GER_communist_civil_war_flag
		}
	}

	#option = { #go back, this was not what we wanted!
	#	name = wuw_GER_civil_war.6.b
	#	ai_chance = {
	#		base = 10
	#	}
#
	#	start_civil_war = {
	#		ideology = communism
	#		ruling_party = neutrality
	#		size = party_popularity@communism
	#		#capital = <state_id> # Optional. Capital of Revolt country
	#		states = all  #these will be filtered, not to worry!
	#		states_filter = { #only states that have this modifier goes to Communists
	#			has_dynamic_modifier = {
	#				modifier = GER_proletariat_uprising_modifier
	#			}
	#			#NOT = { state = 64 }
	#		} 
	#	}
#
	#}
}


# The loyalty of the Kriegsmarine - event for GER (while completing the focus GER_oppose_hitler_ww)
country_event = {
	id = wuw_GER_civil_war.7
	title = wuw_GER_civil_war.7.t
	desc = wuw_GER_civil_war.7.desc 
	picture = GFX_report_event_SOV_purge_navy

	is_triggered_only = yes

	fire_only_once = yes

	option = { # We must secure their loyalty at any cost
		name = wuw_GER_civil_war.7.a
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = GER_AI_RANDOM_COMMUNIST_STALINIST
					has_game_rule = {
						rule = GER_ai_behavior
						option = COMMUNIST_COMINTERN # R56
					}
					has_country_flag = GER_AI_RANDOM_COMMUNIST_SPARTACUS
					has_game_rule = {
						rule = GER_ai_behavior
						option = COMMUNIST_WORLD_REVOLUTION # R56
					}
				}
			}
		}
		
		custom_effect_tooltip = GER_promised_erich_raeder_a_great_navy_tt
		navy_experience = 75

		set_country_flag = GER_promised_erich_raeder_a_great_navy_flag
		
	}
	option = { # We shouldn't placate Erich Raeder
		name = wuw_GER_civil_war.7.b
		ai_chance = {
			base = 50
		}

		custom_effect_tooltip = GER_chose_to_not_placate_erich_raeder_tt
		add_political_power = 25

		set_country_flag = GER_chose_to_not_placate_erich_raeder_flag
		
	}
}

# The Kriegsmarine's Coup d'etat - event for GER (when failing to placate the Kriegsmarine after promising to do so)
country_event = {
	id = wuw_GER_civil_war.8
	title = wuw_GER_civil_war.8.t
	desc = wuw_GER_civil_war.8.desc 
	picture = GFX_report_event_soviet_purge_trial

	is_triggered_only = yes

	fire_only_once = yes

	option = { # They will pay for their treachery!
		name = wuw_GER_civil_war.8.a
		ai_chance = {
			base = 95
		}
		
		navy_experience = -100
		custom_effect_tooltip = generic_skip_one_line_tt
		add_timed_idea = {
			idea = GER_purges_in_the_kriegsmarine
			days = 430
		}	
		custom_effect_tooltip = generic_skip_one_line_tt
		GER_karl_donitz = {
			remove_unit_leader_role = yes
			remove_advisor_role = {
				slot = navy_chief 
			}	
		}
		GER_erich_raeder = {
			remove_unit_leader_role = yes
			remove_advisor_role = {
				slot = navy_chief 
			}	
		}
		GER_gunther_lutjens = {
			remove_unit_leader_role = yes
			remove_advisor_role = {
				slot = high_command 
			}	
		}
		
	}
	option = { # The state will regret breaking their promises!
		name = wuw_GER_civil_war.8.b
		ai_chance = {
			base = 5
		}
		trigger = {
			NOT = {
				has_completed_focus = GER_start_the_proletarian_revolution
			}
		}
		
		army_experience = -50
		add_political_power = -75
		add_stability = -0.1
		add_war_support = -0.05
		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				NOT = {
					has_government = neutrality
				}
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}	
		}
		
		GER_erich_raeder = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					ideology = despotism
					expire = "1965.1.1.1"
					traits = { GER_high_admiral } 
				}
			}	
		}
		
	}
}

# August von Mackensen Retires from the Military - event for GER (after winning the civil war)
country_event = {
	id = wuw_GER_civil_war.9
	title = wuw_GER_civil_war.9.t
	desc = wuw_GER_civil_war.9.desc 
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	fire_only_once = yes

	option = { # He has served us well
		name = wuw_GER_civil_war.9.a

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt
		
		custom_effect_tooltip = GER_mackensen_went_into_retirement_tt
		set_country_flag = GER_mackensen_went_into_retirement
		
	}
}


### GERMAN FOREIGN LEGIONS AND LEGIONARIES EVENTS ###

# The Formation of a Georgian Legion - event for GER 
country_event = {
	id = wuw_GER_legions.1
	title = wuw_GER_legions.1.t
	desc = wuw_GER_legions.1.desc 
	picture = GFX_report_event_german_volunteers

	is_triggered_only = yes

	fire_only_once = yes

	option = { # More men means more good :0 
		name = wuw_GER_legions.1.a
		ai_chance = {
			base = 100
		}
		
		custom_effect_tooltip = GER_shalva_maglakelidze_and_giorgi_kvinitadze_join
		hidden_effect = {
			every_possible_country = {
				limit = {
					has_character = GEO_giorgi_kvinitadze
				}
				set_nationality = {
				    target_country = ROOT
				    character = GEO_giorgi_kvinitadze
				}
			}
			every_possible_country = {
				limit = {
					has_character = GEO_shalva_maglakelidze
				}
				set_nationality = {
				    target_country = ROOT
				    character = GEO_shalva_maglakelidze
				}
			}
		}

		add_manpower = 5000

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = GER_georgian_legion_recruitment_tt

		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Georgische Legion"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Georgische Legion"	
				division_names_group = GER_INF_01
				template_counter = 48 # The Cross 
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
					artillery_brigade = { x = 2 y = 0 }
				}
				support = {
					engineer = { x = 0 y = 0 }  
					artillery = { x = 0 y = 1 }  
				}
			}

			random_state = { 
				limit = {
					is_fully_controlled_by = ROOT
					is_owned_by = ROOT
					is_core_of = ROOT
				}
				create_unit = {
				    division = "name = \"Georgische Legion 'Tbilisi'\" division_template = \"Georgische Legion\" start_experience_factor = 0.3 start_equipment_factor = 0.9"
				    owner = ROOT
				}
				create_unit = {
				    division = "name = \"Georgische Legion 'Poti'\" division_template = \"Georgische Legion\" start_experience_factor = 0.3 start_equipment_factor = 0.9"
				    owner = ROOT
				}
			}
		}
		
	}
	option = { # We have no need for them
		name = wuw_GER_legions.1.b
		ai_chance = {
			base = 0
		}

		add_political_power = 25
		
	}
}

# Hans Krebs Recalled from the Soviet Union - event for GER 
country_event = {
	id = wuw_GER_legions.2
	title = wuw_GER_legions.2.t
	desc = wuw_GER_legions.2.desc 
	picture = GFX_report_event_soviet_german_soldier_handshake

	is_triggered_only = yes

	fire_only_once = yes

	option = { # More men means more good :0 
		name = wuw_GER_legions.2.a
		
		show_unit_leaders_tooltip = GER_hans_krebs
		set_country_flag = GER_recalled_hans_krebs_from_russia_flag

		custom_effect_tooltip = generic_skip_one_line_tt

		army_experience = 15
		add_manpower = 200
		
	}
}

# The Opportunity for Collaboration in Lokot - event for GER when having captured Bryansk, Kursk and Orel/Oryol
country_event = {
	id = wuw_GER_legions.3
	title = wuw_GER_legions.3.t
	desc = wuw_GER_legions.3.desc
	picture = GFX_report_event_soviet_soldiers

	fire_only_once = yes
	
	trigger = {
		original_tag = GER
		GER = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		AND = {
			# Bryansk
			224 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			# Kursk
			220 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			# Orel
			222 = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		has_war_with = SOV
		SOV = {
			has_government = communism
		}
	}

	mean_time_to_happen = {
		days = 14
	}

	# We always welcome and enemy of our enemy!
	option = {
		name = wuw_GER_legions.3.a
		ai_chance = {
			base = 70
		}

		SOV = {
			SOV_bronislav_kaminski = {
				set_nationality = GER
			}
			SOV_konstantin_voskoboinik = {
				set_nationality = GER
			}
		}

		division_template = {
			name = "Waffen-Sturm-Brigade RONA"
			template_counter = 48 # The Cross 
			division_names_group = GER_Inf_01
			regiments = {
				militia = { x = 0 y = 0 }
				militia = { x = 0 y = 1 }
				militia = { x = 0 y = 2 }
				militia = { x = 1 y = 0 }
				militia = { x = 1 y = 1 }
				militia = { x = 1 y = 2 }
				militia = { x = 2 y = 0 }
			}
			support = {
				military_police = { x = 0 y = 0 }
			}
		}
		random_controlled_state = {
			limit = {
				is_core_of = SOV
			}
			create_unit = {
				division = "name = \"Waffen-Sturm-Brigade RONA 'Kaminski'\" division_template = \"Waffen-Sturm-Brigade RONA\" start_experience_factor = 0.3"
				owner = GER
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_controlled_by_ROOT_or_subject = yes
				OR = {
					state = 224 # Bryansk
					state = 220 # Kursk
					state = 222 # Orel
				}
			}
			add_dynamic_modifier = {
				modifier = GER_lokot_autonomy_modifier
				scope = GER
			}		
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		SOV = {
			# Collaborators in Lokot!
			country_event = { 
				id = wuw_GER_legions.4
				hours = 12 
			}
		}

		set_global_flag = lokot_autonomy_has_been_established_flag

	}

	# We have no need for local collaborators
	option = {
		name = wuw_GER_legions.3.b
		ai_chance = {
			base = 30
		}

		IF = {
			limit = {
				OR = {
					has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
					has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
				}
			}
			GER_modify_industrial_modifier = yes
			add_to_variable = { 
				GER_industrial_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		ELSE = {
			add_political_power = 50
		}

	}
}

# Collaborators in Lokot! - event for SOV
country_event = {
	id = wuw_GER_legions.4
	title = wuw_GER_legions.4.t
	desc = wuw_GER_legions.4.desc
	picture = GFX_report_event_soviet_soldiers

	is_triggered_only = yes

	# They made the wrong choice
	option = {
		name = wuw_GER_legions.4.a
		
		effect_tooltip = {

			SOV_bronislav_kaminski = {
				set_nationality = GER
			}
			SOV_konstantin_voskoboinik = {
				set_nationality = GER
			}

			every_state = {
				limit = {
					OR = {
						is_controlled_by = GER
						any_country = {
							is_subject_of = GER
							controls_state = PREV
						}
					}
					OR = {
						state = 224 # Bryansk
						state = 220 # Kursk
						state = 222 # Orel
					}
				}
				add_dynamic_modifier = {
					modifier = GER_lokot_autonomy_modifier
					scope = GER
				}		
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = SOV_recapture_lokot_to_destroy_the_autonomy_tt

		}

	}
}

# The Dismantleing of the Lokot Autonomy - event for SOV when having recaptured Bryansk, Kursk and Orel/Oryol after Lokot was established
country_event = {
	id = wuw_GER_legions.5
	title = wuw_GER_legions.5.t
	desc = wuw_GER_legions.5.desc
	picture = GFX_report_event_soviet_soldiers

	fire_only_once = yes
	
	trigger = {
		original_tag = SOV
		is_subject = no
		has_global_flag = lokot_autonomy_has_been_established_flag
		NOT = {
			has_global_flag = lokot_autonomy_has_been_crushed_flag
		}
		AND = {
			# Bryansk
			224 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			# Kursk
			220 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			# Orel
			222 = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		has_war_with = GER
	}

	mean_time_to_happen = {
		days = 7
	}

	# We will be victorious!
	option = {
		name = wuw_GER_legions.5.a

		GER = {
			# The Destruction of the Lokot Autonomy
			country_event = { 
				id = wuw_GER_legions.6
				hours = 12 
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		effect_tooltip = {
			every_state = {
				limit = {
					OR = {
						is_controlled_by = GER
						any_country = {
							is_subject_of = GER
							controls_state = PREV
						}
					}
					OR = {
						state = 224 # Bryansk
						state = 220 # Kursk
						state = 222 # Orel
					}
				}
				remove_dynamic_modifier = {
					modifier = GER_lokot_autonomy_modifier
					scope = GER
				}			
			}
		}

		set_global_flag = lokot_autonomy_has_been_crushed_flag

	}
}

# The Destruction of the Lokot Autonomy - event for GER
country_event = {
	id = wuw_GER_legions.6
	title = wuw_GER_legions.6.t
	desc = wuw_GER_legions.6.desc
	picture = GFX_report_event_soviet_soldiers

	is_triggered_only = yes

	# The war has made a turn
	option = {
		name = wuw_GER_legions.6.a
		
		custom_effect_tooltip = GER_lokot_collaborators_have_been_captured_by_the_soviets_tt

	}
}

# An Offer from Russian Exiles in Serbia - event for GER when having captured Serbia and Morava
country_event = {
	id = wuw_GER_legions.7
	title = wuw_GER_legions.7.t
	desc = wuw_GER_legions.7.desc
	picture = GFX_report_event_soviet_soldiers

	fire_only_once = yes
	
	trigger = {
		original_tag = GER
		GER = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		AND = {
			# Serbia
			107 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			# Morava
			108 = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		SOV = {
			OR = {
				has_government = communism
				has_government = democratic
			}
		}
		NOT = {
			OR = {
				has_global_flag = SOV_flug_and_shteifon_went_to_germany_flag
				has_global_flag = SOV_flug_and_shteifon_went_to_russia_flag
				has_global_flag = SOV_flug_and_shteifon_decided_to_fight_for_yugoslavia_flag
			}
		}
	}

	mean_time_to_happen = {
		days = 24
	}

	# We could use their aid in suppressing Serbia
	option = {
		name = wuw_GER_legions.7.a
		ai_chance = {
			base = 80
		}

		YUG = {
			SOV_vasily_flug = {
				set_nationality = GER
			}
			SOV_boris_shteifon = {
				set_nationality = GER
			}
		}

		set_global_flag = SOV_flug_and_shteifon_went_to_germany_flag

		set_country_flag = SOV_flug_and_shteifon_are_ready_to_serve_flag

		division_template = {
			name = "Russisches Schutzkorps"
			template_counter = 48 # The Cross 
			division_names_group = GER_Inf_01
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
				infantry = { x = 1 y = 0 }
				infantry = { x = 1 y = 1 }
			}
			support = {
				military_police = { x = 0 y = 0 }
			}
		}
		random_state = {
			limit = {
				is_core_of = SER
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
			}
			create_unit = {
				division = "name = \"1. Russisches Schutzkorps\" division_template = \"Russisches Schutzkorps\" start_experience_factor = 0.2"
				owner = GER
			}
			create_unit = {
				division = "name = \"2. Russisches Schutzkorps\" division_template = \"Russisches Schutzkorps\" start_experience_factor = 0.3"
				owner = GER
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_controlled_by_ROOT_or_subject = yes
				OR = {
					state = 107 # Serbia
					state = 108 # Morava
				}
			}
			add_resistance = -10		
		}

	}

	# We have no need for this Russian Rabble
	option = {
		name = wuw_GER_legions.7.b
		ai_chance = {
			base = 20
		}

		add_command_power = 10

		custom_effect_tooltip = generic_skip_one_line_tt

		random_state = {
			limit = {
				is_core_of = SER
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV
					}
				}
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}	
			add_resistance = 10
		}

	}
}

# An Offer from Disgruntled Cossacks - event for GER 
country_event = {
	id = wuw_GER_legions.8
	title = wuw_GER_legions.8.t
	desc = wuw_GER_legions.8.desc 
	picture = GFX_report_event_german_volunteers

	is_triggered_only = yes

	fire_only_once = yes

	option = { # We could use their knowledge of the Kuban steppe
		name = wuw_GER_legions.8.a
		ai_chance = {
			base = 100
		}
		
		custom_effect_tooltip = GER_andrey_shckuro_and_pyotr_krasnov_join_tt
		hidden_effect = {
			every_possible_country = {
				limit = {
					has_character = SOV_andrey_shkuro
				}
				SOV_andrey_shkuro = {
					clr_character_flag = SOV_exiled_flag
					clr_character_flag = SOV_exiled_army_leader
				}
				set_nationality = {
				    target_country = ROOT
				    character = SOV_andrey_shkuro
				}
			}
			every_possible_country = {
				limit = {
					has_character = SOV_pyotr_krasnov
				}
				SOV_pyotr_krasnov = {
					clr_character_flag = SOV_exiled_flag
					clr_character_flag = SOV_exiled_army_leader
				}
				set_nationality = {
				    target_country = ROOT
				    character = SOV_pyotr_krasnov
				}
			}
		}
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = GER_cossack_exiles_divisions_recruitment_tt

		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Kosaken-Kavallerie-Division"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Kosaken-Kavallerie-Division"	
				division_names_group = GER_CAV_01
				template_counter = 106 # The Cossack Regiment Symbol 
				regiments = {
					cavalry = { x = 0 y = 0 }
					cavalry = { x = 0 y = 1 }
					cavalry = { x = 0 y = 2 }
					cavalry = { x = 1 y = 0 }
					cavalry = { x = 1 y = 1 }
					cavalry = { x = 1 y = 2 }
				}
				support = {
					recon = { x = 0 y = 0 }  
					artillery = { x = 0 y = 1 }  
				}
			}

			random_state = { 
				limit = {
					is_fully_controlled_by = ROOT
					is_owned_by = ROOT
					is_core_of = ROOT
				}
				create_unit = {
				    division = "name = \"Kosaken-Kavallerie-Division 'Don-Wolga'\" division_template = \"Kosaken-Kavallerie-Division\" start_experience_factor = 0.3 start_equipment_factor = 0.7"
				    owner = ROOT
				}
				create_unit = {
				    division = "name = \"Kosaken-Kavallerie-Division 'Kuban'\" division_template = \"Kosaken-Kavallerie-Division\" start_experience_factor = 0.3 start_equipment_factor = 0.8"
				    owner = ROOT
				}
			}
		}
		
	}
	option = { # And why would we take the aid of some cossacks?
		name = wuw_GER_legions.8.b
		ai_chance = {
			base = 0
		}

		add_war_support = 0.01
		add_political_power = 25
		
	}
}






### MONROE DOCRTINE EVENTS ###

country_event = { # USA informed of German intent to interfere with the Monroe Doctrine
	id = wuw_GER_monroe.1
	title = wuw_GER_monroe.1.t
	desc = wuw_GER_monroe.1.desc
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	fire_only_once = yes

	option = { #We will intervene
		name = wuw_GER_monroe.1.a
		ai_chance = {
			base = 10
		}

		set_country_flag = USA_save_monroe_flag

		custom_effect_tooltip = wuw_GER_monroe.1.a_tt
	}

	option = { #whatever
		name = wuw_GER_monroe.1.b
		trigger = {
			is_ai = no
		}

		custom_effect_tooltip = wuw_GER_monroe.1.b_tt
	}
}

country_event = { #USA informed that the doctrine is crumbling
	id = wuw_GER_monroe.2
	title = wuw_GER_monroe.2.t
	desc = wuw_GER_monroe.2.desc
	picture = GFX_report_event_german_speech

	is_triggered_only = yes

	fire_only_once = yes

	immediate = {

		for_each_scope_loop = {
			array = global.monroe_countries_in_support
		
			add_to_variable = { USA.monroe_countries_strict_in_support_guarantee_cost = 25 }
		}

		for_each_scope_loop = {
			array = global.monroe_countries_in_support
		
			add_to_variable = { USA.monroe_countries_all_in_support_guarantee_cost = 25 }
		}
		for_each_scope_loop = {
			array = global.monroe_doctrine_countries_to_destabilize
		
			add_to_variable = { USA.monroe_countries_all_in_support_guarantee_cost = 25 }
		}
	}

	option = { #We must save all that can be saved
		name = wuw_GER_monroe.2.a
		trigger = {
			check_variable = { 
				global.monroe_doctrine_countries_to_destabilize^num > 0
			}
		}

		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				OR = {
					has_idea = USA_neutrality_act
					has_idea = USA_neutrality_act
				}
			}
		} 

		custom_effect_tooltip = wuw_GER_monroe.2.a_tt

		hidden_effect = {

			every_country = {
				limit = {
					has_idea = USA_monroe_doctrine_idea
				}
				remove_ideas = { USA_monroe_doctrine_idea }
			}

			for_each_scope_loop = {
				array = global.monroe_countries_in_support
			
				ROOT = {
					add_political_power = -25
					diplomatic_relation = { 
						country = PREV
						relation = guarantee
						active = yes
					}
				}
			}

			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize

				ROOT = {
					add_political_power = -25
					diplomatic_relation = { 
						country = PREV
						relation = guarantee
						active = yes
					}
				}
			}
		}

		FROM = { 
			clr_country_flag = GER_destabilize_monroe_flag 
			country_event = {
				id = wuw_GER_monroe.10
				hours = 6
			}
		}

		clr_country_flag = USA_save_monroe_flag

		create_wargoal = {
			type = topple_government
			target = FROM
		}

		remove_ideas = USA_monroe_doctrine_enforcer
	}

	option = { #Save only those that actively supported the Doctrine
		name = wuw_GER_monroe.2.b
		trigger = {
			check_variable = {
				global.monroe_countries_in_support^num > 0 
			} 
		}

		ai_chance = {
			base = 30
			modifier = {
				factor = 0.5
				OR = {
					has_idea = USA_neutrality_act
					has_idea = USA_neutrality_act
				}
			}
		} 

		custom_effect_tooltip = wuw_GER_monroe.2.b_tt

		hidden_effect = {
			every_country = {
				limit = {
					has_idea = USA_monroe_doctrine_idea
				}
				remove_ideas = { USA_monroe_doctrine_idea }
			}
			for_each_scope_loop = {
				array = global.monroe_countries_in_support
			
				
				ROOT = {
					add_political_power = -25
					diplomatic_relation = { 
						country = PREV
						relation = guarantee
						active = yes
					}
				}
			}
		}
		
		FROM = { 
			clr_country_flag = GER_destabilize_monroe_flag 
			country_event = {
				id = wuw_GER_monroe.11
				hours = 6
			}
		}
		

		clr_country_flag = USA_save_monroe_flag

		create_wargoal = {
			type = topple_government
			target = FROM
		}

		add_opinion_modifier = {
			target = FROM
			modifier = GER_crushed_the_monroe_doctrine_bad
		}

		remove_ideas = USA_monroe_doctrine_enforcer
	}

	option = { #it is no use, drop the doctrine
		name = wuw_GER_monroe.2.c
		ai_chance = {
			base = 10
		} 

		
		FROM = { 
			clr_country_flag = GER_destabilize_monroe_flag 
			country_event = {
				id = wuw_GER_monroe.9
				hours = 6
			}
		}
		
		clr_country_flag = USA_save_monroe_flag

		add_opinion_modifier = {
			target = FROM
			modifier = GER_crushed_the_monroe_doctrine_bad
		}
		every_country = {
			limit = {
				has_idea = USA_monroe_doctrine_idea
			}
			remove_ideas = { USA_monroe_doctrine_idea }
		}

		remove_ideas = USA_monroe_doctrine_enforcer
	}
}

country_event = { #GER informed that the doctrine is reinforced
	id = wuw_GER_monroe.3
	title = wuw_GER_monroe.3.t
	desc = wuw_GER_monroe.3.desc
	picture = GFX_report_event_usa_election_generic

	is_triggered_only = yes

	fire_only_once = yes

	option = { #Scheisse!
		name = wuw_GER_monroe.3.a

		FROM = { clr_country_flag = USA_save_monroe_flag }
		clr_country_flag = GER_destabilize_monroe_flag

		add_opinion_modifier = {
			target = FROM
			modifier = GER_saved_the_monroe_doctrine_bad
		}
	}
}

country_event = { #GER pressure country to drop the monroe doctrine
	id = wuw_GER_monroe.4
	title = wuw_GER_monroe.4.t
	desc = wuw_GER_monroe.4.desc
	picture = GFX_report_event_german_inspect_troops

	is_triggered_only = yes

	option = { #The Germans are the better option
		name = wuw_GER_monroe.4.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				FROM = {
					surrender_progress > 0.15
				}
			}
			modifier = {
				factor = 0.2
				FROM = {
					surrender_progress > 0.25
				}
			}
			modifier = {
				factor = 0.2
				democratic > 0.5
			}
		}

		custom_effect_tooltip = wuw_GER_monroe.4.a_tt

		hidden_effect = {
			add_to_array = { global.monroe_countries_not_in_support = ROOT }
			#log = "[ROOT.GetName] added to opposition Array"
			ROOT = {
				capital_scope = {
					#log = "[THIS.GetName] added to state opposition Array"
					add_to_array = { global.monroe_captials_not_in_support = THIS }
				}
			}
		}

		remove_ideas = { #The idea has an on remove that handles removal from the arrays
			USA_monroe_doctrine_idea
		}

		set_country_flag = monroe_country_in_opposition_flag

		IF = {
			limit = {
				FROM = {
					is_in_faction = yes
					is_faction_leader = yes
				}
			}
			FROM = {
				add_to_faction = ROOT
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opposed_the_monroe_doctrine_good
				}
				add_ai_strategy = {
					type = alliance
					id = ROOT
					value = 100
				}
			}
			add_ai_strategy = { 
				type = alliance 
				id = FROM
				value = 100
			}
		}

	}

	option = { #Absolutely not
		name = wuw_GER_monroe.4.b

		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				fascism < 0.5
			}
		}

		custom_effect_tooltip = wuw_GER_monroe.4.b_tt
	}
}

country_event = { #GER or USA tries to sway our ideology
	id = wuw_GER_monroe.5
	title = wuw_GER_monroe.5.t
	desc = wuw_GER_monroe.5.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #That can't hurt
		name = wuw_GER_monroe.5.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 3
				OR = {
					AND = {
						FROM = {
							has_government = fascism
						}
						fascism > 0.2
					}
					AND = {
						FROM = {
							has_government = communism
						}
						communism > 0.2
					}
					AND = {
						FROM = {
							has_government = democratic
						}
						democratic > 0.2
					}
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_government = fascism
				}
			}
			add_timed_idea = {
				idea = GER_boosting_fascism_in_country_ns
				days = 365
			}
		}

		ELSE_IF = {
			limit = {
				FROM = {
					has_government = communism
				}
			}
			add_timed_idea = {
				idea = GER_boosting_communism_in_country_ns
				days = 365
			}
		}

		ELSE_IF = {
			limit = {
				FROM = {
					has_government = democratic
				}
			}
			add_timed_idea = {
				idea = GER_boosting_democratic_in_country_ns
				days = 365
			}
		}
	}

	option = { #They have no right to meddle
		name = wuw_GER_monroe.5.b
		ai_chance = {
			base = 5
		}

		add_political_power = -100

		add_opinion_modifier = {
			target = FROM
			modifier = medium_decrease
		}
	}
}

country_event = { #USA pressures country to adhere to the Doctrine
	id = wuw_GER_monroe.6
	title = wuw_GER_monroe.6.t
	desc = wuw_GER_monroe.6.desc
	picture = GFX_report_event_generic_usa_treaty

	is_triggered_only = yes

	option = { #They have our best in mind
		name = wuw_GER_monroe.6.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				FROM = {
					surrender_progress > 0.15
				}
			}
			modifier = {
				factor = 0.2
				FROM = {
					surrender_progress > 0.25
				}
			}
			modifier = {
				factor = 0.2
				democratic > 0.5
			}
		}


		custom_effect_tooltip = wuw_GER_monroe.6.a_tt

		hidden_effect = {
			add_to_array = { global.monroe_countries_in_support = ROOT }
			#log = "[ROOT.GetName] added to support Array"
			capital_scope = {
				#log = "[THIS.GetName] added to state support Array"
				add_to_array = { global.monroe_captials_in_support = THIS }
			}
			remove_from_array = { global.monroe_doctrine_countries_to_destabilize = ROOT }
			#log = "[THIS.GetName] (country) Was removed from Array"
			ROOT = {
				capital_scope = {
					#log = "[THIS.GetName] (state) Was removed from Array"
					remove_from_array = { global.monroe_doctrine_capitals_to_destabilize = THIS }
				}
			}

			set_country_flag = monroe_country_in_support_flag #arrays work funkily with updating decisions, setting flag to force it
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = GER_supported_the_monroe_doctrine_good
			}

			add_ai_strategy = { 
				type = befriend
				id = ROOT
				value = 100
			}
		}

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

	option = { #No more American meddling!
		name = wuw_GER_monroe.6.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				fascism > 0.5
			}
		}

		custom_effect_tooltip = wuw_GER_monroe.6.b_tt
	}
}

country_event = { #GER incresed demands to drop the doctrine
	id = wuw_GER_monroe.7
	title = wuw_GER_monroe.7.t
	desc = wuw_GER_monroe.7.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	option = { #We can't resist this any longer
		name = wuw_GER_monroe.7.a
		ai_chance = {
			base = 15
			modifier = {
				factor = 0.5
				FROM = {
					surrender_progress > 0.25
				}
			}
		}

		custom_effect_tooltip = wuw_GER_monroe.4.a_tt

		hidden_effect = {
			add_to_array = { global.monroe_countries_not_in_support = ROOT }
			#log = "[ROOT.GetName] added to opposition Array"
		}

		remove_ideas = { #The idea has an on remove that handles removal from the arrays
			USA_monroe_doctrine_idea
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = GER_opposed_the_monroe_doctrine_good
			}
			add_ai_strategy = { 
				type = befriend
				id = ROOT
				value = 100
			}
		}

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

	}

	option = { #we will hold back, America will save us
		name = wuw_GER_monroe.7.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				FROM = {
					surrender_progress > 0.25
				}
			}
			modifier = {
				factor = 10
				fascism < 0.25
			}
		}

		add_opinion_modifier = {
			target = FROM
			modifier = GER_crushed_the_monroe_doctrine_bad
		}

		FROM = {
			add_ai_strategy = { 
				type = antagonize
				id = ROOT
				value = 100
			}
		}
	}
}

country_event = { #USA informs Monroe country that the doctrine will still stand despite German bs
	id = wuw_GER_monroe.8
	title = wuw_GER_monroe.8.t
	desc = wuw_GER_monroe.8.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #We better go back!
		name = wuw_GER_monroe.8.a
		trigger = {
			NOT = {
				is_in_faction_with = GER
				has_idea = USA_monroe_doctrine_idea
			}
		}

		IF = {
			limit = {
				is_in_array = {
					array = global.monroe_countries_not_in_support
					value = ROOT
				}
			}
			
			remove_from_array = { global.monroe_countries_not_in_support = ROOT }
		}

		add_ideas = USA_monroe_doctrine_idea

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = GER_supported_the_monroe_doctrine_good
			}
		}
		
	}

	option = { #No! Germany is right
		name = wuw_GER_monroe.8.b
		trigger = {
			NOT = {
				has_idea = USA_monroe_doctrine_idea
			}
			is_in_array = {
				array = global.monroe_countries_not_in_support
				value = ROOT
			}
		}

		add_political_power = -50

		add_opinion_modifier = {
			target = FROM
			modifier = GER_saved_the_monroe_doctrine_bad
		}
	}

	option = {
		name = wuw_GER_monroe.8.c
	}
}

country_event = { #GER informed that USA drops the doctrine entirely
	id = wuw_GER_monroe.9
	title = wuw_GER_monroe.9.t
	desc = wuw_GER_monroe.9.desc
	picture = GFX_report_event_fascist_gathering

	is_triggered_only = yes

	fire_only_once = yes

	option = { #yassss
		name = wuw_GER_monroe.9.a

		add_political_power = 100

		hidden_effect = {

			news_event = {
				id = wuw_GER_monroe_news.1
				hours = 12
			}

			
			FROM = {
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
			
			for_each_scope_loop = {
				array = global.monroe_countries_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_countries_not_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
		}
	}
}

country_event = { #GER informed that USA drops the doctrine, but adds guarantees
	id = wuw_GER_monroe.10
	title = wuw_GER_monroe.10.t
	desc = wuw_GER_monroe.10.desc
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	fire_only_once = yes

	option = { #yassss- wait
		name = wuw_GER_monroe.10.a

		add_political_power = 50

		hidden_effect = {

			news_event = {
				id = wuw_GER_monroe_news.1
				hours = 12
			}

			
			FROM = {
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
			
			for_each_scope_loop = {
				array = global.monroe_countries_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_countries_not_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
		}
	}
}

country_event = { #GER informed that USA drops the doctrine, but adds guarantees only to supporters
	id = wuw_GER_monroe.11
	title = wuw_GER_monroe.11.t
	desc = wuw_GER_monroe.11.desc
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes

	fire_only_once = yes

	option = { #yassss- wait
		name = wuw_GER_monroe.11.a

		add_political_power = 50

		hidden_effect = {

			news_event = {
				id = wuw_GER_monroe_news.1
				hours = 12
			}

			FROM = {
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_doctrine_countries_to_destabilize
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
			
			for_each_scope_loop = {
				array = global.monroe_countries_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}

			for_each_scope_loop = {
				array = global.monroe_countries_not_in_support
			
				news_event = {
					id = wuw_GER_monroe_news.1
					hours = 12
				}
			}
		}
	}
}

country_event = { #Event for GER and USA if they enter war while the Monroe Doctrine System is active
	id = wuw_GER_monroe.12
	title = wuw_GER_monroe.12.t
	desc = wuw_GER_monroe.12.desc
	picture = GFX_report_event_generic_panzer_attack

	is_triggered_only = yes

	option = { #WAAAAAAAR
		name = wuw_GER_monroe.12.a

		IF = {
			limit = {
				original_tag = GER
			}
			clr_country_flag = GER_destabilize_monroe_flag
		}

		ELSE_IF = {
			limit = {
				original_tag = USA
			}
			clr_country_flag = USA_save_monroe_flag
		}
	}
}

country_event = { #Monroe countries informed that things are happening
	id = wuw_GER_monroe.13
	title = wuw_GER_monroe.13.t
	desc = wuw_GER_monroe.13.desc
	picture = GFX_report_event_germany_politician_handshake

	is_triggered_only = yes

	option = { #oh dear...
		name = wuw_GER_monroe.13.a
	}
}

news_event = { #The Monroe Doctrine is dead
	id = wuw_GER_monroe_news.1
	title = wuw_GER_monroe_news.1.t
	desc = wuw_GER_monroe_news.1.desc
	picture = GFX_news_event_german_speech

	is_triggered_only = yes

	option = {
		name = wuw_GER_monroe_news.1.a
		trigger = {
			NOT = {
				has_idea = USA_monroe_doctrine_idea
				original_tag = GER
				original_tag = USA
			}
		}

		add_opinion_modifier = {
			target = GER
			modifier = GER_crushed_the_monroe_doctrine_good
		}
	}

	option = {
		name = wuw_GER_monroe_news.1.b
		trigger = {
			has_idea = USA_monroe_doctrine_idea
		}

		remove_ideas = USA_monroe_doctrine_idea

		add_opinion_modifier = {
			target = GER
			modifier = GER_crushed_the_monroe_doctrine_bad
		}
	}

	option = {
		name = wuw_GER_monroe_news.1.c

		trigger = { original_tag = GER }

		IF = {
			limit = {
				has_country_flag = GER_destabilize_monroe_flag
			}

			clr_country_flag = GER_destabilize_monroe_flag
			
		}
	}

	option = {
		name = wuw_GER_monroe_news.1.d

		trigger = { original_tag = USA }

		IF = { #this should never happen but just to be safe
			limit = {
				has_country_flag = USA_save_monroe_flag
			}

			clr_country_flag = USA_save_monroe_flag
			
		}

		add_opinion_modifier = {
			target = GER
			modifier = GER_crushed_the_monroe_doctrine_bad
		}
	}
}



##### REALPOLITIK EVENTS FOR DEMOCRATIC AND MONARHCIST GERMANY #####


# Germany invites us to their faction - event for person Germany wants to join their faction
country_event = { 
	id = wuw_GER_realpolitik.1
	title = wuw_GER_realpolitik.1.t
	desc = wuw_GER_realpolitik.1.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = wuw_GER_realpolitik.1.a
		ai_chance = {
			base = 20
			modifier = {
				factor = 3
				has_government = FROM
			}
			modifier = {
				factor = 4
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 3
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 3
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
		}

		GER_setup_faction_wide_aoe_effects_from = yes

		FROM = {
			add_to_faction = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.2 
				hours = 5 
				random_hours = 5 
			}
		}

		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 250
		}
		add_ai_strategy = {
			type = befriend
			id = FROM
			value = 250
		}

	}

	option = { # We do not need their friendship!
		name = wuw_GER_realpolitik.1.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 3
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 3
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < -24
				}
			}
			modifier = {
				add = 3
				FROM = {
					has_added_tension_amount > 25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.3 
				hours = 5 
				random_hours = 5 
			}
		}

		if = {
			limit = {
				FROM = {
					has_completed_focus = GER_secure_finland
				}
				ROOT = {
					original_tag = FIN
				}
			}
			effect_tooltip = {
				FROM = {
					create_wargoal = {
						type = annex_everything
						target = ROOT
					}
				}
			}
		}
	}
}

country_event = { # FROM accepts our faction invitation - event for GER
	id = wuw_GER_realpolitik.2
	title = wuw_GER_realpolitik.2.t
	desc = wuw_GER_diplomacy.2.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Naisu
		name = wuw_GER_realpolitik.2.a  

		effect_tooltip = {
			ROOT = {
				add_to_faction = FROM
			}
			GER_setup_faction_wide_aoe_effects_root = yes
		}

	}
}

country_event = { # FROM rejects our faction invitation - event for GER
	id = wuw_GER_realpolitik.3
	title = wuw_GER_realpolitik.3.t
	desc = wuw_GER_realpolitik.3.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # They are missing out
		name = wuw_GER_realpolitik.3.a	

		if = {
			limit = {
				ROOT = {
					has_completed_focus = GER_secure_finland
				}
				FROM = {
					original_tag = FIN
				}
			}
			ROOT = {
				create_wargoal = {
					type = annex_everything
					target = FROM
				}
			}
		}
	}
}


###########################################################
### DEMOCRATIC COUNTRY RECEIVES GERMAN MILITARY SUPPORT ###
###########################################################
country_event = {
	id = wuw_GER_realpolitik.4
	title = wuw_GER_realpolitik.4.t
	desc = wuw_GER_realpolitik.4.desc
	picture = GFX_report_event_generic_truck 

	is_triggered_only = yes

	option = { # Yippeee
		name = wuw_GER_realpolitik.4.a

		ROOT = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 3000
				producer = FROM
			}
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 300
				producer = FROM
			}
			add_opinion_modifier = {
				target = FROM
				modifier = SOV_sent_us_weapons
			}
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 1500
					equipment_type = infantry_equipment
					seller_tags = { GER }
				}	
				add_equipment_subsidy = {
					cic = 1000
					equipment_type = support_equipment
					seller_tags = { GER }
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = artillery_equipment
					seller_tags = { GER }
				}		
			}
		}
	}
}

#### BREST-LITOVSK EVENTS ####

# How to deal with Lithuania - event for GER
country_event = {
	id = wuw_GER_realpolitik.5
	title = wuw_GER_realpolitik.5.t
	desc = wuw_GER_realpolitik.5.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # We should try to annex them
		name = wuw_GER_realpolitik.5.a
		ai_chance = {
			base = 60
			modifier = {
				factor = 0
				LIT = {
					is_ai = no
				}
			}
		}
		
		LIT = {
			# Germany demands our annexation
			country_event = {
				id = wuw_GER_realpolitik.6
				hours = 6
				random_hours = 12
			}	
		}

		# To determine the outcome of the response events
		set_global_flag = GER_wishes_to_annex_lithuania_flag

	}
	option = { # We should try to puppet them
		name = wuw_GER_realpolitik.5.b
		ai_chance = {
			base = 40
		}
		
		LIT = {
			# Germany demands we become their vassal
			country_event = {
				id = wuw_GER_realpolitik.7
				hours = 6
				random_hours = 12
			}	
		}

		# To determine the outcome of the response events
		set_global_flag = GER_wishes_to_puppet_lithuania_flag

	}
}

# Germany wants to annex us - event for LIT
country_event = {
	id = wuw_GER_realpolitik.6
	title = wuw_GER_realpolitik.6.t
	desc = wuw_GER_realpolitik.6.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # There isn't much we can do to stop them...
		name = wuw_GER_realpolitik.6.a
		ai_chance = {
			base = 70
		}
		
		FROM = {
			# Lithuania caves to our demands
			country_event = {
				id = wuw_GER_realpolitik.8
				hours = 6
				random_hours = 12
			}	
		}

	}
	option = { # We will never give up our freedom!
		name = wuw_GER_realpolitik.6.b
		ai_chance = {
			base = 30
		}
		
		FROM = {
			# Lithuania refuses our demands
			country_event = {
				id = wuw_GER_realpolitik.9
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# Germany wants to puppet us - event for LIT
country_event = {
	id = wuw_GER_realpolitik.7
	title = wuw_GER_realpolitik.7.t
	desc = wuw_GER_realpolitik.7.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # There isn't much we can do to stop them...
		name = wuw_GER_realpolitik.7.a
		ai_chance = {
			base = 80
		}
		
		FROM = {
			# Lithuania caves to our demands
			country_event = {
				id = wuw_GER_realpolitik.8
				hours = 6
				random_hours = 12
			}	
		}

	}
	option = { # We will never give up our freedom!
		name = wuw_GER_realpolitik.7.b
		ai_chance = {
			base = 20
		}
		
		FROM = {
			# Lithuania refuses our demands
			country_event = {
				id = wuw_GER_realpolitik.9
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# Lithuania accepts their fate - event for GER
country_event = {
	id = wuw_GER_realpolitik.8
	title = wuw_GER_realpolitik.8.t
	desc = wuw_GER_realpolitik.8.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # Perfect!
		name = wuw_GER_realpolitik.8.a
		ai_chance = {
			base = 100
		}
		
		IF = {
			limit = {
				has_global_flag = GER_wishes_to_annex_lithuania_flag
			}
			IF = {
				limit = {
					188 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				188 = {
					add_core_of = ROOT
				}
			}
			annex_country = {
				target = FROM
				transfer_troops = yes
			}	
			add_state_claim = 97
			add_state_claim = 96
			add_state_claim = 95
		}
		ELSE_IF = {
			limit = {
				has_global_flag = GER_wishes_to_puppet_lithuania_flag
			}
			IF = {
				limit = {
					188 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				188 = {
					add_core_of = ROOT
				}
			}
			puppet = FROM
			IF = {
				limit = {
					has_government = neutrality
				}
				FROM = {
					set_party_name = {
						ideology = neutrality
						name = LIT_von_urach_party
						long_name = LIT_von_urach_party
					}
					drop_cosmetic_tag = yes
					set_cosmetic_tag = GREATER_LIT
					promote_character = LIT_karl_gero
					add_state_core = 97
					add_state_core = 94
					add_state_core = 95
				} 
			}
		}

	}

}


# Lithuania rejects our demands - event for GER
country_event = {
	id = wuw_GER_realpolitik.9
	title = wuw_GER_realpolitik.9.t
	desc = wuw_GER_realpolitik.9.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # How dare they?!?!?
		name = wuw_GER_realpolitik.9.a
		ai_chance = {
			base = 100
		}
		
		IF = {
			limit = {
				has_global_flag = GER_wishes_to_annex_lithuania_flag
			}
			create_wargoal = {
				type = annex_everything
				target = FROM
			}	
		}
		ELSE_IF = {
			limit = {
				has_global_flag = GER_wishes_to_puppet_lithuania_flag
			}
			create_wargoal = {
				type = puppet_wargoal_focus
				target = FROM
			}	
		}

	}

}


# Germany wants to puppet us (monarchist) - event for FIN
country_event = {
	id = wuw_GER_realpolitik.10
	title = wuw_GER_realpolitik.10.t
	desc = wuw_GER_realpolitik.10.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # There isn't much we can do to stop them...
		name = wuw_GER_realpolitik.10.a
		ai_chance = {
			base = 80
		}
		
		FROM = {
			# Finland caves to our demands
			country_event = {
				id = wuw_GER_realpolitik.11
				hours = 6
				random_hours = 12
			}	
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
			
			add_country_leader_role = {
				character =  FIN_prince_wolfgang_von_hesse
				promote_leader = yes
				country_leader = {
					ideology = despotism
					expire = "1965.1.1.1"
					traits = { crown_prince_of_finland personal_agenda_von_hesse }
				}
			}

			set_party_name = {
				ideology = neutrality
				long_name = FIN_neutrality_party_monarchist_long
				name = FIN_neutrality_party_monarchist
			}

			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}

			IF = {
				limit = {
					has_completed_focus = FIN_greater_finland
				}
				set_cosmetic_tag = FIN_greater_kingdom_of_finland
			}
			ELSE = {
				set_cosmetic_tag = FIN_kingdom_of_finland
			}
			
		}

	}
	option = { # We will never give up our freedom!
		name = wuw_GER_realpolitik.10.b
		ai_chance = {
			base = 20
		}
		
		FROM = {
			# Finland refuses our demands
			country_event = {
				id = wuw_GER_realpolitik.12
				hours = 6
				random_hours = 12
			}	
		}

		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}	
			}
		}

	}
}

# Finland accepts their fate - event for GER
country_event = {
	id = wuw_GER_realpolitik.11
	title = wuw_GER_realpolitik.11.t
	desc = wuw_GER_realpolitik.11.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # Perfect!
		name = wuw_GER_realpolitik.11.a
		ai_chance = {
			base = 100
		}
		
		puppet = FROM
		
		FROM = {
			add_country_leader_role = {
				character =  FIN_prince_wolfgang_von_hesse
				promote_leader = yes
				country_leader = {
					ideology = despotism
					expire = "1965.1.1.1"
					traits = { crown_prince_of_finland personal_agenda_von_hesse }
				}
			}

			set_party_name = {
				ideology = neutrality
				long_name = FIN_neutrality_party_monarchist_long
				name = FIN_neutrality_party_monarchist
			}

			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}

			IF = {
				limit = {
					has_completed_focus = FIN_greater_finland
				}
				set_cosmetic_tag = FIN_greater_kingdom_of_finland
			}
			ELSE = {
				set_cosmetic_tag = FIN_kingdom_of_finland
			}
		} 
		

	}

}

# Finland rejects our demands - event for GER
country_event = {
	id = wuw_GER_realpolitik.12
	title = wuw_GER_realpolitik.12.t
	desc = wuw_GER_realpolitik.12.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # How dare they?!?!?
		name = wuw_GER_realpolitik.12.a
		ai_chance = {
			base = 100
		}
		
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}	

	}

}

# Germany wants to puppet us (NOT monarchist) - event for FIN
country_event = {
	id = wuw_GER_realpolitik.13
	title = wuw_GER_realpolitik.13.t
	desc = wuw_GER_realpolitik.13.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # There isn't much we can do to stop them...
		name = wuw_GER_realpolitik.13.a
		ai_chance = {
			base = 80
		}
		
		FROM = {
			# Finland caves to our demands
			country_event = {
				id = wuw_GER_realpolitik.14
				hours = 6
				random_hours = 12
			}	
		}

		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
		}

	}
	option = { # We will never give up our freedom!
		name = wuw_GER_realpolitik.13.b
		ai_chance = {
			base = 20
		}
		
		FROM = {
			# Finland refuses our demands
			country_event = {
				id = wuw_GER_realpolitik.15
				hours = 6
				random_hours = 12
			}	
		}

		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}	
			}
		}

	}
}

# Finland accepts their fate - event for GER
country_event = {
	id = wuw_GER_realpolitik.14
	title = wuw_GER_realpolitik.14.t
	desc = wuw_GER_realpolitik.14.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # Perfect!
		name = wuw_GER_realpolitik.14.a
		ai_chance = {
			base = 100
		}
		
		add_political_power = 75

		puppet = FROM

	}

}

# Finland rejects our demands - event for GER
country_event = {
	id = wuw_GER_realpolitik.15
	title = wuw_GER_realpolitik.15.t
	desc = wuw_GER_realpolitik.15.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # How dare they?!?!?
		name = wuw_GER_realpolitik.15.a
		ai_chance = {
			base = 100
		}
		
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}	

	}

}

# Germany wants to annex us - event for POL
country_event = {
	id = wuw_GER_realpolitik.16
	title = wuw_GER_realpolitik.16.t
	desc = wuw_GER_realpolitik.16.desc
	picture = GFX_report_event_finnish_letter 

	is_triggered_only = yes

	option = { # There isn't much we can do to stop them...
		name = wuw_GER_realpolitik.16.a
		ai_chance = {
			base = 100
		}
		
		custom_effect_tooltip = GAME_OVER_TT
		FROM = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}	
		}

	}
	option = { # We will never give up our freedom!
		name = wuw_GER_realpolitik.16.b
		ai_chance = {
			base = 0
		}

		add_stability = -0.1
		
		FROM = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_free
				end_wars  = no
				end_civil_wars = yes
			}
		}
		leave_faction = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			declare_war_on = {
				target = ROOT
				type = annex_everything
			}	
		}

	}
}

# Germany Demands we return Imperial Possessions - event for POL
country_event = {
	id = wuw_GER_realpolitik.17
	title = wuw_GER_realpolitik.17.t
	desc = wuw_GER_realpolitik.17.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	# We give up
	option = {
		name = wuw_GER_realpolitik.17.a
		ai_chance = {
			base = 90
		}
		FROM = { 
			country_event = { 
				id = wuw_GER_realpolitik.18
				days = 1 
			} 
		}
		effect_tooltip = { # R56
			FROM = {
				transfer_state = 85
				add_state_core = 85
				transfer_state = 807
				add_state_core = 807
				transfer_state = 86
				add_state_core = 86
				transfer_state = 762
				add_state_core = 762
			}
		}
		
	}

	# We must fight!
	option = {
		name = wuw_GER_realpolitik.17.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 3
				strength_ratio = {
					tag = GER
					ratio > 0.7
				}
			}
			modifier = {
				factor = 5
				any_other_country = {
					is_major = yes
					is_in_faction_with = POL
				}
			}
		}

		FROM = {
			country_event = { 
				id = wuw_GER_realpolitik.19
				days = 1 
			}
			IF = {
				limit = {
					is_in_faction_with = ROOT
					is_faction_leader = yes
				}
				remove_from_faction = ROOT
			}
			IF = {
				limit = {
					is_in_faction_with = ROOT
					is_faction_leader = no
				}
				random_other_country = {
					limit = {
						is_in_faction_with = GER
						is_faction_leader = yes
					}
					remove_from_faction = GER
				}
			}
		}

		IF = {
			limit = {
				has_guaranteed = LIT
				is_guaranteed_by = LIT
			}
			diplomatic_relation = {
				country = LIT
				relation = guarantee
				active = no
			}
			LIT = {
				diplomatic_relation = {
					country = POL
					relation = guarantee
					active = no
				}
			}
		}

		effect_tooltip = { # R56
			FROM = {
				declare_war_on = {
					target = ROOT
					type = take_state
					generator = { 85 }
				}
			}
		}

	}
}

# Poland Cedes Eastern Imperial Possessions - event for GER
country_event = {
	id = wuw_GER_realpolitik.18
	title = wuw_GER_realpolitik.18.t
	desc = wuw_GER_realpolitik.18.desc
	picture = GFX_report_event_german_polish_border

	is_triggered_only = yes

	option = {
		name = wuw_GER_realpolitik.18.a
		# R56
		transfer_state = 85
		add_state_core = 85
		transfer_state = 807
		add_state_core = 807
		transfer_state = 86
		add_state_core = 86
		transfer_state = 762
		add_state_core = 762
		###

		IF = {
			limit = {
				ENG = {
					NOT = {
						is_in_faction_with = GER
					}
					has_guaranteed = POL
				}
			}
			ENG = {
				add_war_support = -0.05 #dodged a bullet there
			}
		}
		IF = {
			limit = {
				FRA = {
					NOT = {
						is_in_faction_with = GER
					}
					has_guaranteed = POL
				}
			}
			FRA = {
				add_war_support = -0.05 #dodged a bullet there
			}
		}
	}
}

# Poland Refuses to Cede Eastern Imperial Possessions - event for GER
country_event = {
	id = wuw_GER_realpolitik.19
	title = wuw_GER_realpolitik.19.t
	desc = wuw_GER_realpolitik.19.desc
	picture = GFX_report_event_polish_tanks_02

	is_triggered_only = yes

	option = {
		name = wuw_GER_realpolitik.19.a
		ai_chance = {
			base = 95
		}

		IF = {
			limit = {
				FROM = {
					is_subject = yes
					OVERLORD = {
						has_non_aggression_pact_with = ROOT
					}
				}
			}
			FROM = {
				OVERLORD = {
					diplomatic_relation = {
						country = ROOT
						relation = non_aggression_pact
						active = no
					}
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_non_aggression_pact_with = ROOT
				}
			}
			FROM = {
				diplomatic_relation = {
					country = ROOT
					relation = non_aggression_pact
					active = no
				}
			}
			every_other_country = {
				limit = {
					has_non_aggression_pact_with = ROOT
				}
				add_opinion_modifier = {
					target = ROOT
   					modifier = protest_action_strong
				}
			}
		}
		# R56
		create_wargoal = {
			type = take_state
			generator = { 85 807 86 762 }
			target = FROM
		}

		add_state_core = 85
		add_state_core = 807
		add_state_core = 86
		add_state_core = 762
		###
	}
	option = {
		name = wuw_GER_realpolitik.19.b
		ai_chance = {
			base = 5
		}
		# R56
		set_country_flag = GER_kaiserreich_decided_not_to_attack_poland

		add_state_core = 85
		add_state_core = 807
		add_state_core = 86
		add_state_core = 762
		###
	}
}

# Germany Demands Further Concessions - event for POL
country_event = {
	id = wuw_GER_realpolitik.20
	title = wuw_GER_realpolitik.20.t
	desc = wuw_GER_realpolitik.20.desc
	picture = GFX_report_event_german_troops

	is_triggered_only = yes

	# We give up
	option = {
		name = wuw_GER_realpolitik.20.a
		ai_chance = {
			base = 70 # R56
		}
		FROM = { 
			country_event = { 
				id = wuw_GER_realpolitik.21
				days = 1 
			} 
		}
		effect_tooltip = { # R56
			FROM = {
				transfer_state = 87
				add_state_core = 87
				transfer_state = 98
				add_state_core = 98
				transfer_state = 97
				add_state_core = 97
				transfer_state = 934
				add_state_core = 934
			}
		}
		
	}

	# We must fight!
	option = {
		name = wuw_GER_realpolitik.20.b
		ai_chance = {
			base = 30
			modifier = {
				factor = 3
				strength_ratio = {
					tag = GER
					ratio > 0.7
				}
			}
			modifier = {
				factor = 3
				any_other_country = {
					is_major = yes
					is_in_faction_with = POL
				}
			}
		}

		FROM = {
			country_event = { 
				id = wuw_GER_realpolitik.22
				days = 1 
			}
			IF = {
				limit = {
					is_in_faction_with = ROOT
					is_faction_leader = yes
				}
				remove_from_faction = ROOT
			}
			IF = {
				limit = {
					is_in_faction_with = ROOT
					is_faction_leader = no
				}
				random_other_country = {
					limit = {
						is_in_faction_with = FROM
						is_faction_leader = yes
					}
					remove_from_faction = FROM
				}
			}
		}

		IF = {
			limit = {
				has_guaranteed = LIT
				is_guaranteed_by = LIT
			}
			diplomatic_relation = {
				country = LIT
				relation = guarantee
				active = no
			}
			LIT = {
				diplomatic_relation = {
					country = POL
					relation = guarantee
					active = no
				}
			}
		}
		effect_tooltip = { # R56
			FROM = {
				declare_war_on = {
					target = ROOT
					type = take_state
					generator = { 87 }
				}
			}
		}
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = probably_lead_to_war_with_ger_tt
	}
}

# Poland Cedes More Territory - event for GER
country_event = {
	id = wuw_GER_realpolitik.21
	title = wuw_GER_realpolitik.21.t
	desc = wuw_GER_realpolitik.21.desc
	picture = GFX_report_event_german_polish_border

	is_triggered_only = yes

	option = {
		name = wuw_GER_realpolitik.21.a
		# R56
		transfer_state = 87
		add_state_core = 87
		transfer_state = 98
		add_state_core = 98
		transfer_state = 97
		add_state_core = 97
		transfer_state = 934
		add_state_core = 934
		###

		IF = {
			limit = {
				ENG = {
					NOT = {
						is_in_faction_with = GER
					}
					has_guaranteed = POL
				}
			}
			ENG = {
				add_war_support = -0.02 #dodged a bullet there
			}
		}
		IF = {
			limit = {
				FRA = {
					NOT = {
						is_in_faction_with = GER
					}
					has_guaranteed = POL
				}
			}
			FRA = {
				add_war_support = -0.02 #dodged a bullet there
			}
		}
	}
}

# Poland Refuses to Cede More Territory - event for GER
country_event = {
	id = wuw_GER_realpolitik.22
	title = wuw_GER_realpolitik.22.t
	desc = wuw_GER_realpolitik.22.desc
	picture = GFX_report_event_polish_tanks_02

	is_triggered_only = yes

	option = {
		name = wuw_GER_realpolitik.22.a

		IF = {
			limit = {
				FROM = {
					is_subject = yes
					OVERLORD = {
						has_non_aggression_pact_with = ROOT
					}
				}
			}
			FROM = {
				OVERLORD = {
					diplomatic_relation = {
						country = ROOT
						relation = non_aggression_pact
						active = no
					}
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					has_non_aggression_pact_with = ROOT
				}
			}
			FROM = {
				diplomatic_relation = {
					country = ROOT
					relation = non_aggression_pact
					active = no
				}
			}
			every_other_country = {
				limit = {
					has_non_aggression_pact_with = ROOT
				}
				add_opinion_modifier = {
					target = ROOT
   					modifier = protest_action_strong
				}
			}
		}
		# R56
		create_wargoal = {
			type = take_state
			generator = { 87 98 97 934}
			target = FROM
		}
		###
	}
}

# Germany invites us to their faction and offers us land - event for Turkey
country_event = { 
	id = wuw_GER_realpolitik.23
	title = wuw_GER_realpolitik.23.t
	desc = wuw_GER_realpolitik.23.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = wuw_GER_realpolitik.23.a
		ai_chance = {
			base = 6
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0.5
				has_civil_war = yes
			}
		}

		GER_setup_faction_wide_aoe_effects_from = yes

		custom_effect_tooltip = generic_skip_one_line_tt
		IF = {
			limit = {
				FROM = {
					has_government = neutrality
				}
			}
			set_cosmetic_tag = OTT_UNIFIED
			custom_effect_tooltip = generic_skip_one_line_tt
		}
		
		add_ideas = GER_german_trade_ns

		every_state = {
			limit = {
				OR = {
					state = 676
					state = 675
					state = 291
					state = 680
					state = 677
					state = 799
					state = 554
					state = 553
					state = 455
					state = 454
					state = 855
					state = 679
					state = 856
					state = 293
					state = 453
				}
				# NOT = { # R56
				# 	is_claimed_by = ROOT
				# }
				# controller = { # R56
				# 	NOT = { #Don't hurt our buddiess!
				# 		is_ally_with = FROM
				# 		is_guaranteed_by = FROM
				# 		has_a_german_trade_idea = yes
				# 	}
				# }
			}
			add_claim_by = ROOT
		}

		FROM = {
			add_to_faction = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.24 
				hours = 5 
				random_hours = 5 
			}
		}

		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 250
		}
		add_ai_strategy = {
			type = befriend
			id = FROM
			value = 250
		}

	}

	option = { # We do not need their friendship!
		name = wuw_GER_realpolitik.23.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
			modifier = {
				add = 10
				FROM = {
					has_added_tension_amount > 25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.25 
				hours = 5 
				random_hours = 5 
			}
		}

	}
}

country_event = { # FROM accepts our faction invitation - event for GER
	id = wuw_GER_realpolitik.24
	title = wuw_GER_realpolitik.24.t
	desc = wuw_GER_diplomacy.24.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Naisu
		name = wuw_GER_realpolitik.24.a  

		effect_tooltip = {
			ROOT = {
				add_to_faction = FROM
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_government = neutrality
				}
				FROM = {
					set_cosmetic_tag = OTT_UNIFIED
				}
			}
			FROM = {
				add_ideas = GER_german_trade_ns
			}

			every_state = {
				limit = {
					OR = {
						state = 676
						state = 675
						state = 291
						state = 680
						state = 677
						state = 799
						state = 554
						state = 553
						state = 455
						state = 454
						state = 855
						state = 679
						state = 856
						state = 293
						state = 453
					}
					# NOT = { # R56
					# 	is_claimed_by = FROM
					# }
					# controller = { # R56
					# 	NOT = { #Don't hurt our buddiess!
					# 		is_ally_with = ROOT
					# 		is_guaranteed_by = ROOT
					# 		has_a_german_trade_idea = yes
					# 	}
					# }
				}
				add_claim_by = FROM
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			GER_setup_faction_wide_aoe_effects_root = yes
		}

	}
}

country_event = { # FROM rejects our faction invitation - event for GER
	id = wuw_GER_realpolitik.25
	title = wuw_GER_realpolitik.25.t
	desc = wuw_GER_realpolitik.25.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # They are missing out
		name = wuw_GER_realpolitik.25.a	



	}
}

# Germany wants us to get the trade spirit - event for German ally
country_event = { 
	id = wuw_GER_realpolitik.26
	title = wuw_GER_realpolitik.26.t
	desc = wuw_GER_realpolitik.26.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Yes pliz
		name = wuw_GER_realpolitik.26.a	
		ai_chance = {
			base = 100
		}

		add_ideas = GER_german_trade_ns
		add_opinion_modifier = {
			target = FROM
			modifier = GER_trading_partners
		}
	}
	option = { # No thx
		name = wuw_GER_realpolitik.26.b	
		ai_chance = {
			base = 0
		}
	}
}

# Germany wants us to get the customs union spirit - event for German ally
country_event = { 
	id = wuw_GER_realpolitik.63
	title = wuw_GER_realpolitik.63.t
	desc = wuw_GER_realpolitik.63.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Yes pliz
		name = wuw_GER_realpolitik.63.a	
		ai_chance = {
			base = 100
		}

		add_ideas = GER_mitteleuropa_customs_union_member

	}
	option = { # No thx
		name = wuw_GER_realpolitik.63.b	
		ai_chance = {
			base = 0
		}

		add_political_power = -10

	}
}

country_event = { #The Civil War broke out (Monarchist)
	id = wuw_GER_realpolitik.27
	title = wuw_GER_realpolitik.27.t
	desc = wuw_GER_realpolitik.27.desc
	picture = GFX_report_event_GER_grenzshutz_forces

	is_triggered_only = yes

	option = { #we are monarchist now!
		name = wuw_GER_realpolitik.27.a
		ai_chance = {
			base = 10
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = ROOT
			ruling_party = neutrality
			size = 0.4 # since this triggers when the country goes over 50% neutrality
			capital = var:ROOT.temp_capital
		}
	}

	option = { #Fight back the white menace!
		name = wuw_GER_realpolitik.27.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				check_variable = {
					num_owned_states < 2
				}
			}
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = neutrality
			ruling_party = ROOT
			size = 0.5 # since this triggers when the country goes over 50% neutrality
			capital = var:ROOT.temp_capital
		}

	}
}

country_event = { #The Civil War broke out (Democratic)
	id = wuw_GER_realpolitik.28
	title = wuw_GER_realpolitik.28.t
	desc = wuw_GER_realpolitik.28.desc
	picture = GFX_report_event_generic_polish_machinegunners

	is_triggered_only = yes

	option = { #we are a republic now!
		name = wuw_GER_realpolitik.28.a
		ai_chance = {
			base = 10
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = ROOT
			ruling_party = democratic
			size = 0.4 # since this triggers when the country goes over 50% democratic
			capital = var:ROOT.temp_capital
		}
	}

	option = { #Fight back the azure menace!
		name = wuw_GER_realpolitik.28.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				check_variable = {
					num_owned_states < 2
				}
			}
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = democratic
			ruling_party = ROOT
			size = 0.5 # since this triggers when the country goes over 50% democratic
			capital = var:ROOT.temp_capital
		}
		
	}
}

country_event = { #The Civil War broke out (Fascist)
	id = wuw_GER_realpolitik.29
	title = wuw_GER_realpolitik.29.t
	desc = wuw_GER_realpolitik.29.desc
	picture = GFX_report_event_GER_black_reichswehr_forces

	is_triggered_only = yes

	option = { #we are a bad place now!
		name = wuw_GER_realpolitik.29.a
		ai_chance = {
			base = 10
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = ROOT
			ruling_party = fascism
			size = 0.4 # since this triggers when the country goes over 50% fascism
			capital = var:ROOT.temp_capital
		}
	}

	option = { #Fight back the brown menace!
		name = wuw_GER_realpolitik.29.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				check_variable = {
					num_owned_states < 2
				}
			}
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = fascism
			ruling_party = ROOT
			size = 0.5 # since this triggers when the country goes over 50% fascism
			capital = var:ROOT.temp_capital
		}
		
	}
}

# Germany offers subjugation - event for target of decisions
country_event = { 
	id = wuw_GER_realpolitik.30
	title = denmark_expansion_event.800.t # These are intentional
	desc = denmark_expansion_event.800.desc
	picture = GFX_report_event_military_planning

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Accept
		name = denmark_expansion_event.600.a #Intentional
		ai_chance = {
			base = 5
			modifier = {
				factor = 2
				has_civil_war = yes
			}
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
			GER_setup_faction_wide_aoe_effects_from = yes
		}

		FROM = {
			country_event = { id = wuw_GER_realpolitik.31 days = 2 } 
		}

	}
	option = { #Refuse
		name = denmark_protection_event.100.b #Intentional
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
		}
		FROM = {
			country_event = { id = wuw_GER_realpolitik.32 days = 2 } 
		}
	}
}

# We gain a Puppet or ally - event for GER
country_event = { 
	id = wuw_GER_realpolitik.31
	title = denmark_expansion_event.801.t # Also intentional 
	desc = denmark_expansion_event.801.desc
	picture = GFX_report_event_generic_sign_treaty1

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Great
		name = denmark_expansion_event.301.a #Intentional

		ROOT = {
			add_to_faction = FROM
		}
		custom_effect_tooltip = generic_skip_one_line_tt

		GER_setup_faction_wide_aoe_effects_root = yes

	}
}

# FROM doesn't want to become a Puppet - event for GER
country_event = { 
	id = wuw_GER_realpolitik.32
	title = denmark_expansion_event.802.t # Still intentional
	desc = denmark_expansion_event.802.desc
	picture = GFX_report_event_journalists_speech

	#fire_only_once = yes

	is_triggered_only = yes

	option = { #Zamn
		name = denmark_protection_event.102.a #Intentional
		
	}
}

# Germany invites us to further economic integration - event for person Germany wants to integrate
country_event = { 
	id = wuw_GER_realpolitik.33
	title = wuw_GER_realpolitik.33.t
	desc = wuw_GER_realpolitik.33.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = wuw_GER_realpolitik.33.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		swap_ideas = {
			remove_idea = GER_mitteleuropa_customs_union_member
			add_idea = GER_mitteleuropa_integrated_customs_union_member
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.34 
				hours = 5 
				random_hours = 5 
			}
		}

		hidden_effect = {
			set_country_flag = GER_country_that_accepted_economic_integration_flag
		}
	}

	option = { # We do not need their friendship!
		name = wuw_GER_realpolitik.33.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.35 
				hours = 5 
				random_hours = 5 
			}
		}

		hidden_effect = {
			set_country_flag = GER_country_that_rejected_economic_integration_flag
		}
	}
}

country_event = { # [FROM.GetNameDefCap] Accepts our offer - event for GER
	id = wuw_GER_realpolitik.34
	title = wuw_GER_realpolitik.34.t
	desc = wuw_GER_realpolitik.34.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We are grateful for their naiveté
		name = wuw_GER_realpolitik.34.a  

		effect_tooltip = {
			FROM = {
				swap_ideas = {
					remove_idea = GER_mitteleuropa_customs_union_member
					add_idea = GER_mitteleuropa_integrated_customs_union_member
				}	
			}
		}

	}
}

country_event = { # [FROM.GetNameDefCap] Rejects our offer - event for GER
	id = wuw_GER_realpolitik.35
	title = wuw_GER_realpolitik.35.t
	desc = wuw_GER_realpolitik.35.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Terrible news...
		name = wuw_GER_realpolitik.35.a	

	}
}


# Germany proposes unification - event for AUS
country_event = { 
	id = wuw_GER_realpolitik.36
	title = wuw_GER_realpolitik.36.t
	desc = wuw_GER_realpolitik.36.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	# The lesser-German solution was a mistake
	option = { 
		name = wuw_GER_realpolitik.36.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				has_country_flag = AUS_is_more_likely_to_accept_being_brothers_in_arms_flag
			}
		}

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.37 
				hours = 5 
				random_hours = 6
			}
		}

		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
			ROOT = {
				every_core_state = {		
					add_core_of = FROM
				}
			}

			AUS = { # R56
				AUS_wilhelm_gebauer = {
					set_nationality = ROOT
				}
				AUS_ludwig_von_eimannsberger = {
					set_nationality = ROOT
				}

				AUS_anton_kienbauer = {
					set_nationality = ROOT
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = GAME_OVER_TT

	}

	# We will not compromise on our independence!
	option = {
		name = wuw_GER_realpolitik.36.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 0
				is_subject_of = FROM
			}

			modifier = {
				factor = 200 #needs to be this big to cancel out effects in option a
				FROM = {
					is_faction_leader = yes
				}
				any_other_country = {
					NOT = { original_tag = FROM }
					is_in_faction_with = FROM
				}
			}
		}

		add_war_support = 0.1

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.38 
				hours = 5 
				random_hours = 6
			}
		}

	}
}

# [FROM.GetNameDefCap] Accepts our offer - event for GER
country_event = { 
	id = wuw_GER_realpolitik.37
	title = wuw_GER_realpolitik.37.t
	desc = wuw_GER_realpolitik.37.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # A great day for the [ROOT.GetAdjective] nation!
		name = wuw_GER_realpolitik.37.a  
		
		annex_country = {
			target = FROM
			transfer_troops = yes
		}

		custom_effect_tooltip =  generic_skip_one_line_tt
		
		FROM = {
			every_core_state = {		
				add_core_of = ROOT
			}
		}

		GER_anschluss_modify_mefo_bills_or_economy_of_conquest = yes
		GER_seize_gold_reserves_in_europe_peacefully = yes
		add_to_variable = { var = GER_mefo_bill_counter value = -10 }

		IF = {
			limit = { AUS = { has_completed_focus = AUS_bring_generals_out_of_retirement } }

			AUS = {
				AUS_wilhelm_gebauer = {
					set_nationality = ROOT
				}
			}
		}

		AUS = {
			AUS_ludwig_von_eimannsberger = {
				set_nationality = ROOT
			}

			AUS_anton_kienbauer = {
				set_nationality = ROOT
			}
		}

		set_country_flag = GER_got_austrian_generals
	}
}

# [FROM.GetNameDefCap] Rejects our offer - event for GER
country_event = { 
	id = wuw_GER_realpolitik.38
	title = wuw_GER_realpolitik.38.t
	desc = wuw_GER_realpolitik.38.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	# In that case we must respect their wishes
	option = { 
		name = wuw_GER_realpolitik.38.a	
		ai_chance = {
			base = 10
		}

		add_stability = 0.1
		add_political_power = 50

	}

	# [FROM.GetNameDefCap] is [ROOT.GetAdjective]!
	option = { 
		name = wuw_GER_realpolitik.38.b	
		ai_chance = {
			base = 90
		}

		create_wargoal = {
			type = annex_everything
			target = FROM
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				OR = {
					state = 848
					state = 153
					state = 152
					state = 976
					state = 4
					state = 975
				}
			}
			add_core_of = ROOT
		}

	}
}

# Germany invites us to their faction and offers us land - event for Hungary
country_event = { 
	id = wuw_GER_realpolitik.39
	title = wuw_GER_realpolitik.39.t
	desc = wuw_GER_realpolitik.39.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = wuw_GER_realpolitik.39.a
		ai_chance = {
			base = 6
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0.5
				has_civil_war = yes
			}
		}

		GER_setup_faction_wide_aoe_effects_from = yes

		every_state = {
			limit = {
				OR = {
					state = 664
					state = 73
					state = 76
					state = 84
					state = 83
					state = 82
					state = 45
					state = 975
				}
			}
			add_claim_by = ROOT
		}

		set_cosmetic_tag = HUN_GREATER

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = { # R56
			limit = {
				OR = {
					state = 664
					state = 73
					state = 76
					state = 84
					state = 83
					state = 82
					state = 45
					state = 975
				}
				is_owned_by = FROM # R56
			}
			transfer_state_to = ROOT
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			add_to_faction = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.40 
				hours = 5 
				random_hours = 5 
			}
		}

		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 250
		}
		add_ai_strategy = {
			type = befriend
			id = FROM
			value = 250
		}

	}

	option = { # We do not need their friendship!
		name = wuw_GER_realpolitik.39.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
			modifier = {
				add = 10
				FROM = {
					has_added_tension_amount > 25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.41 
				hours = 5 
				random_hours = 5 
			}
		}

	}
}

country_event = { # FROM accepts our faction invitation - event for GER
	id = wuw_GER_realpolitik.40
	title = wuw_GER_realpolitik.40.t
	desc = wuw_GER_realpolitik.40.desc 
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Naisu
		name = wuw_GER_realpolitik.40.a  

		effect_tooltip = {

			every_state = {
				limit = {
					OR = {
						state = 664
						state = 73
						state = 76
						state = 84
						state = 83
						state = 82
						state = 45
						state = 975
					}
				}
				add_claim_by = FROM # R56
			}

			FROM = { # R56
				set_cosmetic_tag = HUN_GREATER
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			every_state = { # R56
				limit = {
					OR = {
						state = 664
						state = 73
						state = 76
						state = 84
						state = 83
						state = 82
						state = 45
						state = 975
					}
					is_owned_by = ROOT # R56
				}
				transfer_state_to = FROM # R56
				add_core_of = FROM # R56
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			ROOT = {
				add_to_faction = FROM
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			GER_setup_faction_wide_aoe_effects_root = yes
		}

	}
}

country_event = { # FROM rejects our faction invitation - event for GER
	id = wuw_GER_realpolitik.41
	title = wuw_GER_realpolitik.41.t
	desc = wuw_GER_realpolitik.41.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # They are missing out
		name = wuw_GER_realpolitik.41.a	

	}
}


# Germany invites us to their faction and offers us land - event for Austria
country_event = { 
	id = wuw_GER_realpolitik.42
	title = wuw_GER_realpolitik.42.t
	desc = wuw_GER_realpolitik.42.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It is time to reclaim our birthright!
		name = wuw_GER_realpolitik.42.a
		ai_chance = {
			base = 12
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 10
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				any_neighbor_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_justifying_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0
				FROM = {
					has_wargoal_against = ROOT
				}
			}
			modifier = {
				factor = 0.5
				has_civil_war = yes
			}
			# modifier = { # R56
			# 	factor = 2
			# 	has_country_flag = AUS_is_more_likely_to_accept_being_brothers_in_arms_flag
			# }
		}

		IF = {
			limit = {
				FROM = {
					has_government = neutrality
				}
			}

			IF = {
				limit = {
					NOT = { 
						OR = {
							has_completed_focus = AUS_reinstate_the_imperial_council
							has_global_flag = HUN_otto_von_habsburg_has_joined_hungary_flag
						}
					}
				}
				HUN = {
					HUN_otto_von_habsburg = { 
						set_nationality = AUS
						promote_character = yes
					}
				}

				set_global_flag = AUS_otto_von_habsburg_has_joined_austria_flag
			}

			ELSE_IF = {
				limit = {
					has_global_flag = HUN_otto_von_habsburg_has_joined_hungary_flag
					NOT = {
						has_completed_focus = AUS_reinstate_the_imperial_council
					}
				}

				AUS_ernst_rudiger_starhemberg = {

					remove_country_leader_trait = {
						ideology = despotism
						trait = anti_communist 
					}

					add_country_leader_trait = AUS_prince_of_starhemberg

					promote_character = yes
				}
			}

			set_party_name = {
				ideology = neutrality 
				long_name = AUS_neutrality_herrenhaus_long
				name = AUS_neutrality_herrenhaus
			}

			set_party_name = {
				ideology = fascism
				long_name = AUS_fascism_vaterlandische_front_long
				name = AUS_fascism_vaterlandische_front
			}

			hidden_effect = {
				IF = {
					limit = {
						NOT = {
							has_completed_focus = AUS_legacy_of_the_empire
						}
					}
					IF = {
						limit = {
							has_country_leader = {
								ruling_only = yes # default = yes
								character = HUN_otto_von_habsburg
							}
						}

						add_dynamic_modifier = {
							modifier = AUS_habsburg_monarchy_restored
						}
					}

					ELSE = {
						add_dynamic_modifier = {
							modifier = AUS_austrian_monarchy_restored
						}
					}

					add_to_variable = { AUS_habsburg_monarchy_restored_neutrality_drift = 0.02 tooltip = neutrality_drift_tt }
					add_to_variable = { AUS_habsburg_monarchy_restored_drift_defence_factor = 0.3 tooltip = drift_defence_factor_tt }
					add_to_variable = { AUS_habsburg_monarchy_restored_war_support_factor = 0.05 tooltip = war_support_factor_tt }


					IF = {
						limit = {
							HUN = {
								exists = yes
							}
						}
						HUN = {
							add_opinion_modifier = {
								target = ROOT
								modifier = AUS_imperilalist_sentiments
							}
						}		
					}

					IF = {
						limit = {
							CZE = {
								exists = yes
							}
						}
						CZE = {
							add_opinion_modifier = {
								target = ROOT
								modifier = AUS_imperilalist_sentiments
							}
						}		
					}

					IF = {
						limit = {
							YUG = {
								exists = yes
							}
						}
						YUG = {
							add_opinion_modifier = {
								target = ROOT
								modifier = AUS_imperilalist_sentiments
							}
						}		
					}

					IF = {
						limit = {
							ROM = {
								exists = yes
							}
						}
						ROM = {
							add_opinion_modifier = {
								target = ROOT
								modifier = AUS_imperilalist_sentiments
							}
						}		
					}
				}
			}

			IF = {
				limit = {
					NOT = {
						# is_in_faction_with = ROOT # R56
						has_cosmetic_tag = HUN_EMPIRE
					}
				}
				set_cosmetic_tag = AUS_kingdom_of_austria
			}
		}

		ELSE_IF = {
			limit = {
				FROM = {
					has_government = democratic
				}
			}

			IF = {
				limit = {
					NOT = {
						has_dynamic_modifier = {
							modifier = AUS_farr
						}
					}
				}

				add_dynamic_modifier = {
					modifier = AUS_farr
				}

				add_to_variable = { AUS_farr_stability_factor = 0.05 tooltip = stability_factor_tt }
				add_to_variable = { AUS_farr_democratic_drift = 0.03 tooltip = democratic_drift_tt }
			}
		}

		set_politics = {
			ruling_party = FROM
			last_election = "1934.11.9" 
			election_frequency = 48
			elections_allowed = no
		}

		GER_setup_faction_wide_aoe_effects_from = yes

		# R56
		every_state = {
			limit = {
				OR = {
					state = 102
					state = 853
					state = 103
					state = 104
					state = 804
					state = 109
					state = 45
					state = 83
					state = 76
					state = 84
					state = 764
					state = 82
					state = 848
					state = 153
					state = 152
					state = 4
					state = 975
					state = 976
					state = 69
					state = 9
					state = 75
					state = 74
					state = 72
					state = 70
					state = 664
					state = 71
					state = 73
					state = 155
					state = 43
					state = 973
					state = 1104
					state = 154
				}
			}
			add_claim_by = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				OR = {
					state = 102
					state = 853
					state = 103
					state = 104
					state = 804
					state = 109
					state = 45
					state = 83
					state = 76
					state = 84
					state = 764
					state = 82
					state = 848
					state = 153
					state = 152
					state = 4
					state = 975
					state = 976
					state = 69
					state = 9
					state = 75
					state = 74
					state = 72
					state = 70
					state = 664
					state = 71
					state = 73
					state = 155
					state = 43
					state = 973
					state = 1104
					state = 154
				}
				is_owned_by = FROM
			}
			transfer_state_to = ROOT
			add_core_of = ROOT
		}
		###

		custom_effect_tooltip = generic_skip_one_line_tt

		if = {
			limit = {
				NOT = { is_in_faction_with = FROM }
			}
			FROM = {
				add_to_faction = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = wuw_GER_realpolitik.43 
				hours = 5 
				random_hours = 5 
			}
		}

		add_ai_strategy = {
			type = alliance
			id = GER
			value = 1500 #to counter the -1000 at game start
		}
		add_ai_strategy = {
			type = befriend
			id = GER
			value = 500
		}

	}

	option = { # We do not need their friendship!
		name = wuw_GER_realpolitik.42.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -24
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = wuw_GER_realpolitik.44 
				hours = 5 
				random_hours = 5 
			}
		}

	}
}

country_event = { # FROM accepts our faction invitation - event for GER
	id = wuw_GER_realpolitik.43
	title = wuw_GER_realpolitik.43.t
	desc = wuw_GER_realpolitik.43.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Naisu
		name = wuw_GER_realpolitik.43.a  

		effect_tooltip = { # R56

			IF = {
				limit = {
					FROM = {
						NOT = {
							has_cosmetic_tag = HUN_EMPIRE
						}
					}
				}
				FROM = {
					set_cosmetic_tag = AUS_kingdom_of_austria
				}
			}
			every_state = { # R56
				limit = {
					OR = {
						state = 102
						state = 853
						state = 103
						state = 104
						state = 804
						state = 109
						state = 45
						state = 83
						state = 76
						state = 84
						state = 764
						state = 82
						state = 848
						state = 153
						state = 152
						state = 4
						state = 975
						state = 976
						state = 69
						state = 9
						state = 75
						state = 74
						state = 72
						state = 70
						state = 664
						state = 71
						state = 73
						state = 155
						state = 43
						state = 973
						state = 1104
						state = 154
					}
				}
				add_claim_by = FROM
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			every_state = { # R56
				limit = {
					OR = {
						state = 102
						state = 853
						state = 103
						state = 104
						state = 804
						state = 109
						state = 45
						state = 83
						state = 76
						state = 84
						state = 764
						state = 82
						state = 848
						state = 153
						state = 152
						state = 4
						state = 975
						state = 976
						state = 69
						state = 9
						state = 75
						state = 74
						state = 72
						state = 70
						state = 664
						state = 71
						state = 73
						state = 155
						state = 43
						state = 973
						state = 1104
						state = 154
					}
					is_owned_by = ROOT
				}
				transfer_state_to = FROM
				add_core_of = FROM
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_to_faction = FROM

			custom_effect_tooltip = generic_skip_one_line_tt

			GER_setup_faction_wide_aoe_effects_root = yes
		}
	}
}

country_event = { # FROM rejects our faction invitation - event for GER
	id = wuw_GER_realpolitik.44
	title = wuw_GER_realpolitik.44.t
	desc = wuw_GER_realpolitik.44.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # They are missing out
		name = wuw_GER_realpolitik.44.a	

		every_state = {
			limit = {
				is_core_of = FROM
			}
			add_claim_by = ROOT
		}

	}
}


# Germany Wants to Split Czechoslovakia - event for Austria or Hungary
country_event = { 
	id = wuw_GER_realpolitik.45
	title = wuw_GER_realpolitik.45.t
	desc = wuw_GER_realpolitik.45.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Deal!
		name = wuw_GER_realpolitik.45.a
		ai_chance = {
			base = 100
		}

		IF = {
			limit = {
				CZE = {
					is_subject = no
				}
			}
			CZE = { # [GER.GetNameDefCap] Demands Czechoslovak Lands
				country_event = { 
					id = wuw_GER_realpolitik.46
					hours = 5 
					random_hours = 5 
				}
			}
		}
		ELSE = {
			CZE = {
				OVERLORD = {
					# [GER.GetNameDefCap] Demands Czechoslovak Lands
					country_event = { 
						id = wuw_GER_realpolitik.46
						hours = 5 
						random_hours = 5 
					}
				}
			}
		}

		# custom_effect_tooltip = if_they_accept_tt # R56

		# effect_tooltip = { # R56
		# 	CZE = {
		# 		every_controlled_state = {
		# 			limit = {
		# 				OR = {
		# 					state = 69
		# 					state = 9
		# 					state = 75
		# 					state = 74
		# 					state = 1078
		# 				}
		# 			}
		# 			transfer_state_to = FROM
		# 		}
		# 	}

		# 	if = {
		# 		limit = {
		# 			POL = {
		# 				OR = {
		# 					exists = no
		# 					AND = {
		# 						exists = yes
		# 						has_war_with = FROM
		# 					}
		# 				}
		# 			}
		# 		}
		# 		CZE = {
		# 			every_controlled_state = {
		# 				limit = {
		# 					OR = {
		# 						state = 70
		# 						state = 664
		# 						state = 72
		# 						state = 71
		# 						state = 73
		# 					}
		# 				}
		# 				transfer_state_to = ROOT
		# 				add_core_of = ROOT
		# 			}
		# 		}
		# 	}
		# 	else = {
		# 		CZE = {
		# 			every_controlled_state = {
		# 				limit = {
		# 					OR = {
		# 						state = 70
		# 						state = 664
		# 						#state = 72
		# 						state = 71
		# 						state = 73
		# 					}
		# 				}
		# 				transfer_state_to = ROOT
		# 				add_core_of = ROOT
		# 			}
		# 		}
		# 		POL = {
		# 			transfer_state = 72
		# 			add_state_core = 72
		# 			POL = {
		# 				country_event = { hours = 6 id = germany.52 }
		# 			}
		# 		}
		# 	}
		# }
	}

	option = { # We cannot agree to this
		name = wuw_GER_realpolitik.45.b
		ai_chance = {
			base = 0
		}

		FROM = { # FROM Rejects our Offer
			country_event = { 
				id = wuw_GER_realpolitik.50 
				hours = 5 
				random_hours = 5 
			}
		}
	}
}

# Germany Demands Czechoslovak Lands - event for CZE or their overlord
country_event = { 
	id = wuw_GER_realpolitik.46
	title = wuw_GER_realpolitik.46.t
	desc = wuw_GER_realpolitik.46.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We cannot fight them both...
		name = wuw_GER_realpolitik.46.a
		ai_chance = {
			base = 90
		}
		
		IF = {
			limit = {
				original_tag = CZE
			}
			GER = { # [FROM.GetNameDefCap] Accepts Splitting Czechoslovakia
				country_event = { 
					id = wuw_GER_realpolitik.47
					hours = 5 
					random_hours = 5 
				}
			}
		}
		ELSE = {
			CZE = { # Our Overlord Surrenders us to [GER.GetNameDef]
				country_event = { 
					id = wuw_GER_realpolitik.49
					hours = 5 
					random_hours = 5 
				}
			}
		}
		# effect_tooltip = { # R56
		# 	CZE = {
		# 		every_controlled_state = {
		# 			limit = {
		# 				OR = {
		# 					state = 69
		# 					state = 9
		# 					state = 75
		# 					state = 74
		# 					state = 1078
		# 				}
		# 			}
		# 			transfer_state_to = GER
		# 		}
		# 	}

		# 	if = {
		# 		limit = {
		# 			POL = {
		# 				OR = {
		# 					exists = no
		# 					AND = {
		# 						exists = yes
		# 						has_war_with = GER
		# 					}
		# 				}
		# 			}
		# 		}
		# 		CZE = {
		# 			every_controlled_state = {
		# 				limit = {
		# 					OR = {
		# 						state = 70
		# 						state = 664
		# 						state = 72
		# 						state = 71
		# 						state = 73
		# 					}
		# 				}
		# 				transfer_state_to = FROM
		# 				add_core_of = FROM
		# 			}
		# 		}
		# 	}
		# 	else = {
		# 		CZE = {
		# 			every_controlled_state = {
		# 				limit = {
		# 					OR = {
		# 						state = 70
		# 						state = 664
		# 						#state = 72
		# 						state = 71
		# 						state = 73
		# 					}
		# 				}
		# 				transfer_state_to = FROM
		# 				add_core_of = FROM
		# 			}
		# 		}
		# 		POL = {
		# 			transfer_state = 72
		# 			add_state_core = 72
		# 		}
		# 	}
		# }
	}

	option = { # We will never surrender!
		name = wuw_GER_realpolitik.46.b
		ai_chance = {
			base = 10
		}

		FROM = { # [FROM.GetNameDefCap] Rejects Splitting Czechoslovakia
			country_event = { 
				id = wuw_GER_realpolitik.48 
				hours = 5 
				random_hours = 5 
			}
		}

	}
}

# [FROM.GetNameDefCap] Accepts Splitting Czechoslovakia - event for GER
country_event = { 
	id = wuw_GER_realpolitik.47
	title = wuw_GER_realpolitik.47.t
	desc = wuw_GER_realpolitik.47.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Great
		name = wuw_GER_realpolitik.47.a
		
		every_state = { # R56
			limit = {
				is_owned_by = CZE # R56
				OR = {
					state = 69
					state = 9
					state = 75
					state = 74
					state = 1078 # R56
				}
			}
			transfer_state_to = ROOT
		}

		GER_czechoslovakia_modify_mefo_bills_or_economy_of_conquest = yes
		GER_seize_gold_reserves_in_europe_peacefully = yes

		add_to_variable = { var = GER_mefo_bill_counter value = -10 }

		IF = {
			limit = {
				POL = {
					OR = {
						exists = no
						AND = {
							exists = yes
							has_war_with = ROOT
						}
					}
				}
			}
			IF = {
				limit = {
					is_in_faction_with = HUN
				}
				every_state = { # R56
					limit = {
						is_owned_by = CZE # R56
						OR = {
							state = 70
							state = 664
							state = 72
							state = 71
							state = 73
							state = 996 # R56
						}
					}
					transfer_state_to = HUN
					add_core_of = HUN
				}
			}
			ELSE_IF = {
				limit = {
					is_in_faction_with = AUS
				}
				every_state = { # R56
					limit = {
						is_owned_by = CZE # R56
						OR = {
							state = 70
							state = 664
							state = 72
							state = 71
							state = 73
							state = 996 # R56
						}
					}
					transfer_state_to = AUS
					add_core_of = AUS
				}
			}
		}

		IF = { # R56
			limit = {
				POL = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			IF = {
				limit = {
					is_in_faction_with = HUN
				}
				every_state = { # R56
					limit = {
						is_owned_by = CZE # R56
						OR = {
							state = 70
							state = 664
							#state = 72
							state = 71
							state = 73
							state = 996 # R56
						}
					}
					transfer_state_to = HUN
					add_core_of = HUN
				}
			}
			ELSE_IF = {
				limit = {
					is_in_faction_with = AUS
				}
				every_state = { # R56
					limit = {
						is_owned_by = CZE # R56
						OR = {
							state = 70
							state = 664
							#state = 72
							state = 71
							state = 73
							state = 996 # R56
						}
					}
					transfer_state_to = AUS # R56
					add_core_of = AUS # R56
				}
			}
			POL = {
				transfer_state = 72
				add_state_core = 72
				POL = {
					country_event = { hours = 6 id = germany.52 }
				}
			}
		}
	}
}

# [FROM.GetNameDefCap] Rejects Splitting Czechoslovakia - event for GER
country_event = { 
	id = wuw_GER_realpolitik.48
	title = wuw_GER_realpolitik.48.t
	desc = wuw_GER_realpolitik.48.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We will reclaim what is ours!
		name = wuw_GER_realpolitik.48.a

		add_war_support = 0.05

		create_wargoal = {
			type = annex_everything
			target = CZE
		}	

	}
}

# Our Overlord Surrenders us to [GER.GetNameDef] - event for CZE
country_event = { 
	id = wuw_GER_realpolitik.49
	title = wuw_GER_realpolitik.49.t
	desc = wuw_GER_realpolitik.49.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Alright...
		name = wuw_GER_realpolitik.49.a
		ai_chance = {
			base = 100
		}

		custom_effect_tooltip = GAME_OVER_TT
		
		GER = { # Our Overlord Surrenders us to [GER.GetNameDef]
			country_event = { 
				id = wuw_GER_realpolitik.47
				hours = 5 
				random_hours = 5 
			}
		}

	}

	option = { # Then they will have to take us by force!
		name = wuw_GER_realpolitik.49.b
		ai_chance = {
			base = 0
		}

		set_autonomy = {
			target = ROOT
			autonomy_state = autonomy_free
			end_wars  = no
			end_civil_wars = no
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		GER = { # [FROM.GetNameDefCap] Rejects Splitting Czechoslovakia
			country_event = { 
				id = wuw_GER_realpolitik.48 
				hours = 5 
				random_hours = 5 
			}
		}

	}
}

# [FROM.GetNameDefCap] Rejects our Offer - event for GER
country_event = { 
	id = wuw_GER_realpolitik.50
	title = wuw_GER_realpolitik.50.t
	desc = wuw_GER_realpolitik.50.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # Then there is not much we can do...
		name = wuw_GER_realpolitik.50.a
		
		add_war_support = -0.03
		add_political_power = 50

	}
}

# Germany demands ownership of our Galician territories - event for owner of a Galician state
country_event = {
	id = wuw_GER_realpolitik.51
	title = wuw_GER_realpolitik.51.t
	desc = wuw_GER_realpolitik.51.desc
	picture = GFX_report_event_GER_black_reichswehr_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = wuw_GER_realpolitik.51.a
		ai_chance = {
			factor = 80
			modifier = {
				strength_ratio = { tag = GER ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_realpolitik.52
				days = 2
				random_days = 3
			}
		} 
		effect_tooltip = {
			IF = {
				limit = {
					FROM = {
						is_in_faction_with = AUS
					}
				}
				every_state = { # R56
					limit = {
						OR = {
							state = 88
							state = 89
							state = 91
							state = 72
						}
						is_owned_and_controlled_by = ROOT # R56
					}
					transfer_state_to = AUS
				}
			}
			ELSE_IF = {
				limit = {
					FROM = {
						is_in_faction_with = HUN
					}
				}
				every_state = { # R56
					limit = {
						OR = {
							state = 88
							state = 89
							state = 91
							state = 72
						}
						is_owned_and_controlled_by = ROOT # R56
					}
					transfer_state_to = HUN
				}
			}
		}

	}

	# Then come and get it!
	option = { 
		name = wuw_GER_realpolitik.51.b
		ai_chance = {
			factor = 20
			modifier = {
				strength_ratio = { tag = GER ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_realpolitik.53
				days = 2
				random_days = 3
			}
		} 
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = take_claimed_state
					target = ROOT
				}
			}
		}

	}
}

# FROM hands over their Galician territories - event for GER
country_event = {
	id = wuw_GER_realpolitik.52
	title = wuw_GER_realpolitik.52.t
	desc = wuw_GER_realpolitik.52.desc
	picture = GFX_report_event_GER_black_reichswehr_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = wuw_GER_realpolitik.52.a

		IF = {
			limit = {
				ROOT = {
					is_in_faction_with = AUS
				}
			}
			every_state = { # R56
				limit = {
					OR = {
						state = 88
						state = 89
						state = 91
						state = 72
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = AUS
			}
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					is_in_faction_with = HUN
				}
			}
			every_state = { # R56
				limit = {
					OR = {
						state = 88
						state = 89
						state = 91
						state = 72
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = HUN
			}
		}
		ELSE = {
			every_state = { # R56
				limit = {
					OR = {
						state = 88
						state = 89
						state = 91
						state = 72
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = ROOT
			}
		}

	}
}

# FROM does not hand over their Galician territories - event for GER
country_event = {
	id = wuw_GER_realpolitik.53
	title = wuw_GER_realpolitik.53.t
	desc = wuw_GER_realpolitik.53.desc
	picture = GFX_report_event_generic_polish_machinegunners
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = wuw_GER_realpolitik.53.a
		ai_chance = {
			factor = 95
		}

		# if = { # R56
		# 	limit = {
		# 		ROOT = {
		# 			is_in_faction_with = HUN
		# 		}
		# 	}
		# 	HUN = {
				create_wargoal = {
					type = take_claimed_state
					target = FROM
				}
		# 	}
		# }
		# else_if = {
		# 	limit = {
		# 		ROOT = {
		# 			is_in_faction_with = AUS
		# 		}
		# 	}
		# 	AUS = {
		# 		create_wargoal = {
		# 			type = take_claimed_state
		# 			target = FROM
		# 		}
		# 	}
		# }
		# else = {
		# 	create_wargoal = {
		# 		type = take_claimed_state
		# 		target = FROM
		# 	}
		# }
	}

	# We must let this go
	option = { 
		name = wuw_GER_realpolitik.53.b
		ai_chance = {
			factor = 5
		}

		add_political_power = 25
		add_stability = -0.02

	}
}


# Germany demands ownership of our Banat and Transylvanian territories - event for owner of a Banat and Transylvanian states
country_event = {
	id = wuw_GER_realpolitik.54
	title = wuw_GER_realpolitik.54.t
	desc = wuw_GER_realpolitik.54.desc
	picture = GFX_report_event_GER_black_reichswehr_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is not worth shedding blood over
	option = { 
		name = wuw_GER_realpolitik.54.a
		ai_chance = {
			factor = 80
			modifier = {
				strength_ratio = { tag = GER ratio < 1 }
				factor = 2
			}
		}

		# They accept - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_realpolitik.55
				days = 2
				random_days = 3
			}
		} 
		effect_tooltip = {
			IF = {
				limit = {
					FROM = {
						is_in_faction_with = AUS
					}
				}
				every_state = { # R56
					limit = {
						OR = {
							state = 45
							state = 764
							state = 82
							state = 83
							state = 84
							state = 76
						}
						is_owned_and_controlled_by = ROOT # R56
					}
					transfer_state_to = AUS
				}
			}
			ELSE_IF = {
				limit = {
					FROM = {
						is_in_faction_with = HUN
					}
				}
				every_state = { # R56
					limit = {
						OR = {
							state = 45
							state = 764
							state = 82
							state = 83
							state = 84
							state = 76
						}
						is_owned_and_controlled_by = ROOT # R56
					}
					transfer_state_to = HUN
				}
			}
		}

	}

	# Then come and get it!
	option = { 
		name = wuw_GER_realpolitik.54.b
		ai_chance = {
			factor = 20
			modifier = {
				strength_ratio = { tag = GER ratio > 1 }
				factor = 2
			}
		}

		# They reject - event for GER
		FROM = { 
			country_event = {
				id = wuw_GER_realpolitik.56
				days = 2
				random_days = 3
			}
		} 
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = take_claimed_state
					target = ROOT
				}
			}
		}

	}
}

# FROM hands over their Banat and Transylvanian territories - event for GER
country_event = {
	id = wuw_GER_realpolitik.55
	title = wuw_GER_realpolitik.55.t
	desc = wuw_GER_realpolitik.55.desc
	picture = GFX_report_event_GER_black_reichswehr_forces
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is a great day!
	option = { 
		name = wuw_GER_realpolitik.55.a

		IF = {
			limit = {
				ROOT = {
					is_in_faction_with = AUS
				}
			}
			every_state = { # R56
				limit = {
					OR = {
						state = 45
						state = 764
						state = 82
						state = 83
						state = 84
						state = 76
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = AUS
			}
		}
		ELSE_IF = {
			limit = {
				ROOT = {
					is_in_faction_with = HUN
				}
			}
			every_state = { # R56
				limit = {
					OR = {
						state = 45
						state = 764
						state = 82
						state = 83
						state = 84
						state = 76
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = HUN
			}
		}
		ELSE = {
			every_state = { # R56
				limit = {
					OR = {
						state = 45
						state = 764
						state = 82
						state = 83
						state = 84
						state = 76
					}
					is_owned_and_controlled_by = FROM # R56
				}
				transfer_state_to = ROOT
			}
		}

	}
}

# FROM does not hand over their Banat and Transylvanian territories - event for GER
country_event = {
	id = wuw_GER_realpolitik.56
	title = wuw_GER_realpolitik.56.t
	desc = wuw_GER_realpolitik.56.desc
	picture = GFX_report_event_generic_polish_machinegunners
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will regret their decision
	option = { 
		name = wuw_GER_realpolitik.56.a
		ai_chance = {
			factor = 95
		}

		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}

	}

	# We must let this go
	option = { 
		name = wuw_GER_realpolitik.56.b
		ai_chance = {
			factor = 5
		}

		add_political_power = 25
		add_stability = -0.02

	}
}


country_event = { #FROM proposes tightened federation
	id = wuw_GER_realpolitik.57
	title = wuw_GER_realpolitik.57.t
	desc = wuw_GER_realpolitik.57.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = wuw_GER_realpolitik.57.a
		ai_chance = {
			base = 95
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0.5
				is_major = yes
			}
		}

		FROM = {
			country_event = {
				id = wuw_GER_realpolitik.58
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
		}

	}
	option = { #no way
		name = wuw_GER_realpolitik.57.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 15
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
		}

		FROM = {
			country_event = {
				id = wuw_GER_realpolitik.59
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT 
				}

				remove_from_faction = ROOT
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = wuw_GER_realpolitik.58
	title = wuw_GER_realpolitik.58.t
	desc = wuw_GER_realpolitik.58.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = wuw_GER_realpolitik.58.a

		puppet = {
			target = FROM
			end_wars = no
		}
	}	
}

country_event = { #FROM rejects tighter federation
	id = wuw_GER_realpolitik.59
	title = wuw_GER_realpolitik.59.t
	desc = wuw_GER_realpolitik.59.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = wuw_GER_realpolitik.59.a
		ai_chance = {
			base = 90
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM 
		}

		remove_from_faction = FROM

	}
	option = { #was worth asking
		name = wuw_GER_realpolitik.59.b
		ai_chance = {
			base = 10
		}

		add_political_power = 50

	}
}


country_event = { #FROM proposes tightened federation
	id = wuw_GER_realpolitik.60
	title = wuw_GER_realpolitik.60.t
	desc = wuw_GER_realpolitik.60.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = wuw_GER_realpolitik.60.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				id = wuw_GER_realpolitik.61
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
		}

	}
	option = { #no way
		name = wuw_GER_realpolitik.60.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = wuw_GER_realpolitik.62
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_free
					end_wars  = no
					end_civil_wars = no
				}	
				remove_from_faction = ROOT

				custom_effect_tooltip = generic_skip_one_line_tt

				create_wargoal = {
					type = annex_everything
					target = ROOT 
				}
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = wuw_GER_realpolitik.61
	title = wuw_GER_realpolitik.61.t
	desc = wuw_GER_realpolitik.61.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = wuw_GER_realpolitik.61.a

		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
		every_controlled_state = {
			limit = {
				is_core_of = FROM
			}
			add_compliance = 50
			add_extra_state_shared_building_slots = 1
		}
	}
}

country_event = { #FROM rejects tighter federation
	id = wuw_GER_realpolitik.62
	title = wuw_GER_realpolitik.62.t
	desc = wuw_GER_realpolitik.62.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = wuw_GER_realpolitik.62.a
		ai_chance = {
			base = 95
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_free
			end_wars  = no
			end_civil_wars = no
		}	
		remove_from_faction = FROM

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = annex_everything
			target = FROM 
		}

	}
	option = { #was worth asking
		name = wuw_GER_realpolitik.62.b
		ai_chance = {
			base = 5
		}

		add_political_power = 50
		
	}
}






### RELEASABLE AND FORMABLE EVENTS ####

# A new German capital - event for the nation that reformed Germany
country_event = {  
	id = wuw_GER_releasable.1
	title = wuw_GER_releasable.1.t
	desc = wuw_GER_releasable.1.desc 
	picture = GFX_report_event_SWI_parliament_members

	is_triggered_only = yes

	option = { # It should be Berlin!
		name = wuw_GER_releasable.1.a
		trigger = {
			owns_state = 64
			NOT = {
				capital_scope = {
					state = 64
				}
			}
		}
		ai_chance = {
			base = 25
		}
		
		set_capital = {
		 	state = 64
		 	remember_old_capital = no
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		64 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = 0.02
		
	}
	option = { # It should be Munich!
		name = wuw_GER_releasable.1.b
		trigger = {
			owns_state = 52
			NOT = {
				capital_scope = {
					state = 52
				}
			}
		}
		ai_chance = {
			base = 25
		}
		
		set_capital = {
		 	state = 52
		 	remember_old_capital = no
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		52 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = 0.02
		
	}
	option = { # It should be Frankfurt!
		name = wuw_GER_releasable.1.c
		trigger = {
			owns_state = 55
			NOT = {
				capital_scope = {
					state = 55
				}
			}
		}
		ai_chance = {
			base = 20
		}
		
		set_capital = {
		 	state = 55
		 	remember_old_capital = no
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		55 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = 0.02
		
	}
	option = { # Our capital is fine as it is
		name = wuw_GER_releasable.1.d
		trigger = {
		}
		ai_chance = {
			base = 30
		}
		
		add_stability = 0.05
		add_war_support = 0.03

		custom_effect_tooltip = generic_skip_one_line_tt

		capital_scope = {
			add_extra_state_shared_building_slots = 4
		}
		
	}
}

country_event = {
	id = wuw_GER_releasable.2
	title = wuw_GER_releasable.2.t
	desc = wuw_GER_releasable.2.desc
	picture = GFX_report_event_election_vote

	# R56 - We have our own content, kept incase of future use. 
	is_triggered_only = yes

	mean_time_to_happen = { days = 1 }

	fire_only_once = yes

	option = { # Pierre Dupong takes the helm
		name = wuw_GER_releasable.2.a
		ai_chance = {
			base = 100
		}
		
		promote_character = LUX_pierre_dupong
		retire_character = LUX_joseph_bech
		
	}

	option = { # Joseph Bech is still needed
		name = wuw_GER_releasable.2.b
		ai_chance = {
			base = 0
		}
		
		add_political_power = 50

		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}	
		
	}

	option = { # In these dangerous times the Royals must take action!
		name = wuw_GER_releasable.2.c
		ai_chance = {
			base = 0
		}
		
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
			last_election = "1937.6.5"
			election_frequency = 48
		}

		add_popularity = {
			ideology = neutrality
			popularity = 0.5
		}	
		
	}

	option = { # The people should protest such a clearly rigged election!
		name = wuw_GER_releasable.2.d
		ai_chance = {
			base = 0
		}
		
		add_popularity = {
			ideology = democratic
			popularity = -0.35
		}	
		
	}

}




##################################
### INTEGRATE PUPPET ECONOMIES ###
##################################

country_event = {
	id = GOT_GER_integrated_puppet_economies.01
	title = GOT_GER_integrated_puppet_economies.01.t
	desc = GOT_GER_integrated_puppet_economies.01.desc
	picture = GFX_report_event_generic_construction_site

	is_triggered_only = yes

	option = { #ok
		name = GOT_GER_integrated_puppet_economies.01.a
				
		custom_effect_tooltip = {
			localization_key = GER_idea_added_for_limited_time
			IDEA = idea_desc|GER_german_development_aid
			TIME = [?FROM.GER_puppet_economies_integration_days]
		}
	}
}

country_event = {
	id = GOT_GER_integrated_puppet_economies.02
	title = GOT_GER_integrated_puppet_economies.02.t
	desc = GOT_GER_integrated_puppet_economies.02.desc
	picture = GFX_report_event_generic_construction_site

	is_triggered_only = yes

	option = { #ok
		name = GOT_GER_integrated_puppet_economies.02.a
				
		custom_effect_tooltip = {
			localization_key = GER_idea_added_for_limited_time
			IDEA = idea_desc|GER_german_exploitation
			TIME = [?FROM.GER_puppet_economies_integration_days]
		}
	}
}


#Göring wants to launch the Blitz
country_event = {
	id = wuw_GER_the_battle_of_britain.01
	title = wuw_GER_the_battle_of_britain.01.t
	desc = wuw_GER_the_battle_of_britain.01.desc
	picture = GFX_report_event_GER_bombers

	trigger = {
		original_tag = GER
		has_government = fascism
		has_dlc = "Gotterdammerung"
		FRA = { 
			OR = {
				has_capitulated = yes
				exists = no
			}
		}
		GER = {
			has_idea = goering
			has_war_with = ENG
			NOT = { #No need to launch the Blitz if Germany already have boots on the ground in Britain
				any_controlled_state = {
					is_core_of = ENG
				}
			}
		}
		NOT = {
			any_country = {
				is_subject_of = GER
				any_controlled_state = {
					is_core_of = ENG
				}
			}
		}
	}

	fire_only_once = yes

	mean_time_to_happen = {
		days = 90
	}

	option = { #Launch the Blitz
		name = wuw_GER_the_battle_of_britain.01.a
				
		custom_effect_tooltip = GER_unlocks_big_ben_raid_tt
		set_country_flag = GER_goring_launches_the_blitz_flag
		custom_effect_tooltip = generic_skip_one_line_tt 
		add_timed_idea = {
			idea = GER_battle_for_air_superiority
			days = 180
		}
	}
	option = { #Göring is promising too much
		name = wuw_GER_the_battle_of_britain.01.b
				
		add_political_power = -25
		air_experience = -15
	}
}

country_event = {
	id = wuw_GER_uncertain_future.01
	title = wuw_GER_uncertain_future.01.t
	desc = wuw_GER_uncertain_future.01.desc
	picture = GFX_report_event_gathering_protest

	fire_only_once = yes

	trigger = {
		has_dlc = "Gotterdammerung"
		original_tag = GER
		has_country_leader = { 
			ruling_only = yes
			character = GER_august_von_mackensen
		}
		has_completed_focus = GER_oppose_hitler_ww
		has_civil_war = no
		NOT = {
			OR = {
				focus_progress = {
				    focus = GER_start_the_proletarian_revolution
				    progress > 0
				}
				focus_progress = {
				    focus = GER_re_establish_free_elections_ww
				    progress > 0
				}
				focus_progress = {
				    focus = GER_return_of_the_kaiser_ww
				    progress > 0
				}
				focus_progress = {
				    focus = GER_military_dictatorship
				    progress > 0
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	option = { #that's not great....
		name = wuw_GER_uncertain_future.01.a
				
		activate_mission = GER_growing_public_dissent_mission
	}
}

country_event = {
	id = wuw_GER_uncertain_future.02
	title = wuw_GER_uncertain_future.02.t
	desc = wuw_GER_uncertain_future.02.desc
	picture = GFX_report_event_gathering_protest

	fire_only_once = yes

	is_triggered_only = yes
	
	option = { #that's not great....
		name = wuw_GER_uncertain_future.02.a
				
		add_ideas = GER_uncertain_future
	}
}

country_event = {
	id = wuw_GER_german_politics.01
	title = wuw_GER_german_politics.01.t
	desc = wuw_GER_german_politics.01.desc
	picture = GFX_report_event_election_vote

	fire_only_once = yes

	is_triggered_only = yes
	
	option = { #Zentrum
		name = wuw_GER_german_politics.01.a
		ai_chance = {
			base = 10
		}

		set_politics = { 
			ruling_party = democratic 
			elections_allowed = yes 
		}

		effect_tooltip = { #Konrad is the default Democratic leader
			add_country_leader_role = {
				character = GER_konrad_adenauer
				promote_leader = yes
				country_leader = {
					ideology = conservatism
					expire = 1965.1.1
					traits = { GER_traditionalist } 
				}
			}
		}
		hidden_effect = {
			set_cosmetic_tag = GER_german_monarchy_conservative
		}
	}

	option = { #Social Democrats
		name = wuw_GER_german_politics.01.b
		ai_chance = {
			base = 5
		}

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			last_election = "1933.3.5"
			election_frequency = 48
			long_name = GER_democratic_socialist_party_long
			name = GER_democratic_socialist_party
		}
		promote_character = GER_hans_vogel
		# GER_hans_vogel = {  # R56 - already has a leader role in Rt56
		# 	add_country_leader_role = {
		# 		promote_leader = yes
		# 		country_leader = {
		# 			ideology = socialism
		# 			expire = 1965.1.1
		# 			traits = { GER_staunch_social_democrat } 
		# 		}
		# 	}
		# }
		hidden_effect = {
			set_cosmetic_tag = GER_german_monarchy_democratic
		}
	}
}

country_event = { #Spartacus leader election
	id = wuw_GER_german_politics.02
	title = wuw_GER_german_politics.02.t
	desc = wuw_GER_german_politics.02.desc
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	fire_only_once = yes 

	option = { #Brandler
		name = wuw_GER_german_politics.02.a
		ai_chance = {
			base = 10 # R56
		}

		promote_character = GER_heinrich_brandler # R56
	}

	option = { #Keep Thälmann
		name = wuw_GER_german_politics.02.b
		trigger = {
			has_country_flag = GER_thalmann_freed_from_prison_flag
		}
		ai_chance = {
			base = 5
		}

		GER_ernst_thalmann = {
			swap_country_leader_traits = {
				remove = NOR_stern_communist
				add = GER_stern_communist
			}
		}
	}

	option = {
		name = wuw_GER_german_politics.02.c
		ai_chance = {
			base = 1
		}

		add_country_leader_role = {
			character = GER_otto_grotewohl
			promote_leader = yes
			country_leader = {
				ideology = marxism
				expire = 1965.1.1
				traits = { GER_pragmatic_socialist } 
			}
		}
	}
}





###### NEWS EVENTS #######

# Reunification of Germany - news event for everybody
news_event = {
	id = wuw_GER_news.1
	title = wuw_GER_news.1.t
	desc = wuw_GER_news.1.d
	picture = GFX_news_event_journalists_speech
	
	major = yes
	
	is_triggered_only = yes
	
	# The German people are finally united again! (for everyone except FROM)
	option = {
		name = wuw_GER_news.1.a
		ai_chance = {
			base = 100
		}
		trigger = {
			NOT = {
				tag = FROM
			}
		}
	}

	# This is only the beginning (for FROM)
	option = {
		name = wuw_GER_news.1.b
		ai_chance = {
			base = 100
		}
		trigger = { tag = FROM }
	}
} 

# An Uprising in Silesia - news event for everybody with their capital in Europe
news_event = {
	id = wuw_GER_news.2
	title = wuw_GER_news.2.t
	desc = wuw_GER_news.2.desc
	picture = GFX_news_event_generic_silesian_rebels
	
	major = no
	
	is_triggered_only = yes
	
	# An interesting turn of events (for everyone except Germany, Silesia and Poland)
	option = {
		name = wuw_GER_news.2.a
		ai_chance = {
			base = 100
		}
		trigger = {
			NOT = {
				OR = {
					original_tag = GER
					original_tag = SIL
					original_tag = POL
				}
			}
		}
	}

	# They have tried and failed before (for Germany)
	option = {
		name = wuw_GER_news.2.b
		ai_chance = {
			base = 100
		}
		trigger = { original_tag = GER }
	}

	# This is our moment! (for Silesia)
	option = {
		name = wuw_GER_news.2.c
		ai_chance = {
			base = 100
		}
		trigger = { original_tag = SIL }
	}

	# Let's hope they succeed this time (for Poland)
	option = {
		name = wuw_GER_news.2.d
		ai_chance = {
			base = 100
		}
		trigger = { original_tag = POL }
	}
}


# A Question of Horthy's Loyalty - event for GER
country_event = {
	id =  GER_operation_panzerfaust_events.01
	title =  GER_operation_panzerfaust_events.01.t
	desc =  GER_operation_panzerfaust_events.01.desc
	picture = GFX_report_event_hungary_refused

	trigger = {

		# Probably for the best
		has_dlc = "Gotterdammerung"

		# Base Conditions for Germany, basically you must lead the Axis and be in WW2
		original_tag = GER
		is_subject = no
		has_government = fascism
		is_faction_leader = yes

		# Base Conditions for Hungary, basically they must have Horthy as their leader and be "available" to be puppeted
		HUN = {
			has_government = neutrality
			is_in_faction_with = ROOT
			is_subject = no
			has_country_leader = {
				ruling_only = yes
				character = HUN_miklos_horthy
			}	
		}

		# Additional Conditions/Triggers, there are two ways this event can fire, by losing, or by stalling
		OR = {
			# Hungary is activly losing while at war with the Soviets, which puts them in a state of panic
			AND = {
				HUN = {
					has_civil_war = no
					has_war_with = SOV
					any_core_state = { 
						is_owned_by = HUN
						NOT = { 
							is_controlled_by = HUN 
						} 
					}
				}
				GER = {
					has_civil_war = no
					has_war_with = SOV
				}
			}
			# We are stalling while figthing against the Soviets, which scares the Hungarian leadership
			AND = {
				HUN = {
					has_civil_war = no
					has_war_with = SOV
					has_country_flag = {
						flag = HUN_time_at_war_together_with_germany
						days > 1096 # Three Years
					}
					has_war_support < 0.6 # HUN has less than 60% war support (their will to fight is wavering)
				}
				GER = {
					has_civil_war = no
					has_war_with = SOV
				}
			}
		}

	}

	mean_time_to_happen = { days = 14 }

	hidden = no

	fire_only_once = yes

	# Demand his subservience to the Führer
	option = {
		name =  GER_operation_panzerfaust_events.01.a
		# AI will always choose this one
		ai_chance = {
			base = 100
		}

		HUN = {
			# [GER.GetLeader] Demands Horthy's Resignation
			country_event = {
				id = GER_operation_panzerfaust_events.02
				hours = 6
				random_hours = 12
			}	
		}
		
	}

	# This is an overreaction, Horthy is loyal! (nothing ever happen)
	option = {
		name = GER_operation_panzerfaust_events.01.b
		# AI won't do this one
		ai_chance = {
			base = 0
		}

		add_political_power = 25 
		# (we are missing out on a potential puppet, but aren't seen as, well, as bad on an international level for it)

	}
}

# Adolf Hitler Demands Horthy's Resignation - event for HUN
country_event = { 
	id = GER_operation_panzerfaust_events.02
	title = GER_operation_panzerfaust_events.02.t
	desc = GER_operation_panzerfaust_events.02.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# We are in no position to oppose them
	option = { 
		name = GER_operation_panzerfaust_events.02.a
		# AI will always choose this one, to avoid unnesseary trouble or struggles for players
		ai_chance = {
			base = 100
		}

		FROM = {
			# Hungary Folds
			country_event = {
				id = GER_operation_panzerfaust_events.03
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
			IF = {
				limit = {
					ROOT = {
						has_idea = HUN_power_to_the_regent_idea
					}
				}
				remove_ideas = HUN_power_to_the_regent_idea
			}
			ELSE_IF = {
				limit = {
					ROOT = {
						has_idea = HUN_more_power_to_the_regent_idea
					}
				}
				remove_ideas = HUN_more_power_to_the_regent_idea
			}
		}

	}

	# They have no power here
	option = {
		name = GER_operation_panzerfaust_events.02.b
		# AI won't do this one
		ai_chance = {
			base = 0
		}

		FROM = {
			# Horthy Remains Defiant
			country_event = {
				id = GER_operation_panzerfaust_events.04
				hours = 12
			}
		}

	}
}

# Hungary Folds - event for GER
country_event = { 
	id = GER_operation_panzerfaust_events.03
	title = GER_operation_panzerfaust_events.03.t
	desc = GER_operation_panzerfaust_events.03.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# Fantastic
	option = { 
		name = GER_operation_panzerfaust_events.03.a
		
		puppet = FROM

		IF = {
			limit = {
				FROM = {
					has_idea = HUN_power_to_the_regent_idea
				}
			}
			FROM = {
				remove_ideas = HUN_power_to_the_regent_idea
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					has_idea = HUN_more_power_to_the_regent_idea
				}
			}
			FROM = {
				remove_ideas = HUN_more_power_to_the_regent_idea
			}
		}

		FROM = {
			add_trait = {
			    character = HUN_ferenc_szalasi
			    ideology = nazism
			    trait = HUN_nemzetvezeto_trait
			}
		}

	}

}

# Horthy Remains Defiant - event for GER
country_event = { 
	id = GER_operation_panzerfaust_events.04
	title = GER_operation_panzerfaust_events.04.t
	desc = GER_operation_panzerfaust_events.04.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# This has gone too far. Launch operation Margarethe!
	option = { 
		name = GER_operation_panzerfaust_events.04.a
		# AI won't do this one
		ai_chance = {
			base = 0
		}

		remove_from_faction = FROM

		declare_war_on = {
		    target = FROM
		    type = puppet_wargoal_focus
		}

		FROM = {
			# Germany launches Operation Margarethe
			country_event = {
				id = GER_operation_panzerfaust_events.05
				hours = 1
			}
		}
		

	}

	# We will not play along with his games
	option = {
		name = GER_operation_panzerfaust_events.04.b
		# AI will always choose this one
		ai_chance = {
			base = 100
		}

		FROM = {
			# Germany Attempts Deescalation
			country_event = {
				id = GER_operation_panzerfaust_events.06
				hours = 12
			}
		}

	}

	# Then we will leave this to our operatives...
	option = {
		name = GER_operation_panzerfaust_events.04.c
		# AI won't do this one
		ai_chance = {
			base = 0
		}

		random_list = {
			50 = {
				# Operation Panzerfaust is a Failure
				country_event = {
					id = GER_operation_panzerfaust_events.07
					days = 6
				}
			}
			50 = {
				# Operation Panzerfaust is a Success
				country_event = {
					id = GER_operation_panzerfaust_events.08
					days = 6
				}
			}
		}

	}
}

# Germany launches Operation Margarethe - event for HUN
country_event = { 
	id = GER_operation_panzerfaust_events.05
	title = GER_operation_panzerfaust_events.05.t
	desc = GER_operation_panzerfaust_events.05.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# Let them come
	option = { 
		name = GER_operation_panzerfaust_events.05.a

		add_war_support = 0.1

	}
}

# Germany Attempts Deescalation - event for HUN
country_event = { 
	id = GER_operation_panzerfaust_events.06
	title = GER_operation_panzerfaust_events.06.t
	desc = GER_operation_panzerfaust_events.06.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	# Then so be it
	option = { 
		name = GER_operation_panzerfaust_events.06.a

		# This is a political victory for Horthy
		add_political_power = 150

	}
}

# Operation Panzerfaust is a Failure - event for GER
country_event = { 
	id = GER_operation_panzerfaust_events.07
	title = GER_operation_panzerfaust_events.07.t
	desc = GER_operation_panzerfaust_events.07.desc
	picture = GFX_report_event_DEN_german_tanks
	is_triggered_only = yes

	# They will have to remain outside our grasp, for now
	option = { 
		name = GER_operation_panzerfaust_events.07.a

		# A big blunder
		add_political_power = -100

		HUN = {
			country_event = {
				id = GER_operation_panzerfaust_events.09
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# Operation Panzerfaust is a Success - event for GER
country_event = { 
	id = GER_operation_panzerfaust_events.08
	title = GER_operation_panzerfaust_events.08.t
	desc = GER_operation_panzerfaust_events.08.desc
	picture = GFX_report_event_DEN_german_tanks
	is_triggered_only = yes

	# Most excellent
	option = { 
		name = GER_operation_panzerfaust_events.08.a

		HUN = {
			country_event = {
				id = GER_operation_panzerfaust_events.10
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# Plot on Horthy Foiled - event for HUN
country_event = { 
	id = GER_operation_panzerfaust_events.09
	title = GER_operation_panzerfaust_events.09.t
	desc = GER_operation_panzerfaust_events.09.desc
	picture = GFX_report_event_DEN_german_tanks
	is_triggered_only = yes

	# We are safe, for now
	option = { 
		name = GER_operation_panzerfaust_events.09.a

		add_stability = 0.05

	}
}

# Horthy Kidnapped - event for HUN
country_event = { 
	id = GER_operation_panzerfaust_events.10
	title = GER_operation_panzerfaust_events.10.t
	desc = GER_operation_panzerfaust_events.10.desc
	picture = GFX_report_event_DEN_german_tanks
	is_triggered_only = yes

	# We will have to accept their conditions.
	option = { 
		name = GER_operation_panzerfaust_events.10.a
		ai_chance = {
			base = 80
		}

		FROM = {
			puppet = ROOT
		}

		IF = {
			limit = {
				has_idea = HUN_power_to_the_regent_idea
			}
			remove_ideas = HUN_power_to_the_regent_idea
		}
		ELSE_IF = {
			limit = {
				has_idea = HUN_more_power_to_the_regent_idea
			}
			remove_ideas = HUN_more_power_to_the_regent_idea
		}

		add_trait = {
		    character = HUN_ferenc_szalasi
		    ideology = nazism
		    trait = HUN_nemzetvezeto_trait
		}

	}
	# We shall never surrender!
	option = { 
		name = GER_operation_panzerfaust_events.10.b
		ai_chance = {
			base = 20
		}

		add_war_support = 0.05

		add_country_leader_role = {
			character = HUN_geza_lakatos
			promote_leader = yes
			country_leader = {
				ideology = oligarchism
				expire = "1965.1.1"
				traits = { generallissimo desperate_gambit } 
			}
		}	

		FROM = {
			remove_from_faction = ROOT

			declare_war_on = {
			    target = ROOT
			    type = puppet_wargoal_focus
			}
		}
		

	}
}




 ##  #   # ### ###  ### # #  ##  ###   ##  #   # ###  ### ###  
#  # ## ## #   #  #  #  # # #  # #  # #  # ## ## #  # #   #  # 
#### # # # ##  ###   #  ##  #### ###  #  # # # # ###  ##  ###  
#  # #   # #   #  #  #  # # #  # #  # #  # #   # #  # #   #  # 
#  # #   # ### #  # ### # # #  # ###   ##  #   # ###  ### #  # 


# Choose MIO for Amerikabomber project - AAT VERSION
country_event = {
	id = GOT_GER_amerikabomber.01
	title = GOT_GER_amerikabomber.01.t
	desc = GOT_GER_amerikabomber.01.desc
	picture =  GFX_report_event_airplane_factory

	is_triggered_only = yes

	#fire_only_once = yes

	trigger = {
		NOT = { is_special_project_completed = sp:sp_air_intercontinental_bomber }
	}

	option = { #Focke-Wulf
		name = GOT_GER_amerikabomber.01.a
		
		if = {
			limit = {
				has_dlc = "Gotterdammerung"
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_focke_wulf_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = -0.15 #Represents the MIO focused on Amerikabomber and not in boring regular planes. WWARNING! Any change on this penalty needs to be applied to the bonus coming after project completion (in scripted effect below)
					add_mio_size = 1
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = when_intercontinental_bomber_project_is_completed_tt

			effect_tooltip = {
				GER_amerika_bomber_focke_wulf_completion_SP_effects = yes
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					mio:GER_focke_wulf_organization = {
						GER_amerika_bomber_focke_wulf_completion_MIO_effects = yes
					}
				}
			}
		}
		else = {
			add_equipment_bonus = {
				name = GER_amerikabomber
				bonus = {
					large_plane_airframe = { #Valid for BBA and not BBA
						air_range = 0.15
						air_bombing = 0.1
						instant = yes
					}
				}
			}

			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_focke_wulf_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = 0.05
					complete_mio_trait = GER_mio_trait_amerikabomber_learnings
				}
			}
		}

		set_country_flag = GER_amerikabomber_focke_wulf_flag
	}

	option = { #Heinkel
		name = GOT_GER_amerikabomber.01.b
		
		if = {
			limit = {
				has_dlc = "Gotterdammerung"
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_heinkel_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = -0.15 #Represents the MIO focused on Amerikabomber and not in boring regular planes. WWARNING! Any change on this penalty needs to be applied to the bonus coming after project completion (in scripted effect below)
					add_mio_size = 1
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = when_intercontinental_bomber_project_is_completed_tt

			effect_tooltip = {
				GER_amerika_bomber_heinkel_completion_SP_effects = yes
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					mio:GER_heinkel_organization = {
						GER_amerika_bomber_heinkel_completion_MIO_effects = yes
					}
				}
			}
		}
		else = {
			add_equipment_bonus = {
				name = GER_amerikabomber
				bonus = {
					large_plane_airframe = { #Valid for BBA and not BBA
						air_range = 0.15
						air_bombing = 0.1
						instant = yes
					}
				}
			}

			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_heinkel_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = 0.05
					complete_mio_trait = GER_mio_trait_amerikabomber_learnings
				}
			}
		}

		set_country_flag = GER_amerikabomber_heinkel_flag
	}

	option = { #Junkers
		name = GOT_GER_amerikabomber.01.c
		
		if = {
			limit = {
				has_dlc = "Gotterdammerung"
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_junkers_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = -0.15 #Represents the MIO focused on Amerikabomber and not in boring regular planes. WWARNING! Any change on this penalty needs to be applied to the bonus coming after project completion (in scripted effect below)
					add_mio_size = 1
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = when_intercontinental_bomber_project_is_completed_tt

			effect_tooltip = {
				GER_amerika_bomber_junkers_completion_SP_effects = yes
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					mio:GER_junkers_organization = {
						GER_amerika_bomber_junkers_completion_MIO_effects = yes
					}
				}
			}
		}
		else = {
			add_equipment_bonus = {
				name = GER_amerikabomber
				bonus = {
					large_plane_airframe = { #Valid for BBA and not BBA
						air_range = 0.15
						air_bombing = 0.1
						instant = yes
					}
				}
			}

			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_junkers_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = 0.05
					complete_mio_trait = GER_mio_trait_amerikabomber_learnings
				}
			}
		}

		set_country_flag = GER_amerikabomber_junkers_flag
	}

	option = { #Messerschmitt
		name = GOT_GER_amerikabomber.01.d
		
		if = {
			limit = {
				has_dlc = "Gotterdammerung"
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_messerschmitt_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = -0.15 #Represents the MIO focused on Amerikabomber and not in boring regular planes. WWARNING! Any change on this penalty needs to be applied to the bonus coming after project completion (in scripted effect below)
					add_mio_size = 1
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = when_intercontinental_bomber_project_is_completed_tt

			effect_tooltip = {
				GER_amerika_bomber_messerschmitt_completion_SP_effects = yes
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					mio:GER_messerschmitt_organization = {
						GER_amerika_bomber_messerschmitt_completion_MIO_effects = yes
					}
				}
			}
		}
		else = {
			add_equipment_bonus = {
				name = GER_amerikabomber
				bonus = {
					large_plane_airframe = { #Valid for BBA and not BBA
						air_range = 0.15
						air_bombing = 0.1
						instant = yes
					}
				}
			}

			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:GER_messerschmitt_organization = {
					add_mio_funds_gain_factor = 0.25
					add_mio_research_bonus = 0.05
					complete_mio_trait = GER_mio_trait_amerikabomber_learnings
				}
			}
		}

		set_country_flag = GER_amerikabomber_messerschmitt_flag
	}
}






#### ##    ## ##    ## ######## ########      ######  #### ########   ######  ##       ######## 
 ##  ###   ## ###   ## ##       ##     ##    ##    ##  ##  ##     ## ##    ## ##       ##       
 ##  ####  ## ####  ## ##       ##     ##    ##        ##  ##     ## ##       ##       ##       
 ##  ## ## ## ## ## ## ######   ########     ##        ##  ########  ##       ##       ######   
 ##  ##  #### ##  #### ##       ##   ##      ##        ##  ##   ##   ##       ##       ##       
 ##  ##   ### ##   ### ##       ##    ##     ##    ##  ##  ##    ##  ##    ## ##       ##       
#### ##    ## ##    ## ######## ##     ##     ######  #### ##     ##  ######  ######## ########


# ADVISOR ORDER
# 1 = TODT
# 2 = SPEER
# 3 = GÖRING
# 4 = HIMMLER
# 5 = GOEBBELS
# 6 = HESS
# 7 = BORMANN


# CONSTANT FOR INNER CIRCLE TIMES (These needs to be x7 compared to the Focus cost in the focus file) - NEEDS TO MATCH THE SAME CONSTANTS USED IN THE FOCUS FILE x7
@inner_circle_time_tier_1 = 140
@inner_circle_time_tier_2 = 140
@inner_circle_time_tier_3 = 280
# FLAG CONSTANTS (It is 1 day more so the tooltip and days shown in the focus about Focus Progress match exactly the moment when the focus is completed)
@inner_circle_time_tier_1_flag = 141
@inner_circle_time_tier_2_flag = 141
@inner_circle_time_tier_3_flag = 281


 ##  ### #  # ### ###  ###  ##  
#    #   ## # #   #  #  #  #  # 
# ## ##  # ## ##  ###   #  #    
#  # #   #  # #   #  #  #  #  # 
 ##  ### #  # ### #  # ###  ##  


# New Character replaces an Ascended Advisor
country_event = {
	id = GER_inner_circle.01
	title = GER_inner_circle.01.t
	desc = GER_inner_circle.01.desc
	picture = "[GetAscendingAdvisorPortrait]"

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { #Replace Ascended Advisor 1
		name = GER_inner_circle.01.a

		ai_chance = {
			base = 1
			modifier = { #Himmler should replace Bormann on Historical when he ascends
				factor = 100
				GER_is_historical_ai = yes
				check_variable = { GER_ascending_advisor = 4 } #Himmler Ascending
				check_variable = { GER_ascended_advisor_1 = 7 } #Bormann ascended in this slot
			}
		}
		
		GER_remove_replaced_advisor_1_effects = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		set_variable = { GER_ascended_advisor_1 = GER_ascending_advisor }
		GER_add_replacing_advisor_effects = yes

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_ascending_advisor
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { #Replace Ascended Advisor 2
		name = GER_inner_circle.01.b

		ai_chance = {
			base = 1
			modifier = { #Himmler should replace Bormann on Historical when he ascends
				factor = 100
				GER_is_historical_ai = yes
				check_variable = { GER_ascending_advisor = 4 } #Himmler Ascending
				check_variable = { GER_ascended_advisor_2 = 7 } #Bormann ascended in this slot
			}
		}

		GER_remove_replaced_advisor_2_effects = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		set_variable = { GER_ascended_advisor_2 = GER_ascending_advisor }
		GER_add_replacing_advisor_effects = yes

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_ascending_advisor
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { #Replace Ascended Advisor 3
		name = GER_inner_circle.01.c

		ai_chance = {
			base = 1
			modifier = { #Himmler should replace Bormann on Historical when he ascends
				factor = 100
				GER_is_historical_ai = yes
				check_variable = { GER_ascending_advisor = 4 } #Himmler Ascending
				check_variable = { GER_ascended_advisor_3 = 7 } #Bormann ascended in this slot
			}
		}

		GER_remove_replaced_advisor_3_effects = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		set_variable = { GER_ascended_advisor_3 = GER_ascending_advisor }
		GER_add_replacing_advisor_effects = yes

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_ascending_advisor
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Abort - Ditch this advisor
		name = GER_inner_circle.01.d

		ai_chance = { #AI "knows" what its doing (pffff)
			base = 0
		}

		if = {
			limit = {
				check_variable = { GER_ascending_advisor = 1 }
			}
			uncomplete_national_focus = {
				focus = GER_ascension_of_todt
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 2 }
			}
			uncomplete_national_focus = {
				focus = GER_ascension_of_speer
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 3 }
			}
			uncomplete_national_focus = {
				focus = GER_ascension_of_goring
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 4 }
			}
			uncomplete_national_focus = {
				focus = GER_ascension_of_himmler
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 5 }
			}
			uncomplete_national_focus = {
				focus = GER_ascension_of_goebbels
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 6 }
			}
			uncomplete_national_focus = {
				focus = GER_party_chancellor_hess
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascending_advisor = 7 }
			}
			uncomplete_national_focus = {
				focus = GER_party_chancellor_bormann
				uncomplete_children = no
				refund_political_power = yes
			}
		}
		else = {
			log = "Something went terribly wrong with your nazis (no wonder)"
		}

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_ascending_advisor
			clr_country_flag = GER_inner_circle_event_pending_flag

			clr_country_flag = GER_inner_circle_cd_flag
		}
	}
}

# A Strong Successor - Ascended Advisor can replace Hitler
country_event = {
	id = GER_inner_circle.02
	title = GER_inner_circle.02.t
	desc = GER_inner_circle.02.desc
	picture = "[GetFuhrerEventPortrait]"

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Ascended Advisor 1 becomes Country Leader
		name = GER_inner_circle.02.a

		ai_chance = {
			base = 1
			modifier = { #Himmler & Göring are more likely to replace Hitler
				add = 2
				OR = {
					check_variable = { GER_ascended_advisor_1 = 3 } #Göring
					check_variable = { GER_ascended_advisor_1 = 4 } #Himmler
				}
			}
		}
		
		if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 1 }
			}
			add_country_leader_role = {
				character =  GER_fritz_todt
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_todt_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 2 }
			}
			add_country_leader_role = {
				character =  GER_albert_speer
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_speer_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 3 }
			}
			add_country_leader_role = {
				character =  GER_hermann_goring
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_goring_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 4 }
			}
			if = {
				limit = {
					has_idea = GER_himmler_director_reich_security
				}
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_abwehr } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_ss } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 5 }
			}
			if = {
				limit = {
					has_idea = GER_goebbels_reich_minister_of_propaganda_master_no_lar
				}
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer_no_lar } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 6 }
			}
			if = {
				limit = {
					has_idea = GER_hess_first_among_equals_no_aat
				}
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer_no_aat } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_1 = 7 }
			}
			add_country_leader_role = {
				character =  GER_martin_bormann
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_bormann_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else = {
			log = "Couldn't find a valid Ascended Advisor (1) to Promote"
		}

		hidden_effect = {
			GER_remove_replaced_advisor_1_effects = yes
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {
			#Cleaning vars / flags / etc
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Ascended Advisor 2 becomes Country Leader
		name = GER_inner_circle.02.b

		ai_chance = {
			base = 1
			modifier = { #Himmler & Göring are more likely to replace Hitler
				add = 2
				OR = {
					check_variable = { GER_ascended_advisor_2 = 3 } #Göring
					check_variable = { GER_ascended_advisor_2 = 4 } #Himmler
				}
			}
		}

		if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 1 }
			}
			add_country_leader_role = {
				character =  GER_fritz_todt
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_todt_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 2 }
			}
			add_country_leader_role = {
				character =  GER_albert_speer
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_speer_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 3 }
			}
			add_country_leader_role = {
				character =  GER_hermann_goring
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_goring_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 4 }
			}
			if = {
				limit = {
					has_idea = GER_himmler_director_reich_security
				}
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_abwehr } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_ss } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 5 }
			}
			if = {
				limit = {
					has_idea = GER_goebbels_reich_minister_of_propaganda_master_no_lar
				}
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer_no_lar } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 6 }
			}
			if = {
				limit = {
					has_idea = GER_hess_first_among_equals_no_aat
				}
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer_no_aat } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_2 = 7 }
			}
			add_country_leader_role = {
				character =  GER_martin_bormann
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_bormann_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else = {
			log = "Couldn't find a valid Ascended Advisor (2) to Promote"
		}

		hidden_effect = {
			GER_remove_replaced_advisor_2_effects = yes
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {
			#Cleaning vars / flags / etc
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Ascended Advisor 3 becomes Country Leader
		name = GER_inner_circle.02.c

		ai_chance = {
			base = 1
			modifier = { #Himmler & Göring are more likely to replace Hitler
				add = 2
				OR = {
					check_variable = { GER_ascended_advisor_3 = 3 } #Göring
					check_variable = { GER_ascended_advisor_3 = 4 } #Himmler
				}
			}
		}

		if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 1 }
			}
			add_country_leader_role = {
				character =  GER_fritz_todt
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_todt_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 2 }
			}
			add_country_leader_role = {
				character =  GER_albert_speer
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_speer_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 3 }
			}
			add_country_leader_role = {
				character =  GER_hermann_goring
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_goring_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 4 }
			}
			if = {
				limit = {
					has_idea = GER_himmler_director_reich_security
				}
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_abwehr } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_heinrich_himmler
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_himmler_fuhrer_ss } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 5 }
			}
			if = {
				limit = {
					has_idea = GER_goebbels_reich_minister_of_propaganda_master_no_lar
				}
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer_no_lar } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_joseph_goebbels
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_goebbels_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 6 }
			}
			if = {
				limit = {
					has_idea = GER_hess_first_among_equals_no_aat
				}
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer_no_aat } 
					}
					promote_leader = yes
				}
			}
			else = {
				add_country_leader_role = {
					character =  GER_rudolf_hess
					country_leader = {
						ideology = nazism
						expire = 1965.1.1
						traits = { GER_hess_fuhrer } 
					}
					promote_leader = yes
				}
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_ascended_advisor_3 = 7 }
			}
			add_country_leader_role = {
				character =  GER_martin_bormann
				country_leader = {
					ideology = nazism
					expire = 1965.1.1
					traits = { GER_bormann_fuhrer } 
				}
				promote_leader = yes
			}
		}
		else = {
			log = "Couldn't find a valid Ascended Advisor (3) to Promote"
		}

		hidden_effect = {
			GER_remove_replaced_advisor_3_effects = yes
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {
			#Cleaning vars / flags / etc
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Abort!
		name = GER_inner_circle.02.d

		ai_chance = {
			base = 0
		}

		uncomplete_national_focus = {
			focus = GER_a_strong_successor
			uncomplete_children = no
			refund_political_power = yes
		}

		hidden_effect = {
			#Cleaning vars / flags / etc
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}
}

# INTRIGUE - Todt-Speer-Göring ME focuses
country_event = {
	id = GER_inner_circle.03
	title = GER_inner_circle.03.t
	desc = GER_inner_circle.03.desc
	picture = "[GetIndustrialIntrigueEventPortrait]"

	fire_only_once = yes

	trigger = {
		OR = {
			has_shine_effect_on_focus = GER_autonomous_organization_todt
			has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
			has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
		}
		NOT = {
			has_completed_focus = GER_autonomous_organization_todt
			has_completed_focus = GER_plenipotentiary_of_armaments
			has_completed_focus = GER_plenipotentiary_of_the_four_year_plan
		}
	}

	mean_time_to_happen	= {
		days = 10
		modifier = {
			factor = 0.1
			count_triggers = {
				amount = 2
				has_shine_effect_on_focus = GER_autonomous_organization_todt
				has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
				has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
			}
		}
	}

	#ASSIGN CHARACTER THAT "TRIGGERED" THE EVENT
	immediate = {
		hidden_effect = {
			set_country_flag = GER_inner_circle_event_pending_flag
			if = { #Göring prevails
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
				}
				set_variable = { GER_intrigue_character = 3 }
			}			
			else_if = { #Then Speer
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
				}
				set_variable = { GER_intrigue_character = 2 }
			}			
			else_if = { #Last Todt
				limit = {
					has_shine_effect_on_focus = GER_autonomous_organization_todt
				}
				set_variable = { GER_intrigue_character = 1 }
			}
		}
	}

	option = { # Current Advisor is fine
		name = GER_inner_circle.03.a

		ai_chance = {
			base = 0
			modifier = { #Speer is preferred for Historical plan
				add = 100
				check_variable = { GER_intrigue_character = 2 } #Speer
				GER_is_historical_ai = yes
			}
			modifier = { #Göring is preferred for Alt-Fascist plan
				add = 100
				check_variable = { GER_intrigue_character = 3 } #Göring
				GER_is_alt_fascist_ai = yes
			}
		}
		
		if = {
			limit = {
				check_variable = { GER_intrigue_character = 1 }
			}
			custom_effect_tooltip = {
				localization_key = GER_advisor_will_continue_focus_tt
				CHARACTER = GER_fritz_todt
				FOCUS = GER_autonomous_organization_todt
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_intrigue_character = 2 }
			}
			custom_effect_tooltip = {
				localization_key = GER_advisor_will_continue_focus_tt
				CHARACTER = GER_albert_speer
				FOCUS = GER_plenipotentiary_of_armaments
			}
		}
		else_if = {
			limit = {
				check_variable = { GER_intrigue_character = 3 }
			}
			custom_effect_tooltip = {
				localization_key = GER_advisor_will_continue_focus_tt
				CHARACTER = GER_hermann_goring
				FOCUS = GER_plenipotentiary_of_the_four_year_plan
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		if = {
			limit = {
				has_shine_effect_on_focus = GER_autonomous_organization_todt
				NOT = { check_variable = { GER_intrigue_character = 1 } }
			}
			custom_effect_tooltip = {
				localization_key = GER_stop_progress_on_advisor_focus_tt
				CHARACTER = GER_fritz_todt
				FOCUS = GER_autonomous_organization_todt
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			
			hidden_effect = {
				deactivate_shine_on_focus = GER_autonomous_organization_todt
				clr_country_flag = GER_autonomous_organization_todt_in_progress_flag
			}
		}
		if = {
			limit = {
				has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
				NOT = { check_variable = { GER_intrigue_character = 2 } }
			}
			custom_effect_tooltip = {
				localization_key = GER_stop_progress_on_advisor_focus_tt
				CHARACTER = GER_albert_speer
				FOCUS = GER_plenipotentiary_of_armaments
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			
			hidden_effect = {
				deactivate_shine_on_focus = GER_plenipotentiary_of_armaments
				clr_country_flag = GER_plenipotentiary_of_armaments_in_progress_flag
			}
		}
		if = {
			limit = {
				has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
				NOT = { check_variable = { GER_intrigue_character = 3 } }
			}
			custom_effect_tooltip = {
				localization_key = GER_stop_progress_on_advisor_focus_tt
				CHARACTER = GER_hermann_goring
				FOCUS = GER_plenipotentiary_of_the_four_year_plan
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			
			hidden_effect = {
				deactivate_shine_on_focus = GER_plenipotentiary_of_the_four_year_plan
				clr_country_flag = GER_plenipotentiary_of_the_four_year_plan_in_progress_flag
			}
		}

		set_variable = { GER_industrialist_prevailed = GER_intrigue_character }

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_intrigue_character
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Favor Todt
		name = GER_inner_circle.03.b

		ai_chance = {
			base = 1
			modifier = { #Göring is preferred for Alt-Fascist plan - Choosing someone else only delays the country leader change
				factor = 0.1 #Leaving non-0 so that there's fallback if for some reason Göring is not there
				GER_is_alt_fascist_ai = yes
			}
		}

		trigger = {
			NOT = {
				check_variable = { GER_intrigue_character = 1 }
			}
		}

		if = { #Intrigue Character (that triggered the event) is in SLOT 1
			limit = {
				check_variable = { GER_ascended_advisor_1 = GER_intrigue_character }
			}
			if = { #Todt is already an ascended advisor (no need to replace or ascend anyone)
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 1 }
						check_variable = { GER_ascended_advisor_2 = 1 }
						check_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Todt is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 1 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 1 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_1_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_1 = 1 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_todt
					IDEA = idea_desc|GER_todt_reich_engineer
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_todt }
						}
						unlock_national_focus = GER_ascension_of_todt
					}
					GER_add_todt_effects = yes
					country_event = { id = GER_inner_circle_todt.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 2
			limit = {
				check_variable = { GER_ascended_advisor_2 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 1 }
						check_variable = { GER_ascended_advisor_2 = 1 }
						check_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Todt is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 1 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 1 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_2_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_2 = 1 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_todt
					IDEA = idea_desc|GER_todt_reich_engineer
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_todt }
						}
						unlock_national_focus = GER_ascension_of_todt
					}
					GER_add_todt_effects = yes
					country_event = { id = GER_inner_circle_todt.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 3
			limit = {
				check_variable = { GER_ascended_advisor_3 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 1 }
						check_variable = { GER_ascended_advisor_2 = 1 }
						check_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Todt is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 1 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 1 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 1 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_3_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_3 = 1 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_fritz_todt
					FOCUS = GER_autonomous_organization_todt
					CHARACTER_2 = GER_albert_speer
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_todt
					IDEA = idea_desc|GER_todt_reich_engineer
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_todt }
						}
						unlock_national_focus = GER_ascension_of_todt
					}
					GER_add_todt_effects = yes
					country_event = { id = GER_inner_circle_todt.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else = {
			log = "Intrigue Character index in variable seems to not match any ascended advisor."
		}

		# SET ADVISOR PREVAILING AND STOP THE OTHER ME FOCUSES
		hidden_effect = {
			set_variable = { GER_industrialist_prevailed = 1 }
			if = {
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
				}
				deactivate_shine_on_focus = GER_plenipotentiary_of_armaments
				clr_country_flag = GER_plenipotentiary_of_armaments_in_progress_flag
			}
			if = {
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
				}
				deactivate_shine_on_focus = GER_plenipotentiary_of_the_four_year_plan
				clr_country_flag = GER_plenipotentiary_of_the_four_year_plan_in_progress_flag
			}
		}

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_intrigue_character
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Favor Speer
		name = GER_inner_circle.03.c

		ai_chance = {
			base = 1
			modifier = { #Speer is preferred for Historical plan
				add = 100
				GER_is_historical_ai = yes
			}
			modifier = { #Göring is preferred for Alt-Fascist plan - Choosing someone else only delays the country leader change
				factor = 0.1 #Leaving non-0 so that there's fallback if for some reason Göring is not there
				GER_is_alt_fascist_ai = yes
			}
		}

		trigger = {
			NOT = {
				check_variable = { GER_intrigue_character = 2 }
			}
		}

		if = { #Intrigue Character (that triggered the event) is in SLOT 1
			limit = {
				check_variable = { GER_ascended_advisor_1 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 2 }
						check_variable = { GER_ascended_advisor_2 = 2 }
						check_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Speer is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 2 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 2 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_1_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_1 = 2 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_speer
					IDEA = idea_desc|GER_speer_reich_architect
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_speer }
						}
						unlock_national_focus = GER_ascension_of_speer
					}
					GER_add_speer_effects = yes
					country_event = { id = GER_inner_circle_speer.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 2
			limit = {
				check_variable = { GER_ascended_advisor_2 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 2 }
						check_variable = { GER_ascended_advisor_2 = 2 }
						check_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Speer is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 2 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 2 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_2_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_2 = 2 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_speer
					IDEA = idea_desc|GER_speer_reich_architect
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_speer }
						}
						unlock_national_focus = GER_ascension_of_speer
					}
					GER_add_speer_effects = yes
					country_event = { id = GER_inner_circle_speer.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 3
			limit = {
				check_variable = { GER_ascended_advisor_3 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 2 }
						check_variable = { GER_ascended_advisor_2 = 2 }
						check_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
				}
			}
			else = { #Speer is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 2 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 2 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 2 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_3_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_3 = 2 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_albert_speer
					FOCUS = GER_plenipotentiary_of_armaments
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_hermann_goring
					FOCUS_COMPLETED = GER_ascension_of_speer
					IDEA = idea_desc|GER_speer_reich_architect
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_speer }
						}
						unlock_national_focus = GER_ascension_of_speer
					}
					GER_add_speer_effects = yes
					country_event = { id = GER_inner_circle_speer.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else = {
			log = "Intrigue Character index in variable seems to not match any ascended advisor."
		}

		# SET ADVISOR PREVAILING AND STOP THE OTHER ME FOCUSES
		hidden_effect = {
			set_variable = { GER_industrialist_prevailed = 2 }
			if = {
				limit = {
					has_shine_effect_on_focus = GER_autonomous_organization_todt
				}
				deactivate_shine_on_focus = GER_autonomous_organization_todt
				clr_country_flag = GER_autonomous_organization_todt_in_progress_flag
			}
			if = {
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
				}
				deactivate_shine_on_focus = GER_plenipotentiary_of_the_four_year_plan
				clr_country_flag = GER_plenipotentiary_of_the_four_year_plan_in_progress_flag
			}
		}

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_intrigue_character
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { # Favor Göring
		name = GER_inner_circle.03.d

		ai_chance = {
			base = 1
			modifier = { #Göring is preferred for Alt-Fascist plan
				add = 100
				GER_is_alt_fascist_ai = yes
			}
		}

		trigger = {
			NOT = {
				check_variable = { GER_intrigue_character = 3 }
			}
			has_completed_focus = GER_the_four_year_plan
		}

		if = { #Intrigue Character (that triggered the event) is in SLOT 1
			limit = {
				check_variable = { GER_ascended_advisor_1 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 3 }
						check_variable = { GER_ascended_advisor_2 = 3 }
						check_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
				}
			}
			else = { #Göring is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 3 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 3 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_1_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_1 = 3 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
					FOCUS_COMPLETED = GER_ascension_of_goring
					IDEA = idea_desc|GER_goring_overseer_four_year_plan
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_goring }
						}
						unlock_national_focus = GER_ascension_of_goring
					}
					GER_add_goring_effects = yes
					country_event = { id = GER_inner_circle_goring.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 2
			limit = {
				check_variable = { GER_ascended_advisor_2 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 3 }
						check_variable = { GER_ascended_advisor_2 = 3 }
						check_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
				}
			}
			else = { #Göring is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 3 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 3 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_2_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_2 = 3 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
					FOCUS_COMPLETED = GER_ascension_of_goring
					IDEA = idea_desc|GER_goring_overseer_four_year_plan
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_goring }
						}
						unlock_national_focus = GER_ascension_of_goring
					}
					GER_add_goring_effects = yes
					country_event = { id = GER_inner_circle_goring.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else_if = { #Intrigue Character (that triggered the event) is in SLOT 3
			limit = {
				check_variable = { GER_ascended_advisor_3 = GER_intrigue_character }
			}
			if = {
				limit = {
					OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
						check_variable = { GER_ascended_advisor_1 = 3 }
						check_variable = { GER_ascended_advisor_2 = 3 }
						check_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_already_ascended_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
				}
			}
			else = { #Göring is not ascended (search for an open slot or replace Intrigue Character)
				if = { #There is an open slot for Ascending Advisor, seize it!
					limit = {
						OR = { #Only need to check for two positions but this way is the same trigger in all places in this event
							check_variable = { GER_ascended_advisor_1 = 0 }
							check_variable = { GER_ascended_advisor_2 = 0 }
							check_variable = { GER_ascended_advisor_3 = 0 }
						}
					}
					if = { #This is done like this because I'll have to copy-paste this thousands of times and I'd like to preserve what little is left of my brain, so safer to copy-paste the same stuff all the time.
						limit = {
							check_variable = { GER_ascended_advisor_1 = 0 }
						}
						set_variable = { GER_ascended_advisor_1 = 3 }
					}
					else_if = {
						limit = {
							check_variable = { GER_ascended_advisor_2 = 0 }
						}
						set_variable = { GER_ascended_advisor_2 = 3 }
					}
					else = {
						set_variable = { GER_ascended_advisor_3 = 3 }
					}
				}
				else = { #There is no open slot for Ascending Advisor, replace the Intrigue Character
					# REMOVE THE ADVISOR THAT TRIGGERED THE EVENT
					GER_remove_replaced_advisor_3_effects = yes
					custom_effect_tooltip = generic_skip_one_line_tt

					#Set the new advisor
					set_variable = { GER_ascended_advisor_3 = 3 }
				}
				
				custom_effect_tooltip = {
					localization_key = GER_intrigue_replacing_advisor_new_ascending_tt
					CHARACTER = GER_hermann_goring
					FOCUS = GER_plenipotentiary_of_the_four_year_plan
					CHARACTER_2 = GER_fritz_todt
					CHARACTER_3 = GER_albert_speer
					FOCUS_COMPLETED = GER_ascension_of_goring
					IDEA = idea_desc|GER_goring_overseer_four_year_plan
				}

				hidden_effect = {
					if = {
						limit = {
							NOT = { has_completed_focus = GER_ascension_of_goring }
						}
						unlock_national_focus = GER_ascension_of_goring
					}
					GER_add_goring_effects = yes
					country_event = { id = GER_inner_circle_goring.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
				}
			}
		}
		else = {
			log = "Intrigue Character index in variable seems to not match any ascended advisor."
		}

		# SET ADVISOR PREVAILING AND STOP THE OTHER ME FOCUSES
		hidden_effect = {
			set_variable = { GER_industrialist_prevailed = 3 }
			if = {
				limit = {
					has_shine_effect_on_focus = GER_autonomous_organization_todt
				}
				deactivate_shine_on_focus = GER_autonomous_organization_todt
				clr_country_flag = GER_autonomous_organization_todt_in_progress_flag
			}
			if = {
				limit = {
					has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
				}
				deactivate_shine_on_focus = GER_plenipotentiary_of_armaments
				clr_country_flag = GER_plenipotentiary_of_armaments_in_progress_flag
			}
		}

		hidden_effect = {
			#Cleaning vars / flags / etc
			clear_variable = GER_intrigue_character
			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}
}



###  ##  ###  ### 
 #  #  # #  #  #  
 #  #  # #  #  #  
 #  #  # #  #  #  
 #   ##  ###   #  

# TODT - Start work on Focus
country_event = {
	id = GER_inner_circle_todt.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_todt
		OR = {
			check_variable = { GER_ascended_advisor_1 = 1 }
			check_variable = { GER_ascended_advisor_2 = 1 }
			check_variable = { GER_ascended_advisor_3 = 1 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_form_organization_todt }
			}
			activate_shine_on_focus = GER_form_organization_todt
			set_country_flag = { flag = GER_form_organization_todt_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_todt.02 days = @inner_circle_time_tier_1 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_autonomous_organization_todt }
				NOT = { check_variable = { GER_industrialist_prevailed = 2 } } #Speer Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 3 } } #Göring Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_autonomous_organization_todt
			set_country_flag = { flag = GER_autonomous_organization_todt_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_todt.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_wunderwaffe }
				NOT = { has_shine_effect_on_focus = GER_wunderwaffe } #Speer is working on this already
				NOT = { check_variable = { GER_industrialist_prevailed = 2 } } #Speer Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 3 } } #Göring Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_wunderwaffe
			set_country_flag = { flag = GER_wunderwaffe_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_todt.02 days = @inner_circle_time_tier_3 }
			set_variable = { GER_wonder_weapons_focus_advisor = 1 }
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH TODT's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# TODT - Complete Focus
country_event = {
	id = GER_inner_circle_todt.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_todt
		OR = {
			check_variable = { GER_ascended_advisor_1 = 1 }
			check_variable = { GER_ascended_advisor_2 = 1 }
			check_variable = { GER_ascended_advisor_3 = 1 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_form_organization_todt
			}
			complete_national_focus = {
				focus = GER_form_organization_todt
				use_side_message = yes
				originator_name = GER_fritz_todt
			}
			clr_country_flag = GER_form_organization_todt_in_progress_flag
			country_event = { id = GER_inner_circle_todt.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_autonomous_organization_todt
			}
			complete_national_focus = {
				focus = GER_autonomous_organization_todt
				use_side_message = yes
				originator_name = GER_fritz_todt
			}
			clr_country_flag = GER_autonomous_organization_todt_in_progress_flag
			country_event = { id = GER_inner_circle_todt.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_wunderwaffe
				check_variable = { GER_wonder_weapons_focus_advisor = 1 } #It is Todt working on it
			}
			complete_national_focus = {
				focus = GER_wunderwaffe
				use_side_message = yes
				originator_name = GER_fritz_todt
			}
			clr_country_flag = GER_wunderwaffe_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH TODT's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


 ## ###  ### ### ###  
#   #  # #   #   #  # 
 #  ###  ##  ##  ###  
  # #    #   #   #  # 
##  #    ### ### #  # 


# SPEER - Start work on Focus
country_event = {
	id = GER_inner_circle_speer.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_speer
		OR = {
			check_variable = { GER_ascended_advisor_1 = 2 }
			check_variable = { GER_ascended_advisor_2 = 2 }
			check_variable = { GER_ascended_advisor_3 = 2 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_employ_philipp_holzmann }
			}
			activate_shine_on_focus = GER_employ_philipp_holzmann
			set_country_flag = { flag = GER_employ_philipp_holzmann_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_speer.02 days = @inner_circle_time_tier_1 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_plenipotentiary_of_armaments }
				NOT = { check_variable = { GER_industrialist_prevailed = 1 } } #Todt Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 3 } } #Göring Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_plenipotentiary_of_armaments
			set_country_flag = { flag = GER_plenipotentiary_of_armaments_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_speer.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_wunderwaffe }
				NOT = { has_shine_effect_on_focus = GER_wunderwaffe } #Todt is working on this already
				NOT = { check_variable = { GER_industrialist_prevailed = 1 } } #Todt Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 3 } } #Göring Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_wunderwaffe
			set_country_flag = { flag = GER_wunderwaffe_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_speer.02 days = @inner_circle_time_tier_3 }
			set_variable = { GER_wonder_weapons_focus_advisor = 2 }

		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH SPEER's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# SPEER - Complete Focus
country_event = {
	id = GER_inner_circle_speer.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_speer
		OR = {
			check_variable = { GER_ascended_advisor_1 = 2 }
			check_variable = { GER_ascended_advisor_2 = 2 }
			check_variable = { GER_ascended_advisor_3 = 2 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_employ_philipp_holzmann
			}
			complete_national_focus = {
				focus = GER_employ_philipp_holzmann
				use_side_message = yes
				originator_name = GER_albert_speer
			}
			clr_country_flag = GER_employ_philipp_holzmann_in_progress_flag
			country_event = { id = GER_inner_circle_speer.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_plenipotentiary_of_armaments
			}
			complete_national_focus = {
				focus = GER_plenipotentiary_of_armaments
				use_side_message = yes
				originator_name = GER_albert_speer
			}
			clr_country_flag = GER_plenipotentiary_of_armaments_in_progress_flag
			country_event = { id = GER_inner_circle_speer.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_wunderwaffe
				check_variable = { GER_wonder_weapons_focus_advisor = 2 } #It is Speer working on it
			}
			complete_national_focus = {
				focus = GER_wunderwaffe
				use_side_message = yes
				originator_name = GER_albert_speer
			}
			clr_country_flag = GER_wunderwaffe_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH SPEER's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


 ##   ##  ###  ### #  #  ##  
#    #  # #  #  #  ## # #    
# ## #  # ###   #  # ## # ## 
#  # #  # #  #  #  #  # #  # 
 ##   ##  #  # ### #  #  ##  

# GÖRING - Start work on Focus
country_event = {
	id = GER_inner_circle_goring.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_goring
		OR = {
			check_variable = { GER_ascended_advisor_1 = 3 }
			check_variable = { GER_ascended_advisor_2 = 3 }
			check_variable = { GER_ascended_advisor_3 = 3 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_prioritize_the_four_year_plan }
			}
			activate_shine_on_focus = GER_prioritize_the_four_year_plan
			set_country_flag = { flag = GER_prioritize_the_four_year_plan_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_goring.02 days = @inner_circle_time_tier_1 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_plenipotentiary_of_the_four_year_plan }
				NOT = { check_variable = { GER_industrialist_prevailed = 1 } } #Todt Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 2 } } #Speer Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_plenipotentiary_of_the_four_year_plan
			set_country_flag = { flag = GER_plenipotentiary_of_the_four_year_plan_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_goring.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_integration_of_puppet_economies }
				NOT = { check_variable = { GER_industrialist_prevailed = 1 } } #Todt Prevailed in the Industrialist Intrigue
				NOT = { check_variable = { GER_industrialist_prevailed = 2 } } #Speer Prevailed in the Industrialist Intrigue
			}
			activate_shine_on_focus = GER_integration_of_puppet_economies
			set_country_flag = { flag = GER_integration_of_puppet_economies_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_goring.02 days = @inner_circle_time_tier_3 }
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH GÖRING's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# GÖRING - Complete Focus
country_event = {
	id = GER_inner_circle_goring.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_goring
		OR = {
			check_variable = { GER_ascended_advisor_1 = 3 }
			check_variable = { GER_ascended_advisor_2 = 3 }
			check_variable = { GER_ascended_advisor_3 = 3 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_prioritize_the_four_year_plan
			}
			complete_national_focus = {
				focus = GER_prioritize_the_four_year_plan
				use_side_message = yes
				originator_name = GER_hermann_goring
			}
			clr_country_flag = GER_prioritize_the_four_year_plan_in_progress_flag
			country_event = { id = GER_inner_circle_goring.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_plenipotentiary_of_the_four_year_plan
			}
			complete_national_focus = {
				focus = GER_plenipotentiary_of_the_four_year_plan
				use_side_message = yes
				originator_name = GER_hermann_goring
			}
			clr_country_flag = GER_plenipotentiary_of_the_four_year_plan_in_progress_flag
			country_event = { id = GER_inner_circle_goring.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_integration_of_puppet_economies
			}
			complete_national_focus = {
				focus = GER_integration_of_puppet_economies
				use_side_message = yes
				originator_name = GER_hermann_goring
			}
			clr_country_flag = GER_integration_of_puppet_economies_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH GÖRING's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


#  # ### #   # #   # #   ### ###  
#  #  #  ## ## ## ## #   #   #  # 
####  #  # # # # # # #   ##  ###  
#  #  #  #   # #   # #   #   #  # 
#  # ### #   # #   # ### ### #  # 


# HIMMLER - Pick branch
country_event = {
	id = GER_inner_circle_himmler.00
	title = GER_inner_circle_himmler.00.t
	desc = GER_inner_circle_himmler.00.desc
	picture = GFX_report_event_GER_himmler

	fire_only_once = yes

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { #SS
		name = GER_inner_circle_himmler.00.a
		ai_chance = {
			base = 10
		}
		custom_effect_tooltip = GER_inner_circle_himmler_ss_tt

		hidden_effect = {
			GER_heinrich_himmler = {
				set_character_flag = GER_himmler_ss_focus_flag
			}
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }

			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}

	option = { #Gestapo
		name = GER_inner_circle_himmler.00.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.01
				GER_is_historical_ai = yes
			}
		}
		custom_effect_tooltip = GER_inner_circle_himmler_gestapo_tt

		hidden_effect = {
			GER_heinrich_himmler = {
				set_character_flag = GER_himmler_gestapo_focus_flag
			}
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }

			clr_country_flag = GER_inner_circle_event_pending_flag
		}
	}
}


# HIMMLER - Start work on Focus
country_event = {
	id = GER_inner_circle_himmler.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_himmler
		OR = {
			check_variable = { GER_ascended_advisor_1 = 4 }
			check_variable = { GER_ascended_advisor_2 = 4 }
			check_variable = { GER_ascended_advisor_3 = 4 }
		}
	}

	immediate = {
		if = {
			limit = {
				GER_heinrich_himmler = { has_character_flag = GER_himmler_ss_focus_flag }
			}
			if = {
				limit = {
					NOT = { has_completed_focus = GER_expand_ss_security_duties }
				}
				activate_shine_on_focus = GER_expand_ss_security_duties
				set_country_flag = { flag = GER_expand_ss_security_duties_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_1 }
			}
			else_if = {
				limit = {
					NOT = { has_completed_focus = GER_strengthen_the_waffen_ss }
				}
				activate_shine_on_focus = GER_strengthen_the_waffen_ss
				set_country_flag = { flag = GER_strengthen_the_waffen_ss_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_3 }
			}
			else_if = {
				limit = {
					NOT = { has_completed_focus = GER_hegemony_of_the_ss }
				}
				activate_shine_on_focus = GER_hegemony_of_the_ss
				set_country_flag = { flag = GER_hegemony_of_the_ss_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_2 }
			}
		}
		else_if = {
			limit = {
				GER_heinrich_himmler = { has_character_flag = GER_himmler_gestapo_focus_flag }
			}
			if = {
				limit = {
					NOT = { has_completed_focus = GER_expand_gestapo }
				}
				activate_shine_on_focus = GER_expand_gestapo
				set_country_flag = { flag = GER_expand_gestapo_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_1 }
			}
			else_if = {
				limit = {
					NOT = { has_completed_focus = GER_absorb_the_abwehr }
				}
				activate_shine_on_focus = GER_absorb_the_abwehr
				set_country_flag = { flag = GER_absorb_the_abwehr_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_2 }
			}
			else_if = {
				limit = {
					NOT = { has_completed_focus = GER_hegemony_of_the_ss }
				}
				activate_shine_on_focus = GER_hegemony_of_the_ss
				set_country_flag = { flag = GER_hegemony_of_the_ss_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
				country_event = { id = GER_inner_circle_himmler.02 days = @inner_circle_time_tier_2 }
			}
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH HIMMLER's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# HIMMLER - Complete Focus
country_event = {
	id = GER_inner_circle_himmler.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_himmler
		OR = {
			check_variable = { GER_ascended_advisor_1 = 4 }
			check_variable = { GER_ascended_advisor_2 = 4 }
			check_variable = { GER_ascended_advisor_3 = 4 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_expand_ss_security_duties
			}
			complete_national_focus = {
				focus = GER_expand_ss_security_duties
				use_side_message = yes
				originator_name = GER_heinrich_himmler
			}
			clr_country_flag = GER_expand_ss_security_duties_in_progress_flag
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_strengthen_the_waffen_ss
			}
			complete_national_focus = {
				focus = GER_strengthen_the_waffen_ss
				use_side_message = yes
				originator_name = GER_heinrich_himmler
			}
			clr_country_flag = GER_strengthen_the_waffen_ss_in_progress_flag
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_expand_gestapo
			}
			complete_national_focus = {
				focus = GER_expand_gestapo
				use_side_message = yes
				originator_name = GER_heinrich_himmler
			}
			clr_country_flag = GER_expand_gestapo_in_progress_flag
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_absorb_the_abwehr
			}
			complete_national_focus = {
				focus = GER_absorb_the_abwehr
				use_side_message = yes
				originator_name = GER_heinrich_himmler
			}
			clr_country_flag = GER_absorb_the_abwehr_in_progress_flag
			country_event = { id = GER_inner_circle_himmler.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_hegemony_of_the_ss
			}
			complete_national_focus = {
				focus = GER_hegemony_of_the_ss
				use_side_message = yes
				originator_name = GER_heinrich_himmler
			}
			clr_country_flag = GER_hegemony_of_the_ss_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH HIMMLER's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


 ##   ##  ### ###  ###  ### #    ## 
#    #  # #   #  # #  # #   #   #   
# ## #  # ##  ###  ###  ##  #    #  
#  # #  # #   #  # #  # #   #     # 
 ##   ##  ### ###  ###  ### ### ##  


# GOEBBELS - Start work on Focus
country_event = {
	id = GER_inner_circle_goebbels.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_goebbels
		OR = {
			check_variable = { GER_ascended_advisor_1 = 5 }
			check_variable = { GER_ascended_advisor_2 = 5 }
			check_variable = { GER_ascended_advisor_3 = 5 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_ministry_of_public_enlightenment }
			}
			activate_shine_on_focus = GER_ministry_of_public_enlightenment
			set_country_flag = { flag = GER_ministry_of_public_enlightenment_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_goebbels.02 days = @inner_circle_time_tier_1 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_fund_the_film_department }
			}
			activate_shine_on_focus = GER_fund_the_film_department
			set_country_flag = { flag = GER_fund_the_film_department_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_goebbels.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_propaganda_master }
			}
			activate_shine_on_focus = GER_propaganda_master
			set_country_flag = { flag = GER_propaganda_master_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_goebbels.02 days = @inner_circle_time_tier_3 }
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH GOEBBELS's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# GOEBBELS - Complete Focus
country_event = {
	id = GER_inner_circle_goebbels.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_ascension_of_goebbels
		OR = {
			check_variable = { GER_ascended_advisor_1 = 5 }
			check_variable = { GER_ascended_advisor_2 = 5 }
			check_variable = { GER_ascended_advisor_3 = 5 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_ministry_of_public_enlightenment
			}
			complete_national_focus = {
				focus = GER_ministry_of_public_enlightenment
				use_side_message = yes
				originator_name = GER_joseph_goebbels
			}
			clr_country_flag = GER_ministry_of_public_enlightenment_in_progress_flag
			country_event = { id = GER_inner_circle_goebbels.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_fund_the_film_department
			}
			complete_national_focus = {
				focus = GER_fund_the_film_department
				use_side_message = yes
				originator_name = GER_joseph_goebbels
			}
			clr_country_flag = GER_fund_the_film_department_in_progress_flag
			country_event = { id = GER_inner_circle_goebbels.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_propaganda_master
			}
			complete_national_focus = {
				focus = GER_propaganda_master
				use_side_message = yes
				originator_name = GER_joseph_goebbels
			}
			clr_country_flag = GER_propaganda_master_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH GOEBBELS's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


#  # ###  ##  ## 
#  # #   #   #   
#### ##   #   #  
#  # #     #   # 
#  # ### ##  ##  

# HESS - Start work on Focus
country_event = {
	id = GER_inner_circle_hess.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_party_chancellor_hess
		OR = {
			check_variable = { GER_ascended_advisor_1 = 6 }
			check_variable = { GER_ascended_advisor_2 = 6 }
			check_variable = { GER_ascended_advisor_3 = 6 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_optimize_reich_labour_service }
				NOT = { has_shine_effect_on_focus = GER_optimize_reich_labour_service } #Bormann is working on this already (Should never happen anyways)
			}
			activate_shine_on_focus = GER_optimize_reich_labour_service
			set_country_flag = { flag = GER_optimize_reich_labour_service_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_hess.02 days = @inner_circle_time_tier_1 }
			set_variable = { GER_optimize_reich_service_focus_advisor = 6 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_rally_the_industrialists }
			}
			activate_shine_on_focus = GER_rally_the_industrialists
			set_country_flag = { flag = GER_rally_the_industrialists_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_hess.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_total_control_over_domestic_affairs }
				NOT = { has_shine_effect_on_focus = GER_total_control_over_domestic_affairs } #Bormann is working on this already (Should never happen anyways)
			}
			activate_shine_on_focus = GER_total_control_over_domestic_affairs
			set_country_flag = { flag = GER_total_control_over_domestic_affairs_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_hess.02 days = @inner_circle_time_tier_3 }
			set_variable = { GER_total_control_over_domestic_affairs_focus_advisor = 6 }
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH HESS's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# HESS - Complete Focus
country_event = {
	id = GER_inner_circle_hess.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_party_chancellor_hess
		OR = {
			check_variable = { GER_ascended_advisor_1 = 6 }
			check_variable = { GER_ascended_advisor_2 = 6 }
			check_variable = { GER_ascended_advisor_3 = 6 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_optimize_reich_labour_service
				check_variable = { GER_optimize_reich_service_focus_advisor = 6 } #It is Hess completing it
			}
			complete_national_focus = {
				focus = GER_optimize_reich_labour_service
				use_side_message = yes
				originator_name = GER_rudolf_hess
			}
			clr_country_flag = GER_optimize_reich_labour_service_in_progress_flag
			country_event = { id = GER_inner_circle_hess.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_rally_the_industrialists
			}
			complete_national_focus = {
				focus = GER_rally_the_industrialists
				use_side_message = yes
				originator_name = GER_rudolf_hess
			}
			clr_country_flag = GER_rally_the_industrialists_in_progress_flag
			country_event = { id = GER_inner_circle_hess.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_total_control_over_domestic_affairs
				check_variable = { GER_total_control_over_domestic_affairs_focus_advisor = 6 } #It is Hess completing it
			}
			complete_national_focus = {
				focus = GER_total_control_over_domestic_affairs
				use_side_message = yes
				originator_name = GER_rudolf_hess
			}
			clr_country_flag = GER_total_control_over_domestic_affairs_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH HESS's FOCUS BRANCH - Cannot complete focus"
		}
	}
}


###   ##  ###  #   #  ##  #  # #  # 
#  # #  # #  # ## ## #  # ## # ## # 
###  #  # ###  # # # #### # ## # ## 
#  # #  # #  # #   # #  # #  # #  # 
###   ##  #  # #   # #  # #  # #  # 

# BORMANN - Start work on Focus
country_event = {
	id = GER_inner_circle_bormann.01

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_party_chancellor_bormann
		OR = {
			check_variable = { GER_ascended_advisor_1 = 7 }
			check_variable = { GER_ascended_advisor_2 = 7 }
			check_variable = { GER_ascended_advisor_3 = 7 }
		}
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_completed_focus = GER_optimize_reich_labour_service }
				NOT = { has_shine_effect_on_focus = GER_optimize_reich_labour_service } #Hess is working on this already (Should never happen anyways)
			}
			activate_shine_on_focus = GER_optimize_reich_labour_service
			set_country_flag = { flag = GER_optimize_reich_labour_service_in_progress_flag days = @inner_circle_time_tier_1_flag value = 1 }
			country_event = { id = GER_inner_circle_bormann.02 days = @inner_circle_time_tier_1 }
			set_variable = { GER_optimize_reich_service_focus_advisor = 7 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_glorify_party_rallies }
			}
			activate_shine_on_focus = GER_glorify_party_rallies
			set_country_flag = { flag = GER_glorify_party_rallies_in_progress_flag days = @inner_circle_time_tier_2_flag value = 1 }
			country_event = { id = GER_inner_circle_bormann.02 days = @inner_circle_time_tier_2 }
		}
		else_if = {
			limit = {
				NOT = { has_completed_focus = GER_total_control_over_domestic_affairs }
				NOT = { has_shine_effect_on_focus = GER_total_control_over_domestic_affairs } #Hess is working on this already (Should never happen anyways)
			}
			activate_shine_on_focus = GER_total_control_over_domestic_affairs
			set_country_flag = { flag = GER_total_control_over_domestic_affairs_in_progress_flag days = @inner_circle_time_tier_3_flag value = 1 }
			country_event = { id = GER_inner_circle_bormann.02 days = @inner_circle_time_tier_3 }
			set_variable = { GER_total_control_over_domestic_affairs_focus_advisor = 7 }
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH BORMANN's FOCUS BRANCH - Cannot start new focus"
		}
	}
}

# BORMANN - Complete Focus
country_event = {
	id = GER_inner_circle_bormann.02

	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_completed_focus = GER_party_chancellor_bormann
		OR = {
			check_variable = { GER_ascended_advisor_1 = 7 }
			check_variable = { GER_ascended_advisor_2 = 7 }
			check_variable = { GER_ascended_advisor_3 = 7 }
		}
	}

	immediate = {
		if = {
			limit = {
				has_shine_effect_on_focus = GER_optimize_reich_labour_service
				check_variable = { GER_optimize_reich_service_focus_advisor = 7 } #It is Bormann completing it
			}
			complete_national_focus = {
				focus = GER_optimize_reich_labour_service
				use_side_message = yes
				originator_name = GER_martin_bormann
			}
			clr_country_flag = GER_optimize_reich_labour_service_in_progress_flag
			country_event = { id = GER_inner_circle_bormann.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_glorify_party_rallies
			}
			complete_national_focus = {
				focus = GER_glorify_party_rallies
				use_side_message = yes
				originator_name = GER_martin_bormann
			}
			clr_country_flag = GER_glorify_party_rallies_in_progress_flag
			country_event = { id = GER_inner_circle_bormann.01 days = GER_inner_circle_days_to_start_focus random_days = GER_inner_circle_random_days }
		}
		else_if = {
			limit = {
				has_shine_effect_on_focus = GER_total_control_over_domestic_affairs
				check_variable = { GER_total_control_over_domestic_affairs_focus_advisor = 7 } #It is Bormann completing it
			}
			complete_national_focus = {
				focus = GER_total_control_over_domestic_affairs
				use_side_message = yes
				originator_name = GER_martin_bormann
			}
			clr_country_flag = GER_total_control_over_domestic_affairs_in_progress_flag
		}
		else = { #Debug logs
			#log = "SOMETHING WENT WRONG WITH BORMANN's FOCUS BRANCH - Cannot complete focus"
		}
	}
}








country_event = { #[FROM.GetNameDefCap] Demands Our Subjugation
	id = GOT_GER_fading_eagle.01
	title = GOT_GER_fading_eagle.01.t
	desc = GOT_GER_fading_eagle.01.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	fire_only_once = no

	option = { #sounds good
		name = GOT_GER_fading_eagle.01.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				id = GOT_GER_fading_eagle.02
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
		}

	}
	option = { #no way
		name = GOT_GER_fading_eagle.01.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = GOT_GER_fading_eagle.03
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT 
				}

				remove_from_faction = ROOT
			}
		}

	}
}

country_event = { #[FROM.GetNameDefCap] Accepts our Demands
	id = GOT_GER_fading_eagle.02
	title = GOT_GER_fading_eagle.02.t
	desc = GOT_GER_fading_eagle.02.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	fire_only_once = no

	option = { #great!
		name = GOT_GER_fading_eagle.02.a

		puppet = FROM 

	}
	
}

country_event = { #[FROM.GetNameDefCap] Rejects our Demands
	id = GOT_GER_fading_eagle.03
	title = GOT_GER_fading_eagle.03.t
	desc = GOT_GER_fading_eagle.03.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	fire_only_once = no

	option = { #it was not a question!
		name = GOT_GER_fading_eagle.03.a
		ai_chance = {
			base = 5
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM 
		}

		remove_from_faction = FROM

	}
	option = { #was worth asking
		name = GOT_GER_fading_eagle.03.b
		ai_chance = {
			base = 95 # We don't usually want the AI to escalate when they can't afford it
		}

		add_political_power = 50

	}
}