###########################
##### COUNTRY EVENTS ######
###########################


add_namespace = ARG_news_events
add_namespace = ARG_political_events

# The Coup D'Etat against Castillo

country_event = {
	id = ARG_political_events.1
	title = ARG_political_events.1.t
	desc = ARG_political_events.1.desc 
	picture = GFX_report_event_ARG_coup_detat
	is_triggered_only = yes
	fire_only_once = yes

	# Allow the Coup
	option = {
		name = ARG_political_events.1.a 
		ai_chance = {  
			base = 100
		} 

		remove_country_leader_role = {
		    character = ARG_ramon_castillo
		    ideology = moderatism
		}

		hidden_effect = {
					retire_country_leader = yes
				}

		custom_effect_tooltip = ARG_march_to_la_casa_rosada_tt

		ARG_pedro_pablo_ramirez = { 
					promote_leader = yes 
				}

		add_stability = 0.05

		hidden_effect = {
			set_party_name = {
			    ideology = neutrality 
			    long_name = ARG_militarist_party_long
			    name = ARG_militarist_party
			}
			IF = {
				limit = {
					has_idea = ARG_pedro_pablo_ramirez
				}
				remove_ideas = ARG_pedro_pablo_ramirez
			}
		}
	}  

	# Resist the coup
	option = {
		name = ARG_political_events.1.b 
		ai_chance = {
			base = 0
		} 

			set_party_name = {
				ideology = fascism
				long_name = ARG_militarist_party_long
				name = ARG_militarist_party
			}
	
			start_civil_war = {
				ideology = fascism
				size = 0.1
				army_ratio = 0.1
			    navy_ratio = 0
			    air_ratio = 0.5
			    states = all
			    states_filter = {

			    	is_capital = no
			    	is_controlled_by = ARG
			    	
			    	NOT = {
		    				state = 960
		    				state = 956
		    				state = 958
		    				state = 511
		    				state = 512
		    				state = 955
		    				state = 954
		    				state = 953
		    			}
			    }
	
			    keep_all_characters = yes
	
			   #PREV.PREV = {
			   #	retire_country_leader = yes
			   #}
				effect_tooltip = {
					retire_character = ARG_edelmiro_julian_farrell
					retire_character = ARG_arturo_rawson
					retire_character = ARG_juan_peron
				}

			   hidden_effect = {
			   		PREV = {  # Original country
		            ARG_pedro_pablo_ramirez = { # Character
		                set_nationality = PREV.PREV
		                add_country_leader_role = {
							country_leader = {
								ideology = fascism_ideology
								expire = "1965.1.1.1"
								traits = {
									#war_industrialist
								}
							}
						}
						promote_leader = yes
		                # Transfers to breakaway
		            }
	
		            PREV = {
		            	retire_country_leader = yes
		            }
	
		            ARG_edelmiro_julian_farrell = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
		            ARG_arturo_rawson = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
		            ARG_juan_peron = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
		        }
			}	
		}
	}   
}

# The American Push

country_event = {
	id = ARG_political_events.2
	title = ARG_political_events.2.t
	desc = ARG_political_events.2.desc 
	picture = GFX_report_event_generic_usa_treaty
	is_triggered_only = yes
	fire_only_once = yes

	# Cut ties with the Germany
	option = {
		name = ARG_political_events.2.a 
		ai_chance = {  
			base = 30
		}

		IF = {
			limit = {
				has_dlc = "By Blood Alone"
			}
			send_embargo = GER
			custom_effect_tooltip = embargo_relation_tt
			add_political_power = 150

			USA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = huge_increase
				}
			}
		}

		ELSE = {
			add_political_power = 150
			GER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = ARG_embargoed_us
				}
			}

			USA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = huge_increase
				}
			}
		}
	}

	# Insist on neutrality
	option = {
		name = ARG_political_events.2.b 
		ai_chance = {  
			base = 80
		}

		USA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = ARG_refused_embargo_idea 
				}	
			}

			add_stability = 0.05
		}
	}

# Argentina asks to join the Allies (Historical)

country_event = {
	id = ARG_political_events.3
	title = ARG_political_events.3.t
	desc = ARG_political_events.3.desc
	picture = GFX_report_event_generic_read_write 
	is_triggered_only = yes

	option = {
		name =  ARG_political_events.3.a
		ai_chance = {
			base = 10
		}
	}	
}

# The United States embargos Argentina

country_event = {
	id = ARG_political_events.4
	title = ARG_political_events.4.t
	desc = ARG_political_events.4.desc
	picture = GFX_report_event_generic_usa_treaty
	is_triggered_only = yes

	option = {
		name =  ARG_political_events.4.a
		ai_chance = {
			base = 10
		}
	}
}

# Argentina requests the Falklands and S. Georgia Island

country_event = {
	id = ARG_political_events.5
	title = ARG_political_events.5.t
	desc = ARG_political_events.5.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes

	#Britain Agrees
	option = {
		name =  ARG_political_events.5.a
		ai_chance = {
			base = 10
		}

		ARG = {
			country_event = {
				id = ARG_political_events.6
				hours = 1
			}
		}
	}

	#Britain Agrees with a PRICE
	option = {
		name =  ARG_political_events.5.b
		ai_chance = {
			base = 10
		}

		ARG = {
			country_event = {
				id = ARG_political_events.7
				hours = 1
			}
		}
	}

	#Britain says hell no
	option = {
		name =  ARG_political_events.5.c
		ai_chance = {
			base = 10
		}

		ARG = {
			country_event = {
				id = ARG_political_events.8
				hours = 1
			}
		}
	}
}

# Britain gives Argentina the Falklands

country_event = {
	id = ARG_political_events.6
	title = ARG_political_events.6.t
	desc = ARG_political_events.6.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	#Good
	option = {
		name =  ARG_political_events.6.a
		ai_chance = {
			base = 70
		}

		effect_tooltip = {
			ARG = {
				transfer_state = 299
				transfer_state = 720
			}
		}

		hidden_effect = {
			ARG = {
				transfer_state = 299
				transfer_state = 720
			}
		}
	}
}

# Britain gives Argentina the Falklands for a Price

country_event = {
	id = ARG_political_events.7
	title = ARG_political_events.7.t
	desc = ARG_political_events.7.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	#Not great, but okay
	option = {
		name =  ARG_political_events.7.a
		ai_chance = {
			base = 30
		}

		ARG = {
			add_timed_idea = {
				idea = ARG_buying_the_islands_idea
				days = 365
			}
		}

		effect_tooltip = {
			ARG = {
				transfer_state = 299
				transfer_state = 720
			}
		}

		hidden_effect = {
			ARG = {
				transfer_state = 299
				transfer_state = 720
			}
		}
	}
}

# Britain does not give Argentina the Falklands

country_event = {
	id = ARG_political_events.8
	title = ARG_political_events.8.t
	desc = ARG_political_events.8.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes

	#Unfortunate
	option = {
		name =  ARG_political_events.8.a
		ai_chance = {
			base = 30
		}

		ARG = {
			add_opinion_modifier = {
				target = ENG
				modifier = medium_decrease 
			}
		}
	}
}

# Coup after Consolidating Power

country_event = {
	id = ARG_political_events.9
	title = ARG_political_events.9.t
	desc = ARG_political_events.9.desc
	picture = GFX_report_event_ARG_coup_consolidating
	is_triggered_only = yes

	#Prepare for Battle
	option = {
		name =  ARG_political_events.9.a
		ai_chance = {
			base = 100
		}

		add_stability = -0.2

		set_party_name = {
			ideology = fascism
			long_name = ARG_militarist_party_long
			name = ARG_militarist_party
		}

		start_civil_war = {
			ideology = fascism
			size = 0.1
			army_ratio = 0.1
		    navy_ratio = 0
		    air_ratio = 0.5
		    states = all
		    states_filter = {
		    	has_dynamic_modifier = {
		    		modifier = ARG_military_owned_state
		    	}
		    	is_capital = no
		    	is_controlled_by = ROOT
		    }

		    keep_all_characters = yes

		   #PREV.PREV = {
		   #	retire_country_leader = yes
		   #}

		   hidden_effect = {
		   		PREV = {  # Original country
	            ARG_pedro_pablo_ramirez = { # Character
	                set_nationality = PREV.PREV
	                add_country_leader_role = {
						country_leader = {
							ideology = fascism_ideology
							expire = "1965.1.1.1"
							traits = {
								#war_industrialist
							}
						}
					}
					promote_leader = yes
	                # Transfers to breakaway
	            }

	            PREV = {
	            	retire_country_leader = yes
	            }

	            ARG_edelmiro_julian_farrell = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	            ARG_arturo_rawson = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	            ARG_juan_peron = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	        }
		}	
	}

		hidden_effect = {
			set_global_flag = military_coup_attempt_happened	
		}	
	}
}

country_event = {
	id = ARG_political_events.10
	title = ARG_political_events.10.t
	desc = ARG_political_events.10.desc
	picture = GFX_report_event_ARG_coup_consolidating
	is_triggered_only = yes

	#This was a close call
	option = {
		name =  ARG_political_events.10.a
		ai_chance = {
			base = 100
		}

		add_stability = 0.1
	}
}

# Coup without consolidating power

country_event = {
	id = ARG_political_events.11
	title = ARG_political_events.11.t
	desc = ARG_political_events.11.desc
	picture = GFX_report_event_ARG_coup_consolidating
	is_triggered_only = yes

	#Prepare for Battle
	option = {
		name =  ARG_political_events.11.a
		ai_chance = {
			base = 100
		}

		add_stability = -0.2

		set_party_name = {
			ideology = fascism
			long_name = ARG_militarist_party_long
			name = ARG_militarist_party
		}

		start_civil_war = {
			ideology = fascism
			size = 0.1
			army_ratio = 0.1
		    navy_ratio = 0
		    air_ratio = 0.5
		    states = all
		    states_filter = {
		    	has_dynamic_modifier = {
		    		modifier = ARG_military_owned_state
		    	}
		    	is_capital = no
		    	is_controlled_by = ROOT
		    }

		    keep_all_characters = yes

		    hidden_effect = {
		   		PREV = {  # Original country
	            ARG_pedro_pablo_ramirez = { # Character
	                set_nationality = PREV.PREV
	                add_country_leader_role = {
						country_leader = {
							ideology = fascism_ideology
							expire = "1965.1.1.1"
							traits = {
								#war_industrialist
							}
						}
					}
					promote_leader = yes
	                # Transfers to breakaway
	            }

	            PREV = {
	            	retire_country_leader = yes
	            }

	            ARG_edelmiro_julian_farrell = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	            ARG_arturo_rawson = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	            ARG_juan_peron = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	        }
		}
	}

		hidden_effect = {
			set_global_flag = military_coup_attempt_happened	
		}	
	}
}

# Argentina Asks to join the Axis

country_event = {
	id = ARG_political_events.12
	title = ARG_political_events.12.t
	desc = ARG_political_events.12.desc 
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes

	# Yes, we will allow them to join
	option = {
		name = ARG_political_events.12.a 
		ai_chance = {  
			base = 90
		}
		ARG = {
				country_event = {
					id = ARG_political_events.13
					hours = 1
				}
			}
		}
	# Absolutely not
	option = {
		name = ARG_political_events.12.b 
		ai_chance = {  
			base = 10
		}
		ARG = {
				country_event = {
					id = ARG_political_events.14
					hours = 1
				}
			}
		}
	}
# Germany accepted our application

country_event = {
	id = ARG_political_events.13
	title = ARG_political_events.13.t
	desc = ARG_political_events.13.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = {
		name =  ARG_political_events.13.a
		ai_chance = {
			base = 10
		}
		GER = {
				IF = {
					limit = {
						is_in_faction = yes
					}
					add_to_faction = ARG
				}
			}
			every_other_country = {
				limit = {
					has_war_with = GER
					is_major = yes
				}
				declare_war_on = {
						target = ARG
						type = topple_government
					}
				}

				add_political_power = 50
				add_war_support = 0.05
			}
		}

# Germany refused our application

country_event = {
	id = ARG_political_events.14
	title = ARG_political_events.14.t
	desc = ARG_political_events.14.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes

	option = {
		name =  ARG_political_events.14.a
		ai_chance = {
			base = 10
		}
		ARG = {
			add_opinion_modifier = {
				target = GER
				modifier = medium_decrease 
			}
		}
	}
}

# Argentina demands to puppet Paraguay
country_event = {
	id = ARG_political_events.15
	title = ARG_political_events.15.t
	desc = ARG_political_events.15.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Agree
	option = {
		name = ARG_political_events.15.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				FROM = {
					has_war = yes
				}
			}
			modifier = { #more likely if Paraguay likes Argentina
				factor = 10
				ROOT = {
					has_opinion = {
						target = ARG
						value < 29
					}
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.16
				days = 1
			}
		}
	}	
	# Refuse
	option = {
		name = ARG_political_events.15.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				is_in_faction = yes
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.17
				days = 1
			}
		}
	}	
}

# Paraguay agrees to be puppeted
country_event = {
	id = ARG_political_events.16
	title = ARG_political_events.16.t
	desc = ARG_political_events.16.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes
	option = {
		name = ARG_political_events.16.a
		ai_chance = {
			base = 10
		}
		puppet = FROM
	}	
}

# Paraguaý refuses to be puppeted
country_event = {
	id = ARG_political_events.17
	title = ARG_political_events.17.t
	desc = ARG_political_events.17.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Back down
	option = {
		name = ARG_political_events.17.a
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = ARG_political_events.18
				days = 1
			}
		}
	}

	# wargoal
	option = {
		name =  ARG_political_events.17.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.2
				has_war_with_major = yes
			}
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}	
}

# Argentina backs down
country_event = {
	id = ARG_political_events.18
	title = ARG_political_events.18.t
	desc = ARG_political_events.18.desc
	picture = GFX_report_event_generic_read_write 
	is_triggered_only = yes
	option = {
		name = ARG_political_events.18.a
		ai_chance = {
			base = 10
		}
	}	
}

# Argentina demands to puppet Uraguay
country_event = {
	id = ARG_political_events.19
	title = ARG_political_events.19.t
	desc = ARG_political_events.19.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Agree
	option = {
		name = ARG_political_events.19.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				FROM = {
					has_war = yes
				}
			}
			modifier = { #more likely if Uruguay likes Argentina
				factor = 10
				ROOT = {
					has_opinion = {
						target = ARG
						value < 29 
					}
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.20
				days = 1
			}
		}
	}	
	# Refuse
	option = {
		name = ARG_political_events.19.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				is_in_faction = yes
			}
			modifier = {
				factor = 5
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.21
				days = 1
			}
		}
	}	
}

# Uraguay agrees to be puppeted
country_event = {
	id = ARG_political_events.20
	title = ARG_political_events.20.t
	desc = ARG_political_events.20.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes
	option = {
		name = ARG_political_events.20.a
		ai_chance = {
			base = 10
		}

		puppet = FROM

		GER = {
			country_event = {
				id = ARG_political_events.22
				days = 1
			}
		}

		BRA = {
			country_event = {
				id = ARG_political_events.110
				days = 1
			}
		}
	}	
}

# Uraguaý refuses to be puppeted
country_event = {
	id = ARG_political_events.21
	title = ARG_political_events.21.t
	desc = ARG_political_events.21.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Back down
	option = {
		name = ARG_political_events.21.a
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = ARG_political_events.23
				days = 1
			}
		}
	}

	# wargoal
	option = {
		name =  ARG_political_events.21.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.2
				has_war_with_major = yes
			}
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}

		BRA = {
			country_event = {
				id = ARG_political_events.110
				days = 1
			}
		}
	}	
}

# Argentina tells Germany they have carried out the colonial plan
country_event = {
	id = ARG_political_events.22
	title = ARG_political_events.22.t
	desc = ARG_political_events.22.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	option = {
		name = ARG_political_events.22.a
		ai_chance = {
			base = 10
		}
		add_opinion_modifier = {
				target = FROM
				modifier = large_increase 
			}
		add_political_power = 50
	}	
}

# Argentina backs down
country_event = {
	id = ARG_political_events.23
	title = ARG_political_events.23.t
	desc = ARG_political_events.23.desc
	picture = GFX_report_event_generic_read_write 
	is_triggered_only = yes
	option = {
		name = ARG_political_events.23.a
		ai_chance = {
			base = 10
		}
	}	
}

# Reach Out To Chile
country_event = {
	id = ARG_political_events.24
	title = ARG_political_events.24.t
	desc = ARG_political_events.24.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# Agree
	option = {
		name = ARG_political_events.24.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.25
				days = 1
			}
		}
	}	
	# Refuse
	option = {
		name = ARG_political_events.24.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				is_in_faction = yes
				has_government = democratic
				has_government = communism
			}
			modifier = {
				factor = 5
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.26
				days = 1
			}
		}
	}	
}

# Chile agrees to join faction
country_event = {
	id = ARG_political_events.25
	title = ARG_political_events.25.t
	desc = ARG_political_events.25.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	option = {
		name = ARG_political_events.25.a
		ai_chance = {
			base = 10
		}
		ARG = {
				IF = {
					limit = {
						is_in_faction = yes
					}
					add_to_faction = CHL
				}
			}
				CHL = {
					transfer_state = 953
					transfer_state = 954
				}
			}	
		}

# Chile refuses to join
country_event = {
	id = ARG_political_events.26
	title = ARG_political_events.26.t
	desc = ARG_political_events.26.desc
	picture = GFX_report_event_generic_read_write 
	is_triggered_only = yes

	# They'll pay for this one day
	option = {
		name = ARG_political_events.26.a
		ai_chance = {
			base = 2
		}
		
		add_opinion_modifier = {
				target = CHL
				modifier = large_decrease
			}
		}	
	}

# The Chilean Ultimatum
country_event = {
	id = ARG_political_events.27
	title = ARG_political_events.27.t
	desc = ARG_political_events.27.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Agree
	option = {
		name = ARG_political_events.27.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.1
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.28
				days = 1
			}
		}
	}	
	# Refuse
	option = {
		name = ARG_political_events.27.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 100
				is_in_faction = yes
			}
			modifier = {
				factor = 5
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = {
				id = ARG_political_events.29
				days = 1
			}
		}
	}	
}

# Chile agrees to be puppeted
country_event = {
	id = ARG_political_events.28
	title = ARG_political_events.28.t
	desc = ARG_political_events.28.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes
	option = {
		name = ARG_political_events.28.a
		ai_chance = {
			base = 10
		}
		puppet = FROM
	}	
}

# Chile refuses to be puppeted
country_event = {
	id = ARG_political_events.29
	title = ARG_political_events.29.t
	desc = ARG_political_events.29.desc
	picture = GFX_report_event_german_troops
	is_triggered_only = yes

	# Back down
	option = {
		name = ARG_political_events.29.a
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = ARG_political_events.30
				days = 1
			}
		}
	}

	# wargoal
	option = {
		name =  ARG_political_events.29.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.2
				has_war_with_major = yes
			}
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}	
}

# Argentina backs down
country_event = {
	id = ARG_political_events.30
	title = ARG_political_events.30.t
	desc = ARG_political_events.30.desc
	picture = GFX_report_event_generic_read_write #
	is_triggered_only = yes
	option = {
		name = ARG_political_events.30.a
		ai_chance = {
			base = 10
		}
	}	
}

# Release Osmar Hellmuth
country_event = {
	id = ARG_political_events.31
	title = ARG_political_events.31.t
	desc = ARG_political_events.31.desc
	picture = GFX_report_event_ARG_osmar_hellmuth
	is_triggered_only = yes
	
	#Release the beast
	option = {
		name = ARG_political_events.31.a
		ai_chance = {
			base = 10
		}

		add_political_power = 50
		GER = {
			add_opinion_modifier = {
				target = ARG
				modifier = large_increase
			}
		}
		IF = {
			limit = {
				has_dlc = "La Resistance"
			}
			JUNO_create_osmar_hellmuth_operative = yes
		}
		ELSE = {
		set_country_flag = ARG_hellmuth_released
		}
	}	

	#Keep him in jail
	option = {
		name = ARG_political_events.31.b
		ai_chance = {
			base = 10
		}
		
		add_political_power = 150
		GER = {
			add_opinion_modifier = {
				target = ARG
				modifier = large_decrease
			}
		}
	}
}

# Argentina seeks peace after taking the Falklands
country_event = {
	id = ARG_political_events.32
	title = ARG_political_events.32.t
	desc = ARG_political_events.32.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#We accept
	option = {
		name = ARG_political_events.32.a
		ai_chance = {
			base = 90
		}
		FROM = {
			country_event = {
				id = ARG_political_events.33
				days = 1
			}
		}
	}

	#no
	option = {
		name = ARG_political_events.32.b
		ai_chance = {
			base = 10
		}
		FROM = {
			country_event = {
				id = ARG_political_events.34
				days = 1
			}
		}
	}	
}

# England Agrees to peace
country_event = {
	id = ARG_political_events.33
	title = ARG_political_events.33.t
	desc = ARG_political_events.33.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#Peacey weacey
	option = {
		name = ARG_political_events.33.a
		ai_chance = {
			base = 10
		}

		ENG = {
			white_peace = {
				tag = ARG
			}
			every_other_country	= {
				limit = {
					is_in_faction_with = PREV
				}
				white_peace = {
					tag = ARG
				}
			}
		}

		ARG = {
				transfer_state = 299
				transfer_state = 720
			}
		}	
	}

# England says no
country_event = {
	id = ARG_political_events.34
	title = ARG_political_events.34.t
	desc = ARG_political_events.34.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#Damnit!
	option = {
		name = ARG_political_events.34.a
		ai_chance = {
			base = 10
		}
	}	
}

# England seeks peace after Argentina took the Falklands
country_event = {
	id = ARG_political_events.35
	title = ARG_political_events.35.t
	desc = ARG_political_events.35.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#We accept
	option = {
		name = ARG_political_events.35.a
		ai_chance = {
			base = 90
		}
		FROM = {
			country_event = {
				id = ARG_political_events.36
				days = 1
			}
		}
	}

	#no
	option = {
		name = ARG_political_events.35.b
		ai_chance = {
			base = 10
		}
		FROM = {
			country_event = {
				id = ARG_political_events.37
				days = 1
			}
		}
	}	
}

# Argentina Agrees to peace
country_event = {
	id = ARG_political_events.36
	title = ARG_political_events.36.t
	desc = ARG_political_events.36.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#Peacey weacey
	option = {
		name = ARG_political_events.36.a
		ai_chance = {
			base = 10
		}

		add_stability = -0.1
		add_war_support = -0.05

		ARG = {
			white_peace = {
				tag = ENG
			}
			transfer_state = 299
			transfer_state = 720
		}
	}	
}

# Argentina says no
country_event = {
	id = ARG_political_events.37
	title = ARG_political_events.37.t
	desc = ARG_political_events.37.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#Damnit!
	option = {
		name = ARG_political_events.37.a
		ai_chance = {
			base = 10
		}
	}	
}

# Demanding Spanish Equatorial Guinea
country_event = {
	id = ARG_political_events.38
	title = ARG_political_events.38.t
	desc = ARG_political_events.38.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	
	#No, that is ours!
	option = {
		name = ARG_political_events.38.a
		ai_chance = {
			base = 10
			modifier = { #keeping the opinion for now but feel free to remove this
				factor = 0.1
				has_opinion = {
					target = ARG
					value > 29
				}
			}
		}
		custom_effect_tooltip = ARG_political_events.38.a.tt
		hidden_effect = {
			ARG = {
				country_event = {
					id = ARG_political_events.39
					days = 1
				}
			}
		}
	}

	#They did help us after all...
	option = {
		name = ARG_political_events.38.b
		ai_chance = {
			base = 10
			modifier = { #keeping the opinion for now but feel free to remove this
				factor = 0.8
				has_opinion = {
					target = ARG
					value > 29
				}
			}
		}
		custom_effect_tooltip = ARG_political_events.38.b.tt
		hidden_effect = {
			ARG = {
				country_event = {
					id = ARG_political_events.40
					days = 1
				}
			}
		}
	}	
}

#Spain says no
country_event = {
	id = ARG_political_events.39
	title = ARG_political_events.39.t
	desc = ARG_political_events.39.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	
	#Damnit!
	option = {
		name = ARG_political_events.39.a
		ai_chance = {
			base = 10
		}
		add_opinion_modifier = {
				target = SPA
				modifier = large_decrease
		}	
	}	
}

#Spain says yea
country_event = {
	id = ARG_political_events.40
	title = ARG_political_events.40.t
	desc = ARG_political_events.40.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	
	#Oh Joy!
	option = {
		name = ARG_political_events.40.a
		ai_chance = {
			base = 10
		}

		ARG = {
			transfer_state = 297
		}

		add_opinion_modifier = {
				target = SPA
				modifier = medium_increase
		}
	}	
}



# Invite Rodolfo Ghioldi Back to Argentina
country_event = {
	id = ARG_political_events.41
	title = ARG_political_events.41.t
	desc = ARG_political_events.41.desc
	picture = GFX_report_event_ARG_rodolfo_ghioldi
	is_triggered_only = yes
	
	#Hell yeeee
	option = {
		name = ARG_political_events.41.a
		ai_chance = {
			base = 10
		}
	}	
}

# Asking the Soviets for Help
country_event = {
	id = ARG_political_events.42
	title = ARG_political_events.42.t
	desc = ARG_political_events.42.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	
	#Hell yeeee
	option = {
		name = ARG_political_events.42.a
		ai_chance = {
			base = 80
		}
		add_relation_rule_override = {
				target = ARG
				can_send_volunteers = yes 
			}
			ARG = {
			country_event = {
				id = ARG_political_events.43
				days = 1
				}
			}
		}

	#Can't Help
	option = {
		name = ARG_political_events.42.b
		ai_chance = {
			base = 20
		}
		add_stability = -0.05
		ARG = {
			country_event = {
				id = ARG_political_events.44
				days = 1
				}
			}
		}	
	}

# Soviets Agree
country_event = {
	id = ARG_political_events.43
	title = ARG_political_events.43.t
	desc = ARG_political_events.43.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	
	#Understood
	option = {
		name = ARG_political_events.43.a
		ai_chance = {
			base = 10
		}
		add_opinion_modifier = {
				target = SOU
				modifier  = medium_increase
			}
		}	
	}

# Soviets Disagree
country_event = {
	id = ARG_political_events.44
	title = ARG_political_events.44.t
	desc = ARG_political_events.44.desc
	picture = GFX_report_event_generic_read_write 
	is_triggered_only = yes
	
	#Understood
	option = {
		name = ARG_political_events.41.a
		ai_chance = {
			base = 10
		}
		add_opinion_modifier = {
				target = SOU
				modifier  = medium_decrease
			}
		}	
	}

##Worker Strike in state - bad
#country_event = {
#	id = ARG_political_events.50
#	title = ARG_political_events.50.t
#	desc = ARG_political_events.50.desc
#	picture = GFX_report_event_gathering_protest
#	is_triggered_only = yes
#	option = {
#		name = ARG_political_events.50.a
#		ai_chance = {
#			base = 10
#		}
#		add_popularity = { ideology = communism popularity = 0.01 }
#		clr_country_flag = ARG_uniting_workers_in_progress
#		add_manpower = 1000
#	}	
#}
#
##Worker Strike in state - average
#country_event = {
#	id = ARG_political_events.51
#	title = ARG_political_events.51.t
#	desc = ARG_political_events.51.desc
#	picture = GFX_report_event_gathering_protest
#	is_triggered_only = yes
#	option = {
#		name =  ARG_political_events.51.a
#		ai_chance = {
#			base = 10
#		}
#		add_popularity = { ideology = communism popularity = 0.03 }
#		clr_country_flag = ARG_uniting_workers_in_progress
#		add_manpower = 2000
#	}	
#}
#
##Worker Strike in state - good
#country_event = {
#	id = ARG_political_events.52
#	title = ARG_political_events.52.t
#	desc = ARG_political_events.52.desc
#	picture = GFX_report_event_gathering_protest
#	is_triggered_only = yes
#	option = {
#		name =  ARG_political_events.52.a
#		ai_chance = {
#			base = 10
#		}
#		add_popularity = { ideology = communism popularity = 0.05 }
#		clr_country_flag = ARG_uniting_workers_in_progress
#		add_manpower = 3000
#	}	
#}

# Argentina invites us to Communist Alliance
country_event = {
	id = ARG_political_events.60
	title = ARG_political_events.60.t
	desc = ARG_political_events.60.desc 
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = no

	# Together, we will claim the day
	option = {
		name = ARG_political_events.60.a 
		ai_chance = {  
			base = 80
		} 

		FROM = {
			country_event = {
				id = ARG_political_events.61
				days = 2
				random_days = 3
			}
		}
		
	}  

	# The future is ours alone
	option = {
		name = ARG_political_events.60.b 
		ai_chance = {
			base = 20
		} 

		FROM = {
			country_event = {
				id = ARG_political_events.62
				days = 2
				random_days = 5
			}
		}
		
	}     
}

# X country joins the Communist Alliance
country_event = {
	id = ARG_political_events.61
	title = ARG_political_events.61.t
	desc = ARG_political_events.61.desc 
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = no

	# Great
	option = {
		name = ARG_political_events.61.a 
		ai_chance = {  
			base = 100
		} 

		ROOT = {
			add_to_faction = FROM
		}
		
	}      
}

# X country refuses to join the Communist Alliance
country_event = {
	id = ARG_political_events.62
	title = ARG_political_events.62.t
	desc = ARG_political_events.62.desc 
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	fire_only_once = no

	# Sad...
	option = {
		name = ARG_political_events.62.a 
		ai_chance = {  
			base = 100
		} 

		every_state = {
			limit = {
				is_owned_and_controlled_by = FROM
			}
			add_claim_by = ROOT
		}

		add_war_support = 0.03

		add_political_power = 25
		
	}      
}

# Buenos Aires Conference
country_event = {
	id = ARG_political_events.70
	title = ARG_political_events.70.t
	desc = ARG_political_events.70.desc 
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	fire_only_once = no

	# Fanny in Power
	option = {
		name = ARG_political_events.70.a 
		ai_chance = {  
			base = 75
		} 
		ARG = {
			country_event = {
				id = ARG_political_events.71
				days = 1
				}
			}
			add_stability = 0.2
			add_political_power = 150
		}

	# Soto in Power
	option = {
		name = ARG_political_events.70.b 
		ai_chance = {  
			base = 25
		} 
		ARG = {
			country_event = {
				id = ARG_political_events.72
				days = 1
				}
			}
			ARG_antonio_soto = {
				promote_character = yes
			}
			add_stability = -0.3
			add_manpower = 20000

			hidden_effect = {
				IF = {
					limit = {
						has_idea = ARG_antonio_soto
					}
					remove_ideas = ARG_antonio_soto
				}
			}
		}      
	}	

# Buenos Aires Conference - Fanny has the power
country_event = {
	id = ARG_political_events.71
	title = ARG_political_events.71.t
	desc = ARG_political_events.71.desc 
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	fire_only_once = no

	# Things are stable
	option = {
		name = ARG_political_events.71.a 
		ai_chance = {  
			base = 100
		} 
	}
}

# Buenos Aires Conference - Soto has the power
country_event = {
	id = ARG_political_events.72
	title = ARG_political_events.72.t
	desc = ARG_political_events.72.desc 
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	fire_only_once = no

	# A new type of revolution
	option = {
		name = ARG_political_events.72.a 
		ai_chance = {  
			base = 100
		} 
	}
}

country_event = { #From seeks guarantee and non-agression pact
	id = ARG_political_events.73
	title = ARG_political_events.73.t
	desc =  ARG_political_events.73.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	fire_only_once = no

	option = { #Sure, both is good
		name = ARG_political_events.73.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 29 #they like FROM
				}
			}

		}

		IF = {
			limit = {
				NOT = {
					FROM = {
						is_guaranteed_by = ROOT
					}
				}
			}
			give_guarantee = FROM
		}
		IF = {
			limit = {
				FROM = {
					NOT = {
						has_non_aggression_pact_with = ROOT
					}
				}
			}
			diplomatic_relation = { 
				country = FROM #target country
				relation = non_aggression_pact 
				active = yes #yes to add relation, no to cancel existing one
			}
		}

		FROM = {
			country_event = {
				id = ARG_political_events.74
				hours = 3 # optional - can take hours/days/months
			}	
		}
	}

	option = { #myeah they can have a non-agression pact?
		name = ARG_political_events.73.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > -29 #they are neutral about FROM
				}
			}
		}

		IF = {
			limit = {
				FROM = {
					NOT = {
						has_non_aggression_pact_with = ROOT
					}
				}
			}
			diplomatic_relation = { 
				country = FROM #target country
				relation = non_aggression_pact 
				active = yes #yes to add relation, no to cancel existing one
			}
		}

		FROM = {
			country_event = {
				id = ARG_political_events.75
				hours = 3 # optional - can take hours/days/months
			}	
		}
	}

	option = { #hell no
		name = ARG_political_events.73.c
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < -29 #they do not like FROM
				}
			}
		}

		FROM = {
			country_event = {
				id = ARG_political_events.76
				hours = 3 # optional - can take hours/days/months
			}	
		}

	}
}

country_event = { #From accepts
	id = ARG_political_events.74
	title = ARG_political_events.74.t
	desc = ARG_political_events.74.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = no

	option = { #aw yeah!
		name = ARG_political_events.74.a
		ai_chance = {
			base = 1
		}

		add_opinion_modifier = {
			target = FROM
			modifier = medium_increase
		}

		custom_effect_tooltip = ARG_political_events.74.tt
	}
}

country_event = { #From partially accepts
	id = ARG_political_events.75
	title = ARG_political_events.75.t
	desc = ARG_political_events.75.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = no

	option = { #Better than nothing
		name = ARG_political_events.75.a
		ai_chance = {

		}
		add_opinion_modifier = {
			target = FROM
			modifier = small_increase
		}
		custom_effect_tooltip = ARG_political_events.75.tt
	}
}

country_event = { #From rejects
	id = ARG_political_events.76
	title = ARG_political_events.76.t
	desc = ARG_political_events.76.desc
	picture = GFX_report_event_gathering_protest
	is_triggered_only = yes
	fire_only_once = no

	option = { #Bastards...
		name = ARG_political_events.76.a
		ai_chance = {

		}

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

## Education Reforms
#country_event = {
#	id = ARG_political_events.80
#	title = ARG_political_events.80.t
#	desc = ARG_political_events.80.desc 
#	picture = GFX_report_event_generic_read_write
#	is_triggered_only = yes
#	fire_only_once = no
#
#	# Electronics
#	option = {
#		name = ARG_political_events.80.a 
#		ai_chance = {  
#			base = 25
#		} 
#		ARG = {
#			country_event = {
#				id = ARG_political_events.81
#				days = 1
#				}
#			}
#			add_tech_bonus = {
#				name = ARG_education_electronics_bonus
#				bonus = 0.5
#				uses = 1
#				category = electronics
#			}
#		}
#
#	# Industrial
#	option = {
#		name = ARG_political_events.80.b 
#		ai_chance = {  
#			base = 25
#		} 
#		ARG = {
#			country_event = {
#				id = ARG_political_events.82
#				days = 1
#				}
#			}
#			add_tech_bonus = {
#				name = ARG_education_industrial_bonus
#				bonus = 0.5
#				uses = 1
#				category = industry
#			}
#		} 
#
#	# Synthetics
#	option = {
#		name = ARG_political_events.80.c 
#		ai_chance = {  
#			base = 25
#		} 
#		ARG = {
#			country_event = {
#				id = ARG_political_events.83
#				days = 1
#				}
#			}
#			add_tech_bonus = {
#				name = ARG_education_synthetics_bonus
#				bonus = 0.5
#				uses = 1
#				category = cat_synth_rubber
#			}
#		}     
#	}
#
## Electronic funding
#country_event = {
#	id = ARG_political_events.81
#	title = ARG_political_events.81.t
#	desc = ARG_political_events.81.desc 
#	picture = GFX_report_event_generic_read_write
#	is_triggered_only = yes
#	fire_only_once = no
#
#	# Awesome
#	option = {
#		name = ARG_political_events.81.a 
#		ai_chance = {  
#			base = 100
#		} 
#	}
#}
#
## Industrial funding
#country_event = {
#	id = ARG_political_events.82
#	title = ARG_political_events.82.t
#	desc = ARG_political_events.82.desc 
#	picture = GFX_report_event_generic_read_write
#	is_triggered_only = yes
#	fire_only_once = no
#
#	# Awesome
#	option = {
#		name = ARG_political_events.82.a 
#		ai_chance = {  
#			base = 100
#		} 
#	}
#}
#
## Synthetic funding
#country_event = {
#	id = ARG_political_events.83
#	title = ARG_political_events.83.t
#	desc = ARG_political_events.83.desc 
#	picture = GFX_report_event_generic_read_write
#	is_triggered_only = yes
#	fire_only_once = no
#
#	# Awesome
#	option = {
#		name = ARG_political_events.83.a 
#		ai_chance = {  
#			base = 100
#		} 
#	}
#}

# Joint Exercises between U.S. and Argentina
country_event = {
	id = ARG_political_events.90
	title = ARG_political_events.90.t
	desc = ARG_political_events.90.desc 
	picture = GFX_report_event_british_inspect_troops
	is_triggered_only = yes
	fire_only_once = no

	# Cooperation at its finest
	option = {
		name = ARG_political_events.90.a 
		ai_chance = {  
			base = 100
		}
		air_experience = 50
		navy_experience = 50
	}
}

# Argentina invites us to their Democratic Faction
country_event = {
	id = ARG_political_events.100
	title = ARG_political_events.100.t
	desc = ARG_political_events.100.desc 
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = no

	# Together, we will claim the day
	option = {
		name = ARG_political_events.100.a 
		ai_chance = {  
			base = 100
		} 

		FROM = {
			country_event = {
				id = ARG_political_events.101
				days = 2
				random_days = 3
			}
		}
		
	}  

	# The future is ours alone
	option = {
		name = ARG_political_events.100.b 
		ai_chance = {
			base = 0
		} 

		FROM = {
			country_event = {
				id = ARG_political_events.102
				days = 2
				random_days = 5
			}
		}
		
	}     
}

# X country joins the Communist Alliance
country_event = {
	id = ARG_political_events.101
	title = ARG_political_events.101.t
	desc = ARG_political_events.101.desc 
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = no

	# Great
	option = {
		name = ARG_political_events.101.a 
		ai_chance = {  
			base = 100
		} 

		ROOT = {
			add_to_faction = FROM
		}
		
	}      
}

# X country refuses to join the Communist Alliance
country_event = {
	id = ARG_political_events.102
	title = ARG_political_events.102.t
	desc = ARG_political_events.102.desc 
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	fire_only_once = no

	# Sad...
	option = {
		name = ARG_political_events.102.a 
		ai_chance = {  
			base = 100
		} 

		every_state = {
			limit = {
				is_owned_and_controlled_by = FROM
			}
			add_claim_by = ROOT
		}

		add_war_support = 0.03

		add_political_power = 25
		
	}      
}

# TAG is touching URG
country_event = {
	id = ARG_political_events.110
	title = ARG_political_events.110.t
	desc = ARG_political_events.110.desc 
	picture = GFX_report_event_german_troops
	is_triggered_only = yes
	fire_only_once = no

	# Escalate
	option = {
		name = ARG_political_events.110.a 
		ai_chance = {  
			base = 20
		} 

		FROM = {
			country_event = {
				id = ARG_political_events.111
				days = 2
				random_days = 5
			}	
		}      
	}

	# De-escalate
	option = {
		name = ARG_political_events.110.b
		ai_chance = {  
			base = 80
		} 

		ROOT = {
			add_stability = -0.2
			add_war_support = -0.3	
		}      
	}
}

# TAG is escalating
country_event = {
	id = ARG_political_events.111
	title = ARG_political_events.111.t
	desc = ARG_political_events.111.desc 
	picture = GFX_report_event_german_troops
	is_triggered_only = yes
	fire_only_once = no

	# Let them come
	option = {
		name = ARG_political_events.111.a 
		ai_chance = {  
			base = 50
		} 

		IF = {
			limit = {
				ARG = {
					has_completed_focus = ARG_revive_the_colonial_plan
				}
			}
			FROM = {
				create_wargoal = {
					type = liberate_wargoal
					target = ROOT
					generator = { 300 }
				}
			}
		}	
		ELSE = {
			FROM = {
				 create_wargoal = {
						type = annex_everything
						target = ROOT
					}
				}
			}      
		}

	# De-escalate
	option = {
		name = ARG_political_events.111.b
		ai_chance = {  
			base = 50
		} 

		ROOT = {
			white_peace = {
				tag = URG
			}
		}      
	}
}

# DO YOU WANT HITLER YES OR NO (GUN EMOJI)
country_event = {
	id = ARG_political_events.120
	title = ARG_political_events.120.t
	desc = ARG_political_events.120.desc 
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	fire_only_once = yes

	# Yes please Hitler
	option = {
		name = ARG_political_events.120.a 
		ai_chance = {  
			base = 0
		} 

		set_party_name = {
				ideology = fascism
				long_name = ARG_gen_nazism_party_long
				name = ARG_gen_nazism_party
			}

		set_politics = {
				ruling_party = fascism
				last_election = "1934.3.26" 
				election_frequency = 48
				elections_allowed = no
			}

		add_country_leader_role = {
			character = ARG_senor_hitler
			country_leader={
				expire = "1965.1.1"
				ideology = nazism
				traits = {
					dictator
					incognito
				}
			}
			promote_leader = yes
		} 

		set_country_flag = ARG_worst_timeline_flag  

		mark_focus_tree_layout_dirty = yes

		hidden_effect = {
				GER = {
				GER_adolf_hitler = {
				retire = yes
				}  
			}
		} 
	}

	# Begone dictator
	option = {
		name = ARG_political_events.120.b
		ai_chance = {  
			base = 100
		} 
		
		add_stability = 0.2
		    
	}
}

# Argentina taking dominate americas path - news
news_event = {
	id = ARG_news_events.1
	title = ARG_news_events.1.t
	desc = ARG_news_events.1.d
	picture = GFX_news_event_ARG_dominate_the_americas
	
	major = no
	
	is_triggered_only = yes
	
	option = {
		name = ARG_news_events.1.a
	}
}

# Argentina Communist Revolution
news_event = {
	id = ARG_news_events.3
	title = ARG_news_events.3.t
	desc = ARG_news_events.3.d
	picture = GFX_news_event_soviet_soldiers_ruins
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = ARG_news_events.3.a
	}
}