﻿add_namespace = scan_monetary_union

### SCANDINAVIA ECONOMY EVENTS ###

###Scandinavian Monetary Union
#DEN/SWE/NOR - Possibility of a Scandinavian Monetary Union - 01.03.1861
country_event = {
	id = scan_monetary_union.1
	title = scan_monetary_union.1.t
	desc = scan_monetary_union.1.d
	
	is_triggered_only = yes
	
	#Go ahead
	option = {
		name = scan_monetary_union.1.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = SDN_smu_discussions_present_effect_tt
		add_political_power = 20
		hidden_effect = {
			set_country_flag = SDN_smu_discussions_present_flag
		}
	}
	
	#Leave it be
	option = {
		name = scan_monetary_union.1.b
		ai_chance = { base = 0 }
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -20
		hidden_effect = {
			set_country_flag = SDN_smu_discussions_not_present_flag
		}
	}
}

#DEN/SWE/NOR - (First) Preliminary Meeting at Gothenburg - 01.03.1863
country_event = {
	id = scan_monetary_union.2
	title = scan_monetary_union.2.t
	desc = scan_monetary_union.2.d
		
	is_triggered_only = yes
	
	#A good start
	option = {
		name = scan_monetary_union.2.a
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
		}
		ai_chance = { base = 100 }
		add_political_power = 20
	}
	
	#Let them have their hypothetical discussions
	option = {
		name = scan_monetary_union.2.b
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { base = 50 }
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -10
	}
	
	#Perhaps we should join the next meeting?
	option = {
		name = scan_monetary_union.2.c
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { base = 50 }
		custom_effect_tooltip = SDN_smu_discussions_rejoin_effect_tt
		add_political_power = -20
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_not_present_flag
			set_country_flag = SDN_smu_discussions_present_flag
		}
	}
	
	#We made the wrong decision, let's drop out
	option = {
		name = scan_monetary_union.2.e
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
		}
		ai_chance = { base = 0 }
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -20
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			set_country_flag = SDN_smu_discussions_not_present_flag
		}
	}
}

#DEN/SWE/NOR - (Second) Preliminary Meeting at Stockholm - 26.06.1866
country_event = {
	id = scan_monetary_union.3
	title = scan_monetary_union.3.t
	desc = scan_monetary_union.3.d
		
	is_triggered_only = yes
	
	#Things are starting to get serious
	option = {
		name = scan_monetary_union.3.a
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
			NOT = { has_completed_focus = DEN_focus_our_future_germany }
		}
		ai_chance = { base = 100 }
		add_political_power = 30
	}
	
	#Let them continue to have their hypothetical discussions
	option = {
		name = scan_monetary_union.3.b
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { 
			base = 50
			modifier = {
				factor = 2
				has_completed_focus = DEN_focus_our_future_germany
			}
		}
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -15
	}
	
	#Perhaps we'd really like to join the next meeting?
	option = {
		name = scan_monetary_union.3.c
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
			NOT = { has_completed_focus = DEN_focus_our_future_germany }
		}
		ai_chance = { base = 50 }
		custom_effect_tooltip = SDN_smu_discussions_rejoin_for_real_effect_tt
		add_political_power = -20
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_not_present_flag
			set_country_flag = SDN_smu_discussions_present_flag
		}
	}
	
	#We made the wrong decision, let's drop out
	option = {
		name = scan_monetary_union.3.e
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
		}
		ai_chance = { 
			base = 0
			modifier = {
				add = 100
				has_completed_focus = DEN_focus_our_future_germany
			}
		}
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -30
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			set_country_flag = SDN_smu_discussions_not_present_flag
		}
	}
}

#DEN - Invite Swedish and Norwegian Protagonists to a Meeting in Copenhagen? - 01.07.1872
country_event = {
	id = scan_monetary_union.4
	title = scan_monetary_union.4.t
	desc = scan_monetary_union.4.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	trigger = {
		has_country_flag = SDN_smu_discussions_present_flag
		NOT = { has_completed_focus = DEN_focus_our_future_germany }
	}
	
	#Send the invitation
	option = {
		name = scan_monetary_union.4.a
		ai_chance = { base = 100 }
		complete_national_focus = DEN_focus_our_future_scandinavia
		NOR = { country_event = { id = scan_monetary_union.5 days = 14 } }
		SWE = { country_event = { id = scan_monetary_union.5 days = 14 } }
	}
	
	#Drop the project for now
	option = {
		name = scan_monetary_union.4.b
		ai_chance = { base = 0 }
		custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		add_political_power = -25
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			set_country_flag = SDN_smu_discussions_not_present_flag
			SWE = { country_event = { id = scan_monetary_union.8 } }
		}
	}
}

#SWE/NOR - Invitation to a Preliminary Monetary Union Meeting at Copenhagen
country_event = {
	id = scan_monetary_union.5
	title = scan_monetary_union.5.t
	desc = scan_monetary_union.5.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Accept the invitation
	option = {
		name = scan_monetary_union.5.a
		ai_chance = { 
			base = 100
			modifier = {
				factor = 0.25
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		DEN = { country_event = { id = scan_monetary_union.6 days = 5 random_days = 2 } }
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SDN_smu_discussions_not_present_flag
				}
				clr_country_flag = SDN_smu_discussions_not_present_flag
				set_country_flag = SDN_smu_discussions_present_flag
			}
		}
	}
	
	#Reject the invitation
	option = {
		name = scan_monetary_union.5.b
		ai_chance = { 
			base = 0
			modifier = {
				add = 75
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		if = {
			limit = {
				tag = SWE
			}
			custom_effect_tooltip = SDN_smu_discussions_failure_effect_tt
		}
		else_if = {
			limit = {
				tag = NOR
			}
			custom_effect_tooltip = SDN_smu_discussions_not_present_effect_tt
		}
		add_political_power = -25
		DEN = { country_event = { id = scan_monetary_union.7 days = 5 random_days = 2 } }
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SDN_smu_discussions_present_flag
				}
				clr_country_flag = SDN_smu_discussions_present_flag
				set_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
	}
}

#DEN/SWE - DEN/SWE/NOR Accepts Invitation
country_event = {
	id = scan_monetary_union.6
	title = scan_monetary_union.6.t
	desc = scan_monetary_union.6.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.6.a
		ai_chance = { base = 100 }
		add_political_power = 25
		if = {
			limit = {
				tag = DEN
				FROM = { tag = SWE }
			}
			hidden_effect = {
				DEN = { country_event = { id = scan_monetary_union.12 days = 14 } }
			}
		}
		else_if = {
			limit = {
				tag = SWE
			}
			hidden_effect = {
				SWE = { country_event = { id = scan_monetary_union.14 days = 14 } }
			}
		}
	}
}

#DEN/SWE - DEN/SWE/NOR Rejects Invitation
country_event = {
	id = scan_monetary_union.7
	title = scan_monetary_union.7.t
	desc = scan_monetary_union.7.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.7.a
		ai_chance = { base = 100 }
		add_political_power = -25
		if = {
			limit = {
				tag = DEN
				FROM = { tag = SWE }
			}
			hidden_effect = {
				DEN = { country_event = { id = scan_monetary_union.10 days = 14 } }
			}
		}
	}
}

#SWE - Invite Danish and Norwegian Protagonists to a Meeting in Stockholm? - 01.07.1872
country_event = {
	id = scan_monetary_union.8
	title = scan_monetary_union.8.t
	desc = scan_monetary_union.8.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	trigger = {
		NOT = { DEN = { has_country_flag = SDN_smu_discussions_present_flag } }
	}
	
	#Send the invitation
	option = {
		name = scan_monetary_union.8.a
		ai_chance = { base = 100 }
		NOR = { country_event = { id = scan_monetary_union.9 days = 14 } }
		DEN = { country_event = { id = scan_monetary_union.9 days = 14 } }
	}
	
	#Drop the project
	option = {
		name = scan_monetary_union.8.b
		ai_chance = { base = 0 }
		custom_effect_tooltip = SDN_smu_discussions_failure_effect_tt
		add_political_power = -25
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			set_country_flag = SDN_smu_discussions_not_present_flag
			hidden_effect = {
				DEN = { country_event = { id = scan_monetary_union.10 days = 14 } }
			}
		}
	}
}

#DEN/NOR - Invitation to a Preliminary Monetary Union Meeting at Stockholm
country_event = {
	id = scan_monetary_union.9
	title = scan_monetary_union.9.t
	desc = scan_monetary_union.9.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Accept the invitation
	option = {
		name = scan_monetary_union.9.a
		trigger = {
			NOT = { has_completed_focus = DEN_focus_our_future_germany }
		}
		ai_chance = { 
			base = 100
			modifier = {
				add = -60
				tag = DEN
			}
			modifier = {
				factor = 0.25
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		SWE = { country_event = { id = scan_monetary_union.6 days = 5 random_days = 2 } }
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SDN_smu_discussions_not_present_flag
				}
				clr_country_flag = SDN_smu_discussions_not_present_flag
				set_country_flag = SDN_smu_discussions_present_flag
			}
		}
	}
	
	#Reject the invitation
	option = {
		name = scan_monetary_union.9.b
		ai_chance = {
			base = 0
			modifier = {
				add = 75
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		custom_effect_tooltip = SDN_smu_discussions_potential_failure_effect_tt
		add_political_power = -25
		SWE = { country_event = { id = scan_monetary_union.7 days = 5 random_days = 2 } }
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SDN_smu_discussions_present_flag
				}
				clr_country_flag = SDN_smu_discussions_present_flag
				set_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
	}
}

#DEN - The Scandinavian Monetary Union Fails
country_event = {
	id = scan_monetary_union.10
	title = scan_monetary_union.10.t
	desc = scan_monetary_union.10.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = scan_monetary_union.10.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				OR = {
					has_country_flag = SDN_smu_discussions_not_present_flag
					has_completed_focus = DEN_focus_our_future_germany
				}
			}
			add_political_power = 10
		}
		else = {
			add_political_power = -50
			complete_national_focus = DEN_focus_our_future_germany
		}
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			clr_country_flag = SDN_smu_discussions_not_present_flag
			NOR = { country_event = { id = scan_monetary_union.11 } }
			SWE = { country_event = { id = scan_monetary_union.11 } }
			clr_global_flag = SDN_scandinavian_currency_rejected
			clr_global_flag = SDN_french_currency_rejected
			clr_global_flag = SDN_german_currency_rejected
			clr_global_flag = SDN_british_currency_rejected
		}
	}
}

#SWE/NOR - The Scandinavian Monetary Union Fails
country_event = {
	id = scan_monetary_union.11
	title = scan_monetary_union.11.t
	desc = scan_monetary_union.11.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.11.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
			add_political_power = 10
		}
		else = {
			add_political_power = -50
		}
		hidden_effect = {
			clr_country_flag = SDN_smu_discussions_present_flag
			clr_country_flag = SDN_smu_discussions_not_present_flag
		}
	}
}

#DEN - Prepare the Scandinavian Monetary Union Meeting at Copenhagen - around July/August 1872
country_event = {
	id = scan_monetary_union.12
	title = scan_monetary_union.12.t
	desc = scan_monetary_union.12.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = scan_monetary_union.12.a
		ai_chance = { base = 100 }
		country_event = { id = scan_monetary_union.13 days = 7 }
		NOR = { country_event = { id = scan_monetary_union.13 days = 7 } }
		SWE = { country_event = { id = scan_monetary_union.13 days = 7 } }
	}
}

#DEN/SWE/NOR - (Third) Preliminary Meeting at Copenhagen - around August 1872
country_event = {
	id = scan_monetary_union.13
	title = scan_monetary_union.13.t
	desc = scan_monetary_union.13.d
		
	is_triggered_only = yes
	
	#We should form a commission
	option = {
		name = scan_monetary_union.13.a
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
		}
		ai_chance = { base = 100 }
		add_political_power = 20
		hidden_effect = {
			if = {
				limit = {
					ROOT = { tag = DEN }
				}
				DEN = { set_country_flag = DEN_Scandinavian_Monetary_Union_flag }
			}
		}
	}
	
	#Let's see what the commission comes up with
	option = {
		name = scan_monetary_union.13.b
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { base = 100 }
		custom_effect_tooltip = SDN_smu_discussions_no_vote_effect_tt
		add_political_power = -20
		hidden_effect = {
			if = {
				limit = {
					ROOT = { tag = DEN }
				}
				DEN = { set_country_flag = DEN_Scandinavian_Monetary_Union_flag }
			}
		}
	}
}

#SWE - Prepare the Scandinavian Monetary Union Meeting at Stockholm - around July/August 1872
country_event = {
	id = scan_monetary_union.14
	title = scan_monetary_union.14.t
	desc = scan_monetary_union.14.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = scan_monetary_union.14.a
		ai_chance = { base = 100 }
		country_event = { id = scan_monetary_union.15 days = 7 }
		NOR = { country_event = { id = scan_monetary_union.15 days = 7 } }
		DEN = { country_event = { id = scan_monetary_union.15 days = 7 } }
	}
}

#SWE/DEN/NOR - (Third) Preliminary Meeting at Stockholm - around August 1872
country_event = {
	id = scan_monetary_union.15
	title = scan_monetary_union.15.t
	desc = scan_monetary_union.15.d
		
	is_triggered_only = yes
	
	#We should form a commission
	option = {
		name = scan_monetary_union.15.a
		trigger = {
			has_country_flag = SDN_smu_discussions_present_flag
		}
		ai_chance = { base = 100 }
		add_political_power = 20
		country_event = { id = scan_monetary_union.16 days = 60 }
	}
	
	#Let's see what the commission comes up with
	option = {
		name = scan_monetary_union.15.b
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { base = 100 }
		custom_effect_tooltip = SDN_smu_discussions_no_vote_effect_tt
		add_political_power = -20
		country_event = { id = scan_monetary_union.16 days = 60 }
	}
}

#DEN/SWE/NOR - The Scandinavian Currency Commission - around September 1872
country_event = {
	id = scan_monetary_union.16
	title = scan_monetary_union.16.t
	desc = scan_monetary_union.16.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.16.a
		ai_chance = { base = 100 }
		add_political_power = 10
		hidden_effect = {
			if = {
				limit = {
					tag = SWE
				}
				SWE = { country_event = { id = scan_monetary_union.17 days = 15 } }
			}
		}
	}
}

#SWE - Hidden Event to Determine the Commission's Suggestion - around September/October 1872
country_event = {
	id = scan_monetary_union.17
	title = scan_monetary_union.17.t
	desc = scan_monetary_union.17.d
		
	is_triggered_only = yes
	hidden = yes
	
	immediate = {
		clr_country_flag = SDN_smu_in_favor_flag
		clr_country_flag = SDN_smu_against_flag
		DEN = { clr_country_flag = SDN_smu_in_favor_flag }
		DEN = { clr_country_flag = SDN_smu_against_flag }
		NOR = { clr_country_flag = SDN_smu_in_favor_flag }
		NOR = { clr_country_flag = SDN_smu_against_flag }
	}
	
	option = {
		name = scan_monetary_union.17.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				AND = {
					DEN = {
						OR = {
							has_idea = DEN_idea_lost_second_schleswig_war
							has_idea = DEN_idea_lost_second_schleswig_war_2
							has_idea = DEN_idea_lost_second_schleswig_war_3
							has_idea = DEN_idea_lost_second_schleswig_war_4
							has_idea = DEN_idea_lost_second_schleswig_war_5
						}
					}
					PRS = {
						OR = {
							has_country_flag = eoanb_flag_won_luxembourg_crisis
							has_country_flag = eoanb_flag_won_fra_prs_war
						}
					}
					NOT = { has_global_flag = SDN_scandinavian_currency_rejected }
				}
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_scan_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				AND = {
					DEN = {
						OR = {
							has_idea = DEN_idea_lost_second_schleswig_war
							has_idea = DEN_idea_lost_second_schleswig_war_2
							has_idea = DEN_idea_lost_second_schleswig_war_3
							has_idea = DEN_idea_lost_second_schleswig_war_4
							has_idea = DEN_idea_lost_second_schleswig_war_5
						}
					}
					NOT = {
						PRS = {
							OR = {
								has_country_flag = eoanb_flag_won_luxembourg_crisis
								has_country_flag = eoanb_flag_won_fra_prs_war
							}
						}
					}
					NOT = { has_global_flag = SDN_french_currency_rejected }
				}
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_french_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				AND = {
					NOT = {
						DEN = {
							OR = {
								has_idea = DEN_idea_lost_second_schleswig_war
								has_idea = DEN_idea_lost_second_schleswig_war_2
								has_idea = DEN_idea_lost_second_schleswig_war_3
								has_idea = DEN_idea_lost_second_schleswig_war_4
								has_idea = DEN_idea_lost_second_schleswig_war_5
							}
						}
					}
					PRS = {
						OR = {
							has_country_flag = eoanb_flag_won_luxembourg_crisis
							has_country_flag = eoanb_flag_won_fra_prs_war
						}
					}
					NOT = { has_global_flag = SDN_german_currency_rejected }
				}
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_german_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				AND = {
					NOT = {
						DEN = {
							OR = {
								has_idea = DEN_idea_lost_second_schleswig_war
								has_idea = DEN_idea_lost_second_schleswig_war_2
								has_idea = DEN_idea_lost_second_schleswig_war_3
								has_idea = DEN_idea_lost_second_schleswig_war_4
								has_idea = DEN_idea_lost_second_schleswig_war_5
							}
						}
					}
					NOT = {
						PRS = {
							OR = {
								has_country_flag = eoanb_flag_won_luxembourg_crisis
								has_country_flag = eoanb_flag_won_fra_prs_war
							}
						}
					}
					NOT = { has_global_flag = SDN_british_currency_rejected }
				}
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_british_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				NOT = { has_global_flag = SDN_scandinavian_currency_rejected }
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.18 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_scan_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				has_global_flag = SDN_scandinavian_currency_rejected
				NOT = { has_global_flag = SDN_french_currency_rejected }
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.19 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_french_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				has_global_flag = SDN_scandinavian_currency_rejected
				has_global_flag = SDN_french_currency_rejected
				NOT = { has_global_flag = SDN_german_currency_rejected }
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.20 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_german_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else_if = {
			limit = {
				has_global_flag = SDN_scandinavian_currency_rejected
				has_global_flag = SDN_french_currency_rejected
				has_global_flag = SDN_german_currency_rejected
				NOT = { has_global_flag = SDN_british_currency_rejected }
			}
			if = {
				limit = {
					DEN = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				DEN = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			if = {
				limit = {
					NOR = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				NOR = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			if = {
				limit = {
					SWE = { has_country_flag = SDN_smu_discussions_present_flag }
				}
				SWE = { country_event = { id = scan_monetary_union.21 days = 15 } }
			}
			SWE = { set_variable = { var = SDN_british_currency_yes_votes value = 0 } }
			SWE = { country_event = { id = scan_monetary_union.22 days = 45 } }
		}
		else = {
			DEN = { country_event = { id = scan_monetary_union.10 days = 7 } }
		}
	}
}

#DEN/SWE/NOR - A Scandinavian Gold Currency - around October 1872
country_event = {
	id = scan_monetary_union.18
	title = scan_monetary_union.18.t
	desc = scan_monetary_union.18.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Vote in favor
	option = {
		name = scan_monetary_union.18.a
		ai_chance = {
			base = 100
			modifier = {
				factor = 0.25
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_in_favor_flag
			SWE = { add_to_variable = { var = SDN_scan_currency_yes_votes value = 1 } }
		}
	}
	
	#Vote against
	option = {
		name = scan_monetary_union.18.b
		ai_chance = { 
			base = 0
			modifier = {
				add = 75
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_against_flag
		}
	}
}

#DEN/SWE/NOR - The French Gold Franc as a Unit of Account - around October 1872
country_event = {
	id = scan_monetary_union.19
	title = scan_monetary_union.19.t
	desc = scan_monetary_union.19.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Vote in favor
	option = {
		name = scan_monetary_union.19.a
		ai_chance = {
			base = 100
			modifier = {
				factor = 0.2
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_in_favor_flag
			SWE = { add_to_variable = { var = SDN_french_currency_yes_votes value = 1 } }
		}
	}
	
	#Vote against
	option = {
		name = scan_monetary_union.19.b
		ai_chance = { 
			base = 0
			modifier = {
				add = 80
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_against_flag
		}
	}
}

#DEN/SWE/NOR - The German Gold Mark as a Unit of Account - around October 1872
country_event = {
	id = scan_monetary_union.20
	title = scan_monetary_union.20.t
	desc = scan_monetary_union.20.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Vote in favor
	option = {
		name = scan_monetary_union.20.a
		ai_chance = {
			base = 100
			modifier = {
				factor = 0.1
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_in_favor_flag
			SWE = { add_to_variable = { var = SDN_german_currency_yes_votes value = 1 } }
		}
	}
	
	#Vote against
	option = {
		name = scan_monetary_union.20.b
		ai_chance = { 
			base = 0
			modifier = {
				add = 90
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_against_flag
		}
	}
}

#DEN/SWE/NOR - The British Pound as a Unit of Account - around October 1872
country_event = {
	id = scan_monetary_union.21
	title = scan_monetary_union.21.t
	desc = scan_monetary_union.21.d
		
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Vote in favor
	option = {
		name = scan_monetary_union.21.a
		ai_chance = {
			base = 100
			modifier = {
				factor = 0.15
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_in_favor_flag
			SWE = { add_to_variable = { var = SDN_british_currency_yes_votes value = 1 } }
		}
	}
	
	#Vote against
	option = {
		name = scan_monetary_union.21.b
		ai_chance = { 
			base = 0
			modifier = {
				add = 85
				has_country_flag = SDN_smu_discussions_not_present_flag
			}
		}
		hidden_effect = {
			set_country_flag = SDN_smu_against_flag
		}
	}
}

#SWE - Hidden Event to Determine Voting on the Commission's Suggestion - around November 1872
country_event = {
	id = scan_monetary_union.22
	title = scan_monetary_union.22.t
	desc = scan_monetary_union.22.d
		
	is_triggered_only = yes
	hidden = yes
	
	option = {
		name = scan_monetary_union.22.a
		ai_chance = { base = 100 }
		trigger = {
			has_variable = SDN_scan_currency_yes_votes
		}
		if = {
			limit = {
				check_variable = { var = SDN_scan_currency_yes_votes value = 2 compare = greater_than_or_equals }
			}
			DEN = { country_event = { id = scan_monetary_union.23 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.23 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.23 days = 3 } }
		}
		else = {
			DEN = { country_event = { id = scan_monetary_union.24 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.24 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.24 days = 3 } }
			set_global_flag = SDN_scandinavian_currency_rejected
		}
	}
	
	option = {
		name = scan_monetary_union.22.b
		ai_chance = { base = 100 }
		trigger = {
			has_variable = SDN_french_currency_yes_votes
		}
		if = {
			limit = {
				check_variable = { var = SDN_french_currency_yes_votes value = 2 compare = greater_than_or_equals }
			}
			DEN = { country_event = { id = scan_monetary_union.23 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.23 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.23 days = 3 } }
		}
		else = {
			DEN = { country_event = { id = scan_monetary_union.24 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.24 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.24 days = 3 } }
			set_global_flag = SDN_french_currency_rejected
		}
	}
	
	option = {
		name = scan_monetary_union.22.c
		ai_chance = { base = 100 }
		trigger = {
			has_variable = SDN_german_currency_yes_votes
		}
		if = {
			limit = {
				check_variable = { var = SDN_german_currency_yes_votes value = 2 compare = greater_than_or_equals }
			}
			DEN = { country_event = { id = scan_monetary_union.23 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.23 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.23 days = 3 } }
		}
		else = {
			DEN = { country_event = { id = scan_monetary_union.24 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.24 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.24 days = 3 } }
			set_global_flag = SDN_german_currency_rejected
		}
	}
	
	option = {
		name = scan_monetary_union.22.e
		ai_chance = { base = 100 }
		trigger = {
			has_variable = SDN_british_currency_yes_votes
		}
		if = {
			limit = {
				check_variable = { var = SDN_british_currency_yes_votes value = 2 compare = greater_than_or_equals }
			}
			DEN = { country_event = { id = scan_monetary_union.23 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.23 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.23 days = 3 } }
		}
		else = {
			DEN = { country_event = { id = scan_monetary_union.24 days = 3 } }
			NOR = { country_event = { id = scan_monetary_union.24 days = 3 } }
			SWE = { country_event = { id = scan_monetary_union.24 days = 3 } }
			set_global_flag = SDN_british_currency_rejected
		}
	}
}

#DEN/SWE/NOR - Commission Suggestion Successful - around December 1872
country_event = {
	id = scan_monetary_union.23
	title = scan_monetary_union.23.t
	desc = scan_monetary_union.23.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.23.a
		trigger = {
			has_country_flag = SDN_smu_in_favor_flag
		}
		ai_chance = { base = 100 }
		add_political_power = 25
		country_event = { id = scan_monetary_union.25 days = 7 }
	}
	
	option = {
		name = scan_monetary_union.23.b
		trigger = {
			OR = {
				has_country_flag = SDN_smu_discussions_not_present_flag
				has_country_flag = SDN_smu_against_flag
			}
		}
		ai_chance = { base = 100 }
		add_political_power = -25
		country_event = { id = scan_monetary_union.25 days = 7 }
	}
	
	option = {
		name = scan_monetary_union.23.c
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
			NOT = { has_country_flag = SDN_smu_in_favor_flag }
		}
		ai_chance = { base = 100 }
		add_political_power = -50
		country_event = { id = scan_monetary_union.25 days = 7 }
	}
}

#DEN/SWE/NOR - Commission Suggestion Not Successful - around December 1872
country_event = {
	id = scan_monetary_union.24
	title = scan_monetary_union.24.t
	desc = scan_monetary_union.24.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.24.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_country_flag = SDN_smu_discussions_present_flag
				has_country_flag = SDN_smu_in_favor_flag
			}
			add_political_power = -25
		}
		
	}
}

#DEN/SWE/NOR - The Specifics Have Been Agreed Upon - around December 1872
country_event = {
	id = scan_monetary_union.25
	title = scan_monetary_union.25.t
	desc = scan_monetary_union.25.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.25.a
		trigger = {
			has_country_flag = SDN_smu_in_favor_flag
		}
		ai_chance = { base = 100 }
		unlock_decision_tooltip = SDN_decision_ratify_monetary_union_treaty
		if = {
			limit = {
				tag = DEN
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_flag
			}
		}
		if = {
			limit = {
				tag = NOR
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_flag
			}
		}
		if = {
			limit = {
				tag = SWE
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_flag
			}
		}
	}
	
	option = {
		name = scan_monetary_union.25.b
		trigger = {
			has_country_flag = SDN_smu_against_flag
		}
		ai_chance = { base = 100 }
		unlock_decision_tooltip = SDN_decision_ratify_monetary_union_treaty_overruled
		if = {
			limit = {
				tag = DEN
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_overruled_flag
			}
		}
		if = {
			limit = {
				tag = NOR
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_overruled_flag
			}
		}
		if = {
			limit = {
				tag = SWE
			}
			hidden_effect = {
				set_country_flag = SDN_ready_to_ratify_overruled_flag
			}
		}
	}
	
	option = {
		name = scan_monetary_union.25.c
		trigger = {
			has_country_flag = SDN_smu_discussions_not_present_flag
		}
		ai_chance = { base = 100 }
		hidden_effect = {
			set_country_flag = SDN_join_after_formation_flag
		}
	}
}

#DEN/SWE/NOR - A Different Solution? - around December 1872
country_event = {
	id = scan_monetary_union.26
	title = scan_monetary_union.26.t
	desc = scan_monetary_union.26.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.26.a
		ai_chance = { base = 100 }
		hidden_effect = {
			if = {
				limit = {
					tag = SWE
				}
				SWE = { country_event = { id = scan_monetary_union.17 days = 30 } }
			}
		}
	}
}

#DEN/SWE/NOR - Hidden Event to Determine the Conditions Are Met
country_event = {
	id = scan_monetary_union.27
	title = scan_monetary_union.27.t
	desc = scan_monetary_union.27.d
		
	is_triggered_only = yes
	hidden = yes
	
	option = {
		name = scan_monetary_union.27.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				AND = {
					DEN = { has_country_flag = SDN_smu_ratification_successful_flag }
					SWE = { has_country_flag = SDN_smu_ratification_successful_flag }
					NOR = { 
						OR = {
							NOT = { 
								OR = {
									has_country_flag = SDN_ready_to_ratify_flag
									has_country_flag = SDN_ready_to_ratify_overruled_flag
								}
							}
							has_country_flag = SDN_smu_ratification_unsuccessful_flag 
						}
					}
				}
			}
			DEN = { country_event = { id = scan_monetary_union.28 days = 7 } }
			SWE = { country_event = { id = scan_monetary_union.28 days = 7 } }
		}
		else_if = {
			limit = {
				AND = {
					NOR = { has_country_flag = SDN_smu_ratification_successful_flag }
					SWE = { has_country_flag = SDN_smu_ratification_successful_flag }
					DEN = { 
						OR = {
							NOT = { 
								OR = {
									has_country_flag = SDN_ready_to_ratify_flag
									has_country_flag = SDN_ready_to_ratify_overruled_flag
								}
							}
							has_country_flag = SDN_smu_ratification_unsuccessful_flag 
						}
					}
				}
			}
			NOR = { country_event = { id = scan_monetary_union.28 days = 7 } }
			SWE = { country_event = { id = scan_monetary_union.28 days = 7 } }
		}
		else_if = {
			limit = {
				AND = {
					DEN = { has_country_flag = SDN_smu_ratification_successful_flag }
					NOR = { has_country_flag = SDN_smu_ratification_successful_flag }
					SWE = { has_country_flag = SDN_smu_ratification_successful_flag }
				}
			}
			DEN = { country_event = { id = scan_monetary_union.28 days = 7 } }
			NOR = { country_event = { id = scan_monetary_union.28 days = 7 } }
			SWE = { country_event = { id = scan_monetary_union.28 days = 7 } }
		}
	}
}

#DEN/SWE/NOR - Monetary Union Treaty Ratified - around March 1873
country_event = {
	id = scan_monetary_union.28
	title = scan_monetary_union.28.t
	desc = scan_monetary_union.28.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.28.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				NOT = {
					has_idea = SDN_idea_scandinavian_monetary_union_1
					has_idea = SDN_idea_scandinavian_monetary_union_2
					has_idea = SDN_idea_scandinavian_monetary_union_3
				}
			}
			add_ideas = SDN_idea_scandinavian_monetary_union_1
		}
		if = {
			limit = {
				FROM = { 
					NOT = {
						has_idea = SDN_idea_scandinavian_monetary_union_1
						has_idea = SDN_idea_scandinavian_monetary_union_2
						has_idea = SDN_idea_scandinavian_monetary_union_3
					}
				}
			}
			FROM = { add_ideas = SDN_idea_scandinavian_monetary_union_1 }
		}
	}
}

#DEN/SWE/NOR - Wants to Join Monetary Union
country_event = {
	id = scan_monetary_union.29
	title = scan_monetary_union.29.t
	desc = scan_monetary_union.29.d
		
	is_triggered_only = yes
	
	timeout_days = 5
	
	option = {
		name = scan_monetary_union.29.a
		ai_chance = { base = 90 }
		hidden_effect = {
			FROM = { add_to_variable = { var = SDN_join_yes_votes value = 1 } }
		}
	}
	
	option = {
		name = scan_monetary_union.29.b
		ai_chance = { base = 10 }
		FROM = { country_event = { id = scan_monetary_union.32 days = 12 } }
	}
}

#DEN/SWE/NOR - Hidden Event to Check Whether Request Was Granted
country_event = {
	id = scan_monetary_union.30
	title = scan_monetary_union.30.t
	desc = scan_monetary_union.30.d
		
	is_triggered_only = yes
	hidden = yes
	
	option = {
		name = scan_monetary_union.30.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				check_variable = { var = SDN_join_yes_votes value = 2 compare = equals }
			}
			country_event = { id = scan_monetary_union.31 days = 4 }
		}
		else = {
			country_event = { id = scan_monetary_union.32 days = 4 }
		}
		hidden_effect = {
			clear_variable = SDN_join_yes_votes
		}
	}
}

#DEN/SWE/NOR - Request to Join Monetary Union Granted
country_event = {
	id = scan_monetary_union.31
	title = scan_monetary_union.31.t
	desc = scan_monetary_union.31.d
		
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = scan_monetary_union.31.a
		ai_chance = { base = 100 }
		unlock_decision_tooltip = SDN_decision_ratify_monetary_union_treaty_overruled
		hidden_effect = {
			set_country_flag = SDN_ready_to_ratify_overruled_flag
			clr_country_flag = SDN_join_after_formation_flag
		}
	}
}

#DEN/SWE/NOR - Request to Join Monetary Union Rejected
country_event = {
	id = scan_monetary_union.32
	title = scan_monetary_union.32.t
	desc = scan_monetary_union.32.d
		
	is_triggered_only = yes
	
	option = {
		name = scan_monetary_union.32.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = SDN_smu_request_rejected_effect_tt
		add_political_power = -10
	}
}

#		add_opinion_modifier = {
#			target = SWE 
#			modifier = medium_increase 
#		}