add_namespace = ming

country_event = {     
    id = ming.1
    title = ming.1.t    # Purge The Reformists
    desc = ming.1.desc
	
	picture = GFX_report_event_chinese_army_training

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.1.a ### Execute
        ai_chance = {
            base = 80
        }

        custom_effect_tooltip = tooltipwhitelinelol
        custom_effect_tooltip = processdays_tt

        hidden_effect = {
        MIG = { country_event = { id = ming.2 days = 3 }}
        }

    }
    option = {
        name = ming.1.b ### Trial
        ai_chance = {
            base = 20
        }

        custom_effect_tooltip = tooltipwhitelinelol
        custom_effect_tooltip = processdays_tt
        
        hidden_effect = {
        MIG = { country_event = { id = ming.3 days = 3 }}
        }
    }
}

country_event = {     
    id = ming.2
    title = ming.2.t    # Reformists Executed!
    desc = ming.2.desc
	
	picture = GFX_report_event_chinese_army_training

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.2.a 
        ai_chance = {
            base = 200
        }

        add_timed_idea = { idea = MING_reformistsexecuted days = 565 }

    }
}

country_event = {     
    id = ming.3
    title = ming.3.t    # Reformists Trialed... FAILED!
    desc = ming.3.desc
	
	picture = GFX_report_event_chinese_soldiers_running

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.3.a 
        ai_chance = {
            base = 200
        }

        add_timed_idea = { idea = MING_reformistsbrokeout days = 565 }

    }
}

country_event = {
    id = ming.4
    title = ming.4.t    # Destroy the Republicans Once And For All
    desc = ming.4.desc
	
	picture = GFX_report_event_chinese_army_training

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.4.a ### We'll never give up!
        ai_chance = {
            base = 90
        }

        MIG = { country_event = { id = ming.5 days = 1 }}

    }
    option = {
        name = ming.4.b ### Give In
        ai_chance = {
            base = 5
        }


        MIG = { country_event = { id = ming.6 days = 1 }}
    }
}

country_event = {     
    id = ming.5
    title = ming.5.t    # The Republicans Fight!
    desc = ming.5.desc
	
	picture = GFX_report_event_chinese_soldiers_city_ruin

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.5.a 
        ai_chance = {
            base = 200
        }

        declare_war_on = {
            target = CRP
            type = annex_everything
        }

        hidden_effect = {
            CRP = { add_timed_idea = { idea = CRP_safeguard_the_republic_at_all_costs days = 656 }}
            CRP = { load_oob = "CRP_war1" }
        }

        news_event = ming.202

    }
}

country_event = {   
    id = ming.6
    title = ming.6.t    # The Republicans Actually Give Up?
    desc = ming.6.desc
	
	picture = GFX_report_event_chinese_soldiers

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.6.a 
        ai_chance = {
            base = 200
        }

        annex_country = {
            target = CRP
            transfer_troops = yes 
        }

    }
}

country_event = {
    id = ming.7
    title = ming.7.t    # Change Tianming Principles
    desc = ming.7.desc
	
	picture = GFX_report_event_chinese_soldiers

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.7.a ### Unity, Virtue, Prosperity
        ai_chance = {
            base = 80
        }

        add_ideas = unityvirtueprosperity
    }

    option = {
        name = ming.7.b ### Strength, Order, Sovereignty
        ai_chance = {
            base = 20
        }

        add_ideas = strengthordersoverignity
    }

    option = {
        name = ming.7.c ### Blood, Obedience, Destiny
        ai_chance = {
            base = 10
        }

        add_ideas = bloodobediencedestiny
    }
}

country_event = {     
    id = ming.8
    title = ming.8.t    # Xinjiang Menance
    desc = ming.8.desc
	
	picture = GFX_report_event_chinese_army_training

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.8.a ### Fight!
        ai_chance = {
            base = 60
        }

        MIG = { country_event = { id = ming.9 days = 1 }}

    }
    option = {
        name = ming.8.b ### Hell nah
        ai_chance = {
            base = 40
        }

        MIG = { country_event = { id = ming.10 days = 1 }}
    }
}

country_event = {     
    id = ming.9
    title = ming.9.t    # Xinjiang Refuses!
    desc = ming.9.desc
	
	picture = GFX_report_event_nationalist_china_machinegun_firing

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.9.a 
        ai_chance = {
            base = 200
        }

        declare_war_on = {
            target = XJX
            type = annex_everything
        }
    }
}

country_event = {     
    id = ming.10
    title = ming.10.t    # Xinjiang Yields
    desc = ming.10.desc
	
	picture = GFX_report_event_china_ledo_road

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.10.a 
        ai_chance = {
            base = 200
        }

        annex_country = {
            target = XJX
            transfer_troops = yes
        }
    }
}

country_event = {     
    id = ming.11
    title = ming.11.t    # Cross Into Tibet
    desc = ming.11.desc
	
	picture = GFX_report_event_china_ledo_road

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.11.a

        ai_chance = {
            base = 70
        }

        MIG = { country_event = { id = ming.12 days = 1 }}
    }

    option = {
        name = ming.11.b

        ai_chance = {
            base = 30
        }

        MIG = { country_event = { id = ming.13 days = 1 }}
    }

}

country_event = {     
    id = ming.12
    title = ming.12.t    # Tibet Refuses!
    desc = ming.12.desc
	
	picture = GFX_report_event_china_ledo_road

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.12.a 
        ai_chance = {
            base = 200
        }

        declare_war_on = {
            target = TIB
            type = annex_everything
        }
    }
}

country_event = {
    id = ming.13
    title = ming.13.t    # Tibet Refuses!
    desc = ming.13.desc
	
	picture = GFX_report_event_china_ledo_road

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.13.a 
        ai_chance = {
            base = 200
        }

        annex_country = {
            target = TIB
            transfer_troops = yes
        }

    }
}

country_event = {
    id = ming.14
    title = ming.14.t    # Coorperate With The Republicans
    desc = ming.14.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { ### Sure!!!!!!!!
        name = ming.14.a 
        ai_chance = {
            base = 100
        }

        MIG = { country_event = { id = ming.15 days = 1 }}

    }

    option = { #### ewwwww
        name = ming.14.b
        ai_chance = {
            base = 0
        }

        MIG = { country_event = { id = ming.16 days = 1 }}

    }
}

country_event = {
    id = ming.15
    title = ming.15.t    # Yes baby!
    desc = ming.15.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.15.a 
        ai_chance = {
            base = 200
        }

        add_opinion_modifier = {
            target = CRP
            modifier = large_increase
        }
    }
}


country_event = {
    id = ming.16
    title = ming.16.t    # No sorry I dont like u very mucho :(
    desc = ming.16.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = {
        name = ming.16.a 
        ai_chance = {
            base = 200
        }

        add_opinion_modifier = {
            target = CRP
            modifier = large_decrease
        }
    }
}

country_event = {
    id = ming.17
    title = ming.17.t    # Open Arms Policy
    desc = ming.17.desc
	
	picture = GFX_report_event_generic_sign_treaty3

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { ### Non-aggression
        name = ming.17.a 
        ai_chance = {
            base = 80
        }

        diplomatic_relation = {
            country = CRP
            relation = non_aggression_pact
            active = yes
        }

    }

    option = { ### Gurantee
        name = ming.17.b
        ai_chance = {
            base = 20
        }

        diplomatic_relation = {
            country = CRP
            relation = guarantee
            active = yes
        }
        
    }
 
    option = { ### Military Access
        name = ming.17.c 
        ai_chance = {
            base = 10
        }

        diplomatic_relation = {
            country = CRP
            relation = military_access
            active = yes
        }
    }
}

country_event = {
    id = ming.18
    title = ming.18.t    # Coorperate With The Teutonic Empire
    desc = ming.18.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { ### Yes.
        name = ming.18.a 
        ai_chance = {
            base = 80
        }

        MIG = { country_event = { id = ming.19 days = 1 }}

    }

    option = { #### Decline.
        name = ming.18.b
        ai_chance = {
            base = 10
        }

        MIG = { country_event = { id = ming.20 days = 1 }}

    }
}

country_event = {
    id = ming.19
    title = ming.19.t    # Teutons Agree!
    desc = ming.19.desc
	
	picture = GFX_report_event_canada_treaty

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.19.a 
        ai_chance = {
            base = 100
        }

        swap_ideas = {
            remove_idea = eastromansupport
            add_idea = cooperatingwithteutons
        }
    }
}

country_event = {
    id = ming.20
    title = ming.20.t    # Teutons Decline...
    desc = ming.20.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.20.a 
        ai_chance = {
            base = 100
        }

        add_opinion_modifier = {
            target = GEM
            modifier = medium_decrease
        }
    }
}

country_event = {
    id = ming.21
    title = ming.21.t    # Atempt At Unification
    desc = ming.21.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.21.a 
        ai_chance = {
            base = 70
        }

        MIG = { country_event = { id = ming.22 days = 1 }}
    }

    option = { 
        name = ming.21.b
        ai_chance = {
            base = 30
        }

        MIG = { country_event = { id = ming.23 days = 1 }}
    }

    option = { 
        name = ming.21.c
        ai_chance = {
            base = 10
        }

        MIG = { country_event = { id = ming.24 days = 1 }}
    }
}

country_event = {
    id = ming.22
    title = ming.22.t    # The Republicans Offer Being Puppet!
    desc = ming.22.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.22.a 
        ai_chance = {
            base = 100
        }

        puppet = CRP
    }
}

country_event = {
    id = ming.23
    title = ming.23.t    # The Republicans Offer Being Annexed!
    desc = ming.23.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.23.a 
        ai_chance = {
            base = 100
        }

        annex_country = {
            target = CRP
            transfer_troops = yes
        }
    }
}

country_event = {
    id = ming.24
    title = ming.24.t    # The Republicans deny everything...
    desc = ming.24.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.24.a 
        ai_chance = {
            base = 100
        }

        add_opinion_modifier = {
            target = CRP
            modifier = large_decrease
        }
    }
}

country_event = {
    id = ming.25
    title = ming.25.t    # A China United!
    desc = ming.25.desc
	
	picture = GFX_report_event_generic_sign_treaty2

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.25.a 
        ai_chance = {
            base = 100
        }

        news_event = ming.203 ### The War has finally ended!!!

        custom_effect_tooltip = tooltipwhitelinelol
        custom_effect_tooltip = unificationofchina

        hidden_effect = {
        MIG = { transfer_state = 595 }
        MIG = { transfer_state = 600 }
        MIG = { transfer_state = 593 }
        MIG = { transfer_state = 326 }
        MIG = { transfer_state = 729 }
        MIG = { transfer_state = 592 }
        MIG = { transfer_state = 728 }
        MIG = { transfer_state = 594 }
        MIG = { transfer_state = 591 }
        MIG = { transfer_state = 602 }
        MIG = { transfer_state = 599 }
        MIG = { transfer_state = 603 }
        MIG = { transfer_state = 748 }
        MIG = { transfer_state = 325 }
        MIG = { transfer_state = 747 }
        MIG = { transfer_state = 751 }
        MIG = { transfer_state = 752 }
        MIG = { transfer_state = 601 }
        MIG = { transfer_state = 322 }
        MIG = { transfer_state = 757 }
        MIG = { transfer_state = 758 }
        MIG = { transfer_state = 759 }
        MIG = { transfer_state = 760 }
        MIG = { transfer_state = 287 }
        MIG = { transfer_state = 617 }
        MIG = { transfer_state = 619 }
        MIG = { transfer_state = 618 }
        }
    }
}

country_event = {
    id = ming.27
    title = ming.27.t    # Fate of Joseon
    desc = ming.27.desc
	
	picture = GFX_report_event_chinese_japanese_handshake

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.27.a 
        ai_chance = {
            base = 80
        }

        add_opinion_modifier = {
            target = JKK
            modifier = large_increase
        }

    }

    option = { 
        name = ming.27.b
        ai_chance = {
            base = 20
        }

        annex_country = {
            target = JKK
            transfer_troops = yes
        }

    }

    option = { 
        name = ming.27.c
        ai_chance = {
            base = 10
        }

        set_autonomy = {
            target = JKK
            autonomous_state = autonomy_free
            end_wars = no
            end_civil_wars = no
        }

    }
}

country_event = {
    id = ming.28
    title = ming.28.t    # Take Direct Control Over Concession Cities
    desc = ming.28.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.28.a 
        ai_chance = {
            base = 80
        }

        MIG = { country_event = { id = ming.29 days = 1 }}

        hidden_effect = { 
        RSF = { country_event = { id = ming.31 days = 2 }}
        GBB = { country_event = { id = ming.31 days = 2 }}
        ERE = { country_event = { id = ming.31 days = 2 }}
        WRE = { country_event = { id = ming.31 days = 2 }}
        GEM = { country_event = { id = ming.31 days = 2 }}
        }
    }

    option = { 
        name = ming.28.b
        ai_chance = {
            base = 20
        }

        MIG = { country_event = { id = ming.30 days = 1 }}

    }
}

country_event = {
    id = ming.29
    title = ming.29.t    # Concessions Accept!
    desc = ming.29.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.29.a 
        ai_chance = {
            base = 100
        }

        annex_country = {
            target = JCC
            transfer_troops = yes
        }
    }

}

country_event = {
    id = ming.30
    title = ming.30.t    # Concessions Refuse...
    desc = ming.30.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.30.a 
        ai_chance = {
            base = 100
        }

        create_wargoal = {
            target = JCC
            type = annex_everything
        }
    }

}

country_event = {
    id = ming.31
    title = ming.31.t    # International Response (Main for Teutons!)
    desc = ming.31.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.31.a 
        ai_chance = {
            base = 5
        }

        create_wargoal = {
            target = MIG
            type = annex_everything
        }
    }

    option = { 
        name = ming.31.b
        ai_chance = {
            base = 75
        }

        MIG = { country_event = { id = ming.32 days = 1 }}
    }

    option = { 
        name = ming.31.b
        ai_chance = {
            base = 50
        }

    }

}

country_event = {
    id = ming.32
    title = ming.32.t    # International Response (Protest from Teutonic Powers)
    desc = ming.32.desc
	
	picture = GFX_report_event_japan_europe_pact

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.32.a 
        ai_chance = {
            base = 5
        }

        release = JCC
    }

    option = { 
        name = ming.32.b
        ai_chance = {
            base = 95
        }

    }


}

country_event = {
    id = ming.33
    title = ming.33.t    # International Response (Roman & Others)
    desc = ming.33.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.33.a 
        ai_chance = {
            base = 5
        }

        create_wargoal = {
            target = MIG
            type = annex_everything
        }
    }

    option = { 
        name = ming.33.b
        ai_chance = {
            base = 50
        }

        MIG = { country_event = { id = ming.34 days = 1 }}
    }

    option = { 
        name = ming.33.b
        ai_chance = {
            base = 80
        }

    }

}

country_event = {
    id = ming.34
    title = ming.34.t    # International Response (Protest From Romans!)
    desc = ming.34.desc
	
	picture = GFX_report_event_SOV_negotiations_japan_rodzaevsky

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.34.a 
        ai_chance = {
            base = 5
        }

        release = JCC
    }

    option = { 
        name = ming.34.b
        ai_chance = {
            base = 95
        }

    }
}

country_event = {
    id = ming.35
    title = ming.35.t    # Take Dai-Nam!
    desc = ming.35.desc
	
	picture = GFX_report_event_soviet_soldiers

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.35.a 
        ai_chance = {
            base = 80
        }

        MIG = { country_event = { id = ming.36 days = 1 }}
    }

    option = { 
        name = ming.35.b
        ai_chance = {
            base = 20
        }

        MIG = { country_event = { id = ming.37 days = 1 }}

    }
}

country_event = {
    id = ming.36
    title = ming.36.t    # Dai-Nam Accepts!
    desc = ming.36.desc
	
	picture = GFX_report_event_soviet_soldiers

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.36.a 
        ai_chance = {
            base = 100
        }

        annex_country = {
            target = DAM
            transfer_troops = yes
        }

    }

}

country_event = {
    id = ming.37
    title = ming.37.t    # Dai-Nam Declines!
    desc = ming.37.desc
	
	picture = GFX_report_event_soviet_soldiers

    fire_only_once = yes
    is_triggered_only = yes
    
    option = { 
        name = ming.37.a 
        ai_chance = {
            base = 100
        }

        create_wargoal = {
            target = DAM
            type = annex_everything
        }

    }

}




 


 #################################################################
 #################### ! NEWS EVENTS BELOW ! ######################
 #################################################################

news_event = {
    id = ming.200
    title = ming.200.t
    desc = ming.200.desc

    picture = GFX_news_event_ming_soldiers_march

    mean_time_to_happen = { days = 1 }
    is_triggered_only = yes

    major = yes

    option = { 
        name = ming.200.a

        trigger = {
            OR = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
        }
    }

    option = { 
        name = ming.200.b

        trigger = {
            OR = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }

    option = {
        name = ming.200.c

        trigger = {
            NOT = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
            NOT = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }
}

news_event = {
    id = ming.201
    title = ming.201.t
    desc = ming.201.desc

    picture = GFX_news_event_beiji_bridge

    mean_time_to_happen = { days = 1 }
    is_triggered_only = yes

    major = yes

    option = { 
        name = ming.201.a

        trigger = {
            OR = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
        }
    }

    option = { 
        name = ming.201.b

        trigger = {
            OR = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }

    option = {
        name = ming.201.c

        trigger = {
            NOT = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
            NOT = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }
}

news_event = {
    id = ming.202
    title = ming.202.t
    desc = ming.202.desc

    picture = GFX_news_event_second_republican_war

    mean_time_to_happen = { days = 1 }
    is_triggered_only = yes

    major = yes

    option = { 
        name = ming.202.a

        trigger = {
            OR = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
        }
    }

    option = { 
        name = ming.202.b

        trigger = {
            OR = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }

    option = {
        name = ming.202.c

        trigger = {
            NOT = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
            NOT = {
                tag = CRP
                is_in_faction_with = CRP
                is_subject_of = CRP
            }
        }
    }
}

news_event = {
    id = ming.203
    title = ming.203.t
    desc = ming.203.desc

    picture = GFX_news_event_second_republican_war

    mean_time_to_happen = { days = 1 }
    is_triggered_only = yes

    major = yes

    option = { 
        name = ming.203.a

        trigger = {
            OR = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
        }
    }

    option = {
        name = ming.203.b

        trigger = {
            NOT = {
                tag = MIG
                is_in_faction_with = MIG
                is_subject_of = MIG
            }
        }
    }
}