﻿###########################
# Political Events
###########################

add_namespace = ar_political

#	ar_political.116 - считалоски населения
#	ar_political.127 - эвент на убыль населения
#   ar_political.500  - эвент для страны-цели на ее аннкесию
#   ar_political.503  - эвент для страны-цели на ее ПРИГЛАШЕНИЕ в альянс (100% согласие)
#   ar_political.506  - эвент для страны-цели на просьбу вступления в ЕЁ альянс (с ПРОСТЫМ модификаторами ИИ на рандоме)
#	ar_political.509  - эвент для страны-цели на просьбу вступления в ЕЁ альянс (100% прием)
#	ar_political.514  - эвент для страны-цели на ее ПРИГЛАШЕНИЕ в альянс (с ПРОСТЫМ модификаторами ИИ на рандоме)
#
#	ar_political/700 - эвенты на смену политоты
#
#	ar_political.800 - эвенты для мажора и лидера альянса о том что к нему хотят присоединиться (это НОРМАЛЬНЫЙ эвент, переделанный из ванили)
#	ar_political.803 - эвент для минора что его приглашают в альянс (это НОРМАЛЬНЫЙ эвент, переделанный из ванили)
#	ar_political.806 - сброс генерика





##HIDDEN 
country_event = {
	id = ar_political.99
	title = ar_political.99.t
	hidden = yes
	is_triggered_only = yes
	fire_only_once = yes	
	option = { 
		name = ar_political.99.a			
		hidden_effect = {
			country_event = ar_political.111
		}		
	}	
}

country_event = { #event na istoriu iz ZSL
	id = ar_political.100
	title = ar_political.100.t
	desc = ar_political.100.d
	picture = GFX_report_event_stalin_01
	hidden = yes
	is_triggered_only = yes
	option = {
		name = ar_political.100.a		
		every_country = {	#istoria
			limit = { is_ai = no }
			country_event = { id = ar_political.111 hours = 3 }
		}
	}
}

country_event = {
	id = ar_political.111
	title = ar_political.111.t
	desc = ar_political.111.d
	picture = GFX_another_world_startedd
	is_triggered_only = yes
	option = {
		name = ar_political.111.a 		
#		country_event = { id = ar_political.112  }
		country_event = { id = ar_political.115  }		
	}
	option = {
		name = ar_political.111.b 
		custom_effect_tooltip = ar_political.111.b.tt
		if = {
			limit = {
				tag = ZTH
			}
			country_event = { id = sinka.77 }
		}
	}
#	option = {
#		name = ar_political.111.c 
#		custom_effect_tooltip = anime_attack_now
#	#	hidden_effect = {
#			762 = {
#				add_core_of = ZZR
#			}
#			90 = {
#				add_core_of = ZZR
#			}
#			67 = {
#				add_core_of = ZZR
#			}
#			87 = {
#				add_core_of = ZZR
#			}
#			ZZR = {
#				transfer_state = 762
#				transfer_state = 90
#				transfer_state = 67
#				transfer_state = 87
#				country_event = { days = 1 id = superrobots.100 }
#			}
#		}
#	}
	# option = {
		# name = ar_political.111.w 
		# trigger = {
# #			has_global_flag = luntik_aktivated_sk_blt
		# }
		# country_event = { id = ar_test.1 }	
		# play_song = "wtfsound"
	# }
}

country_event = {
	id = ar_political.112
	title = ar_political.112.t
	desc = ar_political.112.d
	picture = GFX_report_event_crowd_in_prague
	is_triggered_only = yes
	option = {
		name = ar_political.112.a 
			country_event = { id = ar_political.113  }
	}
}

country_event = {
	id = ar_political.113
	title = ar_political.113.t
	desc = ar_political.113.d
	picture = GFX_report_event_crowd_in_prague
	is_triggered_only = yes
	option = {
		name = ar_political.113.a 
			country_event = { id = ar_political.114  }
	}
}

country_event = {
	id = ar_political.114
	title = ar_political.114.t
	desc = ar_political.114.d
	picture = GFX_report_event_crowd_in_prague
	is_triggered_only = yes
	option = {
		name = ar_political.114.a 			
	}
}

country_event = {
	id = ar_political.115
	title = ar_political.115.t
	desc = ar_political.115.d
	picture = GFX_another_world_go
	is_triggered_only = yes
	option = {
		name = ar_political.115.a 
		if = {
			limit = {
				tag = ZTH
			}
			country_event = { id = sinka.77 }
		}	
	}
}

country_event = {
	id = ar_political.116
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1987	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1987 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.116.a 			
	}
}

country_event = {
	id = ar_political.117
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1988	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1988 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.117.a 			
	}
}

country_event = {
	id = ar_political.118
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1989	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1989 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.118.a 			
	}
}
#
country_event = {
	id = ar_political.119
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1990	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1990 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.119.a 			
	}
}
country_event = {
	id = ar_political.120
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1991	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1991 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.120.a 			
	}
}
country_event = {
	id = ar_political.121
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1992	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1992 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.121.a 			
	}
}
country_event = {
	id = ar_political.122
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1993	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1993 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.122.a 			
	}
}
country_event = {
	id = ar_political.123
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1994	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1994 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.123.a 			
	}
}
country_event = {
	id = ar_political.124
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1995	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1995 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.124.a 			
	}
}
country_event = {
	id = ar_political.125
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1996	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1996 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.125.a 			
	}
}
country_event = {
	id = ar_political.126
	hidden = yes
	is_triggered_only = yes
	immediate = {
		every_country = {	#считалочка населения на 1997	
			set_variable = { k_naselenie_vsego = 0 }
			add_to_variable = { k_naselenie_vsego = max_manpower_k }
			divide_variable = {
				var = k_naselenie_vsego
				value = 1000
			}
			round_variable = k_naselenie_vsego
			add_to_variable = { global.manp_summa_var_1997 = k_naselenie_vsego }
		}
	}
	option = {
		name = ar_political.126.a 			
	}
}
#######################################################################################################################
country_event = {	#  эвент на убыль населения в приграничье
	id = ar_political.127
	hidden = yes
	is_triggered_only = yes	
	immediate = {
		random_list = {
			15 = {
				modifier = {
					has_war_support < 0.38
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2600
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -1979
				}	
				add_to_variable = { global.jertvy_voin = 1979 }	#хе-хе
			}
			15 = {
				modifier = {
					has_war_support < 0.4
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2000
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -1520
				}	
				add_to_variable = { global.jertvy_voin = 1520 }	#хе-хе
			}
			20 = {
				modifier = {
					has_war_support < 0.45
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2000
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -1024
				}	
				add_to_variable = { global.jertvy_voin = 1024 }	#хе-хе
			}
			20 = {
				modifier = {
					has_war_support < 0.5
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2000
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -995
				}	
				add_to_variable = { global.jertvy_voin = 995 }	#хе-хе
			}
			15 = {
				modifier = {
					has_war_support > 0.5
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2000
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -783
				}	
				add_to_variable = { global.jertvy_voin = 783 }	#хе-хе
			}
			15 = {
				modifier = {
					has_war_support > 0.7
					factor = 1.25
				}
				random_owned_controlled_state = {
					limit = {
						is_controlled_by = ROOT	
						state_population  > 2000
						any_neighbor_state = {
							 controller = { has_war_with = ROOT }
						} 
					}
					add_manpower = -551
				}	
				add_to_variable = { global.jertvy_voin = 551 } #хе-хе
			}
		}	
	}
	option = { 
		name = ar_political.127		
	}	
}


country_event = {
	id = ar_political.200
	title = ar_political.200.t
	desc = ar_political.200.d
	picture = GFX_report_event_crowd_in_prague
	is_triggered_only = yes
	option = {
		name = ar_political.200.c
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		add_stability = -0.05
	}
}

#####################################

country_event = {
	id = ar_political.228
	title = ar_political.228.t
	desc = ar_political.228.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = ar_political.228.a 	
			add_popularity = { ideology = fascism popularity = 0.70 }	
			set_politics = {
				ruling_party = fascism
				last_election = "1986.2.2"			
				elections_allowed = no
			}
	}
	option = {
		name = ar_political.228.b 	
			add_popularity = { ideology = democratic popularity = 0.70 }	
			set_politics = {
				ruling_party = democratic
				last_election = "1986.2.2"			
				elections_allowed = yes
			}
	}
	option = {
		name = ar_political.228.c 	
			add_popularity = { ideology = communism popularity = 0.70 }	
			set_politics = {
				ruling_party = communism
				last_election = "1986.2.2"			
				elections_allowed = no
			}
	}
}

country_event = {
	id = ar_political.229
	title = ar_political.229.t
	desc = ar_political.229.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = ar_political.229.a 	
		add_autonomy_ratio = {
				value = 0.2
				localization = EXAMPLE
		}	
	}
	option = {
		name = ar_political.229.b 	
		add_autonomy_ratio = {
				value = -0.2
				localization = EXAMPLE
		}	
	}
	option = {
		name = ar_political.229.c 	
		add_autonomy_ratio = {
				value = 0.5
				localization = EXAMPLE
		}	
	}
	option = {
		name = ar_political.229.c 	
		set_country_flag = rim_nas_obidel	
	}
}
country_event = {
	id = ar_political.300
	title = ar_political.300.t
	desc = ar_political.300.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = ar_political.300.a 	
			add_popularity = {
				ideology = fascism
				popularity = 0.2
			}
	}
	option = {
		name = ar_political.300.b 	
			add_popularity = {
				ideology = communism
				popularity = 0.2
			}	
	}
	option = {
		name = ar_political.300.c 	
			add_popularity = {
				ideology = democratic
				popularity = 0.2
			}	
	}
	option = {
		name = ar_political.300.d 	
			add_popularity = {
				ideology = neutrality
				popularity = 0.2
			}	
	}
}
country_event = {
	id = ar_political.301
	title = ar_political.301.t
	desc = ar_political.301.d
	picture = GFX_report_event_stalin_01

	is_triggered_only = yes

	option = {
		name = ar_political.301.a 	
			add_stability = 0.1
	}
	option = {
		name = ar_political.301.b 	
			add_stability = -0.1	
	}
	option = {
		name = ar_political.301.c 	
			add_war_support = 0.1	
	}
	option = {
		name = ar_political.301.d 	
			add_war_support = -0.1	
	}
}
#################################
country_event = {
	id = ar_political.333
	title = ar_political.333.t
	desc = ar_political.333.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.333.a 
		country_event = {
				id = ar_political.334
		}		
	}
	option = {
		name = ar_political.333.b 	
		ai_chance = { 
			factor = 100 			
		}
	}	
}
country_event = {
	id = ar_political.334
	title = ar_political.334.t
	desc = ar_political.334.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.334.a 
		country_event = {
				id = ar_political.335
		}
	}	
}
country_event = {
	id = ar_political.335
	title = ar_political.335.t
	desc = ar_political.335.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.335.a
		country_event = {
				id = ar_political.336
		}		
	}	
}
country_event = {
	id = ar_political.336
	title = ar_political.336.t
	desc = ar_political.336.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.336.a 
		country_event = {
				id = ar_political.337
		}		
	}	
}
country_event = {
	id = ar_political.337
	title = ar_political.337.t
	desc = ar_political.337.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.337.a 
		country_event = {
				id = ar_political.338
		}		
	}	
}
country_event = {
	id = ar_political.338
	title = ar_political.338.t
	desc = ar_political.338.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.338.a 
		country_event = {
				id = ar_political.339
		}
	}	
}
country_event = {
	id = ar_political.339
	title = ar_political.339.t
	desc = ar_political.339.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.339.a 
		country_event = {
				id = ar_political.340
		}		
	}	
}
country_event = {
	id = ar_political.340
	title = ar_political.340.t
	desc = ar_political.340.d
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = ar_political.340.a
		add_political_power = 20		
	}	
}
##########################
#####    ARMY    #########
##########################
#country_event = {
#	id = ar_political.341
#	title = ar_political.341.t
#	desc = ar_political.341.d
#	picture = GFX_report_event_generic_read_write
#	trigger = {
#		ROOT = {
#			num_divisions > 49
#			NOT = {
#				has_idea = big_army_debuff
#			}
#		}		
#	}
#	mean_time_to_happen = { days = 5 }
#	fire_only_once = no	
#	option = {
#		name = ar_political.341.a
#		add_ideas = big_army_debuff	
#	}	
#}
#country_event = {
#	id = ar_political.342
#	title = ar_political.342.t
#	desc = ar_political.342.d
#	picture = GFX_report_event_generic_read_write
#	trigger = {
#		ROOT = {
#			num_divisions < 45			
#			has_idea = big_army_debuff			
#		}		
#	}
#	mean_time_to_happen = { days = 5 }
#	fire_only_once = no	
#	option = {
#		name = ar_political.342.a
#		remove_ideas = big_army_debuff
#	}	
#}

# TEST
country_event = {
	id = ar_political.499
	title = ar_political.499.t
	desc = ar_political.499.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = ar_political.499.a
		ai_chance = { factor = 100 }
		ZTY = {
			country_event = { id = ar_political.500 }
		}		
	}
}

# 
###  UNIVERS
####  эвент для цели об ее аннексии
country_event = {
	id = ar_political.500
	title = ar_political.500.t
	desc = ar_political.500.d
	picture = GFX_report_event_generic_read_write
	
	is_triggered_only = yes
	
	option = { # Accept
		name = ar_political.500.a
		ai_chance = { factor = 100 }
		FROM = {
			country_event = { id = ar_political.502 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = ar_political.500.b
		FROM = {
			country_event = { id = ar_political.501 }
		}
	}
}

# declines  эвент от цели для root об отказе
country_event = {
	id = ar_political.501
	title = ar_political.501.t
	desc = ar_political.501.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.501.a
	}
}

# accepts эвент от цели для root о согласии
country_event = {
	id = ar_political.502
	title = ar_political.502.t
	desc = ar_political.502.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.502.a
		annex_country = { target = FROM }		
	}
}

####  эвент для цели приглос в альянс
country_event = {
	id = ar_political.503
	title = ar_political.503.t
	desc = ar_political.503.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = ar_political.503.a
		ai_chance = { factor = 100 }
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
		FROM = {
			country_event = { id = ar_political.505 }
		}		
	}
	option = { # Refuse
		name = ar_political.503.b
		FROM = {
			country_event = { id = ar_political.504 }
		}
	}
}
# declines  эвент от цели для root об отказе
country_event = {
	id = ar_political.504
	title = ar_political.504.t
	desc = ar_political.504.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.504.a
	}
}
# accepts эвент от цели для root о согласии
country_event = {
	id = ar_political.505
	title = ar_political.505.t
	desc = ar_political.505.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.505.a
		add_to_faction = FROM
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
	}
}


####  эвент для цели на просьбу в альянс (с модификаторами ИИ)
country_event = {
	id = ar_political.506
	title = ar_political.506.t  #страна-нейм просится в наш альянс, что нам делать?
	desc = ar_political.506.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept     #примем их
		name = ar_political.506.a
		ai_chance = { factor = 50 }
		effect_tooltip = {
			if = {
				limit = {
					ROOT = {
						is_faction_leader = yes
					}	
				}
				ROOT = {
					add_to_faction = FROM	
				}
			}		
		}
		FROM = {
			country_event = { id = ar_political.507 }
		}		
	}
	option = { # Refuse
		name = ar_political.506.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 50
				FROM = {
					has_war = yes
				}
			}
		}
		FROM = {
			country_event = { id = ar_political.508 }
		}
	}
}
# окей  эвент от цели для root о принятии в альянс
country_event = {
	id = ar_political.507
	title = ar_political.507.t
	desc = ar_political.507.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.507.a
		if = {
			limit = {
				FROM = {
					is_faction_leader = yes
				}	
			}
			FROM = {
				add_to_faction = ROOT	
			}
		}
	}
}
# accepts эвент от цели для root об отказе
country_event = {
	id = ar_political.508
	title = ar_political.508.t
	desc = ar_political.508.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.508.a
					
	}
}


####  эвент для цели на просьбу в альянс 100% прием
country_event = {
	id = ar_political.509
	title = ar_political.506.t  #страна-нейм просится в наш альянс, что нам делать?
	desc = ar_political.506.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept     #примем их
		name = ar_political.506.a
		ai_chance = { factor = 100 }
		effect_tooltip = {
			if = {
				limit = {
					ROOT = {
						is_faction_leader = yes
					}	
				}
				ROOT = {
					add_to_faction = FROM	
				}
			}		
		}
		FROM = {
			country_event = { id = ar_political.510 }			
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}		
	}
	option = { # Refuse
		name = ar_political.506.b		
		FROM = {
			country_event = { id = ar_political.511 }
		}
	}
}
# окей  эвент от цели для root о принятии в альянс
country_event = {
	id = ar_political.510
	title = ar_political.507.t
	desc = ar_political.507.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.507.a
		if = {
			limit = {
				FROM = {
					is_faction_leader = yes
				}	
			}
			FROM = {
				add_to_faction = ROOT	
			}
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
	}
}
# accepts эвент от цели для root об отказе
country_event = {
	id = ar_political.511
	title = ar_political.508.t
	desc = ar_political.508.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.508.a
					
	}
}

############
## эвент для страны демократуры на ее внешнеполитический курс
# 
country_event = {
	id = ar_political.512
	title = ar_political.512.t
	desc = ar_political.512.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.512.a	#оборона изоляция
		ai_chance = {
			factor = 2
			modifier = {
				factor = 2
				num_of_controlled_states < 11
			}
		}
		add_ideas = democr_izolation_polit_gener
	}
	option = {
		name = ar_political.512.b	#активная внешн политика
		ai_chance = {
			factor = 2
			modifier = {
				factor = 2
				num_of_controlled_states > 10
			}
		}
		add_ideas = democr_aktiv_polit_gener
	}
}
## эвент для страны омников на ее внешнеполитический курс
# 
country_event = {
	id = ar_political.513
	title = ar_political.513.t
	desc = ar_political.513.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ar_political.513.a
		ai_chance = {
			factor = 2
			modifier = {
				factor = 50
				num_of_controlled_states < 11
			}
		}
		add_ideas = omni_socialism_v_odnoi_strane_polit_gener		
	}
	option = {
		name = ar_political.513.b
		ai_chance = {
			factor = 2
			modifier = {
				factor = 50
				num_of_controlled_states > 10
			}
		}
		add_ideas = omni_export_revolutii_polit_gener		
	}	
}
####  эвент для цели приглос в альянс с модификаторами!
country_event = {
	id = ar_political.514
	title = ar_political.503.t
	desc = ar_political.503.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = ar_political.503.a
		ai_chance = {
			factor = 5 
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value > 30
				}
			}
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
		FROM = {
			country_event = { id = ar_political.505 }
		}		
	}
	option = { # Refuse
		name = ar_political.503.b
		ai_chance = { 
			factor = 5 
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value < -10
				}
			}
		}
		FROM = {
			country_event = { id = ar_political.504 }
		}
	}
}

##############################################
country_event = {
	id = ar_political.700
	title = ar_political.700.t
	desc = ar_political.700.d
	picture = GFX_report_event_fascist_gathering
	is_triggered_only = yes
	option = {
		name = ar_political.700.a
		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}
		add_stability = -0.05
	}
}

country_event = {
	id = ar_political.701
	title = ar_political.701.t
	desc = ar_political.701.d
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = ar_political.701.a		
		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
		}
		add_stability = -0.05
	}
}

country_event = {
	id = ar_political.702
	title = ar_political.702.t
	desc = ar_political.702.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.702.a		
		set_politics = {
			ruling_party = communism
			elections_allowed = no
		}
		add_stability = -0.05
	}
}
########################################################### эвент риму от страна нйм о том что они хотят в ними дружить
country_event = {
	id = ar_political.703
	title = ar_political.703.t
	desc = ar_political.703.d
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = ar_political.703.a		
		ai_chance = {
			factor = 2
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 8
				}
			}
		}
		FROM = {
			country_event = { id = ar_political.704 }
		}
	}
	option = {
		name = ar_political.703.b		
		ai_chance = {
			factor = 2			
		}
		FROM = {
			country_event = { id = ar_political.705 }
		}
	}
}
# ответ от рима гуд
country_event = {
	id = ar_political.704
	title = ar_political.704.t
	desc = ar_political.704.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.704.a		
		add_ideas = zri_kandidat_to_sneg_1
	}
}
# ответ от рима бэд
country_event = {
	id = ar_political.705
	title = ar_political.705.t
	desc = ar_political.705.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.705.a		
		
	}
}

# эвент риму на голосование о принятии кандидата
country_event = {
	id = ar_political.706
	title = ar_political.706.t
	desc = ar_political.706.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.706.a		
		ai_chance = {
			factor = 20
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 8
				}				
			}
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		hidden_effect = {
			FROM = {
				set_variable = { vote_to_sneg_za = 1 }
				set_variable = { vote_to_sneg_protiv = 0 }
				country_event = { days = 2 id = ar_political.709 }
			}
			every_other_country = {
				limit = {	
					OR = {
						is_in_faction_with = ZRI	
						is_puppet_of = ZRI			
					}
				}				
				country_event = {
					id = ar_political.708
				}
			}
		}
	}
	option = {
		name = ar_political.706.b		
		ai_chance = {
			factor = 15
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 8
				}
			}
		}
		hidden_effect = {
			FROM = {
				set_variable = { vote_to_sneg_za = 0 }
				set_variable = { vote_to_sneg_protiv = 1 }
				country_event = { days = 2 id = ar_political.709 }
			}
			every_other_country = {
				limit = {
					OR = {
						is_in_faction_with = ZRI	
						is_puppet_of = ZRI			
					}
				}				
				country_event = {
					id = ar_political.708
				}
			}
		}		
	}
	option = {
		name = ar_political.706.c		
		ai_chance = {
			factor = 1			
		}
		FROM = {
			country_event = { id = ar_political.707 }
		}
	}
}

# рим нам отказал в выборах
country_event = {
	id = ar_political.707
	title = ar_political.707.t
	desc = ar_political.707.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.707.a		
		
	}
}
#эвент странам участникам о том что они голосуют [From.From.GetName]
country_event = {
	id = ar_political.708
	title = ar_political.708.t
	desc = ar_political.708.d
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = ar_political.708.a		
		ai_chance = {
			factor = 4	
			modifier = {
				factor = 3
				has_war = yes
			}			
		}
		FROM.FROM = {
			add_to_variable = { vote_to_sneg_za = 1 }
		}
	}
	option = {
		name = ar_political.708.b		
		ai_chance = {
			factor = 2			
		}
		FROM.FROM = {
			add_to_variable = { vote_to_sneg_protiv = 1 }
		}
	}
}

# подсчет голосов
country_event = {
	id = ar_political.709
	title = ar_political.709.t
	desc = ar_political.709.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	immediate = {
		custom_effect_tooltip = sneg_golosov_za
		custom_effect_tooltip = sneg_golosov_protiv
	}
	option = {
		name = ar_political.709.a
		trigger = {
			check_variable = {
				var = vote_to_sneg_za
				value = vote_to_sneg_protiv
				compare = greater_than
			}
		}				
		clear_variable = vote_to_sneg_za
		clear_variable = vote_to_sneg_protiv
		ZRI = {
			add_to_faction = ROOT
		}
		add_ai_strategy = {
			type = alliance
			id = "ZRI"
			value = 150
		}
		remove_ideas = zri_kandidat_to_sneg_1
		hidden_effect = {
			ZRI = {
				country_event = { id = ar_political.711 }
			}
		}
	}
	option = {
		name = ar_political.709.b
		custom_effect_tooltip = ar_political.709.b.tt
		trigger = {
			check_variable = {
				var = vote_to_sneg_za
				value = vote_to_sneg_protiv
				compare = less_than_or_equals
			}
		}				
		clear_variable = vote_to_sneg_za
		clear_variable = vote_to_sneg_protiv
		hidden_effect = {
			ZRI = {
				country_event = { id = ar_political.712 }
			}
		}
	}
}

# тэстовый эвент на голосование 
country_event = {
	id = ar_political.710
	title = ar_political.710.t
	desc = ar_political.710.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes	
	option = {
		name = ar_political.710.a		
		ZRI = {
			country_event = { id = ar_political.706 }			
		}
	}
}

# риму. у нас новый участник
country_event = {
	id = ar_political.711
	title = ar_political.711.t
	desc = ar_political.711.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.711.a		
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.764 }
		}
	}
}
# риму. выборы нового участника прошли не оч
country_event = {
	id = ar_political.712
	title = ar_political.712.t
	desc = ar_political.712.d
	picture = GFX_report_event_worker_protests
	is_triggered_only = yes
	option = {
		name = ar_political.712.a		
		
	}
}
##############################################################################################
# Generic request to join major Alliance
country_event = {
	id = ar_political.800
	title = ar_political.800.t
	desc = { # FROM and ROOT are Democratic
		text = ar_political.800.d.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	desc = { # FROM and ROOT are Fascist
		text = ar_political.800.d.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	desc = { # FROM and ROOT are Communist
		text = ar_political.800.d.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	desc = { # FROM and ROOT are different ideologies
		text = ar_political.800.d.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}
	picture = GFX_report_event_generic_read_write
	immediate = {
		hidden_effect = {
			save_event_target_as = alliance_inviter
			FROM = {
				save_event_target_as = alliance_applicant
			}
		}
	}
	is_triggered_only = yes	
	option = { #Agree / Both Democratic
		name = ar_political.800.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = ar_political.801 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
	}
	option = { #Agree / Both Fascist
		name = ar_political.800.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = ar_political.801 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
	}
	option = { #Agree / Both Communist
		name = ar_political.800.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = ar_political.801 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
	}
	option = { #Agree / Both different
		name = ar_political.800.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
		ai_chance = {
			base = 100			
			modifier = {
				factor = 0.5
				has_war = no
				FROM = {
					has_war = yes
				}
			}			
			modifier = {
				factor = 0.5
				NOT = {
					has_government = neutrality
				}
			}			
			modifier = {
				factor = 0.75
				FROM = {
					is_major = no
				}
			}
		}
		add_to_faction = FROM
		FROM = { country_event = { id = ar_political.801 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
		FROM = {
			add_ai_strategy = {
				type = alliance
				id = ROOT
				value = 200
			}
		}
	}	
	option = { #Reject
		name = ar_political.800.f
		ai_chance = {
			factor = 50			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 65
				}
			}			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 35
				}
			}			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 5
				}
			}			
			modifier = {
				factor = 2.0
				has_opinion = {
					target = FROM
					value < 35
				}
			}			
			modifier = {
				factor = 2.0
				has_opinion = {
					target = FROM
					value < 65
				}
			}			
			modifier = {
				factor = 0.1
				has_war = yes
				FROM = {
					has_war = no
				}
			}			
			modifier = {
				factor = 0.1
				FROM = {
					is_major = yes
				}
			}
		}
		FROM = { 
			country_event = { id = ar_political.802 hours = 6 }
		}
	}
}

# Generic accepted request to join major Alliance
country_event = {
	id = ar_political.801
	title = ar_political.801.t
	desc = ar_political.801.d
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes	
	option = {
		name = ar_political.801.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = ar_political.801.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = ar_political.801.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = ar_political.801.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}
}

# Generic rejected request to join major Alliance
country_event = {
	id = ar_political.802
	title = ar_political.802.t
	desc = ar_political.802.d	
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes	
	option = {
		name = ar_political.802.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = ar_political.802.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = ar_political.802.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = ar_political.802.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}
}
###########
# Generic invitaton to join major Alliance
country_event = {
	id = ar_political.803
	title = ar_political.803.t
	desc = { # FROM and ROOT are Democratic
		text = ar_political.803.d.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	desc = { # FROM and ROOT are Fascist
		text = ar_political.803.d.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	desc = { # FROM and ROOT are Communist
		text = ar_political.803.d.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	desc = { # FROM and ROOT are different ideologies
		text = ar_political.803.d.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}
	picture = GFX_report_event_generic_read_write
	immediate = {
		hidden_effect = {
			save_event_target_as = alliance_applicant
			FROM = {
				save_event_target_as = alliance_inviter
			}
		}
	}
	is_triggered_only = yes	
	option = { #Agree / Both Democratic
		name = ar_political.803.a
		trigger = {
			is_in_faction = no
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = ar_political.804 hours = 6 } 
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = ar_news.781 hours = 12 }			
		}
	}
	option = { #Agree / Both Fascist
		name = ar_political.803.b
		trigger = {
			is_in_faction = no
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = ar_political.804 hours = 6 } 
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
	}
	option = { #Agree / Both Communist
		name = ar_political.803.c
		trigger = {
			is_in_faction = no
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = ar_political.804 hours = 6 }
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = ar_news.781 hours = 12 }
		}
	}
	option = { #Agree / Both different
		name = ar_political.803.e
		trigger = {
			is_in_faction = no
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
		ai_chance = {
			base = 100			
			modifier = {
				factor = 0.5
				has_war = no
				FROM = {
					has_war = yes
				}
			}			
			modifier = {
				factor = 0.5
				NOT = {
					has_government = neutrality
				}
			}			
			modifier = {
				factor = 0.75
				FROM = {
					is_major = no
				}
			}
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = ar_political.804 hours = 6 }
		}		
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 200
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = ar_news.781 hours = 12 }			
		}
	}	
	option = { #Reject Отклонять
		name = ar_political.803.f
		trigger = {
			is_in_faction = no
		}
		ai_chance = {
			factor = 50			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 65
				}
			}			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 35
				}
			}			
			modifier = {
				factor = 0.5
				has_opinion = {
					target = FROM
					value > 5
				}
			}			
			modifier = {
				factor = 2.0
				has_opinion = {
					target = FROM
					value < 35
				}
			}			
			modifier = {
				factor = 2.0
				has_opinion = {
					target = FROM
					value < 65
				}
			}			
			modifier = {
				factor = 0.1
				has_war = yes
				FROM = {
					has_war = no
				}
			}			
			modifier = {
				factor = 0.1
				FROM = {
					is_major = yes
				}
			}
			modifier = {	#
				factor = 2
				tag = ZTA
				ZTA = {
					has_government = fascism
				}
			}
		}
		FROM = { 
			country_event = { id = ar_political.805 hours = 6 }
		}
	}

	option = { #Reject if in faction
		name = ar_political.803.g
		trigger = {
			is_in_faction = yes
		}
		FROM = { 
			country_event = { id = ar_political.805 hours = 6 }
		}
	}
}

# Generic accepted invitation to join major Alliance
country_event = {
	id = ar_political.804
	title = ar_political.804.t
	desc = ar_political.804.d
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes	
	option = {
		name = ar_political.804.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = ar_political.804.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = ar_political.804.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = ar_political.804.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}
}

# Generic rejected invitation to join major Alliance
country_event = {
	id = ar_political.805
	title = ar_political.805.t
	desc = ar_political.805.d	
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes	
	option = {
		name = ar_political.805.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = ar_political.805.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = ar_political.805.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = ar_political.805.e
		trigger = {
			OR = {
				has_government = neutrality
				NOT = {
					AND = {
						FROM = {
							has_government = democratic
						}
						has_government = democratic
					}
					AND = {
						FROM = {
							has_government = fascism
						}
						has_government = fascism
					}
					AND = {
						FROM = {
							has_government = communism
						}
						has_government = communism
					}				
				}
			}
		}
	}

}
##########################################	hidden = yes
country_event = {
	id = ar_political.806
	title = ar_political.806.t
	desc = ar_political.806.desc
#	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	hidden = yes
	option = {
		name = ar_political.806.a
		if = {
			limit = {
				has_focus_tree = gener
				OR = {
					AND = {
						has_government = fascism
						NOT = { focus_progress = { focus = ar_paternalism_choice progress > 0 } }
						OR = {
							focus_progress = { focus = ar_konservatism_choice progress > 0 }
							focus_progress = { focus = ar_omniparism_choice progress > 0 }
							focus_progress = { focus = ar_democratura_choise progress > 0 }							
						}
					}
					AND = {
						has_government = neutrality
						NOT = { focus_progress = { focus = ar_konservatism_choice progress > 0 } }
						OR = {
							focus_progress = { focus = ar_paternalism_choice progress > 0 }
							focus_progress = { focus = ar_omniparism_choice progress > 0 }
							focus_progress = { focus = ar_democratura_choise progress > 0 }							
						}
					}
					AND = {
						has_government = communism
						NOT = { focus_progress = { focus = ar_omniparism_choice progress > 0 } }
						OR = {
							focus_progress = { focus = ar_paternalism_choice progress > 0 }
							focus_progress = { focus = ar_konservatism_choice progress > 0 }
							focus_progress = { focus = ar_democratura_choise progress > 0 }							
						}
					}
					AND = {
						has_government = democratic
						NOT = { focus_progress = { focus = ar_democratura_choise progress > 0 } }
						OR = {
							focus_progress = { focus = ar_paternalism_choice progress > 0 }
							focus_progress = { focus = ar_konservatism_choice progress > 0 }
							focus_progress = { focus = ar_omniparism_choice progress > 0 }							
						}
					}
				}	
			}
			load_focus_tree = { tree = gener_empty }
#			set_country_flag = reset_focus_ideas_flag
			remove_ideas = {
				paternalismdrift
				monarkizm
				militarization_patern
				granitsa_na_zamke_konsrev
				krepkye_traditsii_konserv
				omniparismdrift
				omni_sovmestn_trud
				democratizm
				democr_parlamentarism_gener
				democr_izolation_polit_gener
				democr_aktiv_polit_gener
				omni_socialism_v_odnoi_strane_polit_gener
				omni_export_revolutii_polit_gener
				omni_strana_pobedivshego_omniparisma
				democr_finans_optimizatia_gener
				army_of_agress_patern
				ar_patern_oborona_natii
				ar_zakon_o_voenn_vremeni_patern
				ar_patern_gramotn_ofitsery
				ar_konserv_agrarn_reformy
				ar_konserv_traditsii_nasha_opora
				ar_democr_gosbank
				ar_idealy_omnikiv
				ar_omniki_kultura_rabochih
				ar_idei_technikratii_boost
				ar_konserv_industrr_reformy
				ar_democr_dengi_reshaut
				ar_generic_privichny_miriporyadok_boost
				ar_generic_armiya_agressii_boost
				ar_generic_super_oborona_boost
				ar_generic_za_vse_staroe_boost
				ar_generic_no_v_kompromisse_boost
				ar_generic_vse_dlya_voiny_boost
				ar_generic_vekovye_proekty_boost
				ar_generic_dem_naselenie_boost
				ar_generic_mirovoye_gospodstvo_boost
				ar_generic_omniki_trud_objedinyaet_boost
				ar_generic_dem_gibky_rynok_boost
				ar_generic_neft_2_boost
			}
			country_event = { id = ar_political.807 }
		}
		if = {
			limit = {
				tag = ZSL
				ZSL = {
					NOT = {
						has_country_flag = zsl_razvalilsya_flag
					}
					num_of_controlled_states < 20	# чекать сколько там минимум
					controls_state = 263	# новгород 
				}
			}
			ZSL = {
				country_event = { days = 1 id = slavianic.194 }
			}
		}		
	}	
}


country_event = {
	id = ar_political.807
	title = ar_political.807.t
	desc = ar_political.807.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	hidden = yes		
	option = {
		name = ar_political.807.a
		load_focus_tree = { tree = gener }
#		clr_country_flag = reset_focus_ideas_flag
		unlock_national_focus = ar_political_choice
	}
}