add_namespace = LAT_events

#the controversy
country_event = {
	id = LAT_events.1
	title = LAT_events.1.t
	desc = LAT_events.1.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.1.o1
		custom_effect_tooltip = LAT_unlock_decisions_to_secure_power


		ai_chance = {
			factor = 50
		}
	}

}

#the opposition is dealt with
country_event = {
	id = LAT_events.2
	title = LAT_events.2.t
	desc = LAT_events.2.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.2.o1
		set_country_flag = LAT_opposition_is_no_more
		add_political_power = 25


		ai_chance = {
			factor = 50
		}
	}

}

#Military coup
country_event = {
	id = LAT_events.3
	title = LAT_events.3.t
	desc = LAT_events.3.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.3.o1
		set_politics = {
			ruling_party = nationalist
			elections_allowed = no
		}
		add_stability = -0.35
		add_popularity = {
			ideology = nationalist
			popularity = 0.15
		}
		random_country = {
			limit = {
				is_in_faction_with = ROOT
				is_faction_leader = yes
			}
			remove_from_faction = ROOT
		}

		every_country = {
			limit = {
				NOT = { has_government = nationalist }
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = military_rule_bad
			}
		}
		every_owned_state = {
			limit = {
				is_controlled_by = ROOT
			}
			add_manpower = -15000
		}


		ai_chance = {
			factor = 50
		}
	}
}
#Vote or else....
country_event = {
	id = LAT_events.4
	title = LAT_events.4.t
	desc = LAT_events.4.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.4.o1

		add_political_power = 100


		ai_chance = {
			factor = 50
		}
	}

}

#Should we join CSTO?
country_event = {
	id = LAT_events.5
	title = LAT_events.5.t
	desc = LAT_events.5.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.5.o1
		SOV = { country_event = LAT.6 }


		ai_chance = {
			factor = 50
		}
	}

	option = {
		name = LAT_events.5.o2
		add_ideas = LAT_we_shall_stand_idea


		ai_chance = {
			factor = 50
		}
	}

}

#LAT wants to join CSTO
country_event = {
	id = LAT_events.6
	title = LAT_events.6.t
	desc = LAT_events.6.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.6.o1
		random_country = {
			limit = {
				tag = LAT
			}
			country_event = { id = diplomatic_response.1 }
		}
		LAT = {  set_country_flag = seek_CSTO_membership }
		SOV = { add_to_faction = LAT }

		ai_chance = {
			factor = 90
		}
	}

	option = {
		name = LAT_events.6.o2
		random_country = {
			limit = {
				tag = LAT
			}
			country_event = { id = diplomatic_response.2 }
		}

		add_political_power = 15


		ai_chance = {
			factor = 10
		}
	}

}

#LAT wishes to join us
country_event = {
	id = LAT_events.7
	title = LAT_events.7.t
	desc = LAT_events.7.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.7.o1
		every_state = {
			limit = { is_core_of = LAT }
			add_core_of = RCO
		}
		annex_country = {
			target = LAT
			transfer_troops = yes
		}

		ai_chance = {
			factor = 90
		}
	}

}

#Promises of an Utopia
country_event = {
	id = LAT_events.8
	title = LAT_events.8.t
	desc = LAT_events.8.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.8.o1
		add_manpower = 50000
		add_stability = 0.1

		ai_chance = {
			factor = 90
		}
	}

}

#Begin Stablisation
country_event = {
	id = LAT_events.9
	title = LAT_events.9.t
	desc = LAT_events.9.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.9.o1
		add_ideas = LAT_strikes
		add_ideas = LAT_instability

		ai_chance = {
			factor = 90
		}
	}

}

#the trial
country_event = {
	id = LAT_events.10
	title = LAT_events.10.t
	desc = LAT_events.10.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.10.o1
		add_political_power = 50
		add_stability = 0.05
		add_popularity = {
			ideology = nationalist
			popularity = 0.1
		}

		ai_chance = {
			factor = 90
		}
	}

}

#the metting
country_event = {
	id = LAT_events.11
	title = LAT_events.11.t
	desc = LAT_events.11.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.11.o1
		swap_ideas = {
			remove_idea = LAT_instability_2
			add_idea = LAT_instability_3
		}
		add_popularity = {
			ideology = nationalist
			popularity = 0.1
		}

		ai_chance = {
			factor = 90
		}
	}

}

#Trade expansions
country_event = {
	id = LAT_events.12
	title = LAT_events.12.t
	desc = LAT_events.12.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.12.o1
		add_timed_idea = {
			idea = LAT_encouraged_trade
			days = 365
		}

		ai_chance = {
			factor = 90
		}
	}

}

#BIB's investments
country_event = {
	id = LAT_events.13
	title = LAT_events.13.t
	desc = LAT_events.13.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.13.o1
		add_ideas = LAT_expanded_bib

		ai_chance = {
			factor = 90
		}
	}

}

#one currency
country_event = {
	id = LAT_events.14
	title = LAT_events.14.t
	desc = LAT_events.14.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.14.o1
		add_ideas =  LAT_a_one_currency_idea

		ai_chance = {
			factor = 90
		}
	}

}

#one passport
country_event = {
	id = LAT_events.15
	title = LAT_events.15.t
	desc = LAT_events.15.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.15.o1
		add_ideas =  LAT_one_passport_idea

		ai_chance = {
			factor = 90
		}
	}

}

#Invitation to Baltic entente
country_event = {
	id = LAT_events.16
	title = LAT_events.16.t
	desc = LAT_events.16.d
	picture = GFX_report_event_political_deal2

	is_triggered_only = yes

	option = {	#Accept
		name = LAT_events.16.o1
		LAT = { add_to_faction = ROOT }
		set_country_flag = seek_Latvian_alliance
		LAT = { country_event = diplomatic_response.1 }
		ai_chance = {
			factor = 100
		}
	}

	option = {	#Decline
		name = LAT_events.16.o2
		LAT = { country_event = diplomatic_response.2 }
		random_country = {
			limit = {
				tag = LAT
			}
			create_wargoal = {
				type = annex_everything
				target = ROOT
			}
		}
		ai_chance = {
			factor = 0
		}
	}
}

#Latvia proposes joint army exercises
country_event = {
	id = LAT_events.17
	title = LAT_events.17.t
	desc = LAT_events.17.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.17.o1 #accept
		LAT = { country_event = LAT_events.18 }
		add_doctrine_cost_reduction = {
			name = armydoctrine_bonus
			cost_reduction = 0.25
			uses = 1
			category = land_doctrine
		}
		army_experience = 15

		ai_chance = {
			factor = 90
		}
	}

	option = {
		name = LAT_events.17.o2 #decline
		LAT = { country_event = LAT_events.19 }

		ai_chance = {
			factor = 90
		}
	}

}

#USA accepts
country_event = {
	id = LAT_events.18
	title = LAT_events.18.t
	desc = LAT_events.18.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.18.o1
		add_doctrine_cost_reduction = {
			name = armydoctrine_bonus
			cost_reduction = 0.25
			uses = 1
			category = land_doctrine
		}
		army_experience = 15

		ai_chance = {
			factor = 90
		}
	}
}

#USA rejects
country_event = {
	id = LAT_events.19
	title = LAT_events.19.t
	desc = LAT_events.19.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.19.o1
		add_political_power = 25
		ai_chance = {
			factor = 90
		}
	}
}

#Anarchist Anti-NATO protest
country_event = {
	id = LAT_events.20
	title = LAT_events.20.t
	desc = LAT_events.20.d
	picture = GFX_report_event_united_nations_crazy

	trigger = {
		original_tag = LAT
		is_in_faction_with = USA
	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LAT_events.20.o1
		add_stability = -0.01
		ai_chance = {
			factor = 90
		}
	}
}


#Baltic Air Policing
country_event = {
	id = LAT_events.21
	title = LAT_events.21.t
	desc = LAT_events.21.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.21.o1
		add_ideas = LAT_baltic_air_policing_idea

		ai_chance = {
			factor = 90
		}
	}
}

#Expanding BALBAT
country_event = {
	id = LAT_events.22
	title = LAT_events.22.t
	desc = LAT_events.22.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.22.o1
		add_ideas = LAT_balbat

		ai_chance = {
			factor = 90
		}
	}
}

#Latvian Inflaunce
country_event = {
	id = LAT_events.23
	title = LAT_events.23.t
	desc = LAT_events.23.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.23.o1
		add_timed_idea = {
			idea = LAT_spreading_baltic_unity
			days = 200
		}

		ai_chance = {
			factor = 90
		}
	}
}

#Baltic unification
country_event = {
	id = LAT_events.24
	title = LAT_events.24.t
	desc = LAT_events.24.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.24.o1
		LAT = {
			country_event = { id = diplomatic_response.1 }
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		every_state = {
			limit = { is_core_of = ROOT }
			add_core_of = LAT
		}

		ai_chance = {
			factor = 90
		}
	}
}

#Nuclear Energy
country_event = {
	id = LAT_events.25
	title = LAT_events.25.t
	desc = LAT_events.25.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.25.o1
		add_tech_bonus = {
			name = tech_bonus
			bonus = 3.0
			uses = 1
			category = nuclear
		}

		ai_chance = {
			factor = 90
		}
	}
}

#Conservative politicians join
country_event = {
	id = LAT_events.26
	title = LAT_events.26.t
	desc = LAT_events.26.d
	picture = GFX_report_event_united_nations_crazy

	trigger = {
		NOT = { has_idea = LAT_strengthening_the_party }
		has_completed_focus = LAT_strenghten_the_party
	}

	is_triggered_only = yes

	option = {
		name = LAT_events.26.o1
		set_country_flag = LAT_integrated_conservative_politicians

		ai_chance = {
			factor = 90
		}
	}
}

#the issue of new generation
country_event = {
	id = LAT_events.27
	title = LAT_events.27.t
	desc = LAT_events.27.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.27.o1 #kick them from the government
		set_country_flag = LAT_destroyed_ng_flag
		add_ideas = LAT_kicked_NG

		ai_chance = {
			factor = 90
		}
	}

	option = {
		name = LAT_events.27.o2
		hidden_effect = {
			country_event = {
				id = LAT_events.28
				days = 4
				random = 80
			}
		}
		custom_effect_tooltip = LAT_this_will_not_end_well_tp
		set_country_flag = LAT_new_generation_about_to_coup_flag

		ai_chance = {
			factor = 90
		}
	}
}

#New Generation's coup
country_event = {
	id = LAT_events.28
	title = LAT_events.28.t
	desc = LAT_events.28.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.28.o1
		complete_national_focus = LAT_ngs_coup
		set_politics = {
			ruling_party = islamist
			elections_allowed = no
		}
		add_stability = -0.5
		add_popularity = {
			ideology = islamist
			popularity = 0.25
		}

		ai_chance = {
			factor = 90
		}
	}

}

#Latvia promotes strikes
country_event = {
	id = LAT_events.29
	title = LAT_events.29.t
	desc = LAT_events.29.d
	picture = GFX_report_event_united_nations_crazy

	is_triggered_only = yes

	option = {
		name = LAT_events.29.o1
		add_timed_idea = {
			idea = LAT_strikes_commie
			days = 365
		}

		ai_chance = {
			factor = 90
		}
	}

}

