add_namespace = LIT_events


#Paksas' resignes
country_event = {
	id = LIT_events.1
	title = LIT_events.1.t
	desc = LIT_events.1.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.1.o1
		hidden_effect = {
			country_event = {
				id = LIT_events.2
				days = 10
			}
		}
		add_to_variable = {
			var = litpowerofgovernment
			value = 50
		}
		set_country_flag = LIT_unlock_cool_decisions_flag
		custom_effect_tooltip = LIT_unlocks_new_decisions_tt
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 20
		}

		add_political_power = -10
		add_popularity = {
			ideology = conservative
			popularity = -0.01
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
		}
	}
}

#President prime minster conflicts
country_event = {
	id = LIT_events.2
	title = LIT_events.2.t
	desc = LIT_events.2.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.2.o1
		hidden_effect = {
			country_event = {
				id = LIT_events.3
				days = 15
			}
		}
		set_country_flag = LIT_pm_president_conflict
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_political_power = -10
		add_popularity = {
			ideology = conservative
			popularity = -0.01
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
		}
	}
}

#Union of Moderate Conservatives
country_event = {
	id = LIT_events.3
	title = LIT_events.3.t
	desc = LIT_events.3.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.3.o1
		hidden_effect = {
			country_event = {
				id = LIT_events.4
				days = 15
			}
		}
		set_country_flag = LIT_umc_created
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_political_power = -10
		add_popularity = {
			ideology = conservative
			popularity = -0.01
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
		}
	}
}

#another split
country_event = {
	id = LIT_events.4
	title = LIT_events.4.t
	desc = LIT_events.4.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.4.o1
		custom_effect_tooltip = LIT_rising_instability_tt
		hidden_effect = {
			country_event = {
				id = LIT_events.5
				days = 15
			}
		}
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_political_power = -10
		add_popularity = {
			ideology = conservative
			popularity = -0.01
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
		}
	}
}

#Vagnorius leaves the party
country_event = {
	id = LIT_events.5
	title = LIT_events.5.t
	desc = LIT_events.5.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.5.o1
		set_country_flag = LIT_Vagnorius_left
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_political_power = -10
		add_popularity = {
			ideology = conservative
			popularity = -0.01
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
		}
	}
}

#workers' strikes
country_event = {
	id = LIT_events.6
	title = LIT_events.6.t
	desc = LIT_events.6.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.6.o1
		random_owned_state = {
			limit = {
				is_fully_controlled_by = ROOT
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 0.3
			}
		}
		add_political_power = -50
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				has_game_rule = {
					rule = LIT_ai_behavior
					option = LIT_GOVERNMENT_COLLAPSES
				}
			}
		}
	}

	option = {
		name = LIT_events.6.o2

		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_popularity = {
			ideology = conservative
			popularity = -0.02
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				NOT = {
					has_game_rule = {

						rule = LIT_ai_behavior
						option = LIT_GOVERNMENT_COLLAPSES
					}
				}
			}
		}
	}
}

#rising radicalism
country_event = {
	id = LIT_events.7
	title = LIT_events.7.t
	desc = LIT_events.7.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.7.o1
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_popularity = {
			ideology = communist
			popularity = 0.005
		}
		add_popularity = {
			ideology = monarchist
			popularity = 0.005
		}
		add_popularity = {
			ideology = fascist
			popularity = 0.005
		}
		add_popularity = {
			ideology = nationalist
			popularity = 0.005
		}
		add_popularity = {
			ideology = islamist
			popularity = 0.005
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				NOT = {
					has_game_rule = {

						rule = LIT_ai_behavior
						option = LIT_GOVERNMENT_COLLAPSES
					}
				}
			}
		}
	}
	option = {
		name = "We must fight against this!"
		add_political_power = -25
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				has_game_rule = {

					rule = LIT_ai_behavior
					option = LIT_GOVERNMENT_COLLAPSES
				}
			}
		}
	}
}

#politics leave the party
country_event = {
	id = LIT_events.8
	title = LIT_events.8.t
	desc = LIT_events.8.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.8.o1
		add_political_power = -50
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				has_game_rule = {

					rule = LIT_ai_behavior
					option = LIT_GOVERNMENT_COLLAPSES
				}
			}
		}
	}

	option = {
		name = LIT_events.8.o2
		custom_effect_tooltip = LIT_rising_instability_tt
		add_to_variable = {
			var = litinstability
			value = 15
		}
		add_popularity = {
			ideology = conservative
			popularity = -0.02
		}
		ai_chance = {
			factor = 100
			modifier = {
				add = -100
				NOT = {
					has_game_rule = {

						rule = LIT_ai_behavior
						option = LIT_GOVERNMENT_COLLAPSES
					}
				}
			}
		}
	}
}

#the government collapses!
country_event = {
	id = LIT_events.9
	title = LIT_events.9.t
	desc = LIT_events.9.d
	picture = GFX_report_event_LIT_protest

	trigger = {

	}

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = LIT_events.9.o1 #monarchists
		set_country_flag = LIT_the_government_fell
		hidden_effect = {
			news_event = { hours = 12 id = LIT_news.1 }
		}
		set_politics = {
			ruling_party = monarchist
			elections_allowed = no
		}
		add_popularity = {
			ideology = monarchist
			popularity = 0.3
		}
		add_popularity = {
			ideology = conservative
			popularity = -0.1
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	option = {
		name = LIT_events.9.o2 #communists
		set_country_flag = LIT_the_government_fell
		hidden_effect = {
			news_event = { hours = 12 id = LIT_news.1 }
		}
		set_politics = {
			ruling_party = communist
			elections_allowed = no
		}
		add_popularity = {
			ideology = communist
			popularity = 0.3
		}
		add_popularity = {
			ideology = conservative
			popularity = -0.1
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	option = {
		name = LIT_events.9.o3 #pagans!
		set_country_flag = LIT_the_government_fell
		hidden_effect = {
			news_event = { hours = 12 id = LIT_news.1 }
		}
		set_politics = {
			ruling_party = islamist
			elections_allowed = no
		}
		add_popularity = {
			ideology = islamist
			popularity = 0.3
		}
		add_popularity = {
			ideology = conservative
			popularity = -0.1
		}
		add_stability = -0.01
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	option = {
		name = LIT_events.9.o3 #ai doesn't want to deal with this
		set_country_flag = LIT_the_government_fell
		trigger = {
			is_ai = yes
		}
		ai_chance = {
			factor = 0
			modifier = {
				add = 10000
				is_historical_focus_on = yes
			}
		}
	}
}


#exacly what we needed
country_event = {
	id = LIT_events.10
	title = LIT_events.10.t
	desc = LIT_events.10.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.10.o1 #more chaos
		add_ideas = LIT_lithuania_burns
		11 = { set_demilitarized_zone = yes }
		188 = { set_demilitarized_zone = yes }
		189 = { set_demilitarized_zone = yes }

		ai_chance = {
			factor = 90
		}
	}
}

#legitimizing the regency
country_event = {
	id = LIT_events.11
	title = LIT_events.11.t
	desc = LIT_events.11.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.11.o1
		add_country_leader_trait = a_legitimate_regency

		ai_chance = {
			factor = 90
		}
	}
}

#crushing the reds
country_event = {
	id = LIT_events.12
	title = LIT_events.12.t
	desc = LIT_events.12.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.12.o1
		LIT_fix_crisis_effect = yes

		ai_chance = {
			factor = 90
		}
	}
}

#support of the radicals
country_event = {
	id = LIT_events.13
	title = LIT_events.13.t
	desc = LIT_events.13.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.13.o1
		LIT_fix_crisis_effect = yes
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = Mindaugas_Murza

		ai_chance = {
			factor = 90
		}
	}
}

#making promises
country_event = {
	id = LIT_events.14
	title = LIT_events.14.t
	desc = LIT_events.14.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.14.o1
		random_owned_state = { #cool factory.
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = Gediminas_Simkus

		ai_chance = {
			factor = 90
		}
	}
}

#relase Mykolas
country_event = {
	id = LIT_events.15
	title = LIT_events.15.t
	desc = LIT_events.15.d
	picture = GFX_report_event_prison

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.15.o1
		add_political_power = 15
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = Mikolas_Burokevicus

		ai_chance = {
			factor = 90
		}
	}
}

#attacking the monarchists
country_event = {
	id = LIT_events.16
	title = LIT_events.16.t
	desc = LIT_events.16.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.16.o1
		LIT_fix_crisis_effect = yes

		ai_chance = {
			factor = 90
		}
	}
}


#supporting our workers
country_event = {
	id = LIT_events.17
	title = LIT_events.17.t
	desc = LIT_events.17.d
	picture = GFX_report_event_align_to_workers

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.17.o1
		add_political_power = -15
		LIT_fix_crisis_effect = yes
		random_owned_state = { #cool factory.
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}

		ai_chance = {
			factor = 90
		}
	}
}

#rise of neo-pagans
country_event = {
	id = LIT_events.18
	title = LIT_events.18.t
	desc = LIT_events.18.d
	picture = GFX_report_event_Romuva_flag

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.18.o1
		add_political_power = 25

		ai_chance = {
			factor = 90
		}
	}
}

#farmers' support
country_event = {
	id = LIT_events.19
	title = LIT_events.19.t
	desc = LIT_events.19.d
	picture = GFX_report_event_farmers

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.19.o1
		add_political_power = 10
		random_owned_state = { #cool factory.
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}

		ai_chance = {
			factor = 90
		}
	}
}

#a controversial president
country_event = {
	id = LIT_events.20
	title = LIT_events.20.t
	desc = LIT_events.20.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.20.o1
		add_ideas = LIT_anti_nazi_opposition
		11 = { set_demilitarized_zone = yes }
		188 = { set_demilitarized_zone = yes }
		189 = { set_demilitarized_zone = yes }

		ai_chance = {
			factor = 90
		}
	}
}

#Lithuanian wants to join our faction
country_event = {
	id = LIT_events.21
	title = LIT_events.21.t
	desc = LIT_events.21.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.21.o1
		ROOT = {add_to_faction = LIT}
		LIT = { country_event = diplomatic_response.1 }

		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = LIT_events.21.o2
		LIT = { country_event = diplomatic_response.2 }

		ai_chance = {
			factor = 10
		}
	}
}

#Lithuanian demands annexation
country_event = {
	id = LIT_events.22
	title = LIT_events.22.t
	desc = LIT_events.22.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.22.o1
		ROOT = {
			every_unit_leader = {
				set_nationality = LIT
			}
		}
		LIT = { annex_country = { target = ROOT transfer_troops = yes } }
		LIT = { country_event = diplomatic_response.1 }

		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = LIT_events.22.o2
		LIT = {
			create_wargoal = {
				type = annex_everything
				target = ROOT
			}
		}
		LIT = { country_event = diplomatic_response.2 }

		ai_chance = {
			factor = 90
		}
	}
}

#focus of the five year plan
country_event = {
	id = LIT_events.23
	title = LIT_events.23.t
	desc = LIT_events.23.d
	picture = GFX_report_event_economy_status

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.23.o1
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}

		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = LIT_events.23.o2
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}

		ai_chance = {
			factor = 90
		}
	}
}

#dealing with reactionaries
country_event = {
	id = LIT_events.24
	title = LIT_events.24.t
	desc = LIT_events.24.d
	picture = GFX_report_event_prison

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.24.o1
		add_popularity = {
			ideology = communist
			popularity = 0.05
		}
		add_political_power = -25
		add_stability = 0.05
		custom_effect_tooltip = LIT_increase_socialist_influance
		add_to_variable = {
			var = LIT_communist_influance
			value = -2
		}
		add_to_variable = {
			var = LIT_socialist_influance
			value = 2
		}

		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = LIT_events.24.o2
		add_popularity = {
			ideology = communist
			popularity = 0.05
		}
		add_war_support = 0.05
		add_political_power = 50
		add_manpower = -500
		custom_effect_tooltip = LIT_increase_communist_influance
		add_to_variable = {
			var = LIT_communist_influance
			value = 2
		}
		add_to_variable = {
			var = LIT_socialist_influance
			value = -2
		}

		ai_chance = {
			factor = 90
		}
	}
}

#Lithuanian wants to join our faction monarchist
country_event = {
	id = LIT_events.25
	title = LIT_events.25.t
	desc = LIT_events.25.d
	picture = GFX_report_event_flag_of_lithuania

	trigger = {

	}

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = LIT_events.25.o1
		ROOT = {add_to_faction = LIT}
		LIT = { country_event = diplomatic_response.1 }

		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = LIT_events.25.o2
		LIT = { country_event = diplomatic_response.2 }

		ai_chance = {
			factor = 25
		}
	}
}


