add_namespace = Finland

#Conscription Reform
country_event = {
	id = Finland.1
	title = Finland.1.t
	desc = Finland.1.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.1.a
		log = "[GetDateText]: [This.GetName]: Finland.1.a executed"
		add_political_power = -25
		add_stability = 0.02

		ai_chance = {
			base = 30
		}
	}

	option = {
		name = Finland.1.b
		log = "[GetDateText]: [This.GetName]: Finland.1.b executed"
		remove_ideas = FIN_conscription
		decrease_conscription_effect = yes

		ai_chance = {
			base = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
	}

	option = {
		name = Finland.1.c
		log = "[GetDateText]: [This.GetName]: Finland.1.c executed"
		add_stability = -0.04
		add_war_support = 0.04
		increase_conscription_effect = yes
		swap_ideas = {
			remove_idea = FIN_conscription
			add_idea = FIN_conscription1
		}

		ai_chance = {
			base = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
	}
}

#Timber Export Policy
country_event = {
	id = Finland.2
	title = Finland.2.t
	desc = Finland.2.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.2.a
		log = "[GetDateText]: [This.GetName]: Finland.2.a executed"
		add_political_power = 150
		add_stability = 0.02

		ai_chance = {
			base = 10
		}
	}

	option = {
		name = Finland.2.b
		log = "[GetDateText]: [This.GetName]: Finland.2.b executed"
		add_stability = 0.03

		ai_chance = {
			base = 0
		}
	}
}

#Expansion of the Financial Ministry
country_event = {
	id = Finland.3
	title = Finland.3.t
	desc = Finland.3.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.3.a
		log = "[GetDateText]: [This.GetName]: Finland.3.a executed"
		add_political_power = -100
		add_stability = 0.02
		if = {
			limit = { has_full_control_of_state = 102 }
			102 = {	#Uusimaa
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = offices
					level = 1
					instant_build = yes
				}
			}
		}
		ai_chance = {
			base = 10
		}
	}

	option = {
		name = Finland.3.b
		log = "[GetDateText]: [This.GetName]: Finland.3.b executed"
		add_political_power = 100
		set_temp_variable = { party_index = 2 }
		set_temp_variable = { party_popularity_increase = 0.03 }
		set_temp_variable = { temp_outlook_increase = 0.03 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 0
		}
	}
}

#Adopt an Economic Doctrine
country_event = {
	id = Finland.4
	title = Finland.4.t
	desc = Finland.4.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.4.a
		log = "[GetDateText]: [This.GetName]: Finland.4.a executed"
		add_political_power = -50
		if = {
			limit = { has_full_control_of_state = 102 }
			102 = {	#Uusimaa
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		ai_chance = {
			base = 0
		}
	}

	option = { #Needs to looked at again
		name = Finland.4.b
		log = "[GetDateText]: [This.GetName]: Finland.4.b executed"
		add_stability = 0.02

		ai_chance = {
			base = 10
		}
	}
}

#Adopt a Foreign Policy Doctrine
country_event = {
	id = Finland.5
	title = Finland.5.t
	desc = Finland.5.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.5.a
		log = "[GetDateText]: [This.GetName]: Finland.5.a executed"
		add_stability = 0.03
		ai_chance = {
			base = 0
		}
	}

	option = {
		name = Finland.5.b
		log = "[GetDateText]: [This.GetName]: Finland.5.b executed"
		add_political_power = -50

		ai_chance = {
			base = 10
		}
	}
}

#Focus of the Ministry of Defense
country_event = {
	id = Finland.6
	title = Finland.6.t
	desc = Finland.6.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.6.a
		log = "[GetDateText]: [This.GetName]: Finland.6.a executed"
		army_experience = 20
		add_stability = 0.01
		ai_chance = {
			base = 10
		}
	}

	option = {
		name = Finland.6.b
		log = "[GetDateText]: [This.GetName]: Finland.6.b executed"
		navy_experience = 15
		air_experience = 15
		ai_chance = {
			base = 0
		}
	}
}

#Future of the Finnish Monarchy
country_event = {
	id = Finland.7
	title = Finland.7.t
	desc = Finland.7.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	#Empower the monarchy
	option = {
		name = Finland.7.a
		log = "[GetDateText]: [This.GetName]: Finland.7.a executed"
		create_country_leader = {
			name = "Donatus von Hessen"
			ideology = Monarchist
			picture = "Donatus_von_Hessen.dds"
		}
		add_stability = -0.10
		set_temp_variable = { party_index = 23 }
		set_temp_variable = { party_popularity_increase = 0.15 }
		set_temp_variable = { temp_outlook_increase = 0.15 }
		change_relative_party_popularity = yes
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 23 }
			set_temp_variable = { disable_elections = 1 }
			set_temp_variable = { col_one = 21 }
			change_ruling_party_effect = yes
		}
		add_stability = -0.1
		GER = {
			add_opinion_modifier = {
				target = FIN
				modifier = friendly_monarchy
			}
		}
		add_ai_strategy = {
			type = befriend
			id = GER
			value = 25
		}
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				has_global_flag = FIN_KINGDOM_OF_FINLAND_FOCUS_PATH
			}
		}
	}

	#Maintain democracy
	option = {
		name = Finland.7.b
		log = "[GetDateText]: [This.GetName]: Finland.7.b executed"
		add_ideas = FIN_king_donatus
		GER = {
			add_opinion_modifier = {
				target = FIN
				modifier = friendly_monarchy
			}
		}
		hidden_effect = {
			create_country_leader = {
				name = "Donatus von Hessen"
				ideology = Monarchist
				picture = "Donatus_von_Hessen.dds"
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_global_flag = FIN_KINGDOM_OF_FINLAND_FOCUS_PATH
			}
		}
	}
}

#Finland offers CSTO membership... at a price
country_event = {
	id = Finland.8
	title = Finland.8.t
	desc = Finland.8.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	#We accept.
	option = {
		name = Finland.8.a
		log = "[GetDateText]: [This.GetName]: Finland.8.a executed"
		add_to_faction = FIN
		SOV = {
			set_temp_variable = { treasury_change = -45 }
			modify_treasury_effect = yes
		}
		set_temp_variable = { treasury_change = 45 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 0
		}
	}

	#What? Are you crazy?!
	option = {
		name = Finland.8.b
		log = "[GetDateText]: [This.GetName]: Finland.8.b executed"
		FIN = {
			add_opinion_modifier = {
				target = SOV
				modifier = resisted_territorial_ambition
			}
		}
		ai_chance = {
			base = 10
		}
	}
}

#Mutual Defensive Agreement between Sweden and Finland
country_event = {
	id = Finland.9
	title = Finland.9.t
	desc = Finland.9.d
	picture = GFX_finnish_flag

	is_triggered_only = yes

	option = {
		name = Finland.9.a
		log = "[GetDateText]: [This.GetName]: Finland.9.a executed"
		add_political_power = 20
		give_guarantee = FIN
		ai_chance = {
			base = 10
		}
	}

	option = {
		name = Finland.9.b
		log = "[GetDateText]: [This.GetName]: Finland.9.b executed"
		FIN = {
			diplomatic_relation = {
				country = SWE
				relation = guarantee
				active = no
			}
		}
		ai_chance = {
			base = 0
		}
	}
}

# Nokia corporate history
country_event = {
	id = Finland.300
	title = Finland.300.t
	desc = Finland.300.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = FIN_nokia_handset_scale }
		NOT = { has_country_flag = FIN_nokia_broad_technology }
	}

	option = {
		name = Finland.300.a
		log = "[GetDateText]: [Root.GetName]: Finland.300.a executed"
		add_political_power = -20
		add_tech_bonus = {
			name = Finland.300.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = FIN_nokia_handset_scale
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = Finland.300.b
		log = "[GetDateText]: [Root.GetName]: Finland.300.b executed"
		add_tech_bonus = {
			name = Finland.300.t
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		set_country_flag = FIN_nokia_broad_technology
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = Finland.301
	title = Finland.301.t
	desc = Finland.301.d
	picture = GFX_stock_market
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = FIN_nokia_nsn_joint_venture }
		NOT = { has_country_flag = FIN_nokia_networks_alone }
	}

	option = {
		name = Finland.301.a
		log = "[GetDateText]: [Root.GetName]: Finland.301.a executed"
		add_political_power = -15
		add_tech_bonus = {
			name = Finland.301.t
			bonus = 0.15
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_e3add24c7d = yes }
		set_country_flag = FIN_nokia_nsn_joint_venture
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = Finland.301.b
		log = "[GetDateText]: [Root.GetName]: Finland.301.b executed"
		add_tech_bonus = {
			name = Finland.301.t
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		set_country_flag = FIN_nokia_networks_alone
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = Finland.302
	title = Finland.302.t
	desc = Finland.302.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = FIN_nokia_partner_platform }
		NOT = { has_country_flag = FIN_nokia_own_platform }
	}

	option = {
		name = Finland.302.a
		log = "[GetDateText]: [Root.GetName]: Finland.302.a executed"
		add_political_power = -25
		add_tech_bonus = {
			name = Finland.302.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = FIN_nokia_partner_platform
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = Finland.302.b
		log = "[GetDateText]: [Root.GetName]: Finland.302.b executed"
		add_tech_bonus = {
			name = Finland.302.t
			bonus = 0.15
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_364f0b778e = yes }
		set_country_flag = FIN_nokia_own_platform
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = Finland.303
	title = Finland.303.t
	desc = Finland.303.d
	picture = GFX_stock_market
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = FIN_nokia_devices_sold }
		NOT = { has_country_flag = FIN_nokia_devices_retained }
	}

	option = {
		name = Finland.303.a
		log = "[GetDateText]: [Root.GetName]: Finland.303.a executed"
		set_temp_variable = { treasury_change = 7.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = Finland.303.t
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		set_country_flag = FIN_nokia_devices_sold
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}
	}

	option = {
		name = Finland.303.b
		log = "[GetDateText]: [Root.GetName]: Finland.303.b executed"
		add_political_power = -30
		add_tech_bonus = {
			name = Finland.303.t
			bonus = 0.15
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_364f0b778e = yes }
		set_country_flag = FIN_nokia_devices_retained
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}
}

country_event = {
	id = Finland.304
	title = Finland.304.t
	desc = Finland.304.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = FIN_nokia_alcatel_acquired }
		NOT = { has_country_flag = FIN_nokia_licensing_turn }
	}

	option = {
		name = Finland.304.a
		log = "[GetDateText]: [Root.GetName]: Finland.304.a executed"
		set_temp_variable = { treasury_change = -16.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = Finland.304.t
			bonus = 0.15
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_e3add24c7d = yes }
		set_country_flag = FIN_nokia_alcatel_acquired
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = Finland.304.b
		log = "[GetDateText]: [Root.GetName]: Finland.304.b executed"
		add_political_power = 15
		add_tech_bonus = {
			name = Finland.304.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = FIN_nokia_licensing_turn
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = Finland.305
	title = Finland.305.t
	desc = Finland.305.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	trigger = {
		FIN_nokia_outcome_settled = no
	}

	option = {
		name = Finland.305.a
		trigger = {
			has_country_flag = FIN_nokia_devices_sold
			has_country_flag = FIN_nokia_alcatel_acquired
		}
		log = "[GetDateText]: [Root.GetName]: Finland.305.a executed"
		effect_tooltip = { add_ideas = FIN_nokia_trusted_network_state }
		hidden_effect = { FIN_nokia_apply_trusted_network_state = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = Finland.305.b
		trigger = {
			has_country_flag = FIN_nokia_devices_retained
			NOT = { has_country_flag = FIN_nokia_own_platform }
		}
		log = "[GetDateText]: [Root.GetName]: Finland.305.b executed"
		effect_tooltip = { add_timed_idea = { idea = FIN_nokia_integrated_device_network_group days = 365 } }
		hidden_effect = { FIN_nokia_apply_integrated_group = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = Finland.305.c
		trigger = {
			has_country_flag = FIN_nokia_devices_sold
			has_country_flag = FIN_nokia_licensing_turn
		}
		log = "[GetDateText]: [Root.GetName]: Finland.305.c executed"
		effect_tooltip = { add_timed_idea = { idea = FIN_nokia_patent_research_house days = 365 } }
		hidden_effect = { FIN_nokia_apply_patent_research_house = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = Finland.305.e
		trigger = {
			has_country_flag = FIN_nokia_devices_retained
			has_country_flag = FIN_nokia_own_platform
		}
		log = "[GetDateText]: [Root.GetName]: Finland.305.e executed"
		effect_tooltip = { add_timed_idea = { idea = FIN_nokia_open_mobile_commonwealth days = 365 } }
		hidden_effect = { FIN_nokia_apply_open_mobile_commonwealth = yes }
		ai_chance = { base = 100 }
	}
}
