﻿# Indentation must be set to tabs before editing! This file is edited with a tab size of 4.
add_namespace = eoanb_norway

#eoanb_norway.1-100		General Events (Story)
#eoanb_norway.301-350	Parliament Votes

### General Events (eoanb_norway.1-100)

news_event = { # Vernepliktsdebatten
	id = eoanb_norway.1
	title = eoanb_norway.1.t
	desc = eoanb_norway.1.d
	picture = GFX_news_event_056

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.1.a
		ai_chance = {
			base = 5
		}
	}
}

news_event = { # Murder of Knut Grøte
	id = eoanb_norway.2
	title = eoanb_norway.2.t
	desc = eoanb_norway.2.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.2.a
		ai_chance = {
			base = 90
		}

		NOR = {
			add_opinion_modifier = {
				target = PRS
				modifier = NOR_opinion_infamous_murder
			}
			add_opinion_modifier = {
				target = DEN
				modifier = NOR_opinion_infamous_murder
			}
		}
	}
}

news_event = { # Construction started on the storting building
	id = eoanb_norway.3
	title = eoanb_norway.3.t
	desc = eoanb_norway.3.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.3.a
		ai_chance = {
			base = 90
		}
	}
	option = {
		name = eoanb_norway.3.b
		ai_chance = {
			base = 90
		}
	}
}

country_event = { # Construction finished on the storting building
	id = eoanb_norway.4
	title = eoanb_norway.4.t
	desc = eoanb_norway.4.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.4.a
		ai_chance = {
			base = 90
		}

		NOR = {
			add_stability = 0.05
		}
	}
}

news_event = { # Venstre has been established
	id = eoanb_norway.5
	title = eoanb_norway.5.t
	desc = eoanb_norway.5.d
	picture = GFX_news_event_generic_sign_treaty2

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.5.a
		ai_chance = {
			base = 90
		}

		NOR = {
			set_party_name = {
				ideology = centrism
				long_name = NOR_venstre_party
				name = NOR_venstre_party
			}

			hidden_effect = {
				country_event = { id = eoanb_norway.6 days = 209 random_days = 5}
			}
		}
	}
}

news_event = { # Høyre has been established
	id = eoanb_norway.6
	title = eoanb_norway.6.t
	desc = eoanb_norway.6.d
	picture = GFX_news_event_generic_sign_treaty2

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.6.a
		ai_chance = {
			base = 90
		}

		NOR = {
			set_party_name = {
				ideology = traditional_conservatism
				long_name = NOR_hoyre_party
				name = NOR_hoyre_party
			}
		}
	}
}

country_event = { # Vogt pressured to resign
	id = eoanb_norway.7
	title = eoanb_norway.7.t
	desc = eoanb_norway.7.d
	picture = GFX_report_event_jorgen_herman_vogt

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			NOR = {
				complete_national_focus = NOR_focus_vogt
			}
		}
	}

	option = {
		name = eoanb_norway.7.a

		ai_chance = {
			base = 1
		}

		NOR = {
			set_country_flag = NOR_flag_vogt_stay
		}
	}

	option = {
		name = eoanb_norway.7.b

		ai_chance = {
			base = 1

			modifier = {
				factor = 320
				is_historical_focus_on = yes
			}
		}

		NOR = {
			set_country_flag = NOR_flag_vogt_resign
		}
	}
}

country_event = { # Find Vogt's replacement
	id = eoanb_norway.8
	title = eoanb_norway.8.t
	desc = eoanb_norway.8.d
	picture = GFX_report_event_jorgen_herman_vogt

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			NOR = {
				set_country_flag = NOR_flag_vogt_chosen_successor
			}
		}
	}

	#option = { # Crown Prince Charles
	#	name = eoanb_norway.8.a
	#	ai_chance = {
	#		base = 1
	#	}
#
	#	NOR = {
	#		set_party_name = {
	#			ideology = traditional_conservatism
	#			name = NOR_autocracy_party
	#			long_name = NOR_autocracy_party
	#		}
#
	#		create_country_leader = {
	#			name = "Charles XV"
	#			desc = "POLITICS_TEMP_DESC"
	#			picture = "gfx/leaders/SWE/Portrait_SWE_Charles_XV.dds"
	#			expire = 1872.09.18
	#			ideology = conserv
	#		}
	#	}
	#}

	option = { # Hans Christian Petersen
		name = eoanb_norway.8.b
		ai_chance = {
			base = 1

			modifier = {
				factor = 320
				is_historical_focus_on = yes
			}
		}

		NOR = {
			NOR_hans_christian_petersen = {
				add_country_leader_role = {
					promote_leader = yes

					country_leader = {
						desc = "POLITICS_TEMP_DESC"
						expire = 1862.09.26
						ideology = conserv

						traits = { staunch_constitutionalist }
					}
				}
			}

			retire_character = NOR_transitional_government
		}
	}
}

country_event = { # Vogt stays in power
	id = eoanb_norway.9
	title = eoanb_norway.9.t
	desc = eoanb_norway.9.d
	picture = GFX_report_event_jorgen_herman_vogt

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.9.a
		ai_chance = {
			base = 90
		}
	}
}

country_event = { # Vogt forced to resign
	id = eoanb_norway.10
	title = eoanb_norway.10.t
	desc = eoanb_norway.10.d
	picture = GFX_report_event_jorgen_herman_vogt

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.10.a
		ai_chance = {
			base = 90
		}
	}
}

country_event = { # Vogt: Conclusion
	id = eoanb_norway.11
	title = eoanb_norway.11.t
	desc = eoanb_norway.11.d
	picture = GFX_report_event_jorgen_herman_vogt

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.11.a
		ai_chance = {
			base = 90
		}
	}
}

news_event = { # Opening of Hamar-Grundsetbanen
	id = eoanb_norway.12
	title = eoanb_norway.12.t
	desc = eoanb_norway.12.d
	picture = GFX_news_event_elverum_stasjon

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.12.a
		ai_chance = {
			base = 90
		}
	}
}

news_event = { # Opening of Kongsvingerbanen
	id = eoanb_norway.13
	title = eoanb_norway.13.t
	desc = eoanb_norway.13.d
	picture = GFX_news_event_kongsvingerbanen

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.13.a
		ai_chance = {
			base = 90
		}
	}
}

country_event = { # Great Christiania fire
	id = eoanb_norway.14
	title = eoanb_norway.14.t
	desc = eoanb_norway.14.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			NOR = {
				add_ideas = NOR_idea_christiania_repairing
			}
		}
	}

	option = { # Do nothing
		name = eoanb_norway.14.a
		ai_chance = {
			base = 2
		}

		NOR = {
			set_temp_variable = { political_legitimacy_change = -0.05 }
			eoanb_political_legitimacy_change = yes

			custom_effect_tooltip = NOR_christiania_fire_no
			country_event = { id = eoanb_norway.15 days = 60 random_days = 30 }

			110 = {
				damage_building = {
					type = industrial_complex
					damage = 0.75
				}
				damage_building = {
					type = infrastructure
					damage = 0.25
				}
			}
		}
	}

	option = { # Send relief
		name = eoanb_norway.14.b
		ai_chance = {
			base = 3

			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}

		NOR = {
			custom_effect_tooltip = NOR_christiania_fire_25
			add_to_variable = { var = NOR_var_christiania_repairing value = 2.5 }
			NOR_scripted_effect_christiania_repairing = yes

			110 = {
				damage_building = {
					type = industrial_complex
					damage = 0.50
				}
			}
		}
	}

	option = { # Allocate relief resources quickly
		name = eoanb_norway.14.c
		ai_chance = {
			base = 3
		}

		NOR = {
			custom_effect_tooltip = NOR_christiania_fire_50
			add_to_variable = { var = NOR_var_christiania_repairing value = 5 }
			NOR_scripted_effect_christiania_repairing = yes

			110 = {
				damage_building = {
					type = industrial_complex
					damage = 0.25
				}
			}
		}
	}
}

country_event = { # Repairing will take longer than expected
	id = eoanb_norway.15
	title = eoanb_norway.15.t
	desc = eoanb_norway.15.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.15.a
		ai_chance = {
			base = 5
		}

		NOR = { # Do nothing
			set_temp_variable = { political_legitimacy_change = 0.10 }
			eoanb_political_legitimacy_change = yes

			custom_effect_tooltip = NOR_christiania_fire_no

			110 = {
				damage_building = {
					type = industrial_complex
					damage = 0.25
				}
			}
		}
	}

	option = { # Do something
		name = eoanb_norway.15.b
		ai_chance = {
			base = 5

			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}

		NOR = {
			custom_effect_tooltip = NOR_christiania_fire_25
			add_to_variable = { var = NOR_var_christiania_repairing value = 2.5 }
			NOR_scripted_effect_christiania_repairing = yes
		}
	}
}

country_event = { # Christiania is repaired
	id = eoanb_norway.16
	title = eoanb_norway.16.t
	desc = eoanb_norway.16.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.16.a

		ai_chance = {
			base = 5
		}

		NOR = {
			add_stability = 0.1
		}
	}
}

country_event = { # Election (1859)
	id = eoanb_norway.17
	title = eoanb_norway.17.t
	desc = eoanb_norway.17.d

	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = { # Liberal
		name = eoanb_norway.17.a

		ai_chance = {
			base = 5
		}

		NOR = {
			add_popularity = {
				ideology = centrism
				popularity = 0.05
			}
			set_country_flag = NOR_flag_allow_tree_election_1859
			mark_focus_tree_layout_dirty = yes
			unlock_national_focus = NOR_focus_election_liberal_victory
		}
	}

	option = { # Conservative
		name = eoanb_norway.17.b

		ai_chance = {
			base = 5

			modifier = {
				factor = 90
				is_historical_focus_on = yes
			}
		}

		NOR = {
			add_popularity = {
				ideology = traditional_conservatism
				popularity = 0.05
			}
			set_country_flag = NOR_flag_allow_tree_election_1859
			mark_focus_tree_layout_dirty = yes
			unlock_national_focus = NOR_focus_election_conservative_victory
		}
	}
}

country_event = { # Situation in Northern Norway
	id = eoanb_norway.18
	title = eoanb_norway.18.t
	desc = eoanb_norway.18.d

	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.18.a

		ai_chance = {
			base = 5
		}

		#NOR = {
		#}
	}
}

country_event = { # Send people to Kola. (Russian-Norwegian event chain)
	id = eoanb_norway.19
	title = eoanb_norway.19.t
	desc = eoanb_norway.19.d

	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = { # Accept
		name = eoanb_norway.19.a
		ai_chance = {
			base = 5

			modifier = {
				is_historical_focus_on = yes
				add = 500
			}
		}

		RUS = {

		}
	}

	option = { # Reject
		name = eoanb_norway.19.b
		ai_chance = {
			base = 5
		}

		RUS = {

		}
	}
}

news_event = { # DfnA established
	id = eoanb_norway.20
	title = eoanb_norway.20.t
	desc = eoanb_norway.20.d
	picture = GFX_news_event_generic_sign_treaty2

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.20.a
		ai_chance = {
			base = 5
		}

		NOR = {
			set_party_name = {
				ideology = social_egalitarianism
				long_name = NOR_dfna_egal_party_long
				name = NOR_dfna_egal_party
			}
			set_party_name = {
				ideology = ideology_radical_socialism
				long_name = NOR_dfna_radical_socialism_party_long
				name = NOR_dfna_radical_socialism_party
			}
		}
	}
}

country_event = { # Fund fishing - How Much should we spend
	id = eoanb_norway.21
	title = eoanb_norway.21.t
	desc = eoanb_norway.21.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = { # Major allocation
		name = eoanb_norway.21.a
		ai_chance = { base = 5 }

		NOR = {
			144 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	option = { # Minor allocation
		name = eoanb_norway.21.b
		ai_chance = { base = 10 }

		NOR = {
			144 = {
				add_extra_state_shared_building_slots = 1
			}
		}
	}

	option = { # Some allocation
		name = eoanb_norway.21.c
		ai_chance = { base = 2 }

		NOR = {

		}
	}
}

country_event = { # The Issue of Stattholder
	id = eoanb_norway.22
	title = eoanb_norway.22.t
	desc = eoanb_norway.22.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.22.a

		SWE = {
			country_event = { id = eoanb_sweden.47 days = 2 }
		}
	}
}

country_event = { # Stattholderstriden: King Oscar Agrees
	id = eoanb_norway.23
	title = eoanb_norway.23.t
	desc = eoanb_norway.23.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.23.a

		NOR = {
			country_event = { id = eoanb_norway.33 days = 7 }
		}
	}
}

country_event = { # Stattholderstriden: King Oscar Does Not Agree (historical)
	id = eoanb_norway.24
	title = eoanb_norway.24.t
	desc = eoanb_norway.24.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.24.a

		NOR = {
			set_country_flag = NOR_flag_king_oscar_disagrees
		}
	}
}

country_event = { # Stattholderstriden: Prince Regent Charles Promises to Abolish Stattholder
	id = eoanb_norway.25
	title = eoanb_norway.25.t
	desc = eoanb_norway.25.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.25.a
	}
}

country_event = { # Stattholderstriden: Stortinget Creates a Special Committee to Remove the Stattholder Position
	id = eoanb_norway.26
	title = eoanb_norway.26.t
	desc = eoanb_norway.26.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_country_flag = NOR_flag_king_oscar_disagrees
	}

	option = { # If Petersen is prime minster: Hope for the best
		name = eoanb_norway.26.a
		trigger = {
			has_country_flag = NOR_flag_vogt_chosen_successor
		}

		NOR = {
			country_event = { id = eoanb_norway.28 days = 20 }
		}
	}

	option = { # If Vogt is prime minister: Pressure King
		name = eoanb_norway.26.b
		trigger = {
			has_completed_focus = NOR_focus_vogt_vote_success
		}

		NOR = {
			country_event = { id = eoanb_norway.27 days = 20 }
		}
	}
}

country_event = { # Stattholderstriden: The Storting Puts Pressure on the Swedish King
	id = eoanb_norway.27
	title = eoanb_norway.27.t
	desc = eoanb_norway.27.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.27.a

		SWE = {
			country_event = { id = eoanb_sweden.48 days = 7 }
		}
	}
}

country_event = { # Stattholderstriden: King Charles Gives Norway "Morgengave"
	id = eoanb_norway.28
	title = eoanb_norway.28.t
	desc = eoanb_norway.28.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			SWE = {
				# TODO: Make this its own event
				#country_event = { id = eoanb_norway.28 days = 2 }
			}
		}
	}

	option = {
		name = eoanb_norway.28.a

		SWE = {
			country_event = { id = eoanb_sweden.48 days = 7 }
		}
	}
}

country_event = { # Stattholderstriden: The Norwegian Storting Gives the Swedish King a Declaration
	id = eoanb_norway.29
	title = eoanb_norway.29.t
	desc = eoanb_norway.29.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.29.a

		SWE = {
			# TODO: Create rebel path.
		}
	}
}

country_event = { # Stattholderstriden: The Norwegian Storting Protests the King Backing Down on His Promise
	id = eoanb_norway.30
	title = eoanb_norway.30.t
	desc = eoanb_norway.30.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.30.a

		NOR = {
			country_event = { id = eoanb_norway.31 days = 7 }
		}
	}
}

country_event = { # Stattholderstriden: Leader Steps Down
	id = eoanb_norway.31
	title = eoanb_norway.31.t
	desc = eoanb_norway.31.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.31.a

		NOR = {
			complete_national_focus = NOR_focus_stattholderstriden_resignation

			NOR_transitional_government = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_TEMP_DESC"
						ideology = conserv
					}
				}
			}
			retire_country_leader = yes
		}
	}
}

country_event = { # Stattholderstriden: Frederik Stang Is the New First Minister (end)
	id = eoanb_norway.32
	title = eoanb_norway.32.t
	desc = eoanb_norway.32.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.32.a

	}
}

country_event = { # Stattholderstriden: We Won Stattholderstriden! (end)
	id = eoanb_norway.33
	title = eoanb_norway.33.t
	desc = eoanb_norway.33.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.33.a

		NOR = {
			complete_national_focus = NOR_focus_stattholderstriden_swedish_accept
		}
	}
}

country_event = { # The Status of Child Labor
	id = eoanb_norway.34
	title = eoanb_norway.34.t
	desc = eoanb_norway.34.d
	picture = GFX_report_event_nor_storting

	is_triggered_only = yes
	fire_only_once = yes

	option = { # Regulate child labor
		name = eoanb_norway.34.a

		NOR = {
			add_popularity = {
				ideology = centrism
				popularity = 0.05
			}
			add_stability = 0.05
			effect_increase_cl_laws = yes
		}
	}

	option = { # Do nothing
		name = eoanb_norway.34.b

		NOR = {
			add_popularity = {
				ideology = traditional_conservatism
				popularity = 0.05
			}
			add_stability = -0.05
		}
	}
}

country_event = { # The Future of Transport
	id = eoanb_norway.35
	title = eoanb_norway.35.t
	desc = eoanb_norway.35.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = { # We favor state investment
		name = eoanb_norway.35.a

		NOR = {
			set_country_flag = NOR_flag_transport_state
		}
	}

	option = { # We favor private investment
		name = eoanb_norway.35.b

		NOR = {
			set_country_flag = NOR_flag_transport_private
		}
	}
}

country_event = { # The Golden Age of Pomor
	id = eoanb_norway.36
	title = eoanb_norway.36.t
	desc = eoanb_norway.36.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_country_flag = NOR_flag_allow_tree_pormor
		mark_focus_tree_layout_dirty = yes
	}

	option = {
		name = eoanb_norway.36.a

		NOR = {
			complete_national_focus = NOR_focus_golden_pomor_trade
		}
	}

	option = {
		name = eoanb_norway.36.b

		NOR = {
			complete_national_focus = NOR_focus_golden_pomor_trade
		}
	}
}

country_event = { # Den Opplandske Krisen
	id = eoanb_norway.37
	title = eoanb_norway.37.t
	desc = eoanb_norway.37.d
	picture = GFX_report_event_generic_reading_newspaper

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = eoanb_norway.37.a

		NOR = {
			set_country_flag = NOR_flag_opplandske_krisen

			add_ideas = {
				NOR_idea_banking_crisis
				NOR_idea_lumber_crisis
			}
		}
	}
}

#Gunboats from English Dockyards Ready for Commission
country_event = {
	id = eoanb_norway.38
	title = eoanb_norway.38.t
	desc = eoanb_norway.38.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.38.a
		custom_effect_tooltip = NOR_event_order_gunboats_abroad_tt
		navy_experience = 5
		hidden_effect = {
			create_equipment_variant = {
				name = "Foreign Gunboats"
				type = ship_hull_gunboat_2
				name_group = DEN_GB_HISTORICAL
				parent_version = 0
				modules = {
					fixed_ship_battery_slot = ship_cannon_battery_1
					fixed_ship_fire_control_system_slot = fire_control_system_0
					fixed_ship_engine_slot = ship_engine_steam_screw_gunboat
					fixed_ship_secondaries_slot = empty
					fixed_ship_armor_slot = ship_armor_capital_hardwood_0
					mid_1_custom_slot = empty
					mid_2_custom_slot = empty
					rear_1_custom_slot = empty
				}
			}
			load_oob = NOR_foreign_gunboats
		}
	}
}

#Gunboats from Norwegian Dockyards Ready for Commission
country_event = {
	id = eoanb_norway.39
	title = eoanb_norway.39.t
	desc = eoanb_norway.39.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.39.a
		custom_effect_tooltip = NOR_event_order_gunboats_domestically_tt
		navy_experience = 5
		hidden_effect = {
			create_equipment_variant = {
				name = "Domestic Gunboats"
				type = ship_hull_gunboat_2
				name_group = DEN_GB_HISTORICAL
				parent_version = 0
				modules = {
					fixed_ship_battery_slot = ship_cannon_battery_1
					fixed_ship_fire_control_system_slot = fire_control_system_0
					fixed_ship_engine_slot = ship_engine_steam_screw_gunboat
					fixed_ship_secondaries_slot = empty
					fixed_ship_armor_slot = ship_armor_capital_hardwood_0
					mid_1_custom_slot = empty
					mid_2_custom_slot = empty
					rear_1_custom_slot = empty
				}
			}
			load_oob = NOR_domestic_gunboats
		}
	}
}

#Kong Sverre Ready for Commission
country_event = {
    id = eoanb_norway.40
    title = eoanb_norway.40.t
    desc = eoanb_norway.40.d
    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = eoanb_norway.40.a
        navy_experience = 5
        hidden_effect = {
			create_equipment_variant = {
				name = "Kong Sverre Klasse"
				type = ship_hull_frigate_1
				name_group = NOR_FRI_HISTORICAL_1
				parent_version = 0
				modules = {
					fixed_ship_fire_control_system_slot = fire_control_system_0
					fixed_ship_engine_slot = ship_engine_steam_screw_cruiser
					fixed_ship_armor_slot = ship_armor_capital_hardwood_0
					fixed_ship_battery_slot = ship_cannon_battery_1
					front_1_custom_slot = ship_cannon_battery_0
				}
			}
			load_oob = NOR_kong_sverre
        }
    }
}

#Norwegian Royal Guard
country_event = {
	id = eoanb_norway.41
	title = eoanb_norway.41.t
	desc = eoanb_norway.41.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.41.a
		add_political_power = -50
		set_temp_variable = { NOR_loyalty_change = 2.5 }
		NOR_scripted_effect_loyalty_change = yes
		SWE = {
			load_oob = NOR_Royal_Guard
		}
	}

	option = {
		name = eoanb_norway.41.b
		add_political_power = 50
		set_temp_variable = { NOR_loyalty_change = -2.5 }
		NOR_scripted_effect_loyalty_change = yes
	}
}

#Traditional Army
country_event = {
	id = eoanb_norway.42
	title = eoanb_norway.42.t
	desc = eoanb_norway.42.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.42.a
	}

	option = {
		name = eoanb_norway.42.b
	}
}

#Future Army
country_event = {
	id = eoanb_norway.43
	title = eoanb_norway.43.t
	desc = eoanb_norway.43.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.43.a
	}

	option = {
		name = eoanb_norway.43.b
	}
}

# Unlocking the big four (Lie, Bjørnson, Ibsen, and Kielland)
country_event = {
	id = eoanb_norway.44
	title = eoanb_norway.44.t
	desc = eoanb_norway.44.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = eoanb_norway.44.a

		NOR = {
			add_advisor_role = {
				character = NOR_alexander_kielland
				advisor = {
					slot = political_advisor
					idea_token = NOR_advisor_alexander_kielland
					cost = 100
					traits = {
						NOR_trait_hero_of_working_man
					}
				}
				activate = yes
			}

			add_advisor_role = {
				character = NOR_bjornstjerne_bjornson
				advisor = {
					slot = political_advisor
					idea_token = NOR_advisor_bjornstjerne_bjornson
					cost = 100
					traits = {
						NOR_trait_face_of_nor_culture
					}
					modifier = {
						stability_factor = 0.10
						war_support_factor = 0.10
					}
				}
				activate = yes
			}

			add_advisor_role = {
				character = NOR_henrik_ibsen
				advisor = {
					slot = political_advisor
					idea_token = NOR_advisor_henrik_ibsen
					cost = 100
					traits = {
						NOR_trait_et_dukkehjem
					}
				}
				activate = yes
			}

			add_advisor_role = {
				character = NOR_jonas_lie
				advisor = {
					slot = political_advisor
					idea_token = NOR_advisor_jonas_lie
					cost = 100
					traits = {
						NOR_trait_hjemmets_dikter
					}
				}
				activate = yes
			}
		}
	}
}

country_event = { # Hans Christian Heg is dead
	id = eoanb_norway.45
	title = eoanb_norway.45.t
	desc = eoanb_norway.45.d
	picture = GFX_report_event_hans_christian_heg

	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

	option = {
		name = eoanb_norway.45.a

		add_stability = -0.01
	}
}

### Parliament Votes (eoanb_norway.301-350)

country_event = { # Vogt: Vote of Confidence
	id = eoanb_norway.301
	title = eoanb_norway.301.t
	desc = eoanb_norway.301.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	hidden = yes

	immediate = {
		set_variable = {
			var = current_reform_id
			value = -1								# This allows the system to detect a custom vote in progress
		}

		reset_approval_arrays = yes					# Resets all of the approvals
		set_1_approval_highly_disagree = yes
		set_2_approval_neutral = yes
		set_3_approval_agree = yes
		set_4_approval_highly_agree = yes

		set_vote_cul = yes							# Determines what type of legislation this is, and what values of the ideologies' wishlist will be considered (cul, eco, dem, war, bud)
		compute_voting_approval = yes				# Calculates the approvals

		compute_number_seats_tot = yes				# Calculates the total number of seats in the current Parliament
		compute_number_seats_approve_est = yes		# Estimates the number of seats that will vote yes for the vote
	}

	option = { # Let's vote in a month
		name = eoanb_norway.301.a

		country_event = {
			id = eoanb_norway.302			# Sets the custom result event for your custom law
			days = 31
		}
	}
}

country_event = { # Vogt: Vote of Confidence - results
	id = eoanb_norway.302
	title = eoanb_norway.302.t
	desc = eoanb_norway.302.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			calculate_vote_result = yes							# Do all the calcultations for the vote, and outputs a flag (eoanb_reform_vote_success, eoanb_reform_vote_failure, eoanb_reform_vote_tie)
		}
	}

	option = { # It's a success!
		name = eoanb_norway.302.a
		trigger = {
			has_country_flag = eoanb_reform_vote_success
		}
		clr_country_flag = eoanb_reform_vote_success
		set_variable = {
			var = current_reform_id
			value = 0
		}

		NOR = {
			complete_national_focus = NOR_focus_vogt_vote_success
		}
	}

	option = { # It's a failure...
		name = eoanb_norway.302.b
		trigger = {
			has_country_flag = eoanb_reform_vote_failure
		}
		clr_country_flag = eoanb_reform_vote_failure
		set_variable = {
			var = current_reform_id
			value = 0
		}

		NOR = {
			complete_national_focus = NOR_focus_vogt_vote_fail
		}
	}

	option = { # It's a tie.
		name = eoanb_norway.302.c
		trigger = {
			has_country_flag = eoanb_reform_vote_tie
		}
		clr_country_flag = eoanb_reform_vote_tie
		set_variable = {
			var = current_reform_id
			value = 0
		}

		NOR = {
			complete_national_focus = NOR_focus_vogt_vote_fail
		}
	}
}
