on_actions = { on_weekly_UKR = { effect = { UKR_random_events_ukraine_parliament = yes # Confederation idea — add/remove based on having subjects with influence if = { limit = { UKR_subjects_available = yes NOT = { UKR = { has_idea = UKR_confederation } } } UKR = { add_ideas = UKR_confederation } } else_if = { limit = { UKR_subjects_disable = yes UKR = { has_idea = UKR_confederation } } UKR = { remove_ideas = UKR_confederation } } } } on_startup = { effect = { UKR = { if = { limit = { is_ai = yes } set_country_flag = UKR_open_bureu_laws set_country_flag = UKR_open_military_laws set_country_flag = UKR_open_police_laws set_country_flag = UKR_open_education_laws set_country_flag = UKR_open_medical_laws set_country_flag = UKR_open_pension_laws } } } } on_monthly_UKR = { effect = { UKR_rework_monthly_cleanup = yes if = { limit = { NOT = { has_country_flag = UKR_zelensky_formed } } if = { limit = { OR = { has_completed_focus = UKR_our_ukraine_parliamentary_republic has_completed_focus = UKR_our_ukraine_president_republic } } random = { chance = 39 country_event = { id = ukr_zelenskiy.2 days = 1 } } } else = { random = { chance = 1 country_event = { id = ukr_zelenskiy.2 days = 1 } } } } #SUBJECTS AUTORITY every_subject_country = { limit = { OR = { has_autonomy_state = autonomy_republic_ukr has_autonomy_state = autonomy_novorossiya_ukr } } set_temp_variable = { modify_subjectavtoritet = 2 } modify_subjectavtoritet_support = yes } # Check for Elections if = { limit = { check_variable = { UKR_election_var > 0 } NOT = { check_variable = { UKR_verkhovna_control_selected = 3 } } } add_to_variable = { var = UKR_election_var value = -1 } clamp_variable = { var = UKR_election_var min = 0 max = 48 } } if = { limit = { check_variable = { UKR_election_var = 0 } } add_to_variable = { var = UKR_election_var value = 48 } clamp_variable = { var = UKR_election_var min = 0 max = 48 } country_event = { id = ukraine_parliament.400 days = 2 } } if = { limit = { has_war = yes } set_temp_variable = { points = 1 } if = { limit = { num_of_military_factories > 25 } set_temp_variable = { points = 25 } } else_if = { limit = { num_of_military_factories > 20 } set_temp_variable = { points = 20 } } else_if = { limit = { num_of_military_factories > 15 } set_temp_variable = { points = 15 } } else_if = { limit = { num_of_military_factories > 10 } set_temp_variable = { points = 10 } } else = { set_temp_variable = { points = 5 } } if = { limit = { OR = { has_idea = defence_02 has_idea = defence_03 } } multiply_temp_variable = { points = 1.2 } } else_if = { limit = { OR = { has_idea = defence_04 has_idea = defence_05 } } multiply_temp_variable = { points = 1.4 } } else_if = { limit = { OR = { has_idea = defence_06 has_idea = defence_07 } } multiply_temp_variable = { points = 1.6 } } else_if = { limit = { OR = { has_idea = defence_08 has_idea = defence_09 } } multiply_temp_variable = { points = 1.8 } } add_to_variable = { ukr_industry_points = points } } if = { limit = { has_completed_focus = UKR_hur_reform has_war_with = SOV } set_temp_variable = { buf = 0 } if = { limit = { has_idea = police_05 } set_temp_variable = { buf = 10 } } else_if = { limit = { has_idea = police_04 } set_temp_variable = { buf = 8 } } else_if = { limit = { has_idea = police_03 } set_temp_variable = { buf = 6 } } else_if = { limit = { has_idea = police_02 } set_temp_variable = { buf = 4 } } else = { set_temp_variable = { buf = 2 } } add_to_variable = { hur_points = buf } } } } on_declare_war = { effect = { if = { limit = { OR = { original_tag = UKR FROM = { original_tag = UKR } } } UKR_record_rework_war = yes } } } on_capitulation = { effect = { if = { limit = { OR = { original_tag = SEU original_tag = DPR original_tag = LPR original_tag = DRP original_tag = OPR original_tag = CRM original_tag = NOV } } ROOT = { UKR_record_rework_capitulation = yes } } } } on_puppet = { effect = { if = { limit = { FROM = { original_tag = UKR } } ROOT = { UKR_register_rework_puppet = yes } } } } on_annex = { effect = { if = { limit = { country_exists = UKR } if = { limit = { FROM = { original_tag = SEU } } UKR = { UKR_cleanup_seu_rework = yes } } if = { limit = { FROM = { original_tag = DPR } } UKR = { UKR_cleanup_dpr_rework = yes } } if = { limit = { FROM = { original_tag = LPR } } UKR = { UKR_cleanup_lpr_rework = yes } } if = { limit = { FROM = { original_tag = DRP } } UKR = { UKR_cleanup_drp_rework = yes } } if = { limit = { FROM = { original_tag = OPR } } UKR = { UKR_cleanup_opr_rework = yes } } if = { limit = { FROM = { original_tag = CRM } } UKR = { UKR_cleanup_crm_rework = yes } } if = { limit = { FROM = { original_tag = NOV } } UKR = { UKR_cleanup_nov_rework = yes } } } } } on_subject_annexed = { effect = { if = { limit = { country_exists = UKR } if = { limit = { ROOT = { original_tag = SEU } } UKR = { UKR_cleanup_seu_rework = yes } } if = { limit = { ROOT = { original_tag = DPR } } UKR = { UKR_cleanup_dpr_rework = yes } } if = { limit = { ROOT = { original_tag = LPR } } UKR = { UKR_cleanup_lpr_rework = yes } } if = { limit = { ROOT = { original_tag = DRP } } UKR = { UKR_cleanup_drp_rework = yes } } if = { limit = { ROOT = { original_tag = OPR } } UKR = { UKR_cleanup_opr_rework = yes } } if = { limit = { ROOT = { original_tag = CRM } } UKR = { UKR_cleanup_crm_rework = yes } } if = { limit = { ROOT = { original_tag = NOV } } UKR = { UKR_cleanup_nov_rework = yes } } } } } }