on_actions = { on_daily_CZE = { effect = { CZE_gui_dirty_update = yes if = { limit = { has_completed_focus = CZE_skoda_superb_i } CZE_skoda_superb_cars_calculate_factories = yes } if = { limit = { has_completed_focus = CZE_volkswagen_how_many_cars_does_he_have NOT = { has_completed_focus = CZE_leader_of_the_skoda_group } } CZE_volkswagen_group_civil_war_calculate_percentage_effect = yes } CZE_calculate_political_parties_modifiers_effect = yes if = { limit = { check_variable = { CZE.CZE_petr_pavel_training_points > 100 } NOT = { has_completed_focus = CZE_military_pension } } set_variable = { CZE_petr_pavel_extra_training_points = CZE_petr_pavel_training_points } subtract_from_variable = { CZE_petr_pavel_extra_training_points = 100 } CZE_pavel_gui_dirty_update = yes } ### PAVEL CARDS if = { limit = { has_completed_focus = CZE_military_pension has_country_flag = CZE_petr_pavel_card_trait_state_initialized } CZE_petr_pavel_card_trait_state_invalidate = yes } if = { limit = { OR = { has_country_flag = CZE_petr_pavel_card_one_activated has_country_flag = CZE_petr_pavel_card_two_activated has_country_flag = CZE_petr_pavel_card_three_activated has_country_flag = CZE_petr_pavel_card_four_activated has_country_flag = CZE_petr_pavel_card_five_activated has_country_flag = CZE_petr_pavel_card_six_activated } } CZE_petr_pavel_skill_cards_exp = yes } ### PAVEL POPULARITY if = { limit = { has_completed_focus = CZE_further_political_career NOT = { OR = { has_completed_focus = CZE_fight_disinformation has_completed_focus = CZE_the_reign_of_petr_pavel } } } add_to_variable = { CZE_petr_pavel_support = -0.07 } } else_if = { limit = { has_completed_focus = CZE_fight_disinformation NOT = { has_completed_focus = CZE_the_reign_of_petr_pavel } } add_to_variable = { CZE_petr_pavel_support = -0.05 } } } } on_weekly_CZE = { effect = { if = { limit = { has_completed_focus = CZE_skoda_superb_i } add_to_variable = { CZE_skoda_superb_cars_stockpile = var:CZE_skoda_superb_productivity_factories } } if = { limit = { has_completed_focus = CZE_skoda_superb_ii } add_to_variable = { CZE_skoda_superb2_cars_stockpile = var:CZE_skoda_superb2_productivity_factories } } if = { limit = { has_completed_focus = CZE_skoda_superb_iii } add_to_variable = { CZE_skoda_superb3_cars_stockpile = var:CZE_skoda_superb3_productivity_factories } } if = { limit = { has_completed_focus = CZE_skoda_superb_iv } add_to_variable = { CZE_skoda_superb4_cars_stockpile = var:CZE_skoda_superb4_productivity_factories } } if = { limit = { has_completed_focus = CZE_skoda_superb_i check_variable = { CZE_skoda_superb_cars_stockpile > 200 } } subtract_from_variable = { CZE_skoda_superb_cars_stockpile = 200 } add_to_variable = { CZE_skoda_superb_cars_treasury = 0.5 } set_temp_variable = { treasury_change = 0.5 } modify_treasury_effect = yes } if = { limit = { has_completed_focus = CZE_skoda_superb_ii check_variable = { CZE_skoda_superb2_cars_stockpile > 175 } } subtract_from_variable = { CZE_skoda_superb2_cars_stockpile = 175 } add_to_variable = { CZE_skoda_superb2_cars_treasury = 1 } set_temp_variable = { treasury_change = 1 } modify_treasury_effect = yes } if = { limit = { has_completed_focus = CZE_skoda_superb_iii check_variable = { CZE_skoda_superb3_cars_stockpile > 150 } } subtract_from_variable = { CZE_skoda_superb3_cars_stockpile = 150 } add_to_variable = { CZE_skoda_superb3_cars_treasury = 1 } set_temp_variable = { treasury_change = 1 } modify_treasury_effect = yes } if = { limit = { has_completed_focus = CZE_skoda_superb_iv check_variable = { CZE_skoda_superb4_cars_stockpile > 125 } } subtract_from_variable = { CZE_skoda_superb4_cars_stockpile = 125 } add_to_variable = { CZE_skoda_superb4_cars_treasury = 1 } set_temp_variable = { treasury_change = 1 } modify_treasury_effect = yes } ### AGGRESSIVE CZECHOSLOVAKIA UNIFICATION if = { limit = { has_completed_focus = CZE_SLO_new_dawn_of_czechoslovakia NOT = { OR = { AND = { check_variable = { THIS.CZE_SLO_people_acceptance > 99 } check_variable = { THIS.CZE_SLO_law_similarity > 99 } check_variable = { THIS.CZE_SLO_military_support > 99 } } AND = { check_variable = { THIS.CZE_SLO_people_acceptance < 1 } check_variable = { THIS.CZE_SLO_law_similarity < 1 } check_variable = { THIS.CZE_SLO_military_support < 1 } } } } } CZE_SLO_post_unification_chaos_effect = yes } else_if = { limit = { has_completed_focus = CZE_SLO_new_dawn_of_czechoslovakia OR = { AND = { check_variable = { THIS.CZE_SLO_people_acceptance > 99 } check_variable = { THIS.CZE_SLO_law_similarity > 99 } check_variable = { THIS.CZE_SLO_military_support > 99 } } AND = { check_variable = { THIS.CZE_SLO_people_acceptance < 1 } check_variable = { THIS.CZE_SLO_law_similarity < 1 } check_variable = { THIS.CZE_SLO_military_support < 1 } } } NOT = { has_country_flag = stop_this_effect } } CZE_SLO_post_unification_chaos_effect = yes set_country_flag = stop_this_effect } if = { limit = { OR = { AND = { has_completed_focus = CZE_volkswagen_how_many_cars_does_he_have NOT = { has_completed_focus = CZE_leader_of_the_skoda_group } } NOT = { has_country_flag = CZE_volkswagen_war_end } } GER = { is_ai = yes } } random = { chance = 15 add_to_variable = { CZE.volkswagen_support = 2 } } } if = { limit = { has_country_flag = CZE_poles_deportation_from_silesia } 626 = { add_manpower = -2000 } 115 = { add_manpower = -2000 } } } } on_weekly_SLO = { effect = { ### AGGRESSIVE CZECHOSLOVAKIA UNIFICATION if = { limit = { has_completed_focus = CZE_SLO_new_dawn_of_czechoslovakia NOT = { OR = { AND = { check_variable = { THIS.CZE_SLO_people_acceptance > 99 } check_variable = { THIS.CZE_SLO_law_similarity > 99 } check_variable = { THIS.CZE_SLO_military_support > 99 } } AND = { check_variable = { THIS.CZE_SLO_people_acceptance < 1 } check_variable = { THIS.CZE_SLO_law_similarity < 1 } check_variable = { THIS.CZE_SLO_military_support < 1 } } } } } CZE_SLO_post_unification_chaos_effect = yes } else_if = { limit = { has_completed_focus = CZE_SLO_new_dawn_of_czechoslovakia OR = { AND = { check_variable = { THIS.CZE_SLO_people_acceptance > 99 } check_variable = { THIS.CZE_SLO_law_similarity > 99 } check_variable = { THIS.CZE_SLO_military_support > 99 } } AND = { check_variable = { THIS.CZE_SLO_people_acceptance < 1 } check_variable = { THIS.CZE_SLO_law_similarity < 1 } check_variable = { THIS.CZE_SLO_military_support < 1 } } } NOT = { has_country_flag = stop_this_effect } } CZE_SLO_post_unification_chaos_effect = yes set_country_flag = stop_this_effect } } } on_weekly_AUS = { effect = { if = { limit = { AUS = { has_idea = CZE_AUS_cooperation_with_the_habsburgs check_variable = { party_pop_array^20 > party_pop_array^23 } } } set_temp_variable = { party_index = 23 } set_temp_variable = { party_popularity_increase = 0.005 } change_relative_party_popularity = yes } else = { if = { limit = { AUS = { has_idea = CZE_AUS_cooperation_with_the_habsburgs NOT = { has_country_flag = CZE_AUS_habsburg_restoration } } } AUS = { set_country_flag = CZE_AUS_habsburg_restoration country_event = CZE_AUS_monarchy_event.12 } } } } } on_monthly_HUN = { effect = { if = { limit = { check_variable = { year > 2016 } has_country_leader = { name = "Archduke Joseph" } NOT = { has_country_flag = CZE_HUN_joseph_died } } set_country_flag = CZE_HUN_joseph_died news_event = { id = CZE_HUN_monarchy_event.40 days = 1 } } } } on_monthly_CZE = { effect = { if = { limit = { OR = { has_idea = CZE_debt_problem_idea has_idea = CZE_debt_problem2_idea has_idea = CZE_debt_problem3_idea } NOT = { check_variable = { interest_rate > 10 } } } add_to_variable = { CZE_debt_problem_interest = 0.1 } if = { limit = { check_variable = { debt = 0 } } if = { limit = { has_idea = CZE_debt_problem_idea } remove_ideas = CZE_debt_problem_idea } if = { limit = { has_idea = CZE_debt_problem2_idea } remove_ideas = CZE_debt_problem2_idea } if = { limit = { has_idea = CZE_debt_problem3_idea } remove_ideas = CZE_debt_problem3_idea } clear_variable = CZE_debt_problem_interest if = { limit = { has_dynamic_modifier = { modifier = CZE_debt_problem_modifier } } remove_dynamic_modifier = { modifier = CZE_debt_problem_modifier } } } } if = { limit = { has_completed_focus = CZE_skoda_superb_i } CZE_skoda_update_all_export_demands = yes } if = { limit = { check_variable = { CZE_advanced_skoda_tech_progress > 0 } } CZE_skoda_productivity_monthly_gain_effect = yes } if = { limit = { check_variable = { THIS.party_pop_array^5 > 0 } has_completed_focus = CZE_the_last_real_czech_communists } set_temp_variable = { CZE_temp_outlook_popularity = THIS.party_pop_array^5 } multiply_temp_variable = { CZE_temp_outlook_popularity = 0.5 } set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = THIS.party_pop_array^5 } set_temp_variable = { temp_outlook_increase = CZE_temp_outlook_popularity } change_relative_party_popularity = yes set_variable = { THIS.party_pop_array^5 = 0 } } if = { limit = { check_variable = { THIS.party_pop_array^6 > 0 } has_completed_focus = CZE_the_last_real_czech_communists } set_temp_variable = { CZE_temp_outlook_popularity = THIS.party_pop_array^6 } multiply_temp_variable = { CZE_temp_outlook_popularity = 0.5 } set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = THIS.party_pop_array^6 } set_temp_variable = { temp_outlook_increase = CZE_temp_outlook_popularity } change_relative_party_popularity = yes set_variable = { THIS.party_pop_array^6 = 0 } } if = { limit = { check_variable = { THIS.party_pop_array^7 > 0 } has_completed_focus = CZE_the_last_real_czech_communists } set_temp_variable = { CZE_temp_outlook_popularity = THIS.party_pop_array^7 } multiply_temp_variable = { CZE_temp_outlook_popularity = 0.5 } set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = THIS.party_pop_array^7 } set_temp_variable = { temp_outlook_increase = CZE_temp_outlook_popularity } change_relative_party_popularity = yes set_variable = { THIS.party_pop_array^7 = 0 } } if = { limit = { date > 2010.12.12 date < 2011.1.2 } set_variable = { liberalism_leader = 0 } } if = { limit = { check_variable = { CZE_petr_pavel_card_one_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_one_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_one_points min = 0 } CZE_pavel_gui_dirty_update = yes } if = { limit = { check_variable = { CZE_petr_pavel_card_two_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_two_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_two_points min = 0 } CZE_pavel_gui_dirty_update = yes } if = { limit = { check_variable = { CZE_petr_pavel_card_three_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_three_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_three_points min = 0 } CZE_pavel_gui_dirty_update = yes } if = { limit = { check_variable = { CZE_petr_pavel_card_four_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_four_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_four_points min = 0 } CZE_pavel_gui_dirty_update = yes } if = { limit = { check_variable = { CZE_petr_pavel_card_five_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_five_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_five_points min = 0 } CZE_pavel_gui_dirty_update = yes } if = { limit = { check_variable = { CZE_petr_pavel_card_six_points > 0 } NOT = { has_completed_focus = CZE_military_pension } } subtract_from_variable = { CZE_petr_pavel_card_six_points = 0.33 } clamp_variable = { var = CZE_petr_pavel_card_six_points min = 0 } CZE_pavel_gui_dirty_update = yes } } } on_war = { effect = { if = { limit = { has_completed_focus = CZE_ready_for_pre_emptive_strike NOT = { has_country_flag = CZE_quick_response_happened } } CZE = { add_timed_idea = { idea = CZE_quick_response_idea days = 60 } set_country_flag = CZE_quick_response_happened } } mark_focus_tree_layout_dirty = yes } } on_state_control_changed = { effect = { if = { limit = { original_tag = CZE NOT = { has_country_flag = CZE_kaliningrad_name_changed } 642 = { is_fully_controlled_by = CZE } } CZE = { set_country_flag = CZE_kaliningrad_name_changed country_event = CZE_czech.31 } } } } on_new_term_election = { effect = { if = { limit = { original_tag = CZE has_completed_focus = CZE_promote_presidential_elections NOT = { has_country_flag = CZE_presidential_election_happened } } CZE = { set_country_flag = CZE_presidential_election_happened set_temp_variable = { party_index = 23 } set_temp_variable = { party_popularity_increase = 0.1 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes add_political_power = 50 add_timed_idea = { idea = CZE_a_significant_change_in_the_parliament_idea days = 210 } } } } } on_ruling_party_change = { effect = { if = { limit = { NOT = { check_variable = { ruling_party = 23 } } has_cosmetic_tag = CZE_cosmetic_flag_monarchy } CZE = { drop_cosmetic_tag = yes clear_variable = dynamic_flag_variant } } if = { limit = { has_country_flag = CZE_prague_castle_renovation has_government = communism } country_event = CZE_monarchy_event.16 clr_country_flag = CZE_prague_castle_renovation } } } }