add_namespace = rksplusussr
add_namespace = rkspeacedeal
add_namespace = rksnews


country_event = {
	id = rkspeacedeal.1
	title = rkspeacedeal.1.t
	desc = rkspeacedeal.1.d
	picture = GFX_report_event_soviet_tanks_snow
	
	trigger = {
		original_tag = SOV
		has_war_with = GER
		surrender_progress > 0.70
		has_civil_war = no
		
		GER = {
			has_government = fascism
		}
		NOT = {
			controls_state = 219
			controls_state = 217
			controls_state = 195
		}
	} 

	mean_time_to_happen = { days = 4 }

	fire_only_once = yes

	#Surrender and offer territory
	option = {
		name = rkspeacedeal.1.a
		ai_chance = {
			base = 100
		}
		GER = {
			country_event = { id = rkspeacedeal.2 }
		}
		hidden_effect = {
			GER = {
				add_stability = 0.05
				add_war_support = 0.05
				
				white_peace = {
					tag = SOV
				}
				
			}
			
		}
		every_allied_country = {
			GER = {
				white_peace = {
					tag = PREV
				}
			}
		}
	}

	#Never give up!
	option = {
		name = rkspeacedeal.1.b
		ai_chance = {
			base = -10
		}
	}
}

country_event = {
	id = rkspeacedeal.2
	title = rkspeacedeal.2.t
	desc = rkspeacedeal.2.d
	picture = GFX_report_event_german_troops
	
	is_triggered_only = yes
	
	option = {
		name = rkspeacedeal.2.a
		ai_chance = {
			base = 50
		}
		
		add_stability = 0.05
		add_war_support = 0.05
		
		white_peace = SOV
		
		every_country = {
			limit = {
				has_war_with = SOV
			}
			
			diplomatic_relation = {
			country = SOV
			relation = non_aggression_pact
			active = yes
			}
			
			white_peace = SOV
		}
		
		SOV = {
			set_capital = {
				state = 653
				remember_old_capital = yes
			}
		
		
			hidden_effect = {
				country_event = {
					id = rksplusussr.1
					days = 90
				}
			}
		}

		#add_ideas = GER_eastern_chaos
		
		hidden_effect = {
		
			# POL
			if = {
				limit = {
					97 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
			} }
				}
				transfer_state = 97
			}
			
			if = {
				limit = {
					784 = { 
						owner = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
						} 
					}
				}
				transfer_state = 784
			}
			
			if = {
				limit = {
					96 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 96
			}
			
			if = {
				limit = {
					95 = { owner = {
								OR = {
									tag = SOV
									is_subject_of = SOV
								}
							}
							}
				}
				transfer_state = 95
			}
			
			if = {
				limit = {
					94 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 94
			}
			
			if = {
				limit = {
					93 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 93
			}
			
			if = {
				limit = {
					250 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 250
			}
			
			if = {
				limit = {
					91 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 91
			}
			
			if = {
				limit = {
					89 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 89
			}
			
			### LIT ###
			
			if = {
				limit = {
					189 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 189
			}
			
			if = {
				limit = {
					814 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 814
			}
			
			if = {
				limit = {
					11 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 11
			}
			
			if = {
				limit = {
					815 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 815
			}
			
			if = {
				limit = {
					188 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 188
			}
			
			### LAT ###
			
			if = {
				limit = {
					190 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 190
			}
			
			if = {
				limit = {
					809 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 809
			}
			
			if = {
				limit = {
					808 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 808
			}
			
			if = {
				limit = {
					810 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 810
			}
			
			if = {
				limit = {
					12 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 12
			}
		
			### EST ###
			
			if = {
				limit = {
					191 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 191
			}
		
			if = {
				limit = {
					13 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 13
			}
			
			if = {
				limit = {
					812 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 812
			}
			
			if = {
				limit = {
					813 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 813
			}
			
			if = {
				limit = {
					811 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 811
			}
			
			### BLR ###
			
			if = {
				limit = {
					207 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 207
			}
			
			if = {
				limit = {
					206 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 206
			}
			
			if = {
				limit = {
					204 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 204
			}
			
			if = {
				limit = {
					194 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 194
			}
			
			if = {
				limit = {
					241 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 241
			}
			
			### UKR ###
			
			if = {
				limit = {
					199 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 199
			}
			
			if = {
				limit = {
					201 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 201
			}
			
			if = {
				limit = {
					198 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 198
			}
			
			if = {
				limit = {
					202 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 202
			}
			
			if = {
				limit = {
					203 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 203
			}
			
			if = {
				limit = {
					197 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 197
			}
			
			if = {
				limit = {
					834 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 834
			}
			
			if = {
				limit = {
					192 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 192
			}
			
			if = {
				limit = {
					193 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 193
			}
			
			if = {
				limit = {
					225 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 225
			}
			
			if = {
				limit = {
					259 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 259
			}
			
			if = {
				limit = {
					221 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 221
			}
			
			if = {
				limit = {
					226 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 226
			}
			
			if = {
				limit = {
					200 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 200
			}
			
			if = {
				limit = {
					196 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 196
			}
			
			if = {
				limit = {
					227 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 227
			}
			
			if = {
				limit = {
					228 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 228
			}
			
			### SOV ###
			
			if = {
				limit = {
					137 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 137
			}
			
			if = {
				limit = {
					195 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 195
			}
			
			if = {
				limit = {
					244 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 244
			}
			
			if = {
				limit = {
					208 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 208
			}
			
			if = {
				limit = {
					209 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 209
			}
			
			if = {
				limit = {
					263 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 263
			}
			
			if = {
				limit = {
					264 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 264
			}
			
			if = {
				limit = {
					210 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 210
			}
			
			if = {
				limit = {
					246 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 246
			}
			
			if = {
				limit = {
					247 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 247
			}
			
			if = {
				limit = {
					242 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 242
			}
			
			if = {
				limit = {
					243 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 243
			}
			
			if = {
				limit = {
					248 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 248
			}
			
			if = {
				limit = {
					253 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 253
			}
			
			if = {
				limit = {
					219 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 219
			}
			
			if = {
				limit = {
					205 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 205
			}
			
			if = {
				limit = {
					224 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 224
			}
			
			if = {
				limit = {
					223 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 223
			}
			
			if = {
				limit = {
					254 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 254
			}
			
			if = {
				limit = {
					255 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 255
			}
			
			if = {
				limit = {
					257 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 257
			}
			
			if = {
				limit = {
					222 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 222
			}
			
			if = {
				limit = {
					258 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 258
			}
			
			if = {
				limit = {
					220 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 220
			}
			
			if = {
				limit = {
					240 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 240
			}
			
			if = {
				limit = {
					260 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 260
			}
			
			if = {
				limit = {
					218 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 218
			}
			
			if = {
				limit = {
					245 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 245
			}
			
			if = {
				limit = {
					217 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 217
			}
			
			if = {
				limit = {
					265 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 265
			}
			
			if = {
				limit = {
					829 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 829
			}
			
			if = {
				limit = {
					239 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 239
			}
			
			
			if = {
				limit = {
					230 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 230
			}
			
			if = {
				limit = {
					229 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 229
			}
			
			if = {
				limit = {
					231 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 231
			}
			
			if = {
				limit = {
					826 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 826
			}
			
			if = {
				limit = {
					233 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 233
			}
			
			if = {
				limit = {
					827 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 827
			}
			
			if = {
				limit = {
					828 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 828
			}
			
			if = {
				limit = {
					821 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 821
			}
			
			if = {
				limit = {
					232 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 232
			}
			
			if = {
				limit = {
					234 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 234
			}
			
			if = {
				limit = {
					235 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 235
			}
			
			if = {
				limit = {
					238 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 238
			}
			
			if = {
				limit = {
					237 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 237
			}
			
			if = {
				limit = {
					236 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 236
			}
			
			if = {
				limit = {
					216 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 216
			}
			
			if = {
				limit = {
					215 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 215
			}
			
			if = {
				limit = {
					213 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 213
			}
			
			if = {
				limit = {
					252 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 252
			}
			
			if = {
				limit = {
					351 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 351
			}
			
			if = {
				limit = {
					879 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 879
			}
			
			if = {
				limit = {
					880 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 880
			}
			
			if = {
				limit = {
					214 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 214
			}
			
			#### ALLIES ####
			
			if = {
				limit = {
					80 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					ROM = { is_in_faction_with = GER }
				}
				
				ROM = {
					transfer_state = 80
				}
			}
			
			else_if = {
				limit = {
					80 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 80
			}
			
			if = {
				limit = {
					78 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					ROM = { is_in_faction_with = GER }
				}
				
				ROM = {
					transfer_state = 78
				}
			}
			
			else_if = {
				limit = {
					78 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 78
			}
			
			if = {
				limit = {
					766 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					ROM = { is_in_faction_with = GER }
				}
				
				ROM = {
					transfer_state = 766
				}
			}
			
			else_if = {
				limit = {
					766 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 766
			}
			
			if = {
				limit = {
					147 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					FIN = { is_in_faction_with = GER }
				}
				
				FIN = {
					transfer_state = 147
				}
			}
			
			else_if = {
				limit = {
					147 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 147
			}
			
			if = {
				limit = {
					146 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					FIN = { is_in_faction_with = GER }
				}
				
				FIN = {
					transfer_state = 146
				}
			}
			
			else_if = {
				limit = {
					146 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 146
			}
			
			if = {
				limit = {
					722 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }

					FIN = { is_in_faction_with = GER }
				}
				
				FIN = {
					transfer_state = 722
				}
			}
			
			else_if = {
				limit = {
					722 = { owner = {
			OR = {
				tag = SOV
				is_subject_of = SOV
			}
		} }
				}
				transfer_state = 722
			}
			
			news_event = { days = 1 id = rksnews.11 }
		
		}
	}
	
	option = {
		name = rkspeacedeal.2.b
		ai_chance = {
			base = -50
		}
	}
}

country_event = {
	id = rksplusussr.1
	title = rksplusussr.1.t
	desc = rksplusussr.1.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.1.a
		
		add_stability = -0.05
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.2
					days = 30
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.2
	title = rksplusussr.2.t
	desc = rksplusussr.2.d
	picture = GFX_report_event_gathering_protest
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.2.a
		
		add_stability = -0.1
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.3
					days = 7
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.3
	title = rksplusussr.3.t
	desc = rksplusussr.3.d
	picture = GFX_report_event_generic_riot
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.3.a
		
		add_stability = -0.1
		add_manpower = -4
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.4
					days = 7
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.4
	title = rksplusussr.4.t
	desc = rksplusussr.4.d
	picture = GFX_report_event_generic_rifles
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.4.a
		
		add_stability = -0.15
		add_equipment_to_stockpile = {
		   type = infantry_equipment
           amount = -1000
           producer = SOV
         }
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.5
					days = 7
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.5
	title = rksplusussr.5.t
	desc = rksplusussr.5.d
	picture = GFX_report_event_generic_rally2
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.5.a
		
		add_stability = -0.15
		add_war_support = -0.15
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.6
					days = 7
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.6
	title = rksplusussr.6.t
	desc = rksplusussr.6.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.6.a
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 407
					state = 406
					state = 402
					state = 587
					state = 583
					state = 590
					state = 404
					state = 881
					state = 882
					state = 588
					state = 589
					state = 586
				}
			}

			KZN = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		KZN = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.7
					days = 3
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.6.b
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 407
					state = 406
					state = 402
					state = 587
					state = 583
					state = 590
					state = 404
					state = 881
					state = 882
					state = 588
					state = 589
					state = 586
				}
			}

			KZN = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.7
					days = 3
				}
			}
		}
		
		KZN = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		KZN = {
		change_tag_from = SOV
	    }

	}
}

country_event = {
	id = rksplusussr.7
	title = rksplusussr.7.t
	desc = rksplusussr.7.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.7.a
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 584
					state = 832
					state = 823
					state = 831
					state = 585
					state = 830
				}
			}

			TRK = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		TRK = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.8
					days = 3
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.7.b
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 584
					state = 832
					state = 823
					state = 831
					state = 585
					state = 830
				}
			}

			TRK = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.8
					days = 3
				}
			}
		}
		
		TRK = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		TRK = {		
		change_tag_from = SOV
	    }

	}
}

country_event = {
	id = rksplusussr.8
	title = rksplusussr.8.t
	desc = rksplusussr.8.d
	picture = GFX_report_event_generic_battle
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.8.a
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 405
					state = 742
					state = 732
				}
				owner = {
					tag = SOV
				}
			}

			TRC = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		TRC = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.9
					days = 7
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.8.b
		
		add_stability = -0.05
		add_political_power = -50
		
		every_state = {
			limit = {
				OR = {
					state = 405
					state = 742
					state = 732
				}
			}

			TRC = {

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.9
					days = 7
				}
			}
		}
		
		TRC = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		TRC = {
		change_tag_from = SOV
	    }

	}
}

country_event = {
	id = rksplusussr.9
	title = rksplusussr.9.t
	desc = rksplusussr.9.d
	picture = GFX_report_event_europe_funeral
	
	is_triggered_only = yes
	
	immediate = { hidden_effect = { news_event = { days = 1 id = rksnews.12 } } }
	

	option = {
		name = rksplusussr.9.a
		
		trigger = { has_government = communism }
		
		add_stability = -0.25
		
		SOV = {
			kill_country_leader = yes
			
			add_country_leader_role = {
				character = SOV_kliment_voroshilov
				promote_leader = yes
				country_leader = {
					ideology = leninism
					expire = "1975.1.1.1"
					traits = { war_industrialist }
				}
			}
		}
		
		JAP = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.10
					days = 14
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.9.b
		
		trigger = { 
			NOT = { has_government = communism }
		}
		add_stability = -0.25
		
		SOV = {
			kill_country_leader = yes
			
			create_country_leader = {
				name = "Transitionary Council"
				desc = ""
				picture = "gfx/leaders/SOV/portrait_SOV_white_transitionary_council_rksplus.dds"
				expire = "1965.1.1"
				ideology = despotism
				traits = { }
			}
		}
		
		JAP = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.10
					days = 14
				}
			}
		}
	}
}

country_event = {
	id = rksplusussr.10
	title = rksplusussr.10.t
	desc = rksplusussr.10.d
	picture = GFX_report_event_japanese_transport_soldiers
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.10.a
		
		trigger = { }
		
		add_war_support = 0.05
		
		ai_chance = {
			base = 0
		}
		SOV = {
			country_event = { id = rksplusussr.11 }
		}
		
		every_state = {
			limit = {
				OR = {
					state = 657
					state = 408
					state = 409
					state = 560
					state = 655
				}
			}

			JAP = {

				transfer_state = PREV

			}
		}
		
		hidden_effect = {
			news_event = { days = 1 id = rksnews.13 }
		}

	}
	
	option = {
		name = rksplusussr.10.b
		
		trigger = { }
		
		add_war_support = 0.05
		
		ai_chance = {
			base = 10
		}
		SOV = {
			country_event = { id = rksplusussr.11 }
		}
		
		if = {
			limit = {
				country_exists = MAN
			}
			every_state = {
				limit = {
					OR = {
						state = 657
						state = 408
						state = 409
						state = 560
					}
				}

				MAN = {

					transfer_state = PREV
					
					hidden_effect = {
						add_state_core = PREV
					}

				}
			}
		}
		else_if = {
			limit = {
				country_exists = CHI
			}
			every_state = {
				limit = {
					OR = {
						state = 657
						state = 408
						state = 409
						state = 560
					}
				}

				CHI = {

					transfer_state = PREV
					
					hidden_effect = {
						add_state_core = PREV
					}

				}
			}
		}
		
		else_if = {
			limit = {
				country_exists = PRC
			}
			every_state = {
				limit = {
					OR = {
						state = 657
						state = 408
						state = 409
						state = 560
					}
				}

				PRC = {

					transfer_state = PREV
					
					hidden_effect = {
						add_state_core = PREV
					}

				}
			}
		}
		
		else_if = {
			limit = {
				country_exists = JAP
			}
			every_state = {
				limit = {
					OR = {
						state = 657
						state = 408
						state = 409
						state = 560
					}
				}

				JAP = {

					transfer_state = PREV
					
					hidden_effect = {
						add_state_core = PREV
					}

				}
			}
		}
		
		
		every_state = {
			limit = {
				OR = {
					state = 655
				}
			}

			JAP = {

				transfer_state = PREV

			}
		}
		
		
		
		hidden_effect = {
			news_event = { days = 1 id = rksnews.13 }
		}

	}
}

country_event = {
	id = rksplusussr.11
	title = rksplusussr.11.t
	desc = rksplusussr.11.d
	picture = GFX_report_event_japanese_transport_soldiers
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.11.a
		
		trigger = { }
		
		add_stability = -0.10
		add_political_power = -50
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.12
					days = 7
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.12
	title = rksplusussr.12.t
	desc = rksplusussr.12.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.12.a
		
		trigger = { }
		
		ai_chance = {
			base = 10
		}
		
		every_state = {
			limit = {
				OR = {
					state = 329
				}
			}

			TAN = {

				transfer_state = PREV

			}
		}
		
		if = {
			limit = {
				TAN = { is_in_faction = yes }
				TAN = { is_in_faction_with = SOV }
				
			}
			TAN = { leave_faction = yes }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.13
					days = 3
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.13
	title = rksplusussr.13.t
	desc = rksplusussr.13.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.13.a
		
		trigger = { }
		
		ai_chance = {
			base = 10
		}
		
		if = {
			limit = {
				MON = { is_in_faction = yes }
				MON = { is_in_faction_with = SOV }
				
			}
			MON = { leave_faction = yes }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.14
					days = 3
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.14
	title = rksplusussr.14.t
	desc = rksplusussr.14.d
	picture = GFX_report_event_generic_battle
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.14.a
		
		trigger = { }
		
		add_stability = -0.15
		
		every_state = {
			limit = {
				OR = {
					state = 567
					state = 566
					state = 564
					state = 563
					state = 565
					state = 575
					state = 561
					state = 574
					state = 876
					state = 562
					state = 877
					state = 644
					state = 874
					state = 822
					state = 637
					state = 875
				}
			}

			WRA = {
			
				if = {
					limit = {
						SOV = { controls_state = 657 }
					}
					transfer_state = 657
					add_state_core = 657
				}
				
				if = {
					limit = {
						SOV = { controls_state = 560 }
					}
					transfer_state = 560
					add_state_core = 560
				}
				
				if = {
					limit = {
						SOV = { controls_state = 409 }
					}
					transfer_state = 409
					add_state_core = 409
				}
				
				if = {
					limit = {
						SOV = { controls_state = 408 }
					}
					transfer_state = 408
					add_state_core = 408
				}
				
				if = {
					limit = {
						SOV = { controls_state = 655 }
					}
					transfer_state = 655
					add_state_core = 655
				}

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
					add_ideas = WRA_start_idea
				}

			}
		}
		
		WRA = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.15
					days = 7
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.14.b
		
		trigger = { }
		
		add_stability = -0.15
		
		every_state = {
			limit = {
				OR = {
					state = 567
					state = 566
					state = 564
					state = 563
					state = 565
					state = 575
					state = 561
					state = 574
					state = 876
					state = 562
					state = 877
					state = 644
					state = 874
					state = 822
					state = 637
					state = 875
				}
			}

			WRA = {
			
				if = {
					limit = {
						SOV = { controls_state = 657 }
					}
					transfer_state = 657
					add_state_core = 657
				}
				
				if = {
					limit = {
						SOV = { controls_state = 560 }
					}
					transfer_state = 560
					add_state_core = 560
				}
				
				if = {
					limit = {
						SOV = { controls_state = 409 }
					}
					transfer_state = 409
					add_state_core = 409
				}
				
				if = {
					limit = {
						SOV = { controls_state = 408 }
					}
					transfer_state = 408
					add_state_core = 408
				}
				
				if = {
					limit = {
						SOV = { controls_state = 655 }
					}
					transfer_state = 655
					add_state_core = 655
				}

				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
					add_ideas = WRA_start_idea
				}

			}
		}
		
		WRA = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.15
					days = 7
				}
			}
		}
		
		WRA = {
		change_tag_from = SOV
	    }

	}
}

country_event = {
	id = rksplusussr.15
	title = rksplusussr.15.t
	desc = rksplusussr.15.d
	picture = GFX_report_event_generic_ruins
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.15.a
		
		trigger = { }
		
		add_political_power = -50
		
		SOV = {
			hidden_effect = {
				country_event = {
					id = rksplusussr.16
					days = 3
				}
			}
		}

	}
}

country_event = {
	id = rksplusussr.16
	title = rksplusussr.16.t
	desc = rksplusussr.16.d
	picture = GFX_report_event_ger_civil_war
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.16.a
		
		trigger = { }
		
		add_stability = -0.25
		
		every_state = {
			limit = {
				OR = {
					state = 577
					state = 824
					state = 578
					state = 570
					state = 40
					state = 654
					state = 569
					state = 568
					state = 576
					state = 516
					state = 878
				}
			}

			SBI = {
			
				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
					add_ideas = SBI_start_idea
					set_capital = {
						state = 578
						remember_old_capital = yes
					}
				}
			}
		}
		
		SBI = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			set_capital = {
				state = 397
				remember_old_capital = yes
			}
		
			hidden_effect = {
				country_event = {
					id = rksplusussr.101
					days = 7
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.16.b
		
		trigger = { }
		
		add_stability = -0.25
		
		every_state = {
			limit = {
				OR = {
					state = 577
					state = 824
					state = 578
					state = 570
					state = 40
					state = 654
					state = 569
					state = 568
					state = 576
					state = 516
					state = 878
				}
			}

			SBI = {
			
				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
					add_ideas = SBI_start_idea
					set_capital = {
						state = 578
						remember_old_capital = yes
					}
				}

			}
		}
		
		SBI = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		}
		
		SOV = {
			set_capital = {
				state = 397
				remember_old_capital = yes
			}
		
			hidden_effect = {
				country_event = {
					id = rksplusussr.101
					days = 7
				}
			}
		}
		
		SBI = {
		change_tag_from = SOV
	    }
		

	}
}

country_event = {
	id = rksplusussr.101
	title = rksplusussr.101.t
	desc = rksplusussr.101.d
	picture = GFX_report_event_ger_civil_war
	
	is_triggered_only = yes
	

	option = {
		name = rksplusussr.101.a
		
		trigger = { }
		
		add_stability = 0.01
		
		every_state = {
			limit = {
				OR = {
					state = 579
					state = 580
					state = 653
					state = 572
					state = 403
					state = 571
				}
			}

			WSR = {
			
				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		WSR = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
			add_ideas = WSR_siberia_idea
		}
		
		SOV = {
		
			hidden_effect = {
				country_event = {
					id = rksplusussr.17
					days = 7
				}
			}
		}

	}
	
	option = {
		name = rksplusussr.101.b
		
		trigger = { }
		
		add_stability = 0.01
		
		every_state = {
			limit = {
				OR = {
					state = 579
					state = 580
					state = 653
					state = 572
					state = 403
					state = 571
				}
			}

			WSR = {
			
				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
		}
		
		WSR = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
			add_ideas = WSR_siberia_idea
		}
		
		SOV = {
		
			hidden_effect = {
				country_event = {
					id = rksplusussr.17
					days = 7
				}
			}
		}
		
		WSR = {
		change_tag_from = SOV
	    }

	}
}

country_event = {
	id = rksplusussr.17
	title = rksplusussr.17.t
	desc = rksplusussr.17.d
	picture = GFX_report_event_generic_riot
	
	is_triggered_only = yes

	option = {
		name = rksplusussr.17.a
		
		trigger = { }
		
		add_stability = -0.25
		
		every_state = {
			limit = {
				OR = {
					state = 256
					state = 249
					state = 251
					state = 833
					state = 652
					state = 651
					state = 582
					state = 399
					state = 400
					state = 398
					state = 573
					state = 397
					state = 581
					state = 262
					state = 825
				}
			}

			WRS = {
			
				transfer_state = PREV
				
				hidden_effect = {
					add_state_core = PREV
				}

			}
			
		}
		
		WRS = {
			add_timed_idea = { idea = SOV_collapsed_state days = 365 }
		
			add_ideas = WRS_start_idea
		
			WSR = {
				hidden_effect = {
					add_ideas = WSR_start_idea
				}
			}
		
			annex_country = {
                target = SOV
            }
			SOV = {
				every_unit_leader = {
					set_nationality = WRS
				}
			}
			
			
		}
		
		WRS = {
			change_tag_from = SOV
		}
		
		hidden_effect = {
			GER = {
				news_event = { days = 1 id = rksnews.14 }
				if = {
					limit = {
						has_global_flag = WRW_GERMANY_BUFF_FLAG
					}
					add_timed_idea = {
						idea = WRW_GERMANY_BUFF_FLAG_idea
						days = 365
					}
				}
			}
			set_global_flag = russia_collapse
		}
	}
}

news_event = {
	id = rksnews.11
	title = rksnews.11.t
	desc = rksnews.11.d
	picture = GFX_news_event_generic_sign_treaty1
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = rksnews.11.a
		trigger = {
			NOT = {
				tag = GER
				tag = SOV
			}
		}
	}
	option = {
		name = rksnews.11.b
		trigger = { tag = GER }
	}
	
	option = {
		name = rksnews.11.c
		trigger = { tag = SOV }
	}

}

news_event = {
	id = rksnews.12
	title = rksnews.12.t
	desc = rksnews.12.d
	picture = GFX_news_event_generic_funeral
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = rksnews.12.a
		trigger = {
			NOT = {
				tag = SOV
				tag = GER
			}
		}
	}
	
	option = {
		name = rksnews.12.b
		trigger = { tag = GER }
	}

	option = {
		name = rksnews.12.c
		trigger = { tag = SOV }
	}

}

news_event = {
	id = rksnews.13
	title = rksnews.13.t
	desc = rksnews.13.d
	picture = GFX_news_event_041
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = rksnews.13.a
		trigger = {
			NOT = {
				tag = SOV
				tag = JAP
			}
		}
	}

	option = {
		name = rksnews.13.b
		trigger = { tag = JAP }
	}
	
	option = {
		name = rksnews.13.c
		trigger = { tag = SOV }
	}

}

news_event = {
	id = rksnews.14
	title = rksnews.14.t
	desc = rksnews.14.d
	picture = GFX_news_event_generic_ruins
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = rksnews.14.a
		trigger = {
			NOT = {
				tag = GER
				tag = WRS
			}
		}
	}

	option = {
		name = rksnews.14.b
		trigger = { tag = GER }
	}
	
	option = {
		name = rksnews.14.c
		trigger = { tag = WRS }
	}

}