﻿add_namespace = Cheatse

country_event = { #set capital
    id = Cheatse.10
    title = Cheatse.10.t
    desc = Cheatse.10.d
    picture = GFX_report_event_german_inspect_troops
    
    is_triggered_only = yes

    trigger = {
        is_ai = no
        has_idea = cheat_politics_setcapital
    }

    mean_time_to_happen = { days = 0 }

    immediate = {
        hidden_effect = { 
            remove_ideas = cheat_politics_setcapital
            random_owned_state = {
                limit = {
                    AND = {
                        is_owned_by = ROOT
                        ROOT = {
                            divisions_in_state = {
                                state = PREV
                                size > 10
                            }
                        }
                    }
                }
                save_event_target_as = cap_state          
            }
            random_owned_state = {
                limit = {
                    AND = {
                        is_owned_by = ROOT
                        ROOT = {
                            divisions_in_state = {
                                state = PREV
                                size > 20
                            }
                        }
                    }
                }
                save_event_target_as = cap_states         
            }
        }
    }

    option = {
        name = Cheatse.10.a
        ai_chance = { factor = 0 }
        set_capital = event_target:cap_state
    }
    option = {
        name = Cheatse.10.b
        ai_chance = { factor = 0 }
        set_capital = event_target:cap_states
    }
    option = {
        name = Cheatse.10.c
        ai_chance = { factor = 100 }
    }
}

country_event = { #adjust threat
    id = Cheatse.11
    title = Cheatse.11.t
    desc = Cheatse.11.d
    picture = GFX_report_event_german_inspect_troops
    
    is_triggered_only = yes

    trigger = {
        is_ai = no
        has_idea = cheat_politics_adjustthreat
    }

    mean_time_to_happen = { days = 0 }

    immediate = {
        hidden_effect = { 
            remove_ideas = cheat_politics_adjustthreat
        }
    }

    option = {
        name = Cheatse.11.a
        ai_chance = { factor = 0 }
        add_named_threat = { threat = -15 }
    }
    option = {
        name = Cheatse.11.b
        ai_chance = { factor = 0 }
        add_named_threat = { threat = -25 }
    }
    option = {
        name = Cheatse.11.c
        ai_chance = { factor = 0 }
        add_named_threat = { threat = 25 }
    }
    option = {
        name = Cheatse.11.f
        ai_chance = { factor = 0 }
        add_named_threat = { threat = 15 }
    }
  
    option = {
        name = Cheatse.11.e
        ai_chance = { factor = 100 }
    }
}

country_event = {
    id = Cheatse.12
    title = Cheatse.12.t
    desc = Cheatse.12.d
    picture = GFX_report_event_german_inspect_troops
    
    is_triggered_only = yes

    trigger = {
        is_ai = no
        has_idea = cheat_event1_test3
    }

    mean_time_to_happen = { days = 0 }

    immediate = {
        hidden_effect = { 
            remove_ideas = cheat_event1_test3
            
        }
    }
    
    option = {
        name = Cheatse.12.a
        ai_chance = { factor = 0 }
        add_political_power = 150
        #add_national_unity = 0.15
    }
  
    option = {
        name = Cheatse.12.c
        ai_chance = { factor = 100 }
    }
}

country_event = {
    id = Cheatse.20
    title = Cheatse.20.t
    desc = Cheatse.20.d
    picture = GFX_report_event_german_inspect_troops
    
    is_triggered_only = yes

    trigger = {
        is_ai = no
        has_idea = cheat_ai_enc
    }

    mean_time_to_happen = { days = 0 }

    immediate = {
        hidden_effect = { 
            remove_ideas = cheat_ai_enc
            
        }
    }
    option = {
     name = Cheatse.20.a
        ai_chance = { factor = 0 }
        set_global_flag = cflag_aienc
    }
  
    option = {
        name = Cheatse.20.c
        ai_chance = { factor = 100 }
        clr_global_flag = cflag_aienc
    }
}
