add_namespace = redux

country_event = { #zusuls
	id = redux.1
	title = redux.1.t
	desc = redux.1.d
	picture = GFX_report_event_nazis_in_danzig
	
	is_triggered_only = yes
	
	option = {
		name = redux.1.a
		CAE = { 
            add_ideas = zusul
			transfer_state = 549
			transfer_state = 551
			transfer_state = 885
			transfer_state = 884
			transfer_state = 886
			transfer_state = 883
		
		add_timed_idea = {
 				idea = CAEnon_agresion
 				days = 280
 			}
				
			}
		
		
	}
}


	country_event = { #Day of the Iron Kaput
	id = redux.2
	title = redux.2.t
	desc = redux.2.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	option = {
	    add_stability = 0.05
		name = redux.2.a
		
		}
		}
		
		
		
	
	country_event = { #Victory
	id = redux.3
	title = redux.3.t
	desc = redux.3.d
	picture = GFX_gift_event
	
	is_triggered_only = yes
	
	option = {
		name = redux.3.a
		add_state_core = 272
        add_state_core = 273
        add_state_core = 274
        add_state_core = 290
		add_state_core = 448
        add_state_core = 449
		add_state_core = 458
		add_state_core = 459
		add_state_core = 460
		add_state_core = 461
		add_state_core = 462
		add_state_core = 513
        add_state_core = 514
        add_state_core = 515
        add_state_core = 546
        add_state_core = 547
        add_state_core = 549
        add_state_core = 551
        add_state_core = 556
        add_state_core = 557
        add_state_core = 558
        add_state_core = 661
        add_state_core = 662
        add_state_core = 665
        add_state_core = 699
        add_state_core = 700
        add_state_core = 701
        add_state_core = 767
        add_state_core = 775
        add_state_core = 776
        add_state_core = 777
        add_state_core = 778
        add_state_core = 779
        add_state_core = 780
        add_state_core = 781
        add_state_core = 782
        add_state_core = 783
        add_state_core = 786
        add_state_core = 883
        add_state_core = 884
        add_state_core = 885
		add_state_core = 886
        add_state_core = 887
        add_state_core = 898
        add_state_core = 899
        add_state_core = 900
        add_state_core = 901
        add_state_core = 902
        add_state_core = 903
        add_state_core = 904
        add_state_core = 905
		}
		}
	country_event = { #Histori
	id = redux.4
	title = redux.4.t
	desc = redux.4.d
	picture = GFX_gift_event
	
	is_triggered_only = yes
	
	option = {
	
		name = redux.4.a
		
		}
		
		}
		
	country_event = {
	id = redux.5
	title = redux.5.t
	desc = redux.5.d
	picture = GFX_report_event_felix_eboue
	
	is_triggered_only = yes
	
	option = {
		name = redux.5.a #yes
		every_state = { 
		limit = {
                 is_controlled_by = ETH			 
                }
               
			   add_core_of = CAE
			}
			custom_effect_tooltip = CAE_efiopy_tt
		hidden_effect = {
			load_oob = CAE_efiopy
			}
		annex_country = { target = ETH transfer_troops = no }
	}
	
		}
	country_event = { #zusul want war
	id = redux.6
	title = redux.6.t
	desc = redux.6.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	
	
	option = {
	    create_wargoal = {
				target = ZUS
				type = annex_everything
				expire = 0 
			}
		name = redux.6.a
		
		}
		}
	country_event = { #zusul is pupet
	id = redux.7
	title = redux.7.t
	desc = redux.7.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	
	
	option = {
		name = redux.7.a
	    CAE = {
		set_autonomy = {
		target = ZUS
		autonomous_state = autonomy_dominion
		freedom_level = 0.4
			}
	custom_effect_tooltip = CAE_federal_fokus_cae_tt
	hidden_effect = {
		transfer_state = 900 #west
	add_state_core = 900
	transfer_state = 901
	add_state_core = 901
	transfer_state = 902
	add_state_core = 902
	transfer_state = 558
	add_state_core = 558
	transfer_state = 779
	add_state_core = 779
	transfer_state = 556
	add_state_core = 556
	transfer_state = 776
	add_state_core = 776
	transfer_state = 898
	add_state_core = 898
	transfer_state = 778
	add_state_core = 778
	transfer_state = 274
	add_state_core = 274
	transfer_state = 777
	add_state_core = 777
	transfer_state = 781
	add_state_core = 781
	
	transfer_state = 884 #nord-ost
	add_state_core = 884
	transfer_state = 885
	add_state_core = 885
	transfer_state = 549
	add_state_core = 549
	transfer_state = 887
	add_state_core = 887
	transfer_state = 886
	add_state_core = 886
	transfer_state = 551
	add_state_core = 551
	transfer_state = 883
	add_state_core = 883

	add_state_core = 546 #suid-ost
	add_state_core = 547
	add_state_core = 905
	add_state_core = 904
	add_state_core = 903
	transfer_state = 546
	transfer_state = 547
	transfer_state = 905
	transfer_state = 904
	transfer_state = 903
		}
			}
	
		ZUS = { 
		add_ideas = ZUS_pupet_way
		set_cosmetic_tag = ZUS_dominion
		}
		
		}
		}
		country_event = { #zusuls trigger pupet
	id = redux.8
	title = redux.8.t
	desc = redux.8.d
	picture = GFX_gift_event
	
	is_triggered_only = yes
	
	option = {
		name = redux.8.a
		CAE = {
		set_autonomy = {
		target = ZUS
		autonomous_state = autonomy_dominion
		freedom_level = 0.4
	}
	transfer_state = 884
	add_state_core = 884
	transfer_state = 885
	add_state_core = 885
	transfer_state = 549
	add_state_core = 549
	transfer_state = 887
	add_state_core = 887
	transfer_state = 886
	add_state_core = 886
	transfer_state = 551
	add_state_core = 551
	transfer_state = 883
	add_state_core = 883

		}
		}
		}
country_event = { #ourafrika
	id = redux.9
	title = redux.9.t
	desc = redux.9.d
	picture = GFX_gift_event
	
	is_triggered_only = yes
	option ={
	name = redux.9.a
	
	limit = {NOT = {country_exists = ZUS}}
	custom_effect_tooltip = CAE_event_r9_notzus_tt
	hidden_effect = {
	CAE = {
	
			
	transfer_state = 540 #portugal
			add_state_core = 540
			transfer_state = 544
			add_state_core = 544
			transfer_state = 296
			add_state_core = 296
			transfer_state = 796
			add_state_core = 796
			transfer_state = 891
			add_state_core = 891
			transfer_state = 892
			add_state_core = 892
			transfer_state = 896
			add_state_core = 896
			transfer_state = 897
			add_state_core = 897
			transfer_state = 701
			add_state_core = 701
			
	transfer_state = 298 #liberia
			add_state_core = 298
	}
	}
	
	
	}
}
country_event = { #pressurealies
	id = redux.10
	title = redux.10.t
	desc = redux.10.d
	picture = GFX_gift_event
	
	is_triggered_only = yes
	option ={
	name = redux.10.a
	
	if = {
	limit = {NOT = {country_exists = ZUS}}
	custom_effect_tooltip = CAE_event_r10_notzus_tt
	hidden_effect = {
	CAE = { 
			transfer_state = 771
			add_state_core = 771
			transfer_state = 770
			add_state_core = 770
			transfer_state = 269
			add_state_core = 269
			
			transfer_state = 447
			add_state_core = 447
			
			transfer_state = 456
			add_state_core = 456
			transfer_state = 457
			add_state_core = 457
			transfer_state = 452
			add_state_core = 452
			
			transfer_state = 701
			add_state_core = 701
			transfer_state = 907
			add_state_core = 907
			
			
			transfer_state = 552
			add_state_core = 552
			transfer_state = 452
			add_state_core = 452
			transfer_state = 447
			add_state_core = 447
			transfer_state = 907
			add_state_core = 907
			transfer_state = 456
			add_state_core = 456
			transfer_state = 457
			add_state_core = 457
			
			
			transfer_state = 268
			add_state_core = 268
			
		transfer_state = 542
		add_state_core = 542
		transfer_state = 545
		add_state_core = 545
		transfer_state = 544
		add_state_core = 544
		transfer_state = 896
		add_state_core = 896
		transfer_state = 543
		add_state_core = 543
			}
	}
	}
	if = {
	limit = {country_exists = ZUS}
	custom_effect_tooltip = CAE_event_r10_zus_tt
	hidden_effect = {
	CAE = { 
			transfer_state = 771
			add_state_core = 771
			transfer_state = 770
			add_state_core = 770
			transfer_state = 269
			add_state_core = 269
			
			transfer_state = 447
			add_state_core = 447
			
			transfer_state = 456
			add_state_core = 456
			transfer_state = 457
			add_state_core = 457
			transfer_state = 452
			add_state_core = 452
			
			transfer_state = 907
			add_state_core = 907
			transfer_state = 268
			add_state_core = 268
			}
			
			ZUS = {
			transfer_state = 552
			add_state_core = 552
			transfer_state = 452
			add_state_core = 452
			transfer_state = 447
			add_state_core = 447
			transfer_state = 907
			add_state_core = 907
			transfer_state = 456
			add_state_core = 456
			transfer_state = 457
			add_state_core = 457
			}
		CAE = { 
		set_autonomy = {
		target = SAF
		autonomous_state = autonomy_reichsprotectorate
		freedom_level = 0.4
	}
		}
		SAF = {
		if = {
		limit = {			
		SAF = {
			is_puppet_of = CAE
			} 
			}
		set_party_name = { ideology = fascism name = SAF_cae_fascism_party }
		set_party_name = { ideology = democratic name = SAF_cae_democratic_party }
		set_party_name = { ideology = communism name = SAF_cae_communism_party }
		set_party_name = { ideology = neutrality name = SAF_cae_neutrality_party }
	set_cosmetic_tag = SAF_cae_puppet
	}
	 load_focus_tree = {
	 tree = saf_kaput
	 keep_completed = no
	 }
		transfer_state = 542
		add_state_core = 542
		transfer_state = 545
		add_state_core = 545
		transfer_state = 544
		add_state_core = 544
		transfer_state = 896
		add_state_core = 896
		transfer_state = 543
		add_state_core = 543
		}
		}
	}
	}
	}
	country_event = { #Congo is fall
	id = redux.20
	title = redux.20.t
	desc = redux.20.d
	picture = GFX_gift_event
	fire_only_once = yes
	trigger = {
	
		888 = { is_controlled_by = CAE }
		295 = { is_controlled_by = CAE }
		890 = { is_controlled_by = CAE }
		CAE = { has_war_with = BEL }
		TAG = CAE
			}		
	mean_time_to_happen = {
		days = 2
	}
	option = { #Peace
		name = redux.20.a
		CAE = {
		transfer_state = 768
		transfer_state = 769
		transfer_state = 295
		transfer_state = 538
		transfer_state = 718
		transfer_state = 890
		transfer_state = 888
		transfer_state = 889
		
		
		}
		
		every_other_country = {
				limit = { has_war_with = CAE }
				white_peace = CAE
			}
		}
		
		}
		
		country_event = { #Cair is fall
	id = redux.21
	title = redux.21.t
	desc = redux.21.d
	picture = GFX_gift_event
	fire_only_once = yes
	trigger = {
		446 = { is_controlled_by = CAE }
		446 = { is_owned_by = ENG }
		CAE = { has_war_with = ENG }

		TAG = CAE
	}
	
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = { #Peace
		name = redux.21.a
		every_state = { 
		limit = {
                 is_core_of = CAE
				 NOT = {is_owned_by = CAE}
				 is_owned_by = ENG
				 
                }
               transfer_state_to = CAE
			}
			every_state = { 
		limit = {
                 is_core_of = CAE
				 NOT = {is_owned_by = CAE}
				 is_owned_by = SAF
				 
                }
               transfer_state_to = CAE
			}
		every_other_country = {
				limit = { has_war_with = CAE }
				white_peace = CAE
			}
		}
		
		}
	country_event = { #Portugal is fall
	id = redux.22
	title = redux.22.t
	desc = redux.22.d
	picture = GFX_gift_event
	fire_only_once = yes
	trigger = {
		540 = { is_controlled_by = CAE }
		540 = { is_owned_by = POR }
		544 = { is_controlled_by = CAE }
		544 = { is_owned_by = POR }
		CAE = { has_war_with = POR }

		TAG = CAE
	}
	
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = { #Peace
		name = redux.22.a
		every_state = { 
		limit = {
                 is_core_of = CAE
				 NOT = {is_owned_by = CAE}
				 is_owned_by = POR
				 
                }
               transfer_state_to = CAE
			}
			
		every_other_country = {
				limit = { has_war_with = CAE }
				white_peace = CAE
			}
		}
		
		}
		country_event = { #Predohranitel p.1
	id = redux.23
	title = redux.23.t
	desc = redux.23.d
	picture = GFX_gift_event
	is_triggered_only = yes
	
	option = {
	    CAE = {country_event = { id = redux.24 }}
		name = redux.23.a
		}
	option = {
	    CAE = {country_event = { id = redux.25 }}
		name = redux.23.b
		}
		}
		
		country_event = { #Predohranitel p.1v1
	id = redux.24
	title = redux.23.t
	desc = redux.24.d
	picture = GFX_gift_event
	is_triggered_only = yes
	
	option = {
	    CAE = {country_event = { id = redux.26 }}
		name = redux.24.a
		}
	option = {
	    CAE = {country_event = { id = redux.27 }}
		name = redux.24.b
		}
		}
		country_event = { #Predohranitel p.1v2*
	id = redux.25
	title = redux.23.t
	desc = redux.24.d
	picture = GFX_gift_event
	is_triggered_only = yes
	
	option = {
	    CAE = {country_event = { id = redux.27 }}
		name = redux.24.a
		}
	option = {
	    CAE = {country_event = { id = redux.27 }}
		name = redux.24.b
		}
		}
	country_event = { #Predohranitel p2v1
	id = redux.26
	title = redux.23.t
	desc = redux.26.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	option = {
	    CAE = {country_event = { id = redux.28 }}
		name = redux.26.a
		}
	option = {
	    CAE = {country_event = { id = redux.29 }}
		name = redux.26.b
		}
		}
country_event = { Predohranitel p2v2
	id = redux.27
	title = redux.23.t
	desc = redux.26.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	option = {
	    CAE = {country_event = { id = redux.29 }}
		name = redux.26.a
		}
	option = {
	    CAE = {country_event = { id = redux.29 }}
		name = redux.26.b
		}
		}
		
		country_event = { Predohranitel p3v1
	id = redux.28
	title = redux.23.t
	desc = redux.27.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	option = {
		name = redux.28.a
		army_experience = 50
		}
		}
		
		country_event = { Predohranitel p3v2
	id = redux.29
	title = redux.23.t
	desc = redux.27.d
	picture = GFX_gift_event
	is_triggered_only = yes
			
	option = {
		name = redux.29.a
		random_unit_leader = {
			
			add_timed_unit_leader_trait = {
				trait = wounded
				days = 90
			}
		}
		}
		}
	country_event = { #efiopia win
	id = redux.30
	title = redux.30.t
	desc = redux.30.d
	picture = GFX_gift_event
	fire_only_once = yes
	trigger = {
	NOT = { 
	550 = { is_controlled_by = ITA } 
	559 = { is_controlled_by = ITA }
	844 = { is_controlled_by = ITA }
	}
		
		#540 = { is_owned_by = ITA }
		
		#544 = { is_owned_by = ITA }
		
		#544 = { is_owned_by = ITA }
		CAE = { has_war_with = ITA }

		TAG = CAE
	}
	
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = { #Peace
		name = redux.30.a
		every_state = { 
		limit = {
                 is_controlled_by = CAE
				 NOT = {is_controlled_by = ITA}
				 is_owned_by = ITA
				 
                }
               transfer_state_to = CAE
			   add_core_of = CAE
			}
			every_state = { 
		limit = {
                 is_controlled_by = ETH
				 NOT = {is_controlled_by = ITA}
				 is_owned_by = ITA
				 
                }
               transfer_state_to = ETH
			   add_core_of = ETH
			}
			
		every_country = {
				limit = { has_war_with = ITA }
				white_peace = ITA
			}
		
				if = {
					limit = {
						is_faction_leader = yes
					}
					dismantle_faction = yes
				}
			
		}
		
		}	
		
		
	
		
	