on_actions = {
	on_startup = {
		effect = {
			random_country = {
				clear_and_resize_newspaper_array = yes
				clear_non_special_newspaper_articles = yes
				populate_newspaper_with_random_articles = yes
				if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_greek_metaxas_coup_triggered }
						date > 1935.12.31
						date < 1936.8.5
						country_exists = GRE
					}
					choose_random_newspaper_main_and_side_article_slot = yes
					random_list = {
						66 = { }
						33 = {
							if = {
								limit = {
									NOT = { newspaper_any_special_article_is_in_article_slot = yes }
								}
								set_temp_variable = { article_id = 72 }
								set_id_for_article_index = yes
								set_global_flag = newspaper_article_for_greek_metaxas_coup_triggered
							}
						}
					}
				}
				set_variable = { global.newspaper_new_articles_number = 8 }
			}
			every_country = {
				limit = {
					is_ai = no
					NOT = { has_variable = show_newspaper_window }
				}
				set_variable = { show_newspaper_topbar_alert = 1 }
			}
			random_country = {
				reload_current_newspaper_for_everyone = yes
			}
		}
	}

	on_weekly = {
		effect = {
			# updating the newspaper
			if = {
				limit = {
					owns_state = 1
				}
				generate_new_weekly_newspaper_edition_effect = yes
			}
		}
	}

	on_daily = {
		effect = {
			if = {
				limit = {
					has_country_flag = newspaper_germany_declared_war_on_us
					has_variable = days_since_german_war_declaration
				}
				add_to_variable = { days_since_german_war_declaration = 1 }
			}
		}
	}

	# ROOT is declarer, FROM is war target
	on_declare_war = {
		effect = {
			hidden_effect = {
				if = {
					limit = {
						tag = GER
						has_civil_war = no
						has_government = fascism
						FROM = {
							OR = {
								tag = FRA
								tag = ENG
								tag = SOV
								tag = POL
							}
						}
					}
					FROM = {
						set_country_flag = newspaper_germany_declared_war_on_us
						set_variable = { days_since_german_war_declaration = 0 }
					}
				}
				if = {
					limit = {
						tag = GER
						FROM = {
							owns_state = 69
						}
					}
					set_global_flag = newspaper_germany_declared_for_sudetenland
				}
				if = {
					limit = {
						OR = {
							AND = {
								has_civil_war = yes
								civilwar_target = FROM
							}
							AND = {
								has_dlc = "La Resistance"
								original_tag = SPR
								has_global_flag = SPR_civil_war_startup
							}
						}
						FROM = {
							original_tag = ROOT
						}
					}
					if = {
						limit = {
							NOT = { is_in_array = { global.newspaper_articles = 97 } }
						}
						choose_random_newspaper_main_and_side_article_slot = yes
						if = {
							limit = {
								newspaper_any_special_article_is_in_article_slot = yes
							}
							choose_random_newspaper_main_and_side_article_slot = yes
						}
					}
					else = {
						for_each_loop = {
							array = global.newspaper_articles
							value = v
							index = i
							if = {
								limit = {
									check_variable = { v = 97 }
								}
								set_temp_variable = { article_index = i }
								set_temp_variable = { break = 1 }
							}
						}
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 97 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_ww2_start_triggered }
						tag = GER
						has_government = fascism
						has_completed_focus = GER_danzig_or_war
						FROM = {
							tag = POL
						}
					}
					set_newspaper_special_edition = yes
					set_global_flag = newspaper_article_for_ww2_start_triggered
					set_temp_variable = { article_index = 5 }
					set_temp_variable = { article_id = 91 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						tag = GER
						has_government = fascism
						has_completed_focus = GER_around_maginot
						FROM = {
							NOT = { has_country_flag = GER_declared_war_against_us }
							OR = {
								tag = LUX
								tag = BEL
								tag = HOL
							}
						}
					}
					FROM = {
						set_country_flag = GER_declared_war_against_us
					}
					if = {
						limit = {
							NOT = { has_global_flag = newspaper_article_for_attacking_benelux_nations_triggered }
						}
						set_global_flag = newspaper_article_for_attacking_benelux_nations_triggered
						choose_any_random_newspaper_article_slot = yes
						if = {
							limit = {
								newspaper_any_special_article_is_in_article_slot = yes
							}
							choose_any_random_newspaper_article_slot = yes
						}
						set_newspaper_special_edition = yes
						set_temp_variable = { article_id = 114 }
						set_id_for_article_index = yes
						reload_current_newspaper_for_everyone = yes
					}
				}
				else_if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_ger_sov_nap_broken_triggered }
						tag = GER
						has_opinion_modifier = MR_pact
						FROM = {
							has_opinion_modifier = MR_pact
						}
					}
					set_global_flag = newspaper_article_for_ger_sov_nap_broken_triggered
					choose_random_newspaper_main_and_side_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_random_newspaper_main_and_side_article_slot = yes
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 95 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_ger_sov_nap_broken_triggered }
						tag = SOV
						has_opinion_modifier = MR_pact
						FROM = {
							has_opinion_modifier = MR_pact
						}
					}
					set_global_flag = newspaper_article_for_ger_sov_nap_broken_triggered
					choose_random_newspaper_main_and_side_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_random_newspaper_main_and_side_article_slot = yes
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 96 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_marco_polo_bridge_incident_triggered }
						tag = JAP
						has_completed_focus = JAP_intervene_in_china
						FROM = {
							tag = CHI
						}
					}
					set_global_flag = newspaper_article_for_marco_polo_bridge_incident_triggered
					choose_any_random_newspaper_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_any_random_newspaper_article_slot = yes
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 120 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						NOT = { civilwar_target = FROM }
						NOT = { original_tag = FROM }
						OR = {
							AND = {
								NOT = { tag = FRA }
								NOT = { tag = ENG }
							}
							FROM = {
								NOT = { tag = GER }
							}
							AND = {
								has_global_flag = newspaper_event_for_rhineland_triggered
								NOT = { has_global_flag = newspaper_article_for_rhineland_normal_can_be_triggered }
								NOT = { has_global_flag = newspaper_article_for_rhineland_war_can_be_triggered }
								NOT = { has_global_flag = newspaper_article_for_rhineland_back_down_can_be_triggered }
							}
						}
					}
					if = {
						limit = {
							NOT = { is_in_array = { global.newspaper_articles = 51 } }
						}
						choose_any_random_newspaper_article_slot = yes
						if = {
							limit = {
								newspaper_any_special_article_is_in_article_slot = yes
							}
							choose_any_random_newspaper_article_slot = yes
						}
					}
					else = {
						for_each_loop = {
							array = global.newspaper_articles
							value = v
							index = i
							if = {
								limit = {
									check_variable = { v = 51 }
								}
								set_temp_variable = { article_index = i }
								set_temp_variable = { break = 1 }
							}
						}
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 51 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				# don't fire some articles, if country declared war
				if = {
					limit = {
						original_tag = GER
						NOT = { has_global_flag = newspaper_grosstraktor_story }
					}
					set_global_flag = newspaper_grosstraktor_story
				}
				if = {
					limit = {
						OR = {
							tag = GER
							tag = SOV
						}
						NOT = { has_global_flag = newspaper_ger_sov_nap_story }
					}
					set_global_flag = newspaper_ger_sov_nap_story
				}
			}
		}
	}

	# ROOT annexer, FROM annexed country
	on_annex = {
		effect = {
			if = {
				limit = {
					has_civil_war = no
					NOT = { original_tag = FROM }
					FROM = {
						has_civil_war = no
					}
				}
				if = {
					limit = {
						NOT = { has_global_flag = newspaper_article_for_annexing_cze_triggered }
						country_exists = ENG
						tag = GER
						has_war = no
						has_completed_focus = GER_demand_sudetenland
						owns_state = 69
						NOT = { has_global_flag = newspaper_germany_declared_for_sudetenland }
						has_completed_focus = GER_fate_of_czechoslovakia
						FROM = {
							tag = CZE
						}
					}
					set_newspaper_special_edition = yes
					set_global_flag = newspaper_article_for_annexing_cze_triggered
					set_temp_variable = { article_index = 5 }
					set_temp_variable = { article_id = 127 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
				else_if = {
					limit = {
						OR = {
							NOT = { original_tag = GER }
							FROM = {
								NOT = { tag = AUS }
							}
						}
					}
					if = {
						limit = {
							NOT = { is_in_array = { global.newspaper_articles = 106 } }
						}
						choose_random_newspaper_small_and_side_article_slot = yes
						if = {
							limit = {
								newspaper_any_special_article_is_in_article_slot = yes
							}
							choose_random_newspaper_small_and_side_article_slot = yes
						}
					}
					else = {
						for_each_loop = {
							array = global.newspaper_articles
							value = v
							index = i
							if = {
								limit = {
									check_variable = { v = 106 }
								}
								set_temp_variable = { article_index = i }
								set_temp_variable = { break = 1 }
							}
						}
					}
					if = {
						limit = {
							NOT = { newspaper_any_special_article_is_in_article_slot = yes }
						}
						set_newspaper_special_edition = yes
						set_temp_variable = { article_id = 106 }
						set_id_for_article_index = yes
						reload_current_newspaper_for_everyone = yes
					}
				}
			}
		}
	}

	# ROOT is new controller, FROM is old controller, FROM.FROM is state ID
	on_state_control_changed = {
		effect = {
			if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_auschwitz_triggered }
					FROM.FROM = {
						state = 88
					}
					has_war_with = FROM
					FROM = {
						original_tag = GER
						has_government = fascism
					}
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_auschwitz_triggered
				set_temp_variable = { article_index = 5 }
				set_temp_variable = { article_id = 71 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_liberation_of_paris_triggered }
					has_global_flag = fall_of_france
					OR = {
						tag = FRA
						is_in_faction_with = FRA
					}
					NOT = { is_subject_of = FROM }
					NOT = { is_in_faction_with = FROM }
					FROM = {
						original_tag = GER
					}
					FROM.FROM = {
						state = 16
					}
				}
				set_global_flag = newspaper_article_for_liberation_of_paris_triggered
				choose_random_newspaper_main_and_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_main_and_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 87 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_liberation_of_london_triggered }
					has_global_flag = fall_of_london_ger
					OR = {
						tag = ENG
						tag = USA
					}
					NOT = { is_subject_of = FROM }
					NOT = { is_in_faction_with = FROM }
					FROM = { original_tag = GER }
					FROM.FROM = { state = 126 }
				}
				set_global_flag = newspaper_article_for_liberation_of_london_triggered
				choose_random_newspaper_main_and_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_main_and_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 88 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_liberation_of_warsaw_triggered }
					has_global_flag = fall_of_warsaw_ger
					OR = {
						tag = POL
						tag = SOV
					}
					NOT = { has_war_with = POL }
					NOT = { is_subject_of = FROM }
					NOT = { is_in_faction_with = FROM }
					FROM = { original_tag = GER }
					FROM.FROM = { state = 10 }
				}
				set_global_flag = newspaper_article_for_liberation_of_warsaw_triggered
				choose_random_newspaper_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 89 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_liberation_of_berlin_triggered }
					OR = {
						tag = SOV
						tag = USA
						tag = ENG
						tag = FRA
					}
					has_defensive_war_with = FROM
					FROM = {
						original_tag = GER
						has_government = fascism
					}
					FROM.FROM = { state = 64 }
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_liberation_of_berlin_triggered
				set_temp_variable = { article_index = 5 }
				set_temp_variable = { article_id = 90 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_liberation_of_stalingrad_triggered }
					has_defensive_war_with = FROM
					FROM = {
						original_tag = GER
						has_government = fascism
					}
					FROM.FROM = {
						state = 217
						is_owned_by = ROOT
					}
				}
				set_global_flag = newspaper_article_for_liberation_of_stalingrad_triggered
				choose_random_newspaper_main_and_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_main_and_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 93 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_rape_of_nanjing_triggered }
					tag = JAP
					FROM = {
						tag = CHI
					}
					FROM.FROM = {
						state = 613
						is_owned_by = CHI
					}
				}
				set_global_flag = newspaper_article_for_rape_of_nanjing_triggered
				choose_any_random_newspaper_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_any_random_newspaper_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 121 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_buchenwald_triggered }
					FROM.FROM = {
						state = 60
					}
					has_war_with = FROM
					FROM = {
						original_tag = GER
						has_government = fascism
					}
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_buchenwald_triggered
				set_temp_variable = { article_index = 5 }
				set_temp_variable = { article_id = 165 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_invasion_of_italy_triggered }
					OR = {
						tag = ENG
						tag = USA
						tag = CAN
					}
					has_defensive_war_with = FROM
					FROM = {
						tag = ITA
					}
					FROM.FROM = {
						OR = {
							state = 115
							state = 156
							state = 117
						}
					}
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_invasion_of_italy_triggered
				set_temp_variable = { article_index = 5 }
				set_temp_variable = { article_id = 107 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			if = {
				limit = {
					tag = GER
					FROM = {
						tag = FRA
					}
					FROM.FROM = {
						NOT = { has_state_flag = newspaper_state_for_d_day }
						OR = {
							state = 14
							state = 15
							state = 785
							state = 30
							state = 23
							state = 19
						}
					}
				}
				FROM.FROM = {
					set_state_flag = newspaper_state_for_d_day
				}
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_d_day_triggered }
					country_exists = USA
					FROM = {
						tag = GER
						has_war_with = USA
					}
					FROM.FROM = {
						has_state_flag = newspaper_state_for_d_day
						is_owned_by = FRA
						USA = {
							divisions_in_state = {
								size > 0
								state = PREV
							}
						}
					}
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_d_day_triggered
				set_temp_variable = { article_index = 5 }
				set_temp_variable = { article_id = 103 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			if = {
				limit = {
					NOT = { is_in_array = { newspaper_articles = 71 } }
					NOT = { is_in_array = { newspaper_articles = 87 } }
					NOT = { is_in_array = { newspaper_articles = 88 } }
					NOT = { is_in_array = { newspaper_articles = 89 } }
					NOT = { is_in_array = { newspaper_articles = 90 } }
					NOT = { is_in_array = { newspaper_articles = 93 } }
					NOT = { is_in_array = { newspaper_articles = 103 } }
					NOT = { is_in_array = { newspaper_articles = 107 } }
					NOT = { is_in_array = { newspaper_articles = 121 } }
					has_civil_war = no
					FROM = { has_civil_war = no }
					has_war_with = FROM
					FROM.FROM = {
						NOT = { has_state_flag = newspaper_article_triggered_for_controller_change_to_@ROOT }
						OR = {
							state = 2
							state = 3
							state = 4
							state = 6
							state = 7
							state = 8
							state = 10
							state = 14
							state = 16
							state = 19
							state = 36
							state = 37
							state = 41
							state = 43
							state = 44
							state = 46
							state = 47
							state = 48
							state = 49
							state = 50
							state = 52
							state = 55
							state = 58
							state = 64
							state = 75
							state = 88
							state = 107
							state = 110
							state = 111
							state = 112
							state = 113
							state = 115
							state = 118
							state = 126
							state = 127
							state = 128
							state = 132
							state = 137
							state = 141
							state = 165
							state = 195
							state = 202
							state = 206
							state = 217
							state = 219
							state = 226
							state = 276
							state = 277
							state = 278
							state = 279
							state = 282
							state = 284
							state = 285
							state = 289
							state = 291
							state = 306
							state = 307
							state = 315
							state = 327
							state = 336
							state = 341
							state = 357
							state = 358
							state = 360
							state = 361
							state = 366
							state = 378
							state = 393
							state = 395
							state = 439
							state = 446
							state = 468
							state = 500
							state = 517
							state = 525
							state = 528
							state = 529
							state = 531
							state = 532
							state = 605
							state = 608
							state = 613
							state = 629
							state = 685
						}
					}
				}
				if = {
					limit = {
						NOT = { is_in_array = { global.newspaper_articles = 92 } }
					}
					choose_random_newspaper_small_and_side_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_random_newspaper_small_and_side_article_slot = yes
					}
				}
				else = {
					for_each_loop = {
						array = global.newspaper_articles
						value = v
						index = i
						if = {
							limit = {
								check_variable = { v = 92 }
							}
							set_temp_variable = { article_index = i }
							set_temp_variable = { break = 1 }
						}
					}
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 92 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
				FROM.FROM = {
					set_state_flag = newspaper_article_triggered_for_controller_change_to_@ROOT
				}
			}
		}
	}

	# ROOT is the country
	on_new_term_election = {
		effect = {
			set_country_flag = newspaper_article_for_election_can_be_triggered
		}
	}

	# ROOT is capitulated country, FROM is winner
	on_capitulation = {
		effect = {
			if = {
				limit = {
					has_country_flag = newspaper_germany_declared_war_on_us
					has_country_flag = { flag = newspaper_germany_declared_war_on_us days < 365 }
					FROM = {
						tag = GER
						has_government = fascism
					}
				}
				clr_country_flag = newspaper_germany_declared_war_on_us
				if = {
					limit = {
						NOT = { is_in_array = { global.newspaper_articles = 102 } }
					}
					choose_random_newspaper_main_and_side_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_random_newspaper_main_and_side_article_slot = yes
					}
				}
				else = {
					for_each_loop = {
						array = global.newspaper_articles
						value = v
						index = i
						if = {
							limit = {
								check_variable = { v = 102 }
							}
							set_temp_variable = { article_index = i }
							set_temp_variable = { break = 1 }
						}
					}
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 102 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					tag = GER
					has_government = fascism
					has_offensive_war_with = FROM
				}
				choose_random_newspaper_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 104 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					is_major = yes
				}
				if = {
					limit = {
						NOT = { is_in_array = { global.newspaper_articles = 85 } }
					}
					choose_any_random_newspaper_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_any_random_newspaper_article_slot = yes
					}
				}
				else = {
					for_each_loop = {
						array = global.newspaper_articles
						value = v
						index = i
						if = {
							limit = {
								check_variable = { v = 85 }
							}
							set_temp_variable = { article_index = i }
							set_temp_variable = { break = 1 }
						}
					}
				}
				if = {
					limit = {
						NOT = { newspaper_any_special_article_is_in_article_slot = yes }
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 85 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
			}
			if = {
				limit = {
					has_country_flag = newspaper_germany_declared_war_on_us
				}
				clr_country_flag = newspaper_germany_declared_war_on_us
				clear_variable = days_since_german_war_declaration
			}
		}
	}

	# ROOT is the country
	on_coup_succeeded = {
		effect = {
			set_country_flag = newspaper_article_for_coup_can_be_triggered
		}
	}

	# ROOT is winner, FROM gets annexed - This fires just before FROM gets annexed, meaning the country and everything it owns still exists. It will also fire on_annex and on_civil_war_end
	on_civil_war_end_before_annexation = {
		effect = {
			if = {
				limit = {
					NOT = {
						any_other_country = {
							original_tag = ROOT
							NOT = { tag = FROM }
							exists = yes
							has_war_with = ROOT
						}
					}
				}
				if = {
					limit = {
						NOT = { is_in_array = { global.newspaper_articles = 101 } }
					}
					choose_any_random_newspaper_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_any_random_newspaper_article_slot = yes
					}
				}
				else = {
					for_each_loop = {
						array = global.newspaper_articles
						value = v
						index = i
						if = {
							limit = {
								check_variable = { v = 101 }
							}
							set_temp_variable = { article_index = i }
							set_temp_variable = { break = 1 }
						}
					}
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 101 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
		}
	}

	# ROOT is winner, FROM is loser
	on_peaceconference_ended = {
		effect = {
			if = {
				limit = {
					has_civil_war = no
					NOT = { original_tag = FROM }
					FROM = {
						exists = yes
						NOT = { is_subject_of = ROOT }
						has_civil_war = no
					}
				}
				if = {
					limit = {
						NOT = { is_in_array = { global.newspaper_articles = 105 } }
					}
					choose_random_newspaper_small_and_side_article_slot = yes
					if = {
						limit = {
							newspaper_any_special_article_is_in_article_slot = yes
						}
						choose_random_newspaper_small_and_side_article_slot = yes
					}
				}
				else = {
					for_each_loop = {
						array = global.newspaper_articles
						value = v
						index = i
						if = {
							limit = {
								check_variable = { v = 105 }
							}
							set_temp_variable = { article_index = i }
							set_temp_variable = { break = 1 }
						}
					}
				}
				if = {
					limit = {
						OR = {
							NOT = { newspaper_any_special_article_is_in_article_slot = yes }
							check_variable = { global.newspaper_articles^article_index = 106 }
							check_variable = { global.newspaper_articles^article_index = 167 }
						}
					}
					set_newspaper_special_edition = yes
					set_temp_variable = { article_id = 105 }
					set_id_for_article_index = yes
					reload_current_newspaper_for_everyone = yes
				}
			}
		}
	}

	# ROOT is nation being puppeted, FROM is overlord
	on_puppet = {
		effect = {
			if = {
				limit = {
					NOT = { is_in_array = { global.newspaper_articles = 167 } }
				}
				choose_random_newspaper_small_and_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_small_and_side_article_slot = yes
				}
			}
			else = {
				for_each_loop = {
					array = global.newspaper_articles
					value = v
					index = i
					if = {
						limit = {
							check_variable = { v = 167 }
						}
						set_temp_variable = { article_index = i }
						set_temp_variable = { break = 1 }
					}
				}
			}
			if = {
				limit = {
					NOT = { newspaper_any_special_article_is_in_article_slot = yes }
				}
				set_newspaper_special_edition = yes
				set_temp_variable = { article_id = 167 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
		}
	}

	# ROOT is dropping country, FROM is the state
	on_nuke_drop = {
		effect = {
			if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_japan_nuke_triggered }
					FROM = {
						is_controlled_by = JAP
					}
				}
				set_temp_variable = { article_index = 5 }
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_first_nuke_triggered
				set_global_flag = newspaper_article_for_japan_nuke_triggered
				set_temp_variable = { article_id = 180 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_japan_second_nuke_triggered }
					has_global_flag = newspaper_article_for_japan_nuke_triggered
					FROM = {
						is_controlled_by = JAP
					}
				}
				set_temp_variable = { article_index = 5 }
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_japan_second_nuke_triggered
				set_temp_variable = { article_id = 181 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = newspaper_article_for_first_nuke_triggered }
				}
				choose_random_newspaper_main_and_side_article_slot = yes
				if = {
					limit = {
						newspaper_any_special_article_is_in_article_slot = yes
					}
					choose_random_newspaper_main_and_side_article_slot = yes
				}
				set_newspaper_special_edition = yes
				set_global_flag = newspaper_article_for_first_nuke_triggered
				set_temp_variable = { article_id = 117 }
				set_id_for_article_index = yes
				reload_current_newspaper_for_everyone = yes
			}
		}
	}
}