﻿add_namespace = ilam

country_event = {
	id = ilam.1
	title = ilam.1.t
	desc = ilam.1.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.1.a
		ai_chance = {
			factor = 5
		}
		set_country_flag = zcy_regent
		mark_focus_tree_layout_dirty = yes
		country_event = { id = ilam.25 days = 15 }
	}
	option = { 
		name = ilam.1.b
		ai_chance = {
			factor = 5
		}
		set_country_flag = zcy_pravitelstvo
		mark_focus_tree_layout_dirty = yes
	}
}

#Путь правительства
country_event = {
	id = ilam.2
	title = ilam.2.t
	desc = ilam.2.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes
	option = { 
		name = ilam.2.a
		ZCS = {
		    country_event = ilam.4
		}
		XMY = {
		    country_event = ilam.3
		}
	}
}

country_event = {
	id = ilam.3
	title = ilam.3.t
	desc = ilam.3.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.3.a
	}
}

country_event = {
	id = ilam.4
	title = ilam.4.t
	desc = ilam.4.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = {
		name = ilam.4.a
		ai_chance = {
		    factor = 8
		}
		if = {
		    limit = {
			    ZCY = {
				    has_country_flag = zcy_pravitelstvo
				}
			}
			ZCY = {
			    country_event = ilam.5
		    }
		}
		if = {
		    limit = {
			    ZCY = {
				    has_country_flag = zcy_regent
				}
			}
			ZCY = {
			    country_event = ilam.27
		    }
		}
		hidden_effect = {
		    news_event = {
			    id = ilam_news.1
				hours = 3
			}
		}
	}
	option = {
		name = ilam.4.b
		ai_chance = {
		    factor = 2
		}
		if = {
		    limit = {
			    ZCY = {
				    has_country_flag = zcy_pravitelstvo
				}
			}
			ZCY = {
			    country_event = ilam.9
		    }
		}
		if = {
		    limit = {
			    ZCY = {
				    has_country_flag = zcy_regent
				}
			}
			ZCY = {
			    country_event = { id = ilam.26 days = 70 }
		    }
		}
	}
}

country_event = {
	id = ilam.5
	title = ilam.5.t
	desc = ilam.5.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.5.a
		random_list = {
		    25 = {
			    country_event = ilam.6
			}
			15 = {
			    country_event = ilam.7
			}
        }
	}
}

country_event = {
	id = ilam.6
	title = ilam.6.t
	desc = ilam.6.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.6.a
        retire_country_leader = yes
		ZCY_aras = {
		    promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_aras_party_long
            name = ZCY_aras_party
        }
		set_country_flag = zcy_civil_war_over
		mark_focus_tree_layout_dirty = yes
		remove_ideas = zcy_monarchist_coup
		add_timed_idea = {
		    idea = zcy_borba_so_stavlennikami
		    days = 220
		}
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
	}
}
country_event = {
	id = ilam.7
	title = ilam.7.t
	desc = ilam.7.d
	picture = GFX_report_event_pokushenie
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.7.a
        add_stability = -0.15
		add_manpower = -79
		ZCY_aras = {
		    promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_aras_party
            name = ZCY_aras_party_long
        }
		set_country_flag = zcy_civil_war_over
		mark_focus_tree_layout_dirty = yes
		remove_ideas = zcy_monarchist_coup
		add_timed_idea = {
		    idea = zcy_borba_so_stavlennikami
		    days = 220
		}
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
		country_event = ilam.8
		ZCS = {
		    country_event = ilam.8
		}
	}
	option = { 
		name = ilam.7.b
        add_stability = -0.15
		add_manpower = -79
		country_event = ilam.47
	}
}
country_event = {
	id = ilam.8
	title = ilam.8.t
	desc = ilam.8.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.8.a
		add_stability = 0.5
		add_manpower = -1
		join_lingsan_liga = yes
		hidden_effect = {
		    news_event = {
			    id = ilam_news.2
				hours = 3
			}
		}
	}
}
country_event = {
	id = ilam.9
	title = ilam.9.t
	desc = ilam.9.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.9.a
		set_country_flag = zcy_choson_disagree
	}
}
country_event = {
	id = ilam.10
	title = ilam.10.t
	desc = ilam.10.d
	picture = GFX_report_event_ilam_2
	fire_only_once = yes
	is_triggered_only = yes	
	immediate = {
	    hidden_effect = {
		    ZCY = {
			    remove_ideas = zcy_monarchist_coup
				set_cosmetic_tag = ZCY_Anand
			    ZCY_aras = {
			        set_nationality = XMD 
			    }
			    ZCY_shanmugam_arkannan = {
			        set_nationality = XMD 
			    }
			    ZCY_kanagaratnam_nadesan = {
			        set_nationality = XMD 
			    }
			    ZCY_arumugam_shanmugam = {
			        set_nationality = XMD 
			    }
			    ZCY_djarayadj_dji = {
			        set_nationality = XMD 
			    }
			    ZCY_kavin_gopinatan = {
			        set_nationality = XMD 
			    }
			    ZCY_arunachalam_lakshman = {
			        set_nationality = XMD 
			    }
			    ZCY_kavin_romesh = {
			        set_nationality = XMD 
			    }
			    ZCY_jayaraj_ponnambalam = {
			        set_nationality = XMD 
			    }
			    ZCY_chon_kiran = {
			        set_nationality = XMD 
			    }
			    add_ai_strategy = {
				    type = conquer
				    id = XMD
				    value = 300
			    }
			    add_ai_strategy = {
				    type = antagonize
				    id = XMD
				    value = 300
			    }
			    every_state = {
				    limit = { is_owned_by = XMD }				
				    add_core_of = ZCY
				}
			}
			XMD = { 
			    transfer_state = 423
				every_state = {
				    limit = { is_core_of = ZCY }
				    add_core_of = XMD
			    }
			    declare_war_on = {
                    target = ZCY
                    type = civil_war
                } 
				add_civil_war_target = ZCY		
				add_ai_strategy = {
					type = conquer
					id = ZCY
					value = 300
				}
				add_ai_strategy = {
					type = antagonize
					id = ZCY
					value = 300
				}
			    ZCY_aras = {
		            promote_character = yes
		        }
			    inherit_technology = ZCY
				set_country_flag = zcy_pravitelstvo
				load_focus_tree = { tree = ZCY keep_completed = yes }
		    }
			transfer_units_fraction = {
				target = XMD
				size = 0.5 
				stockpile_ratio = 0.6
				army_ratio = 0.5
				navy_ratio = 0.6
				air_ratio = 0.6
			}
			if = {
			    limit = {
				    has_country_flag = zcy_pravitelstvo
				}
				ZCY = {
				    clr_country_flag = zcy_pravitelstvo
			        set_country_flag = zcy_regent
					mark_focus_tree_layout_dirty = yes
					unlock_national_focus = zcy_starye_shramy
				    complete_national_focus = zcy_monopolizatsiya_torgovli
			        complete_national_focus = zcy_podmyat_konkurentov
			        complete_national_focus = zcy_podderzhka_klanov
			        complete_national_focus = zcy_dvorets_ananda
				}
				XMD = {
				    change_tag_from = ZCY
				}
			}
			if = {
			    limit = { 
				    has_country_flag = zcy_anand_survived
				}
				country_event = { id = ilam.59 days = 1 }
				ZCS = { country_event = ilam.48 }
				XMD = {
				    unlock_national_focus = zcy_starye_shramy
				    unlock_national_focus = zcy_sverzhenie_uzurpatora				
			        unlock_national_focus = zcy_lichnye_zavody
				    unlock_national_focus = zcy_narod_protiv_regenta
				    unlock_national_focus = zcy_beregovye_ukrepy
				    unlock_national_focus = zcy_vremya_vystupleniya
					transfer_state = 281
				    transfer_state = 709
				    transfer_state = 712
				    transfer_state = 733
				    transfer_state = 825
				    transfer_state = 922
				    transfer_state = 1018	
				    transfer_state = 1055
				}
			}
			else_if = {
			    limit = {
				    has_country_flag = zcy_choson_disagree
			    }
				ZCS = { country_event = ilam.53 }
				XMD = {
				    unlock_national_focus = zcy_starye_shramy
				    unlock_national_focus = zcy_sverzhenie_uzurpatora				
				    complete_national_focus = zcy_lichnye_zavody
				    complete_national_focus = zcy_narod_protiv_regenta
				    complete_national_focus = zcy_beregovye_ukrepy
				    unlock_national_focus = zcy_vremya_vystupleniya
					transfer_state = 281
				    transfer_state = 709
				    transfer_state = 712
				    transfer_state = 733
				    transfer_state = 825
				    transfer_state = 922
				    transfer_state = 1018	
				    transfer_state = 1055
			    }
			}
			XMY = {
			    country_event = ilam.51
			}
		    country_event = { id = ilam.11 days = 3 }
			news_event = {
			    id = ilam_news.3
				hours = 3
			}
		}
	}
	option = { 
		name = ilam.10.a
		ai_chance = {
			base = 2000			
		}
		custom_effect_tooltip = ilam.10.a.tt
	}
}

#Мелайя
country_event = {
	id = ilam.11
	title = ilam.11.t
	desc = ilam.11.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.11.a
		set_autonomy = {
            target = ZCH
            autonomy_state = autonomy_free
		}
		ZCH = {
            set_politics = {
	            ruling_party = fascism
                elections_allowed = no
			}
			drop_cosmetic_tag = yes
        }
		hidden_effect = {
		    ZCH = {
			    set_popularities = {
	                democratic = 24
	                neutrality = 15
	                fascism = 56
	                communism = 5
                }
			    transfer_state = 922
		        country_event = { id = ilam.12 days = 45 } 
			}
		}
	}
}
country_event = {
	id = ilam.12
	title = ilam.12.t
	desc = ilam.12.d
	picture = GFX_report_event_ilam_3
	fire_only_once = yes
	is_triggered_only = yes
    immediate = {
	    hidden_effect = {
		    ZCH_setiamar_abdurahman_permata = {
			    set_nationality = ZCE
			}	
			add_ai_strategy = {
				type = conquer
				id = ZCE
				value = 300
			}
			add_ai_strategy = {
				type = antagonize
				id = ZCE
				value = 300
			}
			every_state = {
				limit = { is_core_of = ZCH }
				add_core_of = ZCE
				add_claim_by = ZCE
			}
			every_state = {
				limit = { is_owned_by = ZCE }				
				add_claim_by = ZCH
			}
			set_capital = { state = 921 }
		    ZCE = {
			    transfer_state = 672
				transfer_state = 920
			    declare_war_on = {
                    target = ZCH
                    type = civil_war
                } 
				add_civil_war_target = ZCH
				add_ai_strategy = {
					type = conquer
					id = ZCH
					value = 300
				}
				add_ai_strategy = {
					type = antagonize
					id = ZCH
					value = 300
				}
				ZCH_setiamar_abdurahman_permata = {
			        promote_character = yes
			    }
			    inherit_technology = ZCH
		    }
			transfer_units_fraction = {
				target = ZCE
				size = 0.5 
				stockpile_ratio = 0.5
				army_ratio = 0.5
				navy_ratio = 0.5
				air_ratio = 0.5
			}
		    news_event = {
			    id = ilam_news.4
				hours = 3
			}
		}
    }	
	option = { 
		name = ilam.12.a		
	}
	option = { 
		name = ilam.12.b
		ZCE = {
		    change_tag_from = ZCH
		}
	}
}

#Ивенты поддержки
country_event = {
	id = ilam.13
	title = ilam.13.t
	desc = ilam.13.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.13.a
		ai_chance = {
			factor = 8
		}
		XMD = {
		    join_lingsan_liga = yes
		}
		add_to_war = {
            targeted_alliance = XMD
            enemy = ZCY
            hostility_reason = asked_to_join
        }
	}
	option = { 
		name = ilam.13.b
		ai_chance = {
			factor = 2
		}
	}
}
country_event = {
	id = ilam.14
	title = ilam.14.t
	desc = ilam.14.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.14.a
		ai_chance = {
			factor = 7
		}
		XMD = {
		    give_military_access = XMY
		}
		add_to_war = {
            targeted_alliance = XMD
            enemy = ZCY
            hostility_reason = asked_to_join
        }
	}
	option = { 
		name = ilam.14.b
		ai_chance = {
			factor = 3
		}
	}
}

#Победа правительства в ГВ
country_event = {
	id = ilam.15
	title = ilam.15.t
	desc = ilam.15.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.15.a
        add_stability = 0.1
		add_popularity = {
            ideology = neutrality
            popularity = 0.12
        }
		remove_ideas = zcy_narod_protiv_regenta
		hidden_effect = {
		    every_state = {
			    limit = {
				    is_core_of = ZCY
				}
				remove_core_of = ZCY
			}
		}
	}
}

country_event = {
	id = ilam.16
	title = ilam.16.t
	desc = ilam.16.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.16.a
		country_event = ilam.17
        swap_ideas = {
		    remove_idea = zcy_stagnatsiya_ekonomiki
		    add_idea = zcy_razval_ekonomiki
		}
		add_ideas = zcy_bolezni
	}
}
country_event = {
	id = ilam.17
	title = ilam.17.t
	desc = ilam.17.d
	picture = GFX_report_event_ilam_4
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.17.a
		add_popularity = {
            ideology = communism
            popularity = 0.35
        }
		hidden_effect = {
		    country_event = { id = ilam.18 days = 9 }
		}
	}
}
country_event = {
	id = ilam.18
	title = ilam.18.t
	desc = ilam.18.d
	picture = GFX_report_event_ilam_5
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.18.a
		ai_chance = {
			factor = 3
		}
		add_stability = -0.1
        add_manpower = -14
		custom_effect_tooltip = ilam.18.tt
		set_country_flag = zcy_omniputch
		mark_focus_tree_layout_dirty = yes
	}
	option = { 
		name = ilam.18.b
		ai_chance = {
			factor = 7
		}
		add_manpower = -14
		hidden_effect = {
		    country_event = { id = ilam.19 days = 5 hours = 4 }
		}
	}
}
country_event = {
	id = ilam.19
	title = ilam.19.t
	desc = ilam.19.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.19.a
        add_stability = -0.25
		add_manpower = -2459
		add_popularity = {
            ideology = communism
            popularity = -0.1
        }
		random_list = {
		    10 = {
			    every_owned_state = {
			        damage_building = {
                        type = infrastructure
                        damage = 1
					}
                }
			}
			10 = {
			    every_owned_state = {
			        damage_building = {
                        type = infrastructure
                        damage = 2
					}
                }
			}
			10 = {
			    every_owned_state = {
			        damage_building = {
                        type = infrastructure
                        damage = 3
					}
                }
			}
		}
		remove_ideas = zcy_rodovye_klany
		add_timed_idea = {
		    idea = zcy_kontrterror
			days = 480
		}
		ZCY_ganesan_anbil = {
			remove_unit_leader = yes
		}
		ZCY_surendar_vishrajesh = {
			remove_unit_leader = yes
		}
		hidden_effect = {
		    news_event = {
			    id = ilam_news.5
				hours = 3
			}
		}
	}
}
country_event = {
	id = ilam.20
	title = ilam.20.t
	desc = ilam.20.d
	picture = GFX_report_event_pravitelstvo
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.20.a
		XMY = {
		    country_event = ilam.40
		}
	}
}
country_event = {
	id = ilam.21
	title = ilam.21.t
	desc = ilam.21.d
	picture = GFX_report_event_sellapan
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.21.a
		add_stability = 0.15
		XMY = {
		    XMY_sellapan_pandya = {
		        set_nationality = ROOT
			}
		}
		XMY_sellapan_pandya = {
			promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_pandya_party_long
            name = ZCY_pandya_party
        }
		set_cosmetic_tag = ZCY_Milapur
        annex_country = {
            target = XMY
            transfer_troops = yes
        }
		every_state = {
		    limit = {
			    is_core_of = XMY
			}
			add_core_of = ROOT
			remove_core_of = XMY
		}
	}
}
country_event = {
	id = ilam.22
	title = ilam.22.t
	desc = ilam.22.d
	picture = GFX_report_event_varmanar
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.22.a
		add_stability = 0.15
		XMY = {
		    XMY_varmanar_pandya = {
		        set_nationality = ROOT
		    }
		}
		XMY_varmanar_pandya = {
			promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_pandya_party_long
            name = ZCY_pandya_party
        }
        set_cosmetic_tag = ZCY_Milapur
	}
}
country_event = {
	id = ilam.23
	title = ilam.23.t
	desc = ilam.23.d
	picture = GFX_report_event_ranadhira
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.23.a
		add_stability = 0.15
		XMY = {
		    XMY_ranadhira_pandya = {
		        set_nationality = ROOT
			}
		}
		XMY_ranadhira_pandya = {
			promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_pandya_party_long
            name = ZCY_pandya_party
        }
        set_cosmetic_tag = ZCY_Milapur
	}
}
country_event = {
	id = ilam.24
	title = ilam.24.t
	desc = ilam.24.d
	picture = GFX_report_event_diary
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.24.a
	}
}

#Путь Ананда
country_event = {
	id = ilam.25
	title = ilam.25.t
	desc = ilam.25.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.25.a
		hidden_effect = {
		    ZCS = { country_event = ilam.4 }
		}
	}
}
country_event = {
	id = ilam.26
	title = ilam.26.t
	desc = ilam.26.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.26.a
		leave_lingsan_liga = yes
		activate_mission = zcy_madurayskoe_vosstanie
		activate_mission_tooltip = zcy_madurayskoe_vosstanie
		set_country_flag = zcy_preparations
	}
}
country_event = {
	id = ilam.27
	title = ilam.27.t
	desc = ilam.27.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.27.a
		ai_chance = {
		    factor = 3
		}
		ZCS = { country_event = ilam.42 }
	}
	option = { 
		name = ilam.27.b
		ai_chance = {
		    factor = 7
		}
		retire_country_leader = yes
		ZCY_aras = {
		    promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_aras_party_long
            name = ZCY_aras_party
        }
		set_country_flag = zcy_civil_war_over
		mark_focus_tree_layout_dirty = yes
		remove_ideas = zcy_monarchist_coup
		add_timed_idea = {
		    idea = zcy_borba_so_stavlennikami
		    days = 220
		}
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
	}
}
country_event = {
	id = ilam.28
	title = ilam.28.t
	desc = ilam.28.d
	picture = GFX_report_event_regent
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.28.a
        add_stability = 0.15
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_vanyar_party_long
            name = ZCY_vanyar_party
        }
		hidden_effect = {
		    every_state = {
			    limit = {
				    is_core_of = XMD
				}
				remove_core_of = XMD
			}
			unlock_national_focus = zcy_arest_zagovorshikov
		}
	}
}
#путь рад.тамилов
country_event = {
	id = ilam.29
	title = ilam.29.t
	desc = ilam.29.d
	picture = GFX_report_event_ilam_3
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.29.a
		add_stability = -0.1
		add_popularity = {
            ideology = fascism
            popularity = 0.25
        }
		add_popularity = {
            ideology = neutrality
            popularity = -0.2
        }
		set_politics= {
            ruling_party = fascism
            elections_allowed = no
        }
		set_capital = { state = 423 }
		hidden_effect = {
		    news_event = {
			    id = ilam_news.6
				hours = 3
			}
		}
	}
}
country_event = {
	id = ilam.30
	title = ilam.30.t
	desc = ilam.30.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.30.a
		add_stability = -0.12
		add_manpower = -389
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
		add_timed_idea = { 
		    idea = zcy_ochistka_gos_apparata
		    days = 60
		}
		add_ideas = zcy_ochistka_generaliteta
	}
}
country_event = {
	id = ilam.31
	title = ilam.31.t
	desc = ilam.31.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.31.a
        kill_ideology_leader = neutrality
		add_popularity = {
            ideology = fascism
            popularity = 0.08
        }
	}
	option = { 
		name = ilam.31.b
        kill_ideology_leader = neutrality
		add_stability = 0.05
	}
}
country_event = {
	id = ilam.32
	title = ilam.32.t
	desc = ilam.32.d
	picture = GFX_report_event_ilam_4
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.32.a
        add_stability = 0.15
		add_manpower = -14
		add_popularity = {
            ideology = communism
            popularity = 0.3
        }
		set_politics= {
            ruling_party = communism
            elections_allowed = no
        }
		if = {
			limit = {
				tag = XMD
			}
			set_capital = { state = 422 }
		}
		add_ideas = zcy_nashi_idealy
		add_ideas = zcy_kontrrevolt
		ZCY_shanmugam_arkannan = {
			remove_unit_leader = yes
		}
		ZCY_kanagaratnam_nadesan = {
			remove_unit_leader = yes
		}
		hidden_effect = {
		    news_event = {
			    id = ilam_news.7
				hours = 3
			}
		}
	}
}
country_event = {
	id = ilam.33
	title = ilam.33.t
	desc = ilam.33.d
	picture = GFX_report_event_ilam_5
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.33.a
        add_stability = -0.15
		add_manpower = -1278
	}
}
country_event = {
	id = ilam.34
	title = ilam.34.t
	desc = ilam.34.d
	picture = GFX_report_event_komitet
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.34.a
		1018 = {
		    add_core_of = XEA
		}
		825 = {
		    add_core_of = XEH
		}
		release = XEA
		release = XEH
		if = {
		    limit = {
                ZCH = {
				    NOT = {
					    is_subject_of = ROOT
					}
				}
			}
			ZSM = {
			    transfer_state = 733
			}
		    set_autonomy = {
                target = ZCH
                autonomy_state = autonomy_free
		    }
		    ZCH = {
                set_politics = {
	                ruling_party = fascism
                    elections_allowed = no
			    }
			    drop_cosmetic_tag = yes
		    }	
		    hidden_effect = {
		        ZCH = {
			        set_popularities = {
	                    democratic = 24
	                    neutrality = 15
	                    fascism = 56
	                    communism = 5
                    }
			        transfer_state = 922
		            country_event = { id = ilam.12 days = 45 } 
				}
			}
		}
	}
	option = { 
		name = ilam.34.b
		1018 = {
		    add_core_of = XEA
		}
		825 = {
		    add_core_of = XEH
		}
		XEA = {
		    set_cosmetic_tag = XEA_EELAM
		}
		XEH = {
		    set_cosmetic_tag = XEH_EELAM
		}
		release_puppet = XEA
		release_puppet = XEH
		every_owned_state = {
		    limit = {
			    NOT = {
				    is_core_of = ROOT
					is_core_of = XEA
					is_core_of = XEH
				}
			}
			add_core_of = ROOT
		}
	}
	option = { 
		name = ilam.34.c
		every_owned_state = {
		    limit = {
			    NOT = {
				    is_core_of = ROOT
				}
			}
			add_core_of = ROOT
		}
	}
}
country_event = {
	id = ilam.35
	title = ilam.35.t
	desc = ilam.35.d
	picture = GFX_report_event_komitet
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.35.a
		add_stability = 0.15
	}
}
country_event = {
	id = ilam.36
	title = ilam.36.t
	desc = ilam.36.d
	picture = GFX_report_event_komitet
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.36.a
		add_ideas = zcy_polit_krizis
	}
}
#Какие то ивенты с описанием
country_event = {
	id = ilam.37
	title = ilam.37.t
	desc = ilam.37.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.37.a
	}
}
country_event = {
	id = ilam.38
	title = ilam.38.t
	desc = ilam.38.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.38.a
	}
}
country_event = {
	id = ilam.39
	title = ilam.39.t
	desc = ilam.39.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.39.a
	}
}
country_event = {
	id = ilam.40
	title = ilam.40.t
	desc = ilam.40.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.40.a
		ai_chance = {
			factor = 5
		}
		FROM = {
		    country_event = ilam.21 
		}
	}
	option = { 
		name = ilam.40.b
		ai_chance = {
			factor = 5
		}
		FROM = {
		    country_event = ilam.41
		}
	}
}
country_event = {
	id = ilam.41
	title = ilam.41.t
	desc = ilam.41.d
	picture = GFX_report_event_pravitelstvo
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.41.a
		ai_chance = {
			factor = 5
		}
		country_event = ilam.22
	}
	option = { 
		name = ilam.41.b
		ai_chance = {
			factor = 5
		}
		country_event = ilam.23
	}
}

country_event = {
	id = ilam.42
	title = ilam.42.t
	desc = ilam.42.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.42.a
		ZCY = {
		    add_ideas = zcy_izgoy_ligi
		    country_event = ilam.43
		}
	}
}

country_event = {
	id = ilam.43
	title = ilam.43.t
	desc = ilam.43.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.43.a
		ai_chance = {
		    factor = 3
		}
		ZCS = { country_event = ilam.44 }
	}
	option = { 
		name = ilam.43.b
		ai_chance = {
		    factor = 7
		}
		retire_country_leader = yes
		ZCY_aras = {
		    promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_aras_party_long
            name = ZCY_aras_party
        }
		set_country_flag = zcy_civil_war_over
		mark_focus_tree_layout_dirty = yes
		remove_ideas = zcy_monarchist_coup
		add_timed_idea = {
		    idea = zcy_borba_so_stavlennikami
		    days = 220
		}
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
	}
}
country_event = {
	id = ilam.44
	title = ilam.44.t
	desc = ilam.44.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.44.a
		ZCY = {
		    leave_lingsan_liga = yes
		    country_event = ilam.45
		}
	}
}

country_event = {
	id = ilam.45
	title = ilam.45.t
	desc = ilam.45.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.45.a
		ai_chance = {
		    factor = 3
		}
		ZCS = { country_event = ilam.46 }
	}
	option = { 
		name = ilam.45.b
		ai_chance = {
		    factor = 7
		}
		retire_country_leader = yes
		ZCY_aras = {
		    promote_character = yes
		}
		set_party_name = {
            ideology = neutrality
            long_name = ZCY_aras_party_long
            name = ZCY_aras_party
        }
		set_country_flag = zcy_civil_war_over
		mark_focus_tree_layout_dirty = yes
		remove_ideas = zcy_monarchist_coup
		add_timed_idea = {
		    idea = zcy_borba_so_stavlennikami
		    days = 220
		}
		ZCY_panayan_patmanatan = {
			remove_unit_leader = yes
		}
		ZCY_jayaram_gopinatan = {
			remove_unit_leader = yes
		}
	}
}

country_event = {
	id = ilam.46
	title = ilam.46.t
	desc = ilam.46.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.46.a
		ZCY = { country_event = ilam.7 }
	}
}
country_event = {
	id = ilam.47
	title = ilam.47.t
	desc = ilam.47.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.47.a
		country_event = { id = ilam.10 days = 1 }
		set_country_flag = zcy_anand_survived
	}
}

country_event = {
	id = ilam.48
	title = ilam.48.t
	desc = ilam.48.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.48.a
		set_country_flag = zcy_choson_disagree
		XMD = {
			country_event = ilam.49
		}
	}
	option = { 
		name = ilam.48.b
		add_to_war = {
            targeted_alliance = XMD
            enemy = ZCY
            hostility_reason = asked_to_join
        }
	    XMD = {
			country_event = ilam.50
		}
	}
	option = { 
		name = ilam.48.c
	}
}

country_event = {
	id = ilam.49
	title = ilam.49.t
	desc = ilam.49.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.49.a
	}
}

country_event = {
	id = ilam.50
	title = ilam.50.t
	desc = ilam.50.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.50.a
	}
}

country_event = {
	id = ilam.51
	title = ilam.51.t
	desc = ilam.51.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.51.a
		XMD = {
		    country_event = ilam.52
			days = 2
		}
	}
}

country_event = {
	id = ilam.52
	title = ilam.52.t
	desc = ilam.52.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.52.a
        XMY = {
		    XMY_varmanar_pandya = {
		        set_nationality = ROOT
		    }
		}
		capital_scope = {            
		    create_unit = {
				division = "name = \"1. Milapur Vēttaikkārar-1\" division_template = \"Vēttaikkārar\" start_experience_factor = 1 start_equipment_factor = 1"
				owner = XMD
			}
            create_unit = {
				division = "name = \"2. Milapur Vēttaikkārar-2\" division_template = \"Vēttaikkārar\" start_experience_factor = 1 start_equipment_factor = 1"
				owner = XMD
		    }
		    create_unit = {
			    division = "name = \"3. Milapur Vēttaikkārar-3\" division_template = \"Vēttaikkārar\" start_experience_factor = 1 start_equipment_factor = 1"
				owner = XMD
		    }
	    }
	}
}

country_event = {
	id = ilam.53
	title = ilam.53.t
	desc = ilam.53.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.53.a
		ZCY = {
		    leave_lingsan_liga = yes
		}
        XMD = {
		    join_lingsan_liga = yes
		    country_event = ilam.54
		}
	}
	option = { 
		name = ilam.53.b
		ZCY = {
		    leave_lingsan_liga = yes
		}
		XMD = {
		    country_event = ilam.55
		}
	}
}

country_event = {
	id = ilam.54
	title = ilam.54.t
	desc = ilam.54.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.54.a
    }
}

country_event = {
	id = ilam.55
	title = ilam.55.t
	desc = ilam.55.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.55.a
    }
}

country_event = {
	id = ilam.56
	title = ilam.56.t
	desc = ilam.56.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.56.a
		XMD = {
		    country_event = ilam.57
		}
    }
	option = { 
		name = ilam.56.b
    }
}

country_event = {
	id = ilam.57
	title = ilam.57.t
	desc = ilam.57.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.57.a
		join_lingsan_liga = yes
    }
	option = { 
		name = ilam.57.b
		ZCS = {
		    country_event = ilam.58
		}
    }
}

country_event = {
	id = ilam.58
	title = ilam.58.t
	desc = ilam.58.d
	picture = GFX_report_event_ilam_1
	fire_only_once = yes
	is_triggered_only = yes	
	option = { 
		name = ilam.58.a
    }
}