﻿add_namespace = taitseo

country_event = {
	id = taitseo.0
	title = taitseo.0.t
	desc = taitseo.0.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.0.a
    }          
}
country_event = {
	id = taitseo.1
	title = taitseo.1.t
	desc = taitseo.1.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.1.a
    }          
}
country_event = {
	id = taitseo.2
	title = taitseo.2.t
	desc = taitseo.2.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.2.a
    }          
}
country_event = {
	id = taitseo.3
	title = taitseo.3.t
	desc = taitseo.3.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.3.a
		country_event = { id = taitseo.4 days = 25 }
    }          
}
country_event = {
	id = taitseo.4
	title = taitseo.4.t
	desc = taitseo.4.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.4.a
		if = {
		    limit = {
			    has_completed_focus = zti_sunnism
			}
            498 = {
	            set_variable = { religion_var = 15 }	
            }				
		}
		else_if = {
		    limit = {
			    has_completed_focus = zti_sintoism
			}
            498 = {
	            set_variable = { religion_var = 30 }	
            }				
		}
		else_if = {
		    limit = {
			    has_completed_focus = zti_katolicism
			}
            498 = {
	            set_variable = { religion_var = 2 }	
            }				
		}
		set_country_flag = zti_498
    }          
}
country_event = {
	id = taitseo.5
	title = taitseo.5.t
	desc = taitseo.5.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.5.a
		set_country_flag = zti_sotrudnichestvo_s_algarviey
    } 
    option = {
        name = taitseo.5.b
		set_country_flag = zti_assimilyatsiya_algarvii
    } 	
}
country_event = {
	id = taitseo.6
	title = taitseo.6.t
	desc = taitseo.6.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.6.a
		add_political_power = -10
        add_stability = -0.1
        179 = {
            add_dynamic_modifier = { modifier = zti_algarvian_revolters }
        }
		complete_national_focus = zti_voennaya_operatsiya_v_algarvii
    } 
}
country_event = {
	id = taitseo.7
	title = taitseo.7.t
	desc = taitseo.7.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.7.a
		179 = {
            remove_dynamic_modifier = { modifier = zti_algarvian_revolters_dynamic_modifier }
        }	
        release = ZLG
        declare_war_on = {
            target = ZLG
            type = annex_everything
        }	  
        country_event = { id = taitseo.8 days = 25 }
        hidden_effect = {
		    ZTI_alexo_campos = {
			    set_nationality = ZLG
			}
        }		
    }          
}  
country_event = {
	id = taitseo.8
	title = taitseo.8.t
	desc = taitseo.8.d
	is_triggered_only = yes
    fire_only_once = yes
	option = {
        name = taitseo.8.a	  
		complete_national_focus = zti_algarviyskaya_mechta
    }          
}
country_event = {
	id = taitseo.9
	title = taitseo.9.t
	desc = taitseo.9.d
    is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.9.a
        179 = {
            remove_dynamic_modifier = { modifier = zti_algarvian_revolters_dynamic_modifier }
        }	
        complete_national_focus = zti_stabilizatsiya_polozheniya	  
    }          
} 
country_event = {
	id = taitseo.10
	title = taitseo.10.t
	desc = taitseo.10.d
	is_triggered_only = yes
	fire_only_once = yes	
	option = {
		name = taitseo.10.a
        ZKN = {
		    country_event = taitseo.11 
        }
	}
}  
country_event = {
	id = taitseo.11
	title = taitseo.11.t
	desc = taitseo.11.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.11.a
        ZTI = {
			set_autonomy = {
				target = ZKN
				autonomous_state = autonomy_colony
			}
			country_event = taitseo.12 
		}   
		set_cosmetic_tag = ZKN_Azuma
        set_politics = {
			ruling_party = democratic			
			elections_allowed = no
		}
	    create_country_leader = {
            name = "Совет Ёмикоку"
		    picture = "Sovet_Emikoku.dds"
		    portrait_path = "gfx/leaders/ZKN/Sovet_Emikoku.dds"
			expire = "2020.1.1"
			ideology = corporatocracy 
	    }
	    hidden_effect = {
            set_popularities = {
                democratic = 100
                neutrality = 0
                fascism = 0
                communism = 0
		    }               
        }
    }                
    option = {
        name = taitseo.11.b
        ZTI = {
			country_event = taitseo.13 
        }
    }          
}
country_event = {
	id = taitseo.12
	title = taitseo.12.t
	desc = taitseo.12.d
	is_triggered_only = yes
	fire_only_once = yes	
	option = {
		name = taitseo.12.a
	}
}
country_event = {
	id = taitseo.13
	title = taitseo.13.t
	desc = taitseo.13.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.13.a
        set_country_flag = zti_otkaz_emikoku																					
    }
}
country_event = {
	id = taitseo.14
	title = taitseo.14.t
	desc = taitseo.14.d
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = taitseo.14.a
        ZKN = {
            add_popularity = {
			    ideology = democratic
			    popularity = 0.25
		    }
			add_timed_idea = {
				idea = democratic_opposition_voicing_protests
				days = 360
		    }	
		}
	}
}  
country_event = {
	id = taitseo.15
	title = taitseo.15.t
	desc = taitseo.15.d
    trigger = {
        original_tag = ZKN
        has_idea = democratic_opposition_voicing_protests
        democratic > 0.4         
    }		
	option = {
		name = taitseo.15.a
        set_politics = {
            ruling_party = democratic
			last_election = "1986.2.2"			
			elections_allowed = yes
        }
        remove_ideas = democratic_opposition_voicing_protests     
        ZTI = {
		    country_event = taitseo.16
        }		
    }     		    
    option = {
		name = taitseo.15.b
	    remove_ideas = democratic_opposition_voicing_protests
	    start_civil_war = {
            ruling_party = democratic
            ideology = ROOT
            size = 0.8
            capital = 941
            states = {
                941 1020
            }
            keep_unit_leaders = yes
            keep_political_leader = yes
            keep_political_party_members = yes
		    set_country_flag = zkn_administratsiya_alliastag_flag
        }
    }	
}
country_event = {
	id = taitseo.16
	title = taitseo.16.t
	desc = taitseo.16.d
    is_triggered_only = yes
    fire_only_once = yes	
    option = {
		name = taitseo.16.a 
        ZKN = {
		    country_event = taitseo.17 
        }
    }
} 
country_event = {
	id = taitseo.17
	title = taitseo.17.t
	desc = taitseo.17.d
    is_triggered_only = yes
	fire_only_once = yes
	
    option = {
		name = taitseo.17.a
        ZTI = {
			set_autonomy = {
				target = ZKN
				autonomous_state = autonomy_colony
			}
            country_event = taitseo.18
		}
		set_cosmetic_tag = ZKN_Azuma
        set_politics = {
			ruling_party = democratic			
			elections_allowed = no
		}
	    create_country_leader = {
            name = "Совет Ёмикоку"
		    picture = "Sovet_Emikoku.dds"
		    portrait_path = "gfx/leaders/ZKN/Sovet_Emikoku.dds"
			expire = "2020.1.1"
			ideology = corporatocracy 
		}
	    hidden_effect = {
            set_popularities = {
                democratic = 100
                neutrality = 0
                fascism = 0
                communism = 0
		    }              
        }
	}      
	option = {
		name = taitseo.17.b
        ZTI = {
		    country_event = taitseo.19 
        }
	}
}
country_event = {
	id = taitseo.18
	title = taitseo.18.t
	desc = taitseo.18.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.18.a	  
    } 
    option = {
        name = taitseo.18.b	  
    }    
    option = {
        name = taitseo.18.c	  
    }    
} 
country_event = {
	id = taitseo.19
	title = taitseo.19.t
	desc = taitseo.19.d
    is_triggered_only = yes
	fire_only_once = yes	
	option = {
		name = taitseo.19.a
        declare_war_on = {
			target = ZKN
			type = puppet_wargoal_focus
        }				
	}
}
country_event = {
	id = taitseo.20
	title = taitseo.20.t
	desc = taitseo.20.d
	is_triggered_only = yes
    fire_only_once = yes  
	option = {
		name = taitseo.20.a 
        release_puppet = ZKN
        ZKN = {	
		    set_cosmetic_tag = ZKN_Azuma
            set_politics = {
			    ruling_party = democratic			
			    elections_allowed = no
		    }
			create_country_leader = {
                name = "Совет Ёмикоку"
		        picture = "Sovet_Emikoku.dds"
		        portrait_path = "gfx/leaders/ZKN/Sovet_Emikoku.dds"
			    expire = "2020.1.1"
			    ideology = corporatocracy 
			}
			hidden_effect = {
                set_popularities = {
                    democratic = 100
                    neutrality = 0
                    fascism = 0
                    communism = 0
				}
		    }               
        }                   																									
    }                        
}
country_event = {
	id = taitseo.21
	title = taitseo.21.t
	desc = taitseo.21.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
    fire_only_once = yes		
	option = {
        name = taitseo.21.a
        ZCL = { country_event = taitseo.22 }  		  
    }       
} 
country_event = {
	id = taitseo.22
	title = taitseo.22.t
	desc = taitseo.22.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes		
	fire_only_once = yes
	option = {
        name = taitseo.22.a
        ZTI = { country_event = taitseo.23 }  		  
    }    
    option = {
        name = taitseo.22.b
        ZTI = { country_event = taitseo.24 }  		  
    }          
}
country_event = {
	id = taitseo.23
	title = taitseo.23.t
	desc = taitseo.23.d
	is_triggered_only = yes	
    fire_only_once = yes
	
	option = {
        name = taitseo.23.a
        declare_war_on = {
			target = ZCL
			type = puppet_wargoal_focus
        }	  		  
    }    
}
country_event = {
	id = taitseo.24
	title = taitseo.24.t
	desc = taitseo.24.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.24.a
        ZTI = {
			set_autonomy = {
				target = ZCL
				autonomous_state = autonomy_colony
			}
		} 
        ZCL = {	
		    set_cosmetic_tag = ZCL_Azuma
            set_politics = {
			    ruling_party = democratic			
			    elections_allowed = no
		    }
			create_country_leader = {
                name = "Совет Такумии"
		        picture = "Sovet_Takumii.dds"
		        portrait_path = "gfx/leaders/ZCL/Sovet_Takumii.dds"
			    expire = "2020.1.1"
			    ideology = corporatocracy 
			}
			hidden_effect = {
                set_popularities = {
                    democratic = 100
                    neutrality = 0
                    fascism = 0
                    communism = 0
				}
		    }               
        }		
    }    
}  
country_event = {
	id = taitseo.25
	title = taitseo.25.t
	desc = taitseo.25.d
    is_triggered_only = yes
    fire_only_once = yes  	
	option = {
        name = taitseo.25.a
        ZCL = {	
		    set_cosmetic_tag = ZCL_Azuma
            set_politics = {
			    ruling_party = democratic
			    last_election = "1986.2.2"			
			    elections_allowed = no
		    }
			create_country_leader = {
                name = "Совет Такумии"
		        picture = "Sovet_Takumii.dds"
		        portrait_path = "gfx/leaders/ZCL/Sovet_Takumii.dds"
			    expire = "2020.1.1"
			    ideology = corporatocracy 
			}
			hidden_effect = {
                set_popularities = {
                    democratic = 100
                    neutrality = 0
                    fascism = 0
                    communism = 0
				}
		    }               
        } 		
    } 
} 
country_event = {
	id = taitseo.26
	title = taitseo.26.t
	desc = taitseo.26.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
    fire_only_once = yes
	option = {
        name = taitseo.26.a
        complete_national_focus = zti_edinstvo_atlantiki																							
    }
    option = {
        name = taitseo.26.b
		trigger = {
		    ZNP = {
				exists = yes
                has_war_with = ZJA
                has_government = neutrality
		    }
		}
        complete_national_focus = zti_voshozhdenie_na_fudzi																								
    }
    option = {
        name = taitseo.26.c
        complete_national_focus = zti_chest_i_slava_adzumy																								
    }
    option = {
        name = taitseo.26.e
        country_event = taitseo.27 																								
    }
}
country_event = {
	id = taitseo.27
	title = taitseo.27.t
	desc = taitseo.27.d
	is_triggered_only = yes	
	fire_only_once = no	
	option = {
        name = taitseo.27.a
		if = {
		    limit = {
			    has_completed_focus = zti_restrukturizatsiya_koncessii
			}
			country_event = taitseo.30 
		}
		else_if = {
		    limit = {
			    ZNP = {
				    exists = yes
                    has_war_with = ZJA
                    has_government = neutrality
				}
			}
            country_event = taitseo.28	 
        }
        else = {
		    country_event = taitseo.29
        }		
    }          
} 
country_event = {
	id = taitseo.28
	title = taitseo.28.t
	desc = taitseo.28.d
	is_triggered_only = yes	
	fire_only_once = no	
	option = {
        name = taitseo.28.a
        country_event = taitseo.29	  
    }          
} 
country_event = {
	id = taitseo.29
	title = taitseo.29.t
	desc = taitseo.29.d
	is_triggered_only = yes	
	fire_only_once = no	
	option = {
        name = taitseo.29.a
        country_event = taitseo.26 	  
    }          
}
country_event = {
	id = taitseo.30
	title = taitseo.30.t
	desc = taitseo.30.d
	is_triggered_only = yes	
	fire_only_once = no	
	option = {
        name = taitseo.30.a 	  
    }          
}
country_event = {
	id = taitseo.31
	title = taitseo.31.t
	desc = taitseo.31.d
    is_triggered_only = yes
	fire_only_once = yes
    option = {
		name = taitseo.31.a 
        add_ideas = zti_idealy
    }
} 
country_event = {
	id = taitseo.32
	title = taitseo.32.t
	desc = taitseo.32.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.32.a
        country_event = taitseo.33 
    }          
}
country_event = {
	id = taitseo.33
	title = taitseo.33.t
	desc = taitseo.33.d
	is_triggered_only = yes	
    fire_only_once = yes	
	option = {
        name = taitseo.33.a	  
    }          
}
country_event = {
	id = taitseo.34
	title = taitseo.34.t
	desc = taitseo.34.d
	is_triggered_only = yes	
    fire_only_once = yes
	option = {
        name = taitseo.34.a
        ZNP = {	
            create_faction = znp_amaterasu
            add_to_faction = ZTI
        }  
    }          
} 
country_event = {
	id = taitseo.35
	title = taitseo.35.t
	desc = taitseo.35.d
	is_triggered_only = yes
    fire_only_once = yes
	option = {
        name = taitseo.35.a
    }          
}  
country_event = {
	id = taitseo.36
	title = taitseo.36.t
	desc = taitseo.36.d
	is_triggered_only = yes	
    fire_only_once = yes
	option = {
        name = taitseo.36.a
        ZNP = {
            annex_country = {
                target = ZTI
                transfer_troops = yes
            }
        }       
    }          
}
country_event = {
	id = taitseo.37
	title = taitseo.37.t
	desc = taitseo.37.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.37.a
    }          
}
country_event = {
	id = taitseo.38
	title = taitseo.38.t
	desc = taitseo.38.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
    fire_only_once = yes		
	option = {
        name = taitseo.38.a 
        ZTI_gustavo_okumura = {		
            promote_character = yes	
        }			
    }
    option = {
        name = taitseo.38.b
        ZTI_koji_kawakami = {		
            promote_character = yes	
        }
    }
    option = {
        name = taitseo.38.c
        country_event = taitseo.27 
    }
}

country_event = {
	id = taitseo.39
	title = taitseo.39.t
	desc = taitseo.39.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.39.a
    }          
}

country_event = {
	id = taitseo.40
	title = taitseo.40.t
	desc = taitseo.40.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	fire_only_once = no
	option = {
		name = taitseo.40.a # да
		ai_chance = {
			factor = 10
			modifier = {
				factor = 1.2
				has_war = yes
			}
			modifier = {
				factor = 1.8
				has_opinion = {
					target = ZTI
					value > 25
				}
			}
		}
	    add_to_faction = ZTI
		ZTI = { 
		    country_event = taitseo.41
		}
	}	
	option = {
		name = taitseo.40.b	#нет
		ai_chance = {
			factor = 8
			modifier = {
				factor = 1.2
				ZTI = {
					has_war = yes
				}	
			}
			modifier = {
				factor = 1.8
				has_opinion = {
					target = ZTI
					value < -25
				}	
			}
		}
        ZTI = { 
		    country_event = taitseo.42
		}		
	}
}
country_event = {
	id = taitseo.41
	title = taitseo.41.t
	desc = taitseo.41.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.41.a
    }          
}
country_event = {
	id = taitseo.42
	title = taitseo.42.t
	desc = taitseo.42.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.42.a
    }          
}

country_event = {
	id = taitseo.43
	title = taitseo.43.t
	desc = taitseo.43.d
    is_triggered_only = yes
    fire_only_once = yes    
	
	option = {
		name = taitseo.43.a 
		release_puppet = ZNR
        ZNR = {	
		    set_cosmetic_tag = ZNR_Kaidzaria
            set_politics = {
			    ruling_party = democratic			
			    elections_allowed = no
		    }
			create_country_leader = {
                name = "Габриэль Флемия"
		        picture = "Gabryelle_Flemia.dds"
		        portrait_path = "gfx/leaders/ZNR/Gabryelle_Flemia.dds"
			    expire = "2020.1.1"
			    ideology = plutokratia 
			}
			hidden_effect = {
                set_popularities = {
                    democratic = 100
                    neutrality = 0
                    fascism = 0
                    communism = 0
				}
		    }               
        }                   																									
    }                        
}
country_event = {
	id = taitseo.44
	title = taitseo.44.t
	desc = taitseo.44.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.44.a
    }          
}
country_event = {
	id = taitseo.45
	title = taitseo.45.t
	desc = taitseo.45.d
	is_triggered_only = yes
    fire_only_once = yes	
	option = {
        name = taitseo.45.a
		ZTI = {
			add_to_faction = ROOT
		}
		ai_chance = {
			base = 1
		}
    }    
	option = {
        name = taitseo.45.b
    }              
}
