modify_kolbasna_support = { add_to_variable = { kolbasna = modify_kolbasna } custom_effect_tooltip = PMR_kolbasna_tt clamp_variable = { var = kolbasna min = 0 max = 90000 } } PMR_script_random_ai = { random_list = { 60 = { add_popularity = { ideology = communism popularity = 0.15 } } 10 = { if = { limit = { NOT = { check_variable = { ruling_party = 2 } } } set_temp_variable = { rul_party_temp = 2 } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_increase = 0.25 } set_temp_variable = { temp_outlook_increase = 0.25 } change_relative_party_popularity = yes } } 10 = { if = { limit = { NOT = { check_variable = { ruling_party = 5 } } } set_temp_variable = { rul_party_temp = 5 } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes set_temp_variable = { party_index = 5 } set_temp_variable = { party_popularity_increase = 0.25 } set_temp_variable = { temp_outlook_increase = 0.25 } change_relative_party_popularity = yes } } 10 = { if = { limit = { NOT = { check_variable = { ruling_party = 4 } } } set_temp_variable = { rul_party_temp = 4 } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = 0.25 } set_temp_variable = { temp_outlook_increase = 0.25 } change_relative_party_popularity = yes } } 10 = { if = { limit = { NOT = { check_variable = { ruling_party = 22 } } } set_temp_variable = { rul_party_temp = 22 } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes set_temp_variable = { party_index = 22 } set_temp_variable = { party_popularity_increase = 0.45 } set_temp_variable = { temp_outlook_increase = 0.45 } change_relative_party_popularity = yes } } } } ###########SHERIFF UP - CHANGE EFFECT########### sheriff_holding_change_positive = { if = { limit = { check_variable = { PMR_sheriff_level > 6 } NOT = { has_country_flag = PMR_sheriff_finish } } add_popularity = { ideology = neutrality popularity = 0.07 } set_temp_variable = { party_index = 15 } set_temp_variable = { party_popularity_increase = 0.07 } change_relative_party_popularity = yes add_political_power = 150 } else_if = { limit = { NOT = { has_country_flag = PMR_sheriff_finish } } add_to_variable = { PMR_sheriff_level = 1 } custom_effect_tooltip = PMR_sheriff_grows_tt PMR_sheriff_apply_tier = yes } } PMR_sheriff_apply_tier = { if = { limit = { check_variable = { PMR_sheriff_level = 1 } } set_variable = { PMR_sheriff_political_power_gain = 0.07 } set_variable = { PMR_sheriff_stability_factor = -0.11 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.29 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.28 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.12 } set_variable = { PMR_sheriff_neutrality_drift = 0.03 } } else_if = { limit = { check_variable = { PMR_sheriff_level = 2 } } set_variable = { PMR_sheriff_political_power_gain = 0.08 } set_variable = { PMR_sheriff_stability_factor = -0.12 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.31 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.31 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.14 } set_variable = { PMR_sheriff_neutrality_drift = 0.03 } } else_if = { limit = { check_variable = { PMR_sheriff_level = 3 } } set_variable = { PMR_sheriff_political_power_gain = 0.08 } set_variable = { PMR_sheriff_stability_factor = -0.13 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.31 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.32 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.17 } set_variable = { PMR_sheriff_neutrality_drift = 0.04 } } else_if = { limit = { check_variable = { PMR_sheriff_level = 4 } } set_variable = { PMR_sheriff_political_power_gain = 0.09 } set_variable = { PMR_sheriff_stability_factor = -0.14 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.32 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.33 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.20 } set_variable = { PMR_sheriff_neutrality_drift = 0.04 } } else_if = { limit = { check_variable = { PMR_sheriff_level = 5 } } set_variable = { PMR_sheriff_political_power_gain = 0.12 } set_variable = { PMR_sheriff_stability_factor = -0.18 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.38 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.38 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.22 } set_variable = { PMR_sheriff_neutrality_drift = 0.05 } } else_if = { limit = { check_variable = { PMR_sheriff_level = 6 } } set_variable = { PMR_sheriff_political_power_gain = 0.16 } set_variable = { PMR_sheriff_stability_factor = -0.22 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.41 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.45 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.24 } set_variable = { PMR_sheriff_neutrality_drift = 0.05 } } else = { set_variable = { PMR_sheriff_political_power_gain = 0.20 } set_variable = { PMR_sheriff_stability_factor = -0.26 } set_variable = { PMR_sheriff_foreign_influence_defense_modifier = 0.47 } set_variable = { PMR_sheriff_corruption_cost_factor = 0.51 } set_variable = { PMR_sheriff_tax_gain_multiplier_modifier = 0.26 } set_variable = { PMR_sheriff_neutrality_drift = 0.06 } } } ###########FOREIGN INVESTOR WITHDRAWAL########### PMR_partner_withdrawal_check = { if = { limit = { has_completed_focus = PMR_ge_invest NOT = { has_country_flag = PMR_ger_invest } OR = { has_war_with = GER NOT = { country_exists = GER } } } set_country_flag = PMR_ger_invest random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } } if = { limit = { has_completed_focus = PMR_aus_invest NOT = { has_country_flag = PMR_aus_invest } OR = { has_war_with = AUS NOT = { country_exists = AUS } } } set_country_flag = PMR_aus_invest random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } } if = { limit = { has_completed_focus = PMR_sov_invest NOT = { has_country_flag = PMR_sov_invest } OR = { has_war_with = SOV NOT = { country_exists = SOV } } } set_country_flag = PMR_sov_invest random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } } if = { limit = { has_completed_focus = PMR_hun_invest NOT = { has_country_flag = PMR_hun_invest } OR = { has_war_with = HUN NOT = { country_exists = HUN } } } set_country_flag = PMR_hun_invest random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } } if = { limit = { has_completed_focus = PMR_rom_invest NOT = { has_country_flag = PMR_rom_invest } OR = { has_war_with = ROM NOT = { country_exists = ROM } } } set_country_flag = PMR_rom_invest subtract_from_variable = { PMR_inv_country_resource_steel = 1 } } if = { limit = { has_completed_focus = PMR_ita_invest NOT = { has_country_flag = PMR_ita_invest } OR = { has_war_with = ITA NOT = { country_exists = ITA } } } set_country_flag = PMR_ita_invest subtract_from_variable = { PMR_inv_agricolture_productivity_modifier = 0.02 } subtract_from_variable = { PMR_inv_agriculture_tax_modifier = 0.02 } } if = { limit = { has_completed_focus = PMR_ukr_invest NOT = { has_country_flag = PMR_ukr_invest } OR = { has_war_with = UKR NOT = { country_exists = UKR } } } set_country_flag = PMR_ukr_invest subtract_from_variable = { PMR_inv_steel_export_multiplier_modifier = 0.06 } subtract_from_variable = { PMR_inv_country_resource_steel = 2 } } } PMR_russian_join_script = { if = { limit = { SOV = { emerging_communist_state_are_in_power = yes } } if = { limit = { NOT = { check_variable = { ruling_party = 4 } } } set_temp_variable = { rul_party_temp = 4 } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = 0.35 } set_temp_variable = { temp_outlook_increase = 0.35 } change_relative_party_popularity = yes } } }