﻿add_namespace = yakistan

country_event = { ## STG influence
    id = yakistan.1
    title = yakistan.1.t
    desc = yakistan.1.d
    picture = GFX_event_yakistan
 
    is_triggered_only = yes

    option = {
    name = yakistan.1.a
    add_popularity = { ideology = communism popularity = 0.2 }
    ai_chance = {
            factor = 90
        }
    }
    option = {
    name = yakistan.1.b
    remove_ideas = stalliongrad_propaganda
    remove_ideas = communist_influence
    STG = {
        country_event = {
            id = stalliongrad.74 days = 1
        }
    }
    ai_chance = {
            factor = 10
        }
    }
}
country_event = { ## STG influence
    id = yakistan.2
    title = yakistan.2.t
    desc = yakistan.2.d
    picture = GFX_event_yakistan
 
    trigger = {
        tag = YAK
        NOT = { has_government = communism }
        communism > 0.45
    }
    mean_time_to_happen = { days = 40 }
    fire_only_once = yes
    option = { # support communists
        name = yakistan.8.a
        set_politics = { ruling_party = communism elections_allowed = no }
        ai_chance = { factor = 100 }
        start_civil_war = {
         ruling_party = communism  
                 ideology = neutrality
                 size = 0.5
                    }
    }
    option = { # support current government
        name = yakistan.8.b
        ai_chance = { factor = 0 }
        start_civil_war = {
                 ideology = communism
                 size = 0.5
                    }
    }
}

country_event = { # yakyakistan's attempt to settle differences
	id = yakistan.3
	title = yakistan.3.t
	desc = yakistan.3.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes
	
	option = { # accept
		name = yakistan.3.a
		ai_chance = {
			factor = 25
            modifier = {
                factor = 100
                YAK = { is_ai = yes }
            }
		}
        YAK = { country_event = { id = yakistan.4 hours = 24 } }
        set_global_flag = YAK_settled_rivalry
	}

	option = { # decline
		name = yakistan.3.b
		ai_chance = {
			factor = 75
		}
		YAK = { country_event = { id = yakistan.5 hours = 24 } }
	}
}
#brother agrees
country_event = {
	id = yakistan.4
	title = yakistan.4.t
	desc = yakistan.4.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.4.a
	}
}
#brother disagrees
country_event = {
	id = yakistan.5
	title = yakistan.5.t
	desc = yakistan.5.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.5.a
	}
}

country_event = { # counsel of elders
	id = yakistan.6
	title = yakistan.6.t
	desc = yakistan.6.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes
	
	option = { # agree to counsel of elders
		name = yakistan.6.a
		ai_chance = {
			factor = 80
			modifier = {
                factor = 100
                YAK = { is_ai = yes }
            }
		}
        JAK = { country_event = { id = yakistan.7 hours = 24 } }
	}

	option = { # decline counsel of elders
		name = yakistan.3.b
		ai_chance = {
			factor = 20
		}
		JAK = { country_event = { id = yakistan.8 hours = 24 } }
	}
}
#jakistan counsel yes
country_event = {
	id = yakistan.7
	title = yakistan.7.t
	desc = yakistan.7.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.7.a
		custom_effect_tooltip = GAME_OVER_TT
		YAK = { country_event = { id = yakistan.9 } }
	}
}
#jakistan counsel no
country_event = {
	id = yakistan.8
	title = yakistan.8.t
	desc = yakistan.8.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.8.a
		YAK = { country_event = { id = yakistan.10 } }
	}
}
#jakistan counsel yes - yakistan
country_event = {
	id = yakistan.9
	title = yakistan.9.t
	desc = yakistan.9.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.9.a
		YAK = { annex_country = { target = JAK transfer_troops = yes } }
	}
}
#jakistan counsel no - yakistan
country_event = {
	id = yakistan.10
	title = yakistan.10.t
	desc = yakistan.10.desc
	picture = GFX_event_yakistan

	is_triggered_only = yes

	option = { #war
		name = yakistan.10.a
		ai_chance = {
			factor = 0
		}

		create_wargoal = {
            type = annex_everything
            target = JAK
		}
	}

	option = { #forget it
		name = yakistan.10.b
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { # insult jakistan
	id = yakistan.11
	title = yakistan.11.t
	desc = yakistan.11.desc
	picture = GFX_event_yakistan
	
	is_triggered_only = yes

	option = {
		name = yakistan.11.a
		# INSERT BAD RELATIONS HERE
	}
}
country_event = { # Changeling Puppet
	id = yakistan.12
	title = yakistan.12.t
	desc = yakistan.12.d
	picture = GFX_event_yakistan
	
	trigger = {
		original_tag = YAK
		is_subject_of = CHN
	}
	fire_only_once = yes
        	mean_time_to_happen = { days = 1 }
	option = {
		name = yakistan.12.a
		set_cosmetic_tag = YAK_CHN
		add_political_power = -300
	}
}
country_event = { # Changeling Puppet
	id = yakistan.13
	title = yakistan.13.t
	desc = yakistan.13.d
	picture = GFX_event_yakistan
	
	trigger = {
		original_tag = JAK
		is_subject_of = CHN
	}
	fire_only_once = yes
        	mean_time_to_happen = { days = 1 }
	option = {
		name = yakistan.13.a
		set_cosmetic_tag = JAK_CHN
		add_political_power = -300
	}
}