﻿add_namespace = GER_buildup
add_namespace = news_GER_buildup

country_event = {
	id = GER_buildup.1
	title = GER_buildup.1.t
	desc = GER_buildup.1.d
	
	trigger = {
		AND = {
			tag = USA
			
			GER = {
				has_army_manpower = {
					size > 345000
				}
			}
			
			NOT = { has_war_with = GER }
			NOT = { has_global_flag = GER_restrictions_lifted }
			NOT = { has_global_flag = GER_restrictions_500k }
			NOT = { has_global_flag = GER_restrictions_1m }
			NOT = { has_global_flag = germany_buildup }
			GER = {
				NOT = { has_country_flag = tried_to_unite_the_EU }
			}
			
			is_in_faction_with = GER
		}
		
	}
	
	mean_time_to_happen = {
		days = 10
	}
	
	immediate = {
		set_global_flag = germany_buildup
	}
	
	option = { #issue Germany a warning
		name = GER_buildup.1.o1
		
		ai_chance = {
			factor = 80
		}
		
		GER = {
			country_event = { id = GER_buildup.2 }
		}
		
		
	}
	
	option = { #Lift the restrictions
		name = GER_buildup.1.o2
		
		ai_chance = {
			factor = 20
		}
		
		GER = {
			add_opinion_modifier = {
				modifier = recent_actions_positive
				target = ROOT
			}
		}
		
		set_global_flag = GER_restrictions_lifted
	}
	
}

country_event = {
	id = GER_buildup.2
	title = GER_buildup.2.t
	desc = GER_buildup.2.d
	
	is_triggered_only = yes
	
	
	option = { #Back down.
		name = GER_buildup.2.o1
		
		ai_chance = {
			factor = 90
		}
		every_country = {
			limit = { tag = USA }
			add_opinion_modifier = {
				modifier = recent_actions_positive
				target = ROOT
			}
		}
		
		set_global_flag = GER_mil_backdown
	}
	
	option = { #WE DONT NEED THEM
	name = GER_buildup.3.o2
	
		ai_chance = {
				factor = 10
		}
		
		every_country = {
			limit = { tag = USA }
				add_opinion_modifier = {
					modifier = recent_actions_negative
					target = ROOT
				}
				
				country_event = { id = GER_buildup.3 }

			}
			
		set_global_flag = GER_restrictions_lifted
	
		add_political_power = 100
	}
	
}

country_event = {
	id = GER_buildup.3
	title = GER_buildup.3.t
	desc = GER_buildup.3.d
	
	is_triggered_only = yes
	
	
	option = { #Back down.
		name = GER_buildup.3.o1
		
		ai_chance = {
			factor = 20
		}
			
			GER = {
				add_opinion_modifier = {
					modifier = recent_actions_positive
				}
			}
	}
	
	option = { #GERMANY WILL STRIKE THEIR OWN PATH.
		name = GER_buildup.3.o2
	
		ai_chance = {
			factor = 70
		}
		
		remove_from_faction = GER
		
		
		GER = {
			set_country_flag = left_NATO
		}
		
	}
	
	option = { #THIS MEANS WAR
		name = GER_buildup.3.o3
	
		ai_chance = {
			factor = 10
		}
		
		remove_from_faction = GER
		declare_war_on = { target = GER type = topple_government }
		
	}
	
}

country_event = {
	id = GER_buildup.4
	title = GER_buildup.4.t
	desc = GER_buildup.4.d
	
	trigger = {
		AND = {
			GER = {
				has_army_manpower = {
					size > 350000
				}
			}
			
			has_global_flag = GER_mil_backdown
			NOT = { has_war_with = GER }
			NOT = { has_global_flag = GER_event2 }
			NOT = { has_global_flag = GER_restrictions_lifted }
			tag = USA
			GER = {
				NOT = { has_country_flag = tried_to_unite_the_EU }
			}
		}
		
	}
	
	immediate = {
		set_global_flag = GER_event2
	}
	
	option = { #Back down.
		name = GER_buildup.3.o1
		
		ai_chance = {
			factor = 10
		}
		
		GER = {
			add_opinion_modifier = {
				modifier = recent_actions_positive
				target = ROOT
			}
		}
		
		
		set_global_flag = GER_restrictions_lifted
	}
	
	option = { #GERMANY WILL STRIKE THEIR OWN PATH.
	name = GER_buildup.3.o2
		
		ai_chance = {
			factor = 20
		}
		
		remove_from_faction = GER
		
		GER = {
			set_country_flag = left_NATO
		}
		
	}
	
	option = { #THIS MEANS WAR
		name = GER_buildup.3.o3
	
		ai_chance = {
			factor = 70
		}
		
		remove_from_faction = GER
		declare_war_on = { target = GER type = topple_government }
		
	}
	
}

country_event = {
	id = GER_buildup.5
	title = GER_buildup.5.t
	desc = GER_buildup.5.d
	
	trigger = {
		AND = {
			GER = {
				has_army_manpower = {
					size > 500000
				}
			}
			
			
			NOT = { has_global_flag = GER_event500kcheck }
			NOT = { has_global_flag = GER_restrictions_lifted }
			NOT = { has_global_flag = GER_restrictions_1m }
			tag = USA
			NOT = { has_country_flag = tried_to_unite_the_EU }
		}
		
	}
	
	immediate = {
		set_global_flag = GER_event500kcheck
	}
	
	option = { #Back down.
		name = GER_buildup.3.o1
		
		ai_chance = {
			factor = 10
		}
		
		GER = {
			add_opinion_modifier = {
				modifier = recent_actions_positive
				target = ROOT
			}
		}
		
		
		set_global_flag = GER_restrictions_lifted
	}
	
	option = { #GERMANY WILL STRIKE THEIR OWN PATH.
	name = GER_buildup.3.o2
		
		ai_chance = {
			factor = 20
		}
		
		remove_from_faction = GER
		
		GER = {
			set_country_flag = left_NATO
		}
		
	}
	
	option = { #THIS MEANS WAR
		name = GER_buildup.3.o3
	
		ai_chance = {
			factor = 70
		}
		
		remove_from_faction = GER
		declare_war_on = { target = GER type = topple_government }
		
	}
	
}

country_event = {
	id = GER_buildup.6
	title = GER_buildup.6.t
	desc = GER_buildup.6.d
	
	trigger = {
		AND = {
			GER = {
				has_army_manpower = {
					size > 1000000
				}
			}
			
			
			NOT = { has_global_flag = GER_event1mcheck }
			NOT = { has_global_flag = GER_restrictions_lifted }
			NOT = { has_global_flag = GER_restrictions_1m }
			tag = USA
			NOT = { has_country_flag = tried_to_unite_the_EU }
		}
		
	}
	
	immediate = {
		set_global_flag = GER_event1mcheck
	}
	
	option = { #Back down.
		name = GER_buildup.3.o1
		
		ai_chance = {
			factor = 10
		}
		
		GER = {
			add_opinion_modifier = {
				modifier = recent_actions_positive
				target = ROOT
			}
		}
		
		
		set_global_flag = GER_restrictions_lifted
	}
	
	option = { #GERMANY WILL STRIKE THEIR OWN PATH.
	name = GER_buildup.3.o2
		
		ai_chance = {
			factor = 20
		}
		
		remove_from_faction = GER
		
		GER = {
			set_country_flag = left_NATO
		}
		
	}
	
	option = { #THIS MEANS WAR
		name = GER_buildup.3.o3
	
		ai_chance = {
			factor = 70
		}
		
		remove_from_faction = GER
		declare_war_on = { target = GER type = topple_government }
		
	}
	
}

country_event = {
	id = GER_buildup.7
	title = GER_buildup.7.t
	desc = GER_buildup.7.d
	is_triggered_only = yes
	
	immediate = {
		set_global_flag = germany_negotiations
	}
	
	option = { #500k!
		name = GER_buildup.7.o1
		
		ai_chance = {
			factor = 50
		}
		
		USA = {
			country_event = { id = GER_buildup.8 }
		}
		
		
	}
	
	option = { #1m!
		name = GER_buildup.7.o2
		
		ai_chance = {
			factor = 25
		}
		
		USA = {
			country_event = { id = GER_buildup.9 }
		}
	}
	
	option = { #lift!
		name = GER_buildup.7.o3
		
		ai_chance = {
			factor = 25
		}
		
		USA = {
			country_event = { id = GER_buildup.10 }
		}
	}
}

country_event = {
	id = GER_buildup.8
	title = GER_buildup.8.t
	desc = GER_buildup.8.d
	is_triggered_only = yes

	
	option = { #fine
		name = GER_buildup.8.o1
		
		ai_chance = {
			factor = 80
		}
		
		GER = {
			country_event = { id = GER_buildup.11 }
		}
		
		
	}
	
	option = { #no
		name = GER_buildup.2.o2
		
		ai_chance = {
			factor = 20
		}
		
		GER = {
			country_event = { id = GER_buildup.12}
		}
	}
}

country_event = {
	id = GER_buildup.9
	title = GER_buildup.9.t
	desc = GER_buildup.9.d
	is_triggered_only = yes

	
	option = { #fine
		name = GER_buildup.9.o1
		
		ai_chance = {
			factor = 60
		}
		
		GER = {
			country_event = { id = GER_buildup.13 }
		}
		
		
	}
	
	option = { #no
		name = GER_buildup.9.o2
		
		ai_chance = {
			factor = 40
		}
		
		GER = {
			country_event = { id = GER_buildup.14 }
		}
	}
}

country_event = {
	id = GER_buildup.10
	title = GER_buildup.10.t
	desc = GER_buildup.10.d
	is_triggered_only = yes

	
	option = { #fine
		name = GER_buildup.10.o1
		
		ai_chance = {
			factor = 50
		}
		
		GER = {
			country_event = { id = GER_buildup.15 }
		}
		
		
	}
	
	option = { #no
		name = GER_buildup.10.o2
		
		ai_chance = {
			factor = 50
		}
		
		GER = {
			country_event = { id = GER_buildup.16 }
		}
	}
}

country_event = {
	id = GER_buildup.11
	title = GER_buildup.11.t
	desc = GER_buildup.11.d
	is_triggered_only = yes

	
	option = { #yay 500k
		name = GER_buildup.11.o1
		
		set_global_flag = GER_restrictions_500k
		
		add_political_power = 100
	}
}

country_event = {
	id = GER_buildup.12
	title = GER_buildup.12.t
	desc = GER_buildup.12.d
	is_triggered_only = yes

	
	option = { #no 500k
		name = GER_buildup.12.o1
		
		add_political_power = -100
	}
}

country_event = {
	id = GER_buildup.13
	title = GER_buildup.13.t
	desc = GER_buildup.13.d
	is_triggered_only = yes

	
	option = { #yay 1m
		name = GER_buildup.13.o1
		
		set_global_flag = GER_restrictions_1m
		
		add_political_power = 100
	}
}

country_event = {
	id = GER_buildup.14
	title = GER_buildup.14.t
	desc = GER_buildup.14.d
	is_triggered_only = yes

	
	option = { #no 1m
		name = GER_buildup.14.o1
				
		add_political_power = -100
	}
}

country_event = {
	id = GER_buildup.15
	title = GER_buildup.15.t
	desc = GER_buildup.15.d
	is_triggered_only = yes

	
	option = { #yay lifted
		name = GER_buildup.15.o1
				
		set_global_flag = GER_restrictions_lifted		
				
		add_political_power = 100
	}
}

country_event = {
	id = GER_buildup.16
	title = GER_buildup.16.t
	desc = GER_buildup.16.d
	is_triggered_only = yes

	
	option = { #no lifted
		name = GER_buildup.16.o1		
				
		add_political_power = -100
	}
}