ARM_tourism_add_and_pay = { add_to_variable = { tourism_armenia = modify_tourism_armenia } clamp_variable = { var = tourism_armenia min = 0.015 max = 8000 } set_temp_variable = { treasury_change = modify_tourism_armenia } modify_treasury_effect = yes } ARM_party_change_apply = { if = { limit = { NOT = { check_variable = { ruling_party = ARM_path_party } } } set_temp_variable = { rul_party_temp = ARM_path_party } set_temp_variable = { disable_elections = 0 } change_ruling_party_effect = yes } set_temp_variable = { party_index = ARM_path_party } # Parties 5, 15 and 23 start at 0% in history: a token boost loses the next election and closes the branch set_temp_variable = { party_popularity_increase = 0.40 } set_temp_variable = { temp_outlook_increase = 0.40 } change_relative_party_popularity = yes } ARM_integrate_state = { var:ARM_target_state = { add_core_of = ROOT } set_temp_variable = { treasury_change = -5 } modify_treasury_effect = yes add_political_power = -100 add_timed_idea = { idea = ARM_integration_idea days = 40 } } ARM_party_change_effect = { hidden_effect = { if = { limit = { is_ai = yes } if = { limit = { has_global_flag = ARM_TSARUKYAN_FOCUS_PATH } set_temp_variable = { ARM_path_party = 15 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_MONARCHY_FOCUS_PATH } set_temp_variable = { ARM_path_party = 23 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_FOUNDING_PARLIAMENT_FOCUS_PATH } set_temp_variable = { ARM_path_party = 0 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_UNITED_STATES_FOCUS_PATH } set_temp_variable = { ARM_path_party = 1 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_DASHNAK_LEFT_FOCUS_PATH } set_temp_variable = { ARM_path_party = 5 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_DASHNAK_RIGHT_FOCUS_PATH } set_temp_variable = { ARM_path_party = 21 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_PEOPLES_PARTY_FOCUS_PATH } set_temp_variable = { ARM_path_party = 19 } ARM_party_change_apply = yes } else_if = { limit = { has_global_flag = ARM_TER_PETROSIAN_FOCUS_PATH } set_temp_variable = { ARM_path_party = 16 } ARM_party_change_apply = yes } } } } ARM_decrease_high_emigration = { if = { limit = { has_idea = ARM_high_emigration_5 } swap_ideas = { remove_idea = ARM_high_emigration_5 add_idea = ARM_high_emigration_4 } } else_if = { limit = { has_idea = ARM_high_emigration_4 } swap_ideas = { remove_idea = ARM_high_emigration_4 add_idea = ARM_high_emigration_3 } } else_if = { limit = { has_idea = ARM_high_emigration_3 } swap_ideas = { remove_idea = ARM_high_emigration_3 add_idea = ARM_high_emigration_2 } } else_if = { limit = { has_idea = ARM_high_emigration_2 } swap_ideas = { remove_idea = ARM_high_emigration_2 add_idea = ARM_high_emigration_1 } } else_if = { limit = { has_idea = ARM_high_emigration_1 } remove_ideas = ARM_high_emigration_1 add_ideas = ARM_immigration } else = { add_stability = 0.02 } } ARM_bad_army_remove = { if = { limit = { has_idea = ARM_outdated_army_idea7 } remove_ideas = ARM_outdated_army_idea7 } else_if = { limit = { has_idea = ARM_outdated_army_idea6 } swap_ideas = { remove_idea = ARM_outdated_army_idea6 add_idea = ARM_outdated_army_idea7 } } else_if = { limit = { has_idea = ARM_outdated_army_idea5 } swap_ideas = { remove_idea = ARM_outdated_army_idea5 add_idea = ARM_outdated_army_idea6 } } else_if = { limit = { has_idea = ARM_outdated_army_idea4 } swap_ideas = { remove_idea = ARM_outdated_army_idea4 add_idea = ARM_outdated_army_idea5 } } else_if = { limit = { has_idea = ARM_outdated_army_idea3 } swap_ideas = { remove_idea = ARM_outdated_army_idea3 add_idea = ARM_outdated_army_idea4 } } else_if = { limit = { has_idea = ARM_outdated_army_idea2 } swap_ideas = { remove_idea = ARM_outdated_army_idea2 add_idea = ARM_outdated_army_idea3 } } else_if = { limit = { has_idea = ARM_outdated_army_idea1 } swap_ideas = { remove_idea = ARM_outdated_army_idea1 add_idea = ARM_outdated_army_idea2 } } else_if = { limit = { has_idea = ARM_outdated_army_idea } swap_ideas = { remove_idea = ARM_outdated_army_idea add_idea = ARM_outdated_army_idea1 } } } # Artsakh reaches this effect from only five focuses, so each step clears two tiers of the eight-tier ladder. NKR_bad_army_remove = { if = { limit = { has_idea = ARM_outdated_army_idea7 } remove_ideas = ARM_outdated_army_idea7 } else_if = { limit = { has_idea = ARM_outdated_army_idea6 } swap_ideas = { remove_idea = ARM_outdated_army_idea6 add_idea = ARM_outdated_army_idea7 } } else_if = { limit = { has_idea = ARM_outdated_army_idea5 } swap_ideas = { remove_idea = ARM_outdated_army_idea5 add_idea = ARM_outdated_army_idea7 } } else_if = { limit = { has_idea = ARM_outdated_army_idea4 } swap_ideas = { remove_idea = ARM_outdated_army_idea4 add_idea = ARM_outdated_army_idea6 } } else_if = { limit = { has_idea = ARM_outdated_army_idea3 } swap_ideas = { remove_idea = ARM_outdated_army_idea3 add_idea = ARM_outdated_army_idea5 } } else_if = { limit = { has_idea = ARM_outdated_army_idea2 } swap_ideas = { remove_idea = ARM_outdated_army_idea2 add_idea = ARM_outdated_army_idea4 } } else_if = { limit = { has_idea = ARM_outdated_army_idea1 } swap_ideas = { remove_idea = ARM_outdated_army_idea1 add_idea = ARM_outdated_army_idea3 } } else_if = { limit = { has_idea = ARM_outdated_army_idea } swap_ideas = { remove_idea = ARM_outdated_army_idea add_idea = ARM_outdated_army_idea2 } } } ARM_tourism_calculate = { set_variable = { tourism_armenia = 0.015 } set_temp_variable = { ARM_tourism_income = 0 } if = { limit = { has_country_flag = ARM_tourism_russian_tourists country_exists = SOV NOT = { has_war_with = SOV } } set_temp_variable = { ARM_tourism_russians = 1 } } if = { limit = { owns_state = 709 } add_to_temp_variable = { ARM_tourism_income = 0.0194 } if = { limit = { has_completed_focus = ARM_economy_historic } add_to_temp_variable = { ARM_tourism_income = 0.0098 } } if = { limit = { has_completed_focus = ARM_economy_longest } add_to_temp_variable = { ARM_tourism_income = 0.0098 } } if = { limit = { has_completed_focus = ARM_economy_sewani } add_to_temp_variable = { ARM_tourism_income = 0.0044 } } if = { limit = { has_completed_focus = ARM_economy_hotels } add_to_temp_variable = { ARM_tourism_income = 0.0138 } } if = { limit = { check_variable = { ARM_tourism_russians > 0 } } add_to_temp_variable = { ARM_tourism_income = 0.0314 } } } if = { limit = { owns_state = 706 has_country_flag = ARM_economy_tourism_abkhazia } add_to_temp_variable = { ARM_tourism_income = 0.0090 } if = { limit = { has_completed_focus = ARM_economy_historic } add_to_temp_variable = { ARM_tourism_income = 0.0098 } } if = { limit = { has_completed_focus = ARM_economy_sewani } add_to_temp_variable = { ARM_tourism_income = 0.0020 } } if = { limit = { has_completed_focus = ARM_economy_hotels } add_to_temp_variable = { ARM_tourism_income = 0.0070 } } if = { limit = { check_variable = { ARM_tourism_russians > 0 } } add_to_temp_variable = { ARM_tourism_income = 0.0082 } } } if = { limit = { owns_state = 713 has_country_flag = ARM_economy_tourism_azer } add_to_temp_variable = { ARM_tourism_income = 0.0122 } if = { limit = { has_completed_focus = ARM_economy_historic } add_to_temp_variable = { ARM_tourism_income = 0.0098 } } if = { limit = { has_completed_focus = ARM_economy_sewani } add_to_temp_variable = { ARM_tourism_income = 0.0020 } } if = { limit = { has_completed_focus = ARM_economy_hotels } add_to_temp_variable = { ARM_tourism_income = 0.0138 } } if = { limit = { check_variable = { ARM_tourism_russians > 0 } } add_to_temp_variable = { ARM_tourism_income = 0.0110 } } } if = { limit = { check_variable = { ARM_tourism_income > 0 } } random_list = { seed = random 40 = { } 40 = { multiply_temp_variable = { ARM_tourism_income = 0.75 } } 20 = { multiply_temp_variable = { ARM_tourism_income = 1.50 } } } set_temp_variable = { modify_tourism_armenia = ARM_tourism_income } ARM_tourism_add_and_pay = yes } } ARM_shadow_economy_script = { if = { limit = { has_idea = ARM_economy_shady_idea3 } swap_ideas = { remove_idea = ARM_economy_shady_idea3 add_idea = ARM_economy_shady_idea4 } } else_if = { limit = { has_idea = ARM_economy_shady_idea2 } swap_ideas = { remove_idea = ARM_economy_shady_idea2 add_idea = ARM_economy_shady_idea3 } } else_if = { limit = { has_idea = ARM_economy_shady_idea1 } swap_ideas = { remove_idea = ARM_economy_shady_idea1 add_idea = ARM_economy_shady_idea2 } } else_if = { limit = { has_idea = ARM_economy_shady_idea } swap_ideas = { remove_idea = ARM_economy_shady_idea add_idea = ARM_economy_shady_idea1 } } } ARM_shadow_economy_bad_script = { if = { limit = { has_idea = ARM_economy_shady_idea1 } swap_ideas = { remove_idea = ARM_economy_shady_idea1 add_idea = ARM_economy_shady_idea } add_political_power = 100 } else_if = { limit = { has_idea = ARM_economy_shady_idea2 } swap_ideas = { remove_idea = ARM_economy_shady_idea2 add_idea = ARM_economy_shady_idea1 } add_political_power = 75 } else_if = { limit = { has_idea = ARM_economy_shady_idea3 } swap_ideas = { remove_idea = ARM_economy_shady_idea3 add_idea = ARM_economy_shady_idea2 } add_political_power = 65 } else_if = { limit = { has_idea = ARM_economy_shady_idea4 } swap_ideas = { remove_idea = ARM_economy_shady_idea4 add_idea = ARM_economy_shady_idea3 } add_political_power = 55 } } ARM_sport_script = { if = { limit = { has_idea = ARM_sport_development1 } swap_ideas = { remove_idea = ARM_sport_development1 add_idea = ARM_sport_development2 } } else_if = { limit = { has_idea = ARM_sport_development } swap_ideas = { remove_idea = ARM_sport_development add_idea = ARM_sport_development1 } } else_if = { limit = { NOT = { has_idea = ARM_sport_development } } add_ideas = ARM_sport_development } } ARM_mafia_script = { if = { limit = { has_idea = ARM_armenian_mafia_3 } swap_ideas = { remove_idea = ARM_armenian_mafia_3 add_idea = ARM_armenian_mafia_2 } } else_if = { limit = { has_idea = ARM_armenian_mafia_6 } swap_ideas = { remove_idea = ARM_armenian_mafia_6 add_idea = ARM_armenian_mafia_3 } } else_if = { limit = { NOT = { has_idea = ARM_armenian_mafia_6 } } add_ideas = ARM_armenian_mafia_6 } } ARM_mafia_script_remove = { if = { limit = { has_idea = ARM_armenian_mafia_6 } swap_ideas = { remove_idea = ARM_armenian_mafia_6 add_idea = ARM_armenian_mafia_3 } } else_if = { limit = { has_idea = ARM_armenian_mafia_3 } swap_ideas = { remove_idea = ARM_armenian_mafia_3 add_idea = ARM_armenian_mafia_2 } } else_if = { limit = { has_idea = ARM_armenian_mafia_2 } remove_ideas = ARM_armenian_mafia_2 } } ARM_multigroup_destroy_script = { if = { limit = { has_idea = ARM_multigroup_idea } remove_ideas = ARM_multigroup_idea } else_if = { limit = { has_idea = ARM_multigroup_idea1 } swap_ideas = { remove_idea = ARM_multigroup_idea1 add_idea = ARM_multigroup_idea } } else_if = { limit = { has_idea = ARM_multigroup_idea2 } swap_ideas = { remove_idea = ARM_multigroup_idea2 add_idea = ARM_multigroup_idea1 } } else_if = { limit = { has_idea = ARM_multigroup_idea3 } swap_ideas = { remove_idea = ARM_multigroup_idea3 add_idea = ARM_multigroup_idea2 } } else_if = { limit = { has_idea = ARM_multigroup_idea4 } swap_ideas = { remove_idea = ARM_multigroup_idea4 add_idea = ARM_multigroup_idea3 } } else_if = { limit = { has_idea = ARM_multigroup_idea5 } swap_ideas = { remove_idea = ARM_multigroup_idea5 add_idea = ARM_multigroup_idea4 } } else_if = { limit = { has_idea = ARM_multigroup_idea6 } swap_ideas = { remove_idea = ARM_multigroup_idea6 add_idea = ARM_multigroup_idea5 } } else_if = { limit = { has_idea = ARM_multigroup_idea7 } swap_ideas = { remove_idea = ARM_multigroup_idea7 add_idea = ARM_multigroup_idea6 } } else_if = { limit = { has_idea = ARM_multigroup_idea8 } swap_ideas = { remove_idea = ARM_multigroup_idea8 add_idea = ARM_multigroup_idea7 } } else_if = { limit = { has_idea = ARM_multigroup_idea9 } swap_ideas = { remove_idea = ARM_multigroup_idea9 add_idea = ARM_multigroup_idea8 } } else_if = { limit = { has_idea = ARM_multigroup_idea10 } swap_ideas = { remove_idea = ARM_multigroup_idea10 add_idea = ARM_multigroup_idea9 } } else_if = { limit = { has_idea = ARM_multigroup_idea11 } swap_ideas = { remove_idea = ARM_multigroup_idea11 add_idea = ARM_multigroup_idea10 } } else_if = { limit = { has_idea = ARM_multigroup_idea12 } swap_ideas = { remove_idea = ARM_multigroup_idea12 add_idea = ARM_multigroup_idea11 } } } ARM_multigroup_script = { if = { limit = { has_idea = ARM_multigroup_idea11 } swap_ideas = { remove_idea = ARM_multigroup_idea11 add_idea = ARM_multigroup_idea12 } } else_if = { limit = { has_idea = ARM_multigroup_idea10 } swap_ideas = { remove_idea = ARM_multigroup_idea10 add_idea = ARM_multigroup_idea11 } } else_if = { limit = { has_idea = ARM_multigroup_idea9 } swap_ideas = { remove_idea = ARM_multigroup_idea9 add_idea = ARM_multigroup_idea10 } } else_if = { limit = { has_idea = ARM_multigroup_idea8 } swap_ideas = { remove_idea = ARM_multigroup_idea8 add_idea = ARM_multigroup_idea9 } } else_if = { limit = { has_idea = ARM_multigroup_idea7 } swap_ideas = { remove_idea = ARM_multigroup_idea7 add_idea = ARM_multigroup_idea8 } } else_if = { limit = { has_idea = ARM_multigroup_idea6 } swap_ideas = { remove_idea = ARM_multigroup_idea6 add_idea = ARM_multigroup_idea7 } } else_if = { limit = { has_idea = ARM_multigroup_idea5 } swap_ideas = { remove_idea = ARM_multigroup_idea5 add_idea = ARM_multigroup_idea6 } } else_if = { limit = { has_idea = ARM_multigroup_idea4 } swap_ideas = { remove_idea = ARM_multigroup_idea4 add_idea = ARM_multigroup_idea5 } } else_if = { limit = { has_idea = ARM_multigroup_idea3 } swap_ideas = { remove_idea = ARM_multigroup_idea3 add_idea = ARM_multigroup_idea4 } } else_if = { limit = { has_idea = ARM_multigroup_idea2 } swap_ideas = { remove_idea = ARM_multigroup_idea2 add_idea = ARM_multigroup_idea3 } } else_if = { limit = { has_idea = ARM_multigroup_idea } swap_ideas = { remove_idea = ARM_multigroup_idea add_idea = ARM_multigroup_idea1 } } else_if = { limit = { NOT = { has_country_flag = ARM_gagick_blyat } NOT = { has_idea = ARM_multigroup_idea } } add_ideas = ARM_multigroup_idea set_country_flag = ARM_gagick_blyat } add_political_power = 75 } ARM_it_sector_positive_script = { if = { limit = { check_variable = { ARM_econ_it_level < 10 } } add_to_variable = { ARM_econ_it_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = ARM_western_partners_modifier } add_to_variable = { ARM_west_research_speed_factor = 0.01 tooltip = research_speed_factor_tt } add_to_variable = { ARM_west_offices_productivity = 0.01 tooltip = offices_productivity_tt } add_to_variable = { ARM_west_projects_cost_modifier = -0.04 tooltip = projects_cost_modifier_tt } add_to_variable = { ARM_west_corporate_tax_income_multiplier_modifier = 0.005 tooltip = corporate_tax_income_multiplier_modifier_tt } } } # Unwinds whichever retail banks are actually held before the sector aggregate replaces them. ARM_dissolve_retail_banks = { if = { limit = { check_variable = { ARM_econ_ardshinbank_level > 0 } } add_to_variable = { ARM_econ_corporate_tax_income_multiplier_modifier = -0.01 } add_to_variable = { ARM_econ_economic_cycles_cost_factor = 0.03 } if = { limit = { check_variable = { ARM_econ_ardshinbank_level > 1 } } add_to_variable = { ARM_econ_corporate_tax_income_multiplier_modifier = -0.01 } add_to_variable = { ARM_econ_economic_cycles_cost_factor = 0.01 } add_to_variable = { ARM_econ_research_speed_factor = -0.01 } } set_variable = { ARM_econ_ardshinbank_level = 0 } } if = { limit = { check_variable = { ARM_econ_evocabank_level > 0 } } add_to_variable = { ARM_econ_corporate_tax_income_multiplier_modifier = -0.02 } add_to_variable = { ARM_econ_economic_cycles_cost_factor = 0.04 } add_to_variable = { ARM_econ_research_speed_factor = -0.01 } set_variable = { ARM_econ_evocabank_level = 0 } } if = { limit = { check_variable = { ARM_econ_inecobank_level > 0 } } add_to_variable = { ARM_econ_corporate_tax_income_multiplier_modifier = -0.02 } add_to_variable = { ARM_econ_economic_cycles_cost_factor = 0.04 } set_variable = { ARM_econ_inecobank_level = 0 } } if = { limit = { check_variable = { ARM_econ_ameriabank_level > 0 } } add_to_variable = { ARM_econ_corporate_tax_income_multiplier_modifier = -0.03 } add_to_variable = { ARM_econ_economic_cycles_cost_factor = 0.04 } set_variable = { ARM_econ_ameriabank_level = 0 } } } # Called from on_war_relation_added for both ROOT and FROM, so the body lives here rather than twice in the hook. ARM_review_foreign_partner_ties = { if = { limit = { has_dynamic_modifier = { modifier = ARM_western_partners_modifier } OR = { has_war_with = USA has_war_with = ENG has_war_with = CAN has_war_with = FRA has_war_with = GER has_war_with = HOL has_war_with = ISR } } remove_dynamic_modifier = { modifier = ARM_western_partners_modifier } country_event = arm_economic.24 } if = { limit = { has_dynamic_modifier = { modifier = ARM_russian_partners_modifier } has_war_with = SOV } remove_dynamic_modifier = { modifier = ARM_russian_partners_modifier } country_event = arm_economic.25 } } ARM_polish_revoult_script = { if = { limit = { country_exists = POL NOT = { has_war_with = POL } } hidden_effect = { add_political_power = -250 POL = { country_event = arm_empire.26 } ARM = { country_event = arm_empire.26 } POL = { if = { limit = { has_idea = NATO_member } NATO_leave = yes } if = { limit = { NOT = { has_idea = NATO_member } } leave_faction = yes } add_stability = -0.02 ARM = { puppet = POL } if = { limit = { NOT = { check_variable = { ruling_party = 23 } } } set_temp_variable = { rul_party_temp = 23 } if = { limit = { has_elections = no } set_temp_variable = { disable_elections = 1 } } else = { set_temp_variable = { disable_elections = 0 } } change_ruling_party_effect = yes } set_temp_variable = { party_index = 23 } set_temp_variable = { party_popularity_increase = 0.35 } set_temp_variable = { temp_outlook_increase = 0.35 } change_relative_party_popularity = yes set_cosmetic_tag = POL_AUTH_S_nationalist set_variable = { dynamic_flag_variant = 8 } retire_country_leader = yes create_country_leader = { name = "Janusz Korwin-Mikke" picture = "POL_Janusz_Korwin_Mikke.dds" ideology = Monarchist traits = { nationalist_Nat_Fascism geopolitical_thinker interventionist } } start_civil_war = { ideology = democratic size = 0.6 capital = 114 states = { 111 114 1014 116 113 474 625 626 } set_popularities = { democratic = 100 neutrality = 0 fascism = 0 communism = 0 nationalist = 0 } set_temp_variable = { rul_party_temp = 2 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_multiplier = 0.5 } scale_party_popularity = yes } } set_temp_variable = { percent_change = 10 } set_temp_variable = { tag_index = ARM } set_temp_variable = { influence_target = POL } change_influence_percentage = yes } } } ARM_chechen_battalions_script = { division_template = { name = "Chechen Battalion" regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 1 y = 0 } } priority = 2 } random_owned_controlled_state = { prioritize = { 46 } create_unit = { division = "name = \"Battalion Named After Dzhokhar Dudayev\" division_template = \"Chechen Battalion\" start_experience_factor = 1.0" owner = CHE } create_unit = { division = "name = \"Separate Special Purpose Battalion\" division_template = \"Chechen Battalion\" start_experience_factor = 1.0" owner = CHE } create_unit = { division = "name = \"Sheikh Mansur Battalion\" division_template = \"Chechen Battalion\" start_experience_factor = 1.0" owner = CHE count = 2 } } } ARM_italian_revoult_script = { if = { limit = { country_exists = ITA NOT = { has_war_with = ITA } } hidden_effect = { ITA = { country_event = arm_empire.27 } ARM = { country_event = arm_empire.27 } ITA = { start_civil_war = { ideology = democratic size = 0.4 capital = 80 states = { 1061 285 78 80 1059 77 1060 265 } set_popularities = { democratic = 100 neutrality = 0 fascism = 0 communism = 0 nationalist = 0 } set_temp_variable = { rul_party_temp = 2 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_multiplier = 0.5 } scale_party_popularity = yes } } } } } ARM_kob_russia_script = { if = { limit = { SOV = { has_completed_focus = SOV_second_slujba has_completed_focus = SOV_omon OR = { SOV_has_internal_troops = yes has_completed_focus = SOV_rosguard_start_org } NOT = { influence_higher_40 = yes } } } hidden_effect = { ARM = { country_event = { id = arm_empire.34 days = 1 } } SOV = { country_event = { id = arm_empire.34 days = 1 } } } } else_if = { limit = { SOV = { has_completed_focus = SOV_second_slujba NOT = { OR = { has_completed_focus = SOV_omon SOV_has_internal_troops = yes has_completed_focus = SOV_rosguard_start_org } } influence_higher_40 = yes } } hidden_effect = { SOV = { country_event = { id = arm_empire.34 days = 1 } } ARM = { country_event = { id = arm_empire.34 days = 1 } } } } else_if = { limit = { OR = { SOV = { has_completed_focus = SOV_second_slujba NOT = { OR = { has_completed_focus = SOV_omon SOV_has_internal_troops = yes has_completed_focus = SOV_rosguard_start_org } } } SOV = { NOT = { OR = { has_completed_focus = SOV_second_slujba has_completed_focus = SOV_omon SOV_has_internal_troops = yes has_completed_focus = SOV_rosguard_start_org } } influence_higher_40 = yes } } } hidden_effect = { SOV = { country_event = { id = arm_empire.33 days = 1 } } ARM = { country_event = { id = arm_empire.33 days = 1 } } } } else_if = { limit = { SOV = { NOT = { OR = { has_completed_focus = SOV_second_slujba has_completed_focus = SOV_omon SOV_has_internal_troops = yes has_completed_focus = SOV_rosguard_start_org } } } } hidden_effect = { SOV = { country_event = { id = arm_empire.32 days = 1 } } ARM = { country_event = { id = arm_empire.32 days = 1 } } } } } ARM_lebanon_revoult_script = { if = { limit = { country_exists = LEB NOT = { has_war_with = LEB } } hidden_effect = { LEB = { add_stability = -0.02 ARM = { puppet = LEB } if = { limit = { NOT = { check_variable = { ruling_party = 18 } } } set_temp_variable = { rul_party_temp = 18 } if = { limit = { has_elections = no } set_temp_variable = { disable_elections = 1 } } else = { set_temp_variable = { disable_elections = 0 } } change_ruling_party_effect = yes } set_temp_variable = { party_index = 18 } set_temp_variable = { party_popularity_increase = 0.35 } set_temp_variable = { temp_outlook_increase = 0.35 } change_relative_party_popularity = yes retire_country_leader = yes } set_temp_variable = { percent_change = 10 } set_temp_variable = { tag_index = ARM } set_temp_variable = { influence_target = LEB } change_influence_percentage = yes } } } ARM_integration_lands_script = { if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat emerging_anarchist_communism_are_in_power = yes nationalist_fascist_are_in_power = yes } ARM_moderate_emigration_for_integration = yes } if = { limit = { owns_state = 1039 1039 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1039 } ARM_integrate_state = yes } if = { limit = { owns_state = 711 711 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 711 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 711 = { compliance < 50 } NOT = { country_exists = AZE } } if = { limit = { owns_state = 712 } 712 = { add_compliance = -15 } } if = { limit = { owns_state = 713 } 713 = { add_compliance = -15 } } if = { limit = { owns_state = 1206 } 1206 = { add_compliance = -15 } } if = { limit = { owns_state = 407 } 407 = { add_compliance = -15 } } } } } if = { limit = { owns_state = 712 712 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 712 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 712 = { compliance < 50 } NOT = { country_exists = AZE } } if = { limit = { owns_state = 711 } 711 = { add_compliance = -15 } } if = { limit = { owns_state = 713 } 713 = { add_compliance = -15 } } if = { limit = { owns_state = 1206 } 1206 = { add_compliance = -15 } } if = { limit = { owns_state = 407 } 407 = { add_compliance = -15 } } } } } } if = { limit = { OR = { has_completed_focus = ARM_true_urheimat has_completed_focus = ARM_pan_caucasianism } ARM_moderate_emigration_for_integration = yes } if = { limit = { owns_state = 1033 1033 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1033 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat emerging_anarchist_communism_are_in_power = yes nationalist_fascist_are_in_power = yes } ARM_low_emigration_for_integration = yes } if = { limit = { owns_state = 935 935 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 935 } ARM_integrate_state = yes } if = { limit = { owns_state = 163 163 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 163 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_true_urheimat ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 162 162 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 162 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_true_urheimat ARM_low_emigration_for_integration = yes } if = { limit = { owns_state = 1032 1032 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1032 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat } ARM_low_emigration_for_integration = yes } if = { limit = { owns_state = 161 161 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 161 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat } ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 992 992 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 992 } ARM_integrate_state = yes } if = { limit = { owns_state = 158 158 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 158 } ARM_integrate_state = yes } if = { limit = { owns_state = 189 189 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 189 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_true_urheimat ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 190 190 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 190 } ARM_integrate_state = yes } if = { limit = { owns_state = 575 575 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 575 } ARM_integrate_state = yes } if = { limit = { owns_state = 566 566 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 566 } ARM_integrate_state = yes } if = { limit = { owns_state = 191 191 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 191 } ARM_integrate_state = yes } if = { limit = { owns_state = 193 193 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 193 } ARM_integrate_state = yes } if = { limit = { owns_state = 995 995 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 995 } ARM_integrate_state = yes } if = { limit = { owns_state = 994 994 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 994 } ARM_integrate_state = yes } if = { limit = { owns_state = 192 192 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 192 } ARM_integrate_state = yes } if = { limit = { owns_state = 561 561 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 561 } ARM_integrate_state = yes } if = { limit = { owns_state = 188 188 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 188 } ARM_integrate_state = yes } if = { limit = { owns_state = 186 186 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 186 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_true_urheimat ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 184 184 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 184 } ARM_integrate_state = yes } if = { limit = { owns_state = 185 185 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 185 } ARM_integrate_state = yes } if = { limit = { owns_state = 166 166 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 166 } ARM_integrate_state = yes } if = { limit = { owns_state = 641 641 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 641 } ARM_integrate_state = yes } if = { limit = { owns_state = 167 167 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 167 } ARM_integrate_state = yes } if = { limit = { owns_state = 165 165 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 165 } ARM_integrate_state = yes } if = { limit = { owns_state = 633 633 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 633 } ARM_integrate_state = yes } if = { limit = { owns_state = 630 630 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 630 } ARM_integrate_state = yes } if = { limit = { owns_state = 979 979 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 979 } ARM_integrate_state = yes } if = { limit = { owns_state = 571 571 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 571 } ARM_integrate_state = yes } if = { limit = { owns_state = 164 164 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 164 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 164 = { compliance < 50 } NOT = { country_exists = KUR } } ARM = { country_event = { id = arme.228 days = 2 } } } } } if = { limit = { owns_state = 407 407 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 407 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 407 = { compliance < 50 } NOT = { country_exists = AZE } } if = { limit = { owns_state = 711 } 711 = { add_compliance = -15 } } if = { limit = { owns_state = 1206 } 1206 = { add_compliance = -15 } } if = { limit = { owns_state = 712 } 712 = { add_compliance = -15 } } if = { limit = { owns_state = 713 } 713 = { add_compliance = -15 } } } } } if = { limit = { owns_state = 713 713 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 713 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 713 = { compliance < 50 } NOT = { country_exists = AZE } } ARM = { country_event = { id = arme.223 days = 2 } } } } } if = { limit = { owns_state = 1038 1038 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1038 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 1038 = { compliance < 50 } NOT = { country_exists = TLS } } ARM = { country_event = { id = arme.230 days = 2 } } } } } } if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat emerging_anarchist_communism_are_in_power = yes nationalist_fascist_are_in_power = yes } ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 203 203 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 203 } ARM_integrate_state = yes } if = { limit = { owns_state = 553 553 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 553 } ARM_integrate_state = yes } if = { limit = { owns_state = 202 202 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 202 } ARM_integrate_state = yes } if = { limit = { owns_state = 201 201 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 201 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_liberating_levant has_completed_focus = ARM_true_urheimat } ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 587 587 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 587 } ARM_integrate_state = yes } if = { limit = { owns_state = 205 205 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 205 } ARM_integrate_state = yes } if = { limit = { owns_state = 204 204 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 204 } ARM_integrate_state = yes } if = { limit = { owns_state = 208 208 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 208 } ARM_integrate_state = yes } if = { limit = { owns_state = 207 207 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 207 } ARM_integrate_state = yes } if = { limit = { owns_state = 206 206 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 206 } ARM_integrate_state = yes } if = { limit = { owns_state = 209 209 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 209 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_savoya ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 145 145 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 145 } ARM_integrate_state = yes } if = { limit = { owns_state = 812 812 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 812 } ARM_integrate_state = yes } if = { limit = { owns_state = 146 146 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 146 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_true_urheimat has_completed_focus = ARM_pan_caucasianism } ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 708 708 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 708 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 708 = { compliance < 50 } NOT = { country_exists = GEO } } if = { limit = { owns_state = 466 } 466 = { add_compliance = -15 } } if = { limit = { owns_state = 707 } 707 = { add_compliance = -15 } } } } } if = { limit = { owns_state = 707 707 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 707 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 707 = { compliance < 50 } NOT = { country_exists = GEO } } ARM = { country_event = { id = arme.226 days = 2 } } } } } if = { limit = { owns_state = 705 705 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 705 } ARM_integrate_state = yes } } if = { limit = { has_completed_focus = ARM_true_urheimat has_completed_focus = ARM_pan_caucasianism ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 466 466 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 466 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 466 = { compliance < 50 } NOT = { country_exists = GEO } } if = { limit = { owns_state = 708 } 708 = { add_compliance = -15 } } if = { limit = { owns_state = 707 } 707 = { add_compliance = -15 } } } } } } if = { limit = { has_completed_focus = ARM_pan_caucasianism ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 671 671 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 671 } ARM_integrate_state = yes hidden_effect = { if = { limit = { NOT = { country_exists = DAG } 671 = { compliance < 50 } } ARM = { country_event = { id = arme.225 days = 2 } } } } } if = { limit = { owns_state = 668 668 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 668 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 668 = { compliance < 50 } NOT = { country_exists = KUB } } ARM = { country_event = { id = arme.224 days = 2 } } } } } if = { limit = { owns_state = 1126 1126 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1126 } ARM_integrate_state = yes } if = { limit = { owns_state = 673 673 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 673 } ARM_integrate_state = yes } if = { limit = { owns_state = 674 674 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 674 } ARM_integrate_state = yes } if = { limit = { owns_state = 1125 1125 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1125 } ARM_integrate_state = yes } if = { limit = { owns_state = 1140 1140 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1140 } ARM_integrate_state = yes } if = { limit = { owns_state = 1127 1127 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 1127 } ARM_integrate_state = yes } if = { limit = { owns_state = 670 670 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 670 } ARM_integrate_state = yes } } if = { limit = { OR = { has_completed_focus = ARM_savoya has_completed_focus = ARM_true_urheimat has_completed_focus = ARM_pan_caucasianism emerging_anarchist_communism_are_in_power = yes nationalist_fascist_are_in_power = yes } ARM_low_emigration_for_integration = yes has_idea = ARM_immigration } if = { limit = { owns_state = 706 706 = { NOT = { is_core_of = ROOT } } } set_temp_variable = { ARM_target_state = 706 } ARM_integrate_state = yes hidden_effect = { if = { limit = { 706 = { compliance < 50 } NOT = { country_exists = ABK } } ARM = { country_event = { id = arme.227 days = 2 } } } } } } } ARM_rebellion_in_kurdistan = { clear_temp_array = ARM_kurd_revolt_states add_to_temp_array = { ARM_kurd_revolt_states = 1039 } add_to_temp_array = { ARM_kurd_revolt_states = 979 } add_to_temp_array = { ARM_kurd_revolt_states = 408 } add_to_temp_array = { ARM_kurd_revolt_states = 1139 } add_to_temp_array = { ARM_kurd_revolt_states = 1138 } add_to_temp_array = { ARM_kurd_revolt_states = 1078 } add_to_temp_array = { ARM_kurd_revolt_states = 630 } add_to_temp_array = { ARM_kurd_revolt_states = 633 } add_to_temp_array = { ARM_kurd_revolt_states = 164 } for_each_loop = { array = ARM_kurd_revolt_states meta_effect = { text = { if = { limit = { PER = { has_full_control_of_state = [STATE] } } [STATE] = { transfer_state_to = IKR } } } STATE = "[?v|.0]" } } } ARM_rebellion_in_kurdistan_brigades = { division_template = { name = "The Kurdish Rebels" priority = 0 template_counter = 0 regiments = { Militia_Bat = { x = 0 y = 0 } Militia_Bat = { x = 0 y = 1 } Militia_Bat = { x = 0 y = 2 } Militia_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } clear_temp_array = ARM_kurd_revolt_states add_to_temp_array = { ARM_kurd_revolt_states = 1039 } add_to_temp_array = { ARM_kurd_revolt_states = 979 } add_to_temp_array = { ARM_kurd_revolt_states = 408 } add_to_temp_array = { ARM_kurd_revolt_states = 1139 } add_to_temp_array = { ARM_kurd_revolt_states = 1138 } add_to_temp_array = { ARM_kurd_revolt_states = 1078 } add_to_temp_array = { ARM_kurd_revolt_states = 630 } add_to_temp_array = { ARM_kurd_revolt_states = 633 } add_to_temp_array = { ARM_kurd_revolt_states = 164 } for_each_loop = { array = ARM_kurd_revolt_states meta_effect = { text = { if = { limit = { IKR = { has_full_control_of_state = [STATE] } } capital_scope = { create_unit = { division = "name = \"Battalion Of Kurdish Rebels\" division_template = \"The Kurdish Rebels\"" count = 1 owner = IKR } } } } STATE = "[?v|.0]" } } } NKR_integrate_army_of_armenia = { set_temp_variable = { percent_change = 0 } if = { limit = { ARM = { check_variable = { ARM_national_guard_level > 0 } } check_variable = { NKR_national_guard_level = 0 } } set_variable = { NKR_national_guard_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_army_core_attack_factor = 0.04 tooltip = army_core_attack_factor_tt } add_to_variable = { NKR_land_army_core_defence_factor = 0.06 tooltip = army_core_defence_factor_tt } add_to_variable = { NKR_land_resistance_damage_to_garrison = -0.08 tooltip = resistance_damage_to_garrison_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { ARM = { check_variable = { ARM_teroborona_level > 0 } } check_variable = { NKR_teroborona_level = 0 } } set_variable = { NKR_teroborona_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_mobilization_speed = 0.04 tooltip = mobilization_speed_tt } add_to_variable = { NKR_land_army_core_defence_factor = 0.03 tooltip = army_core_defence_factor_tt } add_to_variable = { NKR_land_war_support_factor = 0.01 tooltip = war_support_factor_tt } add_to_variable = { NKR_land_training_time_army_factor = -0.02 tooltip = training_time_army_factor_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { ARM = { check_variable = { ARM_army_engineer_level > 0 } } check_variable = { NKR_army_engineer_level = 0 } } set_variable = { NKR_army_engineer_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_army_speed_factor = 0.05 tooltip = army_speed_factor_tt } add_to_variable = { NKR_land_army_core_defence_factor = 0.05 tooltip = army_core_defence_factor_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { ARM = { check_variable = { ARM_army_railway_level > 0 } } check_variable = { NKR_army_railway_level = 0 } } set_variable = { NKR_army_railway_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_repair_speed_rail_way_factor = 0.10 tooltip = repair_speed_rail_way_factor_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { ARM = { check_variable = { ARM_army_radio_level > 0 } } check_variable = { NKR_army_radio_level = 0 } } set_variable = { NKR_army_radio_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_army_attack_factor = 0.01 tooltip = army_attack_factor_tt } add_to_variable = { NKR_land_army_org_factor = 0.05 tooltip = army_org_factor_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { ARM = { check_variable = { ARM_border_troops_level > 0 } } check_variable = { NKR_border_troops_level = 0 } } set_variable = { NKR_border_troops_level = 1 } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = NKR_landforce_modifier } add_to_variable = { NKR_land_foreign_influence_defense_modifier = 0.06 tooltip = foreign_influence_defense_modifier_tt } add_to_variable = { NKR_land_army_core_defence_factor = 0.06 tooltip = army_core_defence_factor_tt } newline = yes add_to_temp_variable = { percent_change = 1 } } if = { limit = { check_variable = { percent_change > 0 } } set_temp_variable = { tag_index = ARM } change_influence_percentage = yes } } ARM_eu_cooperation_script = { if = { limit = { has_idea = ARM_eu_coop_agreement1 } swap_ideas = { remove_idea = ARM_eu_coop_agreement1 add_idea = ARM_eu_coop_agreement2 } } else_if = { limit = { has_idea = ARM_eu_coop_agreement } swap_ideas = { remove_idea = ARM_eu_coop_agreement add_idea = ARM_eu_coop_agreement1 } } } ARM_eu_ger_fra_check_script = { set_temp_variable = { percent_change = 1 } set_temp_variable = { influence_target = ARM } if = { limit = { GER = { has_idea = EU_member } } set_temp_variable = { tag_index = GER } change_influence_percentage = yes } if = { limit = { FRA = { has_idea = EU_member } } set_temp_variable = { tag_index = FRA } change_influence_percentage = yes } } ARM_eu_ger_fra_check_negative_script = { set_temp_variable = { percent_change = -1 } set_temp_variable = { influence_target = ARM } if = { limit = { GER = { has_idea = EU_member } } set_temp_variable = { tag_index = GER } change_influence_percentage = yes add_opinion_modifier = { modifier = drama target = GER } reverse_add_opinion_modifier = { modifier = drama target = GER } } if = { limit = { FRA = { has_idea = EU_member } } set_temp_variable = { tag_index = FRA } change_influence_percentage = yes add_opinion_modifier = { modifier = drama target = FRA } reverse_add_opinion_modifier = { modifier = drama target = FRA } } } ARM_eu_seize_funds_script = { if = { limit = { OR = { has_idea = ARM_eu_coop_agreement has_idea = ARM_eu_coop_agreement1 has_idea = ARM_eu_coop_agreement2 } } set_temp_variable = { treasury_change = 0.090 } modify_treasury_effect = yes } if = { limit = { has_idea = ARM_eu_commitie } set_temp_variable = { treasury_change = 0.035 } modify_treasury_effect = yes } if = { limit = { has_idea = ARM_eu_ngos } set_temp_variable = { treasury_change = 0.085 } modify_treasury_effect = yes } if = { limit = { has_idea = ARM_eu_council } set_temp_variable = { treasury_change = 0.055 } modify_treasury_effect = yes } } ARM_eu_close_org_script = { if = { limit = { has_idea = ARM_eu_coop_agreement } remove_ideas = ARM_eu_coop_agreement } if = { limit = { has_idea = ARM_eu_coop_agreement1 } remove_ideas = ARM_eu_coop_agreement1 } if = { limit = { has_idea = ARM_eu_coop_agreement2 } remove_ideas = ARM_eu_coop_agreement2 } if = { limit = { has_idea = ARM_eu_commitie } remove_ideas = ARM_eu_commitie } if = { limit = { has_idea = ARM_eu_council } remove_ideas = ARM_eu_council } } ARM_azer_commi_revoult_script = { if = { limit = { country_exists = AZE NOT = { has_war_with = AZE } } hidden_effect = { AZE = { start_civil_war = { ideology = neutrality size = 0.1 capital = 1038 states = { 1038 711 } set_popularities = { democratic = 0 neutrality = 100 fascism = 0 communism = 0 nationalist = 0 } set_temp_variable = { rul_party_temp = 19 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { current_cons_popularity = party_pop_array^19 } multiply_temp_variable = { current_cons_popularity = 0.5 } subtract_from_variable = { party_pop_array^5 = current_cons_popularity } recalculate_party = yes } } ARM = { set_autonomy = { target = AZE autonomous_state = autonomy_autonomous_state end_wars = no end_civil_wars = no } } } } } ARM_georgia_commi_revoult_script = { if = { limit = { country_exists = GEO NOT = { has_war_with = GEO } } hidden_effect = { GEO = { start_civil_war = { ideology = neutrality size = 0.1 capital = 1033 states = { 1033 466 } set_popularities = { democratic = 0 neutrality = 100 fascism = 0 communism = 0 nationalist = 0 } set_temp_variable = { rul_party_temp = 19 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { current_cons_popularity = party_pop_array^19 } multiply_temp_variable = { current_cons_popularity = 0.5 } subtract_from_variable = { party_pop_array^5 = current_cons_popularity } recalculate_party = yes } } ARM = { set_autonomy = { target = GEO autonomous_state = autonomy_autonomous_state end_wars = no end_civil_wars = no } } } } } ARM_create_states_armenia_script = { clear_temp_array = ARM_subject_tags add_to_temp_array = { ARM_subject_tags = SOO.id } add_to_temp_array = { ARM_subject_tags = CHE.id } add_to_temp_array = { ARM_subject_tags = KUR.id } add_to_temp_array = { ARM_subject_tags = SYR.id } add_to_temp_array = { ARM_subject_tags = AZE.id } add_to_temp_array = { ARM_subject_tags = GEO.id } for_each_loop = { array = ARM_subject_tags var:v = { if = { limit = { is_subject_of = ARM } set_country_flag = ARM_subject_agree set_country_flag = ARM_subject_state } } ARM = { if = { limit = { var:v = { is_subject_of = ARM } } set_autonomy = { target = var:v autonomous_state = autonomy_armenia_state end_wars = no end_civil_wars = no } } } } } armenian_state_annex_effect = { if = { limit = { var:tag_index = { influence_higher_50 = yes is_ai = yes has_autonomy_state = autonomy_armenia_state } country_exists = var:tag_index } add_political_power = pp_cost set_temp_variable = { treasury_change = treasury_cost } modify_treasury_effect = yes set_temp_variable = { party_popularity_increase = popularity_change } set_temp_variable = { temp_outlook_increase = popularity_change } change_relative_party_popularity = yes var:tag_index = { ARM = { annex_country = { target = PREV transfer_troops = yes } } } hidden_effect = { var:tag_index = { every_unit_leader = { set_nationality = ARM } add_to_variable = { PREV.treasury = treasury } add_to_variable = { PREV.debt = debt } add_to_variable = { PREV.int_investments = int_investments } } } } } armenia_state_annex = { decrease_economic_growth = yes set_temp_variable = { tag_index = CHE.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = SOO.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = AZE.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = GEO.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = SYR.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = KUR.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes set_temp_variable = { tag_index = ABK.id } set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } armenian_state_annex_effect = yes } ARM_russian_revoult_in_armenia_script = { if = { limit = { country_exists = ARM NOT = { has_war_with = ARM } } hidden_effect = { set_temp_variable = { percent_change = -5 } set_temp_variable = { tag_index = SOV } set_temp_variable = { influence_target = ARM } change_influence_percentage = yes ARM = { start_civil_war = { ideology = nationalist size = 0.1 capital = 1034 states = { 1034 } set_popularities = { democratic = 0 neutrality = 0 fascism = 0 communism = 0 nationalist = 100 } set_temp_variable = { rul_party_temp = 22 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { party_index = 22 } set_temp_variable = { party_popularity_multiplier = 0.5 } scale_party_popularity = yes country_event = sov_gru.1 load_focus_tree = armenia_focus } } } } } ARM_protests_subject_script = { clear_temp_array = ARM_protest_targets add_to_temp_array = { ARM_protest_targets = ABK.id } add_to_temp_array = { ARM_protest_targets = AZE.id } add_to_temp_array = { ARM_protest_targets = SOO.id } add_to_temp_array = { ARM_protest_targets = SYR.id } add_to_temp_array = { ARM_protest_targets = CHE.id } add_to_temp_array = { ARM_protest_targets = KUR.id } add_to_temp_array = { ARM_protest_targets = GEO.id } add_to_temp_array = { ARM_protest_targets = ITA.id } add_to_temp_array = { ARM_protest_targets = POL.id } for_each_loop = { array = ARM_protest_targets var:v = { if = { limit = { is_subject_of = ARM } add_autonomy_score = { value = 500 } } } } } ARM_cored_state_azer_revoult_script = { AZE = { transfer_state = 713 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 713 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 7661 owner = AZE count = 4 } } } } ARM_cored_state_kubanoid_revoult_script = { KUB = { transfer_state = 668 add_state_core = 668 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 668 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 7661 owner = KUB count = 4 } } } } ARM_cored_state_dagestan_revoult_script = { DAG = { transfer_state = 671 add_state_core = 671 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 671 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 3668 owner = DAG count = 4 } } } } ARM_cored_state_georgia_revoult_script = { GEO = { transfer_state = 707 add_state_core = 707 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 707 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 1599 owner = GEO count = 4 } } } } ARM_cored_state_abkhazia_revoult_script = { ABK = { transfer_state = 706 add_state_core = 706 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 706 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 11617 owner = ABK count = 4 } } } } ARM_cored_state_kurdistan_revoult_script = { KUR = { transfer_state = 164 add_state_core = 164 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 164 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 3916 owner = KUR count = 5 } } } } ARM_cored_state_talyshstan_revoult_script = { TLS = { transfer_state = 1038 add_state_core = 1038 declare_war_on = { target = ARM type = annex_everything } division_template = { name = "Rebel Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } 1038 = { create_unit = { division = "name = \"Rebel Battalion\" division_template = \"Rebel Battalion\" start_experience_factor = 0.1" prioritize_location = 4473 owner = TLS count = 4 } } } } ARM_unionstate_integration_effect = { if = { limit = { NKR = { is_subject_of = ARM } } ARM = { country_event = russia_governorate.24 } } set_autonomy = { target = ARM autonomy_state = autonomy_union_state } hidden_effect = { ARM = { set_country_flag = BLR_unionstate_agree add_ideas = USR_union_state_idea add_ideas = USR_valute_idea add_ideas = USR_civils_idea add_ideas = USR_economic_space_idea add_ideas = USR_eternal_commitie_idea add_ideas = USR_money_palata_idea add_ideas = USR_council_ministers_idea add_ideas = USR_gos_sovet_idea add_ideas = USR_parlament_idea } news_event = { hours = 6 id = union_state_news.4 } } } update_arm_artsakh_dirty_variable = { if = { limit = { check_variable = { global.ARM_artsakh_dirty_update_var < 10000 } } add_to_variable = { global.ARM_artsakh_dirty_update_var = 1 } } else = { set_variable = { global.ARM_artsakh_dirty_update_var = 1 } } }