add_namespace = serbia

country_event = { # Ljotic dies
	id = serbia.0
	title = serbia.0.t
	desc = serbia.0.d
	picture = GFX_report_event_austin_cambridge

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.0" }

	option = {
		name = serbia.0.a
		effect_tooltip = {
			kill_country_leader = yes
		}
		set_politics = {
			ruling_party = ultranationalism
		}
		set_popularities = {
			ultranationalism = 40
			national_socialism = 35
			fascism = 17
			despotism = 8
		}
		hidden_effect = {
			promote_character = SER_Dragomir_Jovanovic
			add_country_leader_role = {
				character = SER_Jakov_Ljotic
				country_leader = {
					desc = "POLITICS_JAKOV_LJOTIC_DESC"
					expire = "1999.1.1.1"
					ideology = national_socialism_clerical_fascism_subtype
					traits = { }
				}
				promote_leader = yes
			}
		}
		country_event = { id = serbia.1 days = 5 }
	}
}

country_event = { # CIVIL WAR NOW!!! GNS vs ASNOS
	id = serbia.1
	title = serbia.1.t
	desc = serbia.1.d
	picture = GFX_report_event_austin_cambridge

	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event serbia.1"
		BUL = {
			country_event = { id = BUL.1 days = 60 }
		}
		SER_blow_up_the_country = yes
	}
	option = { # Only one option
		name = "CIVIL WAR!!!!!!"
		if = {
			limit = {
				has_game_rule = {
					rule = SERBIA_CIVIL_WAR_OUTCOME
					option = SERBIA_CIVIL_WAR_OUTCOME_SER
				}
			}
			SER = { apply_war_buff_with_5_divisions = yes }
		}
		else_if = {
			limit = {
				has_game_rule = {
					rule = SERBIA_CIVIL_WAR_OUTCOME
					option = SERBIA_CIVIL_WAR_OUTCOME_GMS
				}
			}
			GMS = { apply_war_buff_with_5_divisions = yes }
		}
		every_country = {
			limit = { is_ai = no }
			news_event = { id = SERBIA_NEWS.1 days = 1 }
		}
	}
}

# serbia.2 is unused

country_event = { # ASNOS victory post war
	id = serbia.3
	title = serbia.3.t
	desc = serbia.3.desc

	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event serbia.3"
		clr_global_flag = SER_CW_ongoing
	}

	option = { # Young Guard
		name = serbia.3.a
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_COMMUNIST_RANKOVIC }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_COMMUNIST_TITO }
			}
		}
		set_country_flag = cosic_in_charge
		set_popularities = {
			communist = 6
			socialist = 7
			progressivism = 4
			liberalism = 9
			liberal_conservatism = 7
			conservatism = 5
			paternalism = 56
			despotism = 6
		}
		set_party_name = {
			ideology = communist
			long_name = SER_hardliner_remnants_long
			name = SER_hardliner_remnants
		}
		set_party_name = {
			ideology = socialist
			long_name = SER_socialist_vic_party_long
			name = SER_socialist_vic_party
		}
		set_party_name = {
			ideology = progressivism
			long_name = SER_otpor_long
			name = SER_otpor
		}
		set_party_name = {
			ideology = liberalism
			long_name = SER_otpor_long
			name = SER_otpor
		}
		set_party_name = {
			ideology = liberal_conservatism
			long_name = SER_otpor_long
			name = SER_otpor
		}
		set_party_name = {
			ideology = conservatism
			long_name = SER_otpor_long
			name = SER_otpor
		}
		set_party_name = {
			ideology = paternalism
			long_name = SER_socialist_party_democratic_long
			name = SER_socialist_party_democratic
		}
		set_party_name = {
			ideology = despotism
			long_name = SER_chetniks_remnants_long
			name = SER_chetniks_remnants
		}
		promote_character = SER_Marko_Nikezic
		promote_character = {
			character = SER_Borislav_Pekic
			ideology = liberalism_national_liberal_subtype
		}
		promote_character = {
			character = SER_Borislav_Pekic
			ideology = liberal_conservatism_big_tent_subtype
		}
		promote_character = SER_Nikola_Milosevic
		promote_character = SER_Veljko_Guberina
		promote_character = SER_Dobrica_Cosic
		add_country_leader_role = {
			character = SER_Various_Leaders
			country_leader = {
				expire = "1999.1.1.1"
				ideology = communist_subtype
				traits = { }
			}
			promote_leader = yes
		}
		add_country_leader_role = {
			character = SER_Various_Leaders
			country_leader = {
				expire = "1999.1.1.1"
				ideology = despotism_subtype
				traits = { }
			}
			promote_leader = yes
		}
		remove_ideas = {
			SER_A_Divided_Front
			SER_Death_To_Fascism_Freedom_To_The_People
			SER_Violence
		}
		remove_all_ministers = yes
		add_ideas = {
			SER_Mihajlo_Markovic_hog
			SER_Borka_Vucic_for
			SER_Dragutin_Zelenovic_eco
			SER_Sejdo_Bajramovic_sec

			SER_Between_Revolutionaries_And_Royalists
			SER_Resurgent_Nationalism
			SER_SPS_Dominance
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_temp_variable = { gdp_growth_temp = 2.25 }
		econ_gdp_growth_change = yes
		country_event = { id = serbia.7 days = 1826 } # Second SPS election
		set_cosmetic_tag = SER_ASNOS_POST_WAR_YOUNG_SOCIALISTS
		set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Dirigisme }
		econ_subtype_change = yes
		every_country = {
			limit = { is_ai = no }
			news_event = { id = WORLD.1302 days = 1 }
		}
	}
	option = { # Rankovic
		name = serbia.3.b
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_YOUNG_GUARD }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_COMMUNIST_TITO }
			}
		}
		promote_character = {
			character = SER_Aleksandar_Rankovic
			ideology = communist_national_communism_subtype
		}
		SER_Aleksandar_Rankovic = {
			set_portraits = {
				civilian = {
					large = "gfx/leaders/SER/Portrait_Serbia_Aleksandar_Rankovic_postwar.png"
				}
			}
		}
		set_politics = {
			ruling_party = communist
			elections_allowed = no
		}
		set_popularities = {
			communist = 52
			socialist = 33
			progressivism = 9
			despotism = 6
		}
		set_party_name = {
			ideology = communist
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = socialist
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = progressivism
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = despotism
			long_name = SER_chetniks_remnants_long
			name = SER_chetniks_remnants
		}
		remove_ideas = SER_Violence
		add_ideas = {
			SER_Milos_against_Murad
			SER_Rebirth_of_a_Nation
		}
		#country_event = { id = serbia.6 days = 400 } # AVNOJ Party Conference
		set_cosmetic_tag = SER_ASNOS_POST_WAR_YUGOSLAV
		if = {
			limit = {
				has_global_flag = german_civil_war_end
				NOT = {
					has_global_flag = german_civil_war_goeringvic
				}
			}
			GER = {
				country_event = { id = serbia.100 days = 180 }
			}
		}
	}
	option = { # Copic
		name = serbia.3.c
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_YOUNG_GUARD }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = SOCIALIST_SER_CHAIRMAN_PATH option = SOCIALIST_SER_CHAIRMAN_PATH_COMMUNIST_RANKOVIC }
			}
		}
		promote_character = SER_Vladimir_Copic
		set_politics = {
			ruling_party = communist
			elections_allowed = no
		}
		set_popularities = {
			communist = 52
			socialist = 33
			progressivism = 9
			despotism = 6
		}
		set_party_name = {
			ideology = communist
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = socialist
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = progressivism
			long_name = SER_communist_party_yugoslav_SER_long
			name = SER_communist_party_yugoslav_SER
		}
		set_party_name = {
			ideology = despotism
			long_name = SER_chetniks_remnants_long
			name = SER_chetniks_remnants
		}
		remove_ideas = SER_Violence
		add_ideas = {
			SER_Milos_against_Murad
			SER_Rebirth_of_a_Nation
		}
		set_cosmetic_tag = SER_ASNOS_POST_WAR_YUGOSLAV
		if = {
			limit = {
				has_global_flag = german_civil_war_end
				NOT = {
					has_global_flag = german_civil_war_goeringvic
				}
			}
			GER = {
				country_event = { id = serbia.100 days = 180 }
			}
		}
	}
}

country_event = { #collab win
	id = serbia.4
	title = serbia.4.t
	desc = serbia.4.desc
	
	fire_only_once = yes
	is_triggered_only = yes

	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event serbia.4" 
		if = {
			limit = { GER = { owns_state = 52 } }  #checks if germany owns munich to determine if the civil war is over
			GER = {
				set_autonomy = {
					target = SER
					autonomy_state = autonomy_collaborator_puppet_state
				}
			}
			SER = {
				add_ideas = Pakt_Marionettenstaat
			}
		}
	}
	
	option { #Kingdom of Serbia (monarchy)
		name = serbia.4.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_ULNATI
					}
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_NATSOC
					}
				}
			}
		}
		set_politics = { ruling_party = ultranationalism }
		promote_character = SER_Momcilo_Dujic
		add_ideas = {
			SER_Return_Of_The_Kingdom
		}
		set_popularities = {
			ultranationalism = 45
			national_socialism = 35
			fascism = 6
			despotism = 14
		}
		set_cosmetic_tag = SER_KINGDOM
		
		every_country = {
			limit = { is_ai = no }
			news_event = { id = SERBIA_NEWS.2 days = 1 }
		}
	}
	option { #Independent State of Serbia (ultranationalism)
		name = serbia.4.b 
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_MONARC
					}
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_NATSOC
					}
				}
			}
		}
		set_politics = { ruling_party = ultranationalism }
		set_popularities = {
			ultranationalism = 40
			national_socialism = 35
			fascism = 17
			despotism = 8
		}
		promote_character = SER_Dragomir_Jovanovic
		add_ideas = {
			SER_Zealots_Conservatives_and_Conformists
		}
		set_cosmetic_tag = SER_JOVANOVIC
		set_temp_variable = { gdp_growth_temp = 1.15 }
		econ_gdp_growth_change = yes
		every_country = {
			limit = { is_ai = no }
			news_event = { id = SERBIA_NEWS.3 days = 1 }
		}
	}
	option { #Serbian Class Cooperative State (national_socialism)
		name = serbia.4.c
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_MONARC
					}
					has_game_rule = {
						rule = COLLAB_SERBIA_PATH
						option = COLLAB_SERBIA_PATH_ULNATI
					}
				}
			}
		}
		set_politics = {
			ruling_party = national_socialism
		}
		set_popularities = {
			ultranationalism = 34
			national_socialism = 46
			fascism = 14
			despotism = 6
		}
		add_ideas = {
			SER_All_For_One
		}
		set_cosmetic_tag = SER_JAKOV
		set_temp_variable = { gdp_growth_temp = 0.5 }
		econ_gdp_growth_change = yes
		every_country = {
			limit = { is_ai = no }
			news_event = { id = SERBIA_NEWS.4 days = 1 }
		}
	}
}

## serbia.5 and 6 are currently unused

country_event = { # haha no way SPS won again?? legit
	id = serbia.7
	title = serbia.7.t
	desc = serbia.7.desc

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.7" }

	option = {
		name = serbia.7.a
		add_popularity = { ideology = socialist popularity = -0.07 }
	}
}

country_event = { # Oil Crisis forces new elections
	id = serbia.8
	title = serbia.8.t
	desc = serbia.8.desc

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.8" }

	option = { # SPS wins for the third time
		name = serbia.8.a
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPS_SRS
					}
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPRING
					}
				}
			}
		}
		add_country_leader_role = {
			character = SER_Dobrica_Cosic
			country_leader = {
				expire = "1999.1.1.1"
				ideology = paternalism_anocracy_subtype
				traits = { }
			}
			promote_leader = yes
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_variable = { SER_SPS_support = party_popularity@paternalism }
		#add_popularity = { ideology = socialist popularity = var:SER_SPS_support }
		#set_political_party = {
		#	ideology = paternalism
		#	popularity = 0
		#}
		set_party_name = {
			ideology = paternalism
			long_name = SER_socialist_vic_party_long
			name = SER_socialist_vic_party
		}
		add_popularity = { ideology = socialist popularity = 0.1 }
		every_country = {
			limit = { is_ai = no }
			news_event = { id = WORLD.1306 days = 1 }
		}
		remove_all_ministers = yes
		fill_empty_minister_nochecks = yes
	}
	option = { # SPS-SRS coalition
		name = serbia.8.b
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPS
					}
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPRING
					}
				}
			}
		}
		add_country_leader_role = {
			character = SER_Dobrica_Cosic
			country_leader = {
				expire = "1999.1.1.1"
				ideology = paternalism_social_nationalism_subtype
				traits = { }
			}
			promote_leader = yes
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_popularities = {
			communist = 5
			socialist = 35
			progressivism = 4
			liberalism = 5
			liberal_conservatism = 6
			conservatism = 5
			paternalism = 35
			despotism = 5
		}
		set_party_name = {
			ideology = paternalism
			long_name = SER_paternalism_coalition_party_long
			name = SER_paternalism_coalition_party
		}
		set_party_name = {
			ideology = socialist
			long_name = SER_paternalism_coalition_party_long
			name = SER_paternalism_coalition_party
		}
		every_country = {
			limit = { is_ai = no }
			news_event = { id = WORLD.1307 days = 1 }
		}
		remove_all_ministers = yes
		fill_empty_minister_nochecks = yes
	}
	option = { # Serbian Spring
		name = serbia.8.c
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPS
					}
					has_game_rule = {
						rule = SOCIALIST_SER_ELECTIONS_UNREST
						option = SOCIALIST_SER_ELECTIONS_UNREST_SPS_SRS
					}
				}
			}
		}
		country_event = { id = serbia.10 days = 10 } # Serbian Spring
	}
}

## serbia.9 is unused

country_event = { # Serbian Spring
	id = serbia.10
	title = serbia.10.t
	desc = serbia.10.desc

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.10" }

	option = { # Provisional government
		name = serbia.10.a
		add_country_leader_role = {
			character = SER_Otpor_Provisional_Government
			country_leader = {
				expire = "1999.1.1.1"
				ideology = paternalism_provisional_government_subtype
				traits = { }
			}
			promote_leader = yes
		}
		remove_ideas = {
			SER_Between_Revolutionaries_And_Royalists
			SER_Resurgent_Nationalism
			SER_SPS_Dominance
			SER_Return_Of_The_Kingdom
			SER_Thin_Facade_Of_Constitutionalism_I
			SER_Thin_Facade_Of_Constitutionalism_II
		}
		remove_all_ministers = yes
		fill_empty_minister_nochecks = yes
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 3
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_party_name = {
			ideology = communist
			long_name = SER_communist_party_democratic_long
			name = SER_communist_party_democratic
		}
		set_party_name = {
			ideology = socialist
			long_name = SER_socialist_party_democratic_long
			name = SER_socialist_party_democratic
		}
		set_party_name = {
			ideology = progressivism
			long_name = SER_progressivism_party_democratic_long
			name = SER_progressivism_party_democratic
		}
		set_party_name = {
			ideology = liberalism
			long_name = SER_liberalism_party_democratic_long
			name = SER_liberalism_party_democratic
		}
		set_party_name = {
			ideology = liberal_conservatism
			long_name = SER_liberal_conservatism_party_democratic_long
			name = SER_liberal_conservatism_party_democratic
		}
		set_party_name = {
			ideology = conservatism
			long_name = SER_conservatism_party_democratic_long
			name = SER_conservatism_party_democratic
		}
		set_popularities = {
			communist = 8
			socialist = 14
			progressivism = 19
			liberalism = 20
			liberal_conservatism = 5
			conservatism = 20
			paternalism = 14
		}
		if = {
			limit = {
				SER = {
					has_cosmetic_tag = SER_ASNOS_POST_WAR_YOUNG_SOCIALISTS
				}
			}
			add_popularity = { ideology = paternalism popularity = 0.07 }
			add_popularity = { ideology = conservatism popularity = 0.02 }
			set_variable = { past_lead = 2 }
		}
		if = {
			limit = {
				SER = {
					has_cosmetic_tag = SER_KINGDOM
				}
			}
			add_popularity = { ideology = socialist popularity = 0.07 }
			add_popularity = { ideology = progressivism popularity = 0.02 }
			set_cosmetic_tag = SER_ASNOS_POST_WAR_YOUNG_SOCIALISTS
			set_variable = { past_lead = 1 }
		}
		country_event = { id = serbia.11 days = 90 } # Serbian Spring - Elections
		every_country = {
			limit = { is_ai = no }
			news_event = { id = WORLD.1308 days = 1 }
		}
	}
}

country_event = { # Serbian Spring - Elections
	id = serbia.11
	title = serbia.11.t
	desc = serbia.11.desc

	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event serbia.11"
		set_party_name = {
			ideology = paternalism
			long_name = SER_paternalism_party_democratic_long
			name = SER_paternalism_party_democratic
		}
	}
	option = { # DoS - DS (Liberal Conservative)
		name = serbia.11.a
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_SLS
					}
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_SRS
					}
				}
			}
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = liberal_conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		set_political_party = {
			ideology = liberal_conservatism
			popularity = 20
		}
		set_political_party = {
			ideology = liberalism
			popularity = 5
		}
	}
	option = { # DoS - SLS
		name = serbia.11.b
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_DS
					}
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_SRS
					}
				}
			}
		}
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = conservatism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		add_popularity = { ideology = conservatism popularity = 0.07 }
	}
	option = { # SRS
		name = serbia.11.c
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_DS
					}
					has_game_rule = {
						rule = SER_DEM_ELECTION
						option = SER_DEM_ELECTION_SLS
					}
				}
			}
		}
		trigger = { check_variable = { past_lead = 2 } }
		promote_character = SER_Veljko_Guberina
		meta_effect = { #sets up next election date in country ui
			text = {
				set_politics = {
					ruling_party = paternalism
					last_election = "[current_election_date]"
					elections_allowed = yes
					election_frequency = 60
				}
			}
			current_election_date = "[?global.date.GetDateStringNoHour]"
		}
		add_popularity = { ideology = paternalism popularity = 0.07 }
	}
}
country_event = { # "Serbia is Silent" - event for germany
	id = serbia.100
	title = serbia.100.t
	desc = serbia.100.d
	picture = GFX_report_event_GER_germania_1

	fire_only_once = yes
	is_triggered_only = yes
	trigger = { 
		NOT = {
			has_global_flag = german_civil_war_goeringvic
		}
		SER = {
			has_government = communist
		}
		NOT = { has_global_flag = german_civil_war_heydrichvic }
	}

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.100" }

	option = {
		name = serbia.100.a
		hidden_effect = {
			country_event = { id = serbia.101 days = 7 }
		}
	}
}
country_event = { # "Sentimental Collaborators" - event for germany
	id = serbia.101
	title = serbia.101.t
	desc = serbia.101.d
	picture = GFX_report_event_UKR_collab_parade

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.101" }

	option = {
		name = serbia.101.a
		hidden_effect = {
			country_event = { id = serbia.102 days = 7 }
		}
	}
}
country_event = { # "Enter Borivoje Jonic" - event for germany
	id = serbia.102
	title = serbia.102.t
	desc = serbia.102.d
	picture = GFX_report_event_SER_borivoje_jonic

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.102" }

	option = {
		name = serbia.102.a
		custom_effect_tooltip = GER_invading_SER
		hidden_effect = {
			country_event = { id = serbia.103 days = 14 }
		}
	}
}
country_event = { # "Operation Strafgericht II" - event for germany
	id = serbia.103
	title = serbia.103.t
	desc = serbia.103.d
	picture = GFX_report_event_GER_surrounded_germans

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.103" }

	option = {
		name = serbia.103.a
		declare_war_on = {
			target = SER
			type = annex_everything
		}
	}
}
country_event = { # "Tactics of Survival" - event for germany
	id = serbia.104
	title = serbia.104.t
	desc = serbia.104.d
	picture = GFX_report_event_GER_wine

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.104" }

	option = {
		name = serbia.104.a
	}
}

country_event = { # Serbia aligns with DemItaly if Cosic is in charge
	id = serbia.200
	title = serbia.200.t
	desc = serbia.200.d
	#picture = 

	fire_only_once = yes
	is_triggered_only = yes

	immediate = { log = "[GetDateText]: [Root.GetName]: event serbia.200" }

	option = {
		name = serbia.200.a
		if = { 
			limit = {
				has_country_leader = {
					character = SER_Dobrica_Cosic
					ruling_only = yes
				}
			}
			SER = {
				get_current_government_type = yes
				save_party_popularities = yes
			}
			ITA = {
				set_autonomy = {
					target = SER
					autonomy_state = autonomy_italy_associate
				}
			}
			SER = {
				restore_previous_government_type = yes
				apply_party_popularities = yes
			}
			if = {
				limit = { ITA = { is_in_faction_with = USA } }
				USA = { add_to_faction = SER }
				SER = { add_ideas = OFN_Dependent_Member }
			}
			else_if = {
				limit = { ITA = { is_in_faction_with = JAP } }
				JAP = { add_to_faction = SER }
				SER = { add_ideas = Sphere_Economic_Dependent }
			}
			econ_join_sphere_ITA = yes 
		}
	}
}