#AUTHORS: Warner, DROID, Dread, Sheep PER_scripted_effect_update_palestine_arms_via_land = { custom_effect_tooltip = influence.56.a_tt if = { limit = { NOT = { PER = { has_country_flag = HAMAS_not_scoped_support } } } set_temp_variable = { hamas_arms_temp_var = FROM.party_pop_array^12 } multiply_temp_variable = { hamas_arms_temp_var = 200 } add_to_variable = { hamas_arms_value = hamas_arms_temp_var } add_to_variable = { arms_hard_varible = hamas_arms_temp_var } custom_effect_tooltip = HAMAS_influence_56_tt multiply_temp_variable = { hamas_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel if = { limit = { any_neighbor_country = { NOT = { OR = { emerging_hardline_shiite_are_in_power = yes emerging_moderate_shiite_are_in_power = yes } } } } divide_temp_variable = { hamas_arms_temp_var = 1.5 } } subtract_from_temp_variable = { hamas_arms_temp_var = 20 } PREV = { add_equipment_to_stockpile = { amount = hamas_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PIJ_not_scoped_support } } } set_temp_variable = { PIJ_arms_temp_var = FROM.party_pop_array^9 } if = { limit = { PER = { has_country_flag = PIJ_support_bonus } } multiply_temp_variable = { PIJ_arms_temp_var = 1.2 } } multiply_temp_variable = { PIJ_arms_temp_var = 200 } add_to_variable = { PIJ_arms_value = PIJ_arms_temp_var } add_to_variable = { arms_hard_varible = PIJ_arms_temp_var } custom_effect_tooltip = PIJ_influence_56_tt multiply_temp_variable = { PIJ_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel if = { limit = { any_neighbor_country = { NOT = { OR = { emerging_hardline_shiite_are_in_power = yes emerging_moderate_shiite_are_in_power = yes } } } } divide_temp_variable = { hamas_arms_temp_var = 1.5 } } subtract_from_temp_variable = { PIJ_arms_temp_var = 10 } PREV = { add_equipment_to_stockpile = { amount = PIJ_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PFLP_not_scoped_support } } } set_temp_variable = { PFLP_arms_temp_var = FROM.party_pop_array^4 } multiply_temp_variable = { PFLP_arms_temp_var = 200 } add_to_variable = { PFLP_arms_value = PFLP_arms_temp_var } add_to_variable = { arms_hard_varible = PFLP_arms_temp_var } custom_effect_tooltip = PFLP_influence_56_tt multiply_temp_variable = { PFLP_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel if = { limit = { any_neighbor_country = { NOT = { OR = { emerging_hardline_shiite_are_in_power = yes emerging_moderate_shiite_are_in_power = yes } } } } divide_temp_variable = { hamas_arms_temp_var = 1.5 } } subtract_from_temp_variable = { PFLP_arms_temp_var = 10 } PREV = { add_equipment_to_stockpile = { amount = PFLP_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PRC_not_scoped_support } } } set_temp_variable = { PRC_arms_temp_var = FROM.party_pop_array^8 } multiply_temp_variable = { PRC_arms_temp_var = 200 } add_to_variable = { PRC_arms_value = PRC_arms_temp_var } add_to_variable = { arms_hard_varible = PRC_arms_temp_var } custom_effect_tooltip = PRC_influence_56_tt multiply_temp_variable = { PRC_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel if = { limit = { any_neighbor_country = { NOT = { OR = { emerging_hardline_shiite_are_in_power = yes emerging_moderate_shiite_are_in_power = yes } } } } divide_temp_variable = { hamas_arms_temp_var = 1.5 } } subtract_from_temp_variable = { PRC_arms_temp_var = 10 } PREV = { add_equipment_to_stockpile = { amount = PRC_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } } PER_scripted_effect_update_palestine_arms_via_sea = { custom_effect_tooltip = influence.56.b_tt if = { limit = { NOT = { PER = { has_country_flag = HAMAS_not_scoped_support } } } set_temp_variable = { hamas_arms_temp_var = FROM.party_pop_array^12 } multiply_temp_variable = { hamas_arms_temp_var = 150 } add_to_variable = { hamas_arms_value = hamas_arms_temp_var } add_to_variable = { arms_hard_varible = hamas_arms_temp_var } custom_effect_tooltip = HAMAS_influence_56_tt multiply_temp_variable = { hamas_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel divide_temp_variable = { hamas_arms_temp_var = 1.2 } subtract_from_temp_variable = { hamas_arms_temp_var = 4 } PREV = { add_equipment_to_stockpile = { amount = hamas_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PIJ_not_scoped_support } } } set_temp_variable = { PIJ_arms_temp_var = FROM.party_pop_array^9 } if = { limit = { PER = { has_country_flag = PIJ_support_bonus } } multiply_temp_variable = { PIJ_arms_temp_var = 1.2 } } multiply_temp_variable = { PIJ_arms_temp_var = 150 } add_to_variable = { hamas_arms_value = PIJ_arms_temp_var } add_to_variable = { arms_hard_varible = PIJ_arms_temp_var } custom_effect_tooltip = PIJ_influence_56_tt multiply_temp_variable = { PIJ_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel divide_temp_variable = { hamas_arms_temp_var = 1.2 } subtract_from_temp_variable = { PIJ_arms_temp_var = 2 } PREV = { add_equipment_to_stockpile = { amount = PIJ_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PFLP_not_scoped_support } } } set_temp_variable = { PFLP_arms_temp_var = FROM.party_pop_array^4 } multiply_temp_variable = { PFLP_arms_temp_var = 150 } add_to_variable = { hamas_arms_value = PFLP_arms_temp_var } add_to_variable = { arms_hard_varible = PFLP_arms_temp_var } custom_effect_tooltip = PFLP_influence_56_tt multiply_temp_variable = { PFLP_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel divide_temp_variable = { hamas_arms_temp_var = 1.2 } subtract_from_temp_variable = { PFLP_arms_temp_var = 2 } PREV = { add_equipment_to_stockpile = { amount = PFLP_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } if = { limit = { NOT = { PER = { has_country_flag = PRC_not_scoped_support } } } set_temp_variable = { PRC_arms_temp_var = FROM.party_pop_array^8 } multiply_temp_variable = { PRC_arms_temp_var = 150 } add_to_variable = { hamas_arms_value = PRC_arms_temp_var } add_to_variable = { arms_hard_varible = PRC_arms_temp_var } custom_effect_tooltip = PRC_influence_56_tt multiply_temp_variable = { PRC_arms_temp_var = -1 } #THIS IS FOR AT & ATT COST and Travel divide_temp_variable = { hamas_arms_temp_var = 1.2 } subtract_from_temp_variable = { PRC_arms_temp_var = 2 } PREV = { add_equipment_to_stockpile = { amount = PRC_arms_temp_var type = infantry_weapons_type producer = PREV } } newline = yes } } PER_SAZ_independence = { PER = { activate_mission = PER_rebellion_in_azerbaijan } hidden_effect = { 407 = { if = { limit = { has_dynamic_modifier = { modifier = PER_azeri_separatism } } remove_dynamic_modifier = { modifier = PER_azeri_separatism } } transfer_state_to = SAZ add_core_of = SAZ } SAZ = { add_ideas = SAZ_independence_war division_template = { name = "Canubi Azerbaycan Briqadasi" priority = 0 template_counter = 0 regiments = { Mot_Inf_Bat = { x = 0 y = 0 } Mot_Inf_Bat = { x = 0 y = 1 } Mot_Inf_Bat = { x = 0 y = 2 } Mot_Inf_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } 407 = { create_unit = { division = "name = \"1st. Canubi Azerbaycan Azadliq Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 12861 } create_unit = { division = "name = \"2nd. Tebriz Qurtulush Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 1896 } create_unit = { division = "name = \"3rd. Babak Xurrami Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 4901 } create_unit = { division = "name = \"4th. Sattar Xan Inqilabi Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 4825 } create_unit = { division = "name = \"5th. Goyqurd Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14733 } create_unit = { division = "name = \"6th. Garabag Intiqam Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14734 } create_unit = { division = "name = \"7th. Atropatena Azadliq Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 10523 } create_unit = { division = "name = \"8th. Seyid Cavad Azadi Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14615 } } declare_war_on = { target = PER type = liberate_wargoal } } send_equipment = { equipment = util_vehicle_type amount = 5000 target = SAZ } send_equipment = { equipment = infantry_weapons_type amount = 10000 target = SAZ } PER = { country_event = iranian_focus.58 } SOV = { country_event = iranian_focus.58 } AZE = { country_event = iranian_focus.58 } TUR = { country_event = iranian_focus.58 } } } PER_SAZ_independence_alt = { hidden_effect = { 407 = { if = { limit = { has_dynamic_modifier = { modifier = PER_azeri_separatism } } remove_dynamic_modifier = { modifier = PER_azeri_separatism } } transfer_state_to = SAZ add_core_of = SAZ } 1039 = { transfer_state_to = SAZ add_core_of = SAZ } 979 = { transfer_state_to = SAZ add_core_of = SAZ } SAZ = { add_ideas = SAZ_independence_war division_template = { name = "Canubi Azerbaycan Briqadasi" priority = 0 template_counter = 0 regiments = { Mot_Inf_Bat = { x = 0 y = 0 } Mot_Inf_Bat = { x = 0 y = 1 } Mot_Inf_Bat = { x = 0 y = 2 } Mot_Inf_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } 407 = { create_unit = { division = "name = \"1st. Canubi Azerbaycan Azadliq Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 12861 } create_unit = { division = "name = \"2nd. Tebriz Qurtulush Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 1896 } create_unit = { division = "name = \"3rd. Babak Xurrami Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 4901 } create_unit = { division = "name = \"4th. Sattar Xan Inqilabi Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 4825 } create_unit = { division = "name = \"5th. Goyqurd Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14733 } create_unit = { division = "name = \"6th. Garabag Intiqam Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14734 } create_unit = { division = "name = \"7th. Atropatena Azadliq Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 10523 } create_unit = { division = "name = \"8th. Seyid Cavad Azadi Briqadasi\" division_template = \"Canubi Azerbaycan Briqadasi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = SAZ prioritize_location = 14615 } } } TUR = { set_autonomy = { target = SAZ autonomy_state = TUR_eyalet_province } } send_equipment = { equipment = util_vehicle_type amount = 5000 target = SAZ } send_equipment = { equipment = infantry_weapons_type amount = 10000 target = SAZ } PER = { country_event = iranian_focus.58 } SOV = { country_event = iranian_focus.58 } AZE = { country_event = iranian_focus.58 } TUR = { country_event = iranian_focus.58 } } } PER_BLC_independence = { PER = { activate_mission = PER_rebellion_in_balochistan } hidden_effect = { 401 = { if = { limit = { has_dynamic_modifier = { modifier = PER_baloch_separatism } } remove_dynamic_modifier = { modifier = PER_baloch_separatism } } transfer_state_to = BLC } BLC = { division_template = { name = "Sipah-e Azad" priority = 0 template_counter = 0 regiments = { Mot_Inf_Bat = { x = 0 y = 0 } Mot_Inf_Bat = { x = 0 y = 1 } Mot_Inf_Bat = { x = 0 y = 2 } Mot_Inf_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } 407 = { create_unit = { division = "name = \"1st. Gwadari Mukhtari Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 12895 } create_unit = { division = "name = \"2nd. Azad Balochistan Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 12895 } create_unit = { division = "name = \"3rd. Baloch Raji Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 13082 } create_unit = { division = "name = \"4th. Mir Mehrab Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 13082 } create_unit = { division = "name = \"5th. Dashti Sarbaz Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 14944 } create_unit = { division = "name = \"6th. Mekran Azadi Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 14944 } create_unit = { division = "name = \"7th. Rind-o-Lashari Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 2039 } create_unit = { division = "name = \"8th. Sardar Dost Mohammad Sipah\" division_template = \"Sipah-e Azad\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = BLC prioritize_location = 3879 } } declare_war_on = { target = PER type = liberate_wargoal } } send_equipment = { equipment = util_vehicle_type amount = 5000 target = BLC } send_equipment = { equipment = infantry_weapons_type amount = 10000 target = BLC } PER = { country_event = iranian_focus.59 } PAK = { country_event = iranian_focus.59 } SAU = { country_event = iranian_focus.59 } } } PER_IKR_independence = { PER = { activate_mission = PER_rebellion_in_kordestan } hidden_effect = { if = { limit = { 979 = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } } 979 = { remove_dynamic_modifier = { modifier = PER_kurd_separatism } transfer_state_to = IKR add_core_of = IKR } } if = { limit = { 408 = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } } 408 = { remove_dynamic_modifier = { modifier = PER_kurd_separatism } transfer_state_to = IKR add_core_of = IKR } } if = { limit = { 1139 = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } } 1139 = { remove_dynamic_modifier = { modifier = PER_kurd_separatism } transfer_state_to = IKR add_core_of = IKR } } IKR = { set_technology = { infantry_weapons_2 = 1 util_vehicle_1 = 1 cnc_equipment_1 = 1 Anti_tank_0 = 1 } if = { limit = { has_dlc = "No Step Back" } set_technology = { nsb_Anti_Air_0 = 1 } } else = { set_technology = { Anti_Air_0 = 1 } } division_template = { name = "Lêşkerî Kurdistan" priority = 0 template_counter = 0 regiments = { Mot_Inf_Bat = { x = 0 y = 0 } Mot_Inf_Bat = { x = 0 y = 1 } Mot_Inf_Bat = { x = 0 y = 2 } Mot_Inf_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } if = { limit = { 979 = { is_owned_and_controlled_by = IKR } } 979 = { create_unit = { division = "name = \"1st. Lêşkerî Azadî\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 7604 } create_unit = { division = "name = \"2nd. Lêşkerî Rojhilat\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 1822 } create_unit = { division = "name = \"3rd. Lêşkerî Pêşmerge\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 14268 } create_unit = { division = "name = \"4th. Komelî Şoreşger\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 14314 } } } if = { limit = { 408 = { is_owned_and_controlled_by = IKR } } 408 = { create_unit = { division = "name = \"5th. Şoreşgeranî Welat\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 4943 } create_unit = { division = "name = \"6th. Komelî Gelê Azad\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 14313 } create_unit = { division = "name = \"7th. Lêşkerî Zagros\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 5098 } create_unit = { division = "name = \"8th. Lêşkerî Sanandaj\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 16216 } } } if = { limit = { 1139 = { is_owned_and_controlled_by = IKR } } 1139 = { create_unit = { division = "name = \"9th. Lêşkerî Dersim\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 16155 } create_unit = { division = "name = \"10th. Lêşkerî Simko\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 12773 } create_unit = { division = "name = \"11th. Lêşkerî Mîrê Şeref\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 4008 } create_unit = { division = "name = \"12th. Komelî Bîrîndarî\" division_template = \"Lêşkerî Kurdistan\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = IKR prioritize_location = 16155 } } } add_timed_idea = { idea = IKR_fight_for_our_survival days = 180 } declare_war_on = { target = PER type = liberate_wargoal } } send_equipment = { equipment = util_vehicle_type amount = 5000 target = IKR } send_equipment = { equipment = infantry_weapons_type amount = 15000 target = IKR } send_equipment = { equipment = cnc_equipment_type amount = 1200 target = IKR } send_equipment = { equipment = L_AT_Equipment amount = 600 target = IKR } send_equipment = { equipment = AA_Equipment amount = 400 target = IKR } PER = { country_event = iranian_focus.60 } ISR = { country_event = iranian_focus.60 } USA = { country_event = iranian_focus.60 } KUR = { country_event = iranian_focus.60 } } } PER_ARA_independence = { PER = { activate_mission = PER_rebellion_in_arabistan } hidden_effect = { 399 = { if = { limit = { has_dynamic_modifier = { modifier = PER_ahvaz_separatism } } remove_dynamic_modifier = { modifier = PER_ahvaz_separatism } } } ARA = { division_template = { name = "Liwa Milisia" priority = 0 template_counter = 0 regiments = { Mot_Inf_Bat = { x = 0 y = 0 } Mot_Inf_Bat = { x = 0 y = 1 } Mot_Inf_Bat = { x = 0 y = 2 } Mot_Inf_Bat = { x = 0 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } } } 399 = { create_unit = { division = "name = \"1st. Liwa' Hurras al-Ahwaz\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 9555 } create_unit = { division = "name = \"2nd. Firqat Muqawamat Dez\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 9060 } create_unit = { division = "name = \"3rd. Mudafi'u Shatt al-'Arab\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 5005 } create_unit = { division = "name = \"4th. Liwa' al-Fajr al-Jadid\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 14727 } create_unit = { division = "name = \"5th. Mudafi'u al-Masir\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 7953 } create_unit = { division = "name = \"6th. Liwa' al-Nahrayn\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 9059 } create_unit = { division = "name = \"7th. Liwa' Ibn Mazin\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 9421 } create_unit = { division = "name = \"8th. Firqat al-Sumud\" division_template = \"Liwa Milisia\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = ARA prioritize_location = 6562 } } add_timed_idea = { idea = IKR_fight_for_our_survival days = 180 } declare_war_on = { target = PER type = liberate_wargoal } } send_equipment = { equipment = util_vehicle_type amount = 5000 target = ARA } send_equipment = { equipment = infantry_weapons_type amount = 10000 target = ARA } PER = { country_event = iranian_focus.61 } SAU = { country_event = iranian_focus.61 } } } PER_scripted_effect_update_principalists_popularity_variable = { hidden_effect = { set_temp_variable = { principalists_pop = party_pop_array^9 } set_temp_variable = { reformists_pop = party_pop_array^8 } set_temp_variable = { sum_parties = principalists_pop } add_to_temp_variable = { sum_parties = reformists_pop } set_temp_variable = { temp_var_hundred = 100 } divide_temp_variable = { temp_var_hundred = sum_parties } multiply_temp_variable = { principalists_pop = temp_var_hundred } set_variable = { principalists_popularity_percent = principalists_pop } set_temp_variable = { reformists_popularity_temp_variable = principalists_popularity_percent } set_temp_variable = { number100 = 100 } subtract_from_temp_variable = { var = number100 value = reformists_popularity_temp_variable } set_variable = { reformists_popularity_percent = number100 } #Round variables to display set_variable = { principalists_popularity_percent_round = principalists_popularity_percent } round_variable = principalists_popularity_percent_round set_variable = { reformists_popularity_percent_round = reformists_popularity_percent } round_variable = reformists_popularity_percent_round } } PER_election_weekly_tick = { if = { limit = { has_country_flag = PER_election_enabled NOT = { has_country_flag = PER_turn_off_IR_stuff } } PER_scripted_effect_update_principalists_popularity_variable = yes if = { #8th Period limit = { has_country_flag = PER_election_enabled date > 2001.6.1 date < 2002.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } country_event = PER_election_events.9 } else = { if = { limit = { has_country_flag = PER_yazdi_goes } country_event = PER_election_events.81 } else = { country_event = PER_election_events.8 } } } else_if = { #9th Period limit = { has_country_flag = PER_election_enabled date > 2005.6.9 date < 2006.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } country_event = PER_election_events.11 } else = { if = { limit = { has_country_flag = PER_kavakebian_goes } country_event = PER_election_events.101 } else = { country_event = PER_election_events.10 } } } else_if = { #10th Period limit = { has_country_flag = PER_election_enabled date > 2009.6.5 date < 2010.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } country_event = PER_election_events.13 } else = { if = { limit = { has_country_flag = PER_karroubi_goes } country_event = PER_election_events.121 } else = { country_event = PER_election_events.12 } } } else_if = { #11th Period limit = { has_country_flag = PER_election_enabled date > 2013.6.7 date < 2014.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } if = { limit = { has_country_flag = principalist_portrait_ghalibaf NOT = { has_country_flag = PER_mashaei_goes } } country_event = PER_election_events.15 } else_if = { limit = { has_country_flag = PER_mashaei_goes } country_event = PER_election_events.151 } else = { country_event = PER_election_events.16 } } else = { country_event = PER_election_events.14 } } else_if = { #12th Period limit = { has_country_flag = PER_election_enabled date > 2017.5.12 date < 2018.6.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } if = { limit = { has_country_flag = PER_bayadi_goes } country_event = PER_election_events.181 } else = { country_event = PER_election_events.18 } } else = { country_event = PER_election_events.17 } } else_if = { #13th Period limit = { has_country_flag = PER_election_enabled date > 2021.6.11 date < 2022.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } country_event = PER_election_events.20 } else_if = { limit = { has_country_flag = PER_haghshenas_goes } country_event = PER_election_events.191 } else = { country_event = PER_election_events.19 } } else_if = { #14th Period limit = { has_country_flag = PER_election_enabled date > 2024.6.5 date < 2025.7.1 } if = { limit = { check_variable = { var = principalists_popularity_percent value = 50 compare = greater_than_or_equals } } country_event = PER_election_events.201 } else = { country_event = PER_election_events.202 } } } } PER_scripted_effect_finish_election = { hidden_effect = { clr_country_flag = PER_election_enabled clr_country_flag = principalist_portrait_ahmadinejad clr_country_flag = principalist_portrait_raisi clr_country_flag = principalist_portrait_tavakoli clr_country_flag = principalist_portrait_ghalibaf clr_country_flag = principalist_portrait_rezaee clr_country_flag = reformist_portrait_hemmati clr_country_flag = reformist_portrait_khatami clr_country_flag = reformist_portrait_mousavi clr_country_flag = reformist_portrait_rafsanjani clr_country_flag = reformist_portrait_rouhani clr_country_flag = reformist_portrait_pezeshkian clr_country_flag = reformist_portrait_kavakebian clr_country_flag = reformist_portrait_yazdi clr_country_flag = reformist_portrait_karroubi clr_country_flag = reformist_portrait_haghshenas clr_country_flag = principalist_portrait_mashaei clr_country_flag = principalist_portrait_bayadi remove_ideas = { PER_ahmadinejad_idea PER_bayadi_idea PER_ghalibaf_idea PER_haghshenas_idea PER_hemmati_idea PER_karroubi_idea PER_kavakebian_idea PER_khatami_idea PER_mashaei_idea PER_mousavi_idea PER_pezeshkian_idea PER_rafsanjani_idea PER_raisi_idea PER_rezaee_idea PER_rouhani_idea PER_tavakoli_idea PER_yazdi_idea } if = { limit = { date > 2001.1.1 date < 2002.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2001.6.8" election_frequency = 48 } } else_if = { limit = { date > 2005.1.1 date < 2006.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2005.6.17" election_frequency = 48 } } else_if = { limit = { date > 2009.1.1 date < 2010.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2009.6.12" election_frequency = 48 } } else_if = { limit = { date > 2013.1.1 date < 2014.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2013.6.14" election_frequency = 47 } } else_if = { limit = { date > 2017.1.1 date < 2018.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2017.5.19" election_frequency = 48 } } else_if = { limit = { date > 2021.1.1 date < 2022.1.1 } set_politics = { ruling_party = communism # Reset ruling ideology to Emerging elections_allowed = yes last_election = "2021.6.18" election_frequency = 48 } } create_country_leader = { # Reset country leader name = "Sayyid Ali Hosseini Khamenei" picture = "sayyid_ali_hosseini_khamenei.dds" ideology = Vilayat_e_Faqih traits = { emerging_Vilayat_e_Faqih cleric geopolitical_thinker political_dancer stubborn anti_zionist } } } } PER_minister_clear = { clr_country_flag = PER_seyed_hassan_minister clr_country_flag = PER_hashem_sabbaghian_minister clr_country_flag = PER_hedayatollah_matin_minister clr_country_flag = PER_mohammad_tavasoli_minister clr_country_flag = PER_mostafa_moein_minister clr_country_flag = PER_mostafa_tajzade_minister clr_country_flag = PER_ali_khavari_minister clr_country_flag = PER_hashem_aghajari_minister clr_country_flag = PER_mohsen_makhmalbaf_minister clr_country_flag = PER_abdolali_bazargan_minister clr_country_flag = PER_amir_etemadi_minister clr_country_flag = PER_hassan_shariatmadari_minister clr_country_flag = PER_roozbeh_farahinpour_minister clr_country_flag = PER_abulqasem_porhashmi_minister clr_country_flag = PER_alireza_kiani_minister clr_country_flag = PER_foad_pashei_minister clr_country_flag = PER_reza_pirzadeh_minister clr_country_flag = PER_ezatollah_sahabi_minister remove_ideas = { PER_aghajari_idea PER_amin_idea PER_bazargan_idea PER_etemadi_idea PER_farahanipour_idea PER_jamshid_amouzegar_idea PER_khavari_idea PER_kiani_idea PER_makhmalbaf_idea PER_matin_idea PER_moein_idea PER_porhashmi_idea PER_rahmani_idea PER_sabbaghian_idea PER_shariatmadari_idea PER_tajzade_idea PER_tavasoli_idea PER_zahedi_idea } } # Keep temporary exceptions and their consumer in one history effect invocation. PER_initialize_party_bans = { add_to_temp_array = { ban_except_array = 8 } add_to_temp_array = { ban_except_array = 9 } ban_all_parties_except_array = yes } # Ban stash is required: find_highest_in_array cannot skip banned slots. PER_majlis_duopoly = { find_highest_in_array = { array = party_pop_array value = popular_1_temp index = popular_index_1_temp } set_variable = { popular_index_1 = popular_index_1_temp } set_variable = { party_pop_array^popular_index_1 = -2 } find_highest_in_array = { array = party_pop_array value = popular_2_temp index = popular_index_2_temp } set_variable = { popular_index_2 = popular_index_2_temp } set_variable = { party_pop_array^popular_index_1 = popular_1_temp } } PER_majlis_elections = { custom_effect_tooltip = PER_majlis_TT set_variable = { PER_majlis_total_seats = 0 } PER_majlis_stash_banned_popularity = yes if = { limit = { NOT = { has_completed_focus = PER_weaken_guardian_council } } PER_majlis_duopoly = yes for_each_loop = { array = party_pop_array value = v index = i if = { limit = { check_variable = { party_pop_array^i = party_pop_array^popular_index_1 } } set_variable = { PER_majlis_seats^i = { value = party_pop_array^popular_index_1 multiply = 290 round = yes } } } else_if = { limit = { check_variable = { party_pop_array^i = party_pop_array^popular_index_2 } } set_variable = { PER_majlis_seats^i = { value = party_pop_array^popular_index_2 multiply = 1.1 multiply = 290 round = yes } } } else_if = { limit = { check_variable = { party_pop_array^i > 0.05 } } set_variable = { PER_majlis_seats^i = { value = party_pop_array^i multiply = 0.2 multiply = 290 round = yes } } } else = { set_variable = { PER_majlis_seats^i = 0 } } add_to_variable = { PER_majlis_total_seats = PER_majlis_seats^i } } } else = { for_each_loop = { array = party_pop_array value = v index = i if = { limit = { check_variable = { party_pop_array^i > 0.005 } } set_variable = { PER_majlis_seats^i = { value = party_pop_array^i multiply = 290 round = yes } } } else = { set_variable = { PER_majlis_seats^i = 0 } } add_to_variable = { PER_majlis_total_seats = PER_majlis_seats^i } } } PER_majlis_correct_seats = yes set_variable = { PER_majlis_seats_INDEPENDENT = { value = 290 subtract = PER_majlis_total_seats } } add_to_variable = { PER_majlis_total_seats = PER_majlis_seats_INDEPENDENT } PER_majlis_restore_banned_popularity = yes } PER_majlis_correct_seats = { for_each_loop = { array = party_pop_array value = v index = i if = { limit = { check_variable = { PER_majlis_seats^i > 1 } } if = { limit = { check_variable = { PER_majlis_total_seats < 291 } } set_temp_variable = { PER_majlis_total_seats_temp = { value = 291 subtract = PER_majlis_total_seats } } } else = { set_temp_variable = { PER_majlis_total_seats_temp = { value = PER_majlis_total_seats subtract = 289 } } } set_temp_variable_to_random = { var = PER_majlis_total_seats_temp_allocation max = PER_majlis_total_seats_temp integer = yes } add_to_variable = { PER_majlis_seats^i = PER_majlis_total_seats_temp_allocation } add_to_variable = { PER_majlis_total_seats = PER_majlis_total_seats_temp_allocation } } } } PER_majlis_stash_banned_popularity = { for_each_loop = { array = party_pop_array value = v index = i if = { limit = { check_variable = { party_banned_array^i = 1 } } set_variable = { PER_banned_pop_stash^i = v } set_variable = { party_pop_array^i = 0 } } } } PER_majlis_restore_banned_popularity = { for_each_loop = { array = party_pop_array value = v index = i if = { limit = { check_variable = { party_banned_array^i = 1 } } set_variable = { party_pop_array^i = PER_banned_pop_stash^i } } } clear_array = PER_banned_pop_stash } # Flag is PER_majles_abolished (e). Do not rename it to majlis. PER_majlis_monthly_tick = { if = { limit = { NOT = { has_country_flag = PER_majles_abolished } } if = { limit = { check_variable = { PER_election_var > 0 } } set_variable = { PER_election_var = { value = PER_election_var subtract = 1 clamp = { min = 0 max = 48 } } } } if = { limit = { check_variable = { PER_election_var = 0 } } set_variable = { PER_election_var = 48 } country_event = { id = PER_majlis.1 days = 18 } } if = { limit = { check_variable = { PER_election_var > 0 } } set_variable = { PER_session_var = { value = PER_session_var subtract = 1 clamp = { min = 0 max = 48 } } } } if = { limit = { check_variable = { PER_session_var = 0 } } set_variable = { PER_session_var = 18 } country_event = PER_majlis.2 } } } PER_majlis_begin_proposal = { set_country_flag = PER_doing_proposal clr_country_flag = PER_debate_ongoing } PER_clear_majles_flags = { clr_country_flag = PER_removed_bureau_01 clr_country_flag = PER_removed_bureau_02 clr_country_flag = PER_removed_bureau_03 clr_country_flag = PER_removed_bureau_04 clr_country_flag = PER_removed_bureau_05 clr_country_flag = PER_removed_police_01 clr_country_flag = PER_removed_police_02 clr_country_flag = PER_removed_police_03 clr_country_flag = PER_removed_police_04 clr_country_flag = PER_removed_police_05 clr_country_flag = PER_removed_edu_01 clr_country_flag = PER_removed_edu_02 clr_country_flag = PER_removed_edu_03 clr_country_flag = PER_removed_edu_04 clr_country_flag = PER_removed_edu_05 clr_country_flag = PER_removed_health_01 clr_country_flag = PER_removed_health_02 clr_country_flag = PER_removed_health_03 clr_country_flag = PER_removed_health_04 clr_country_flag = PER_removed_health_05 clr_country_flag = PER_removed_health_06 } PER_centralized_change = { hidden_effect = { if = { limit = { original_tag = PER NOT = { has_country_flag = PER_buru_cool_down } } PER = { random_list = { 40 = { country_event = { id = PER_majlis.31 days = 5 } } 60 = { PER_clear_majles_flags = yes } } } } } } PER_police_change = { hidden_effect = { if = { limit = { original_tag = PER NOT = { has_country_flag = PER_police_cool_down } } PER = { random_list = { 40 = { country_event = { id = PER_majlis.32 days = 5 } } 60 = { PER_clear_majles_flags = yes } } } } } } PER_education_change = { hidden_effect = { if = { limit = { original_tag = PER NOT = { has_country_flag = PER_edu_cool_down } } PER = { random_list = { 40 = { country_event = { id = PER_majlis.33 days = 5 } } 60 = { PER_clear_majles_flags = yes } } } } } } PER_health_change = { hidden_effect = { if = { limit = { original_tag = PER NOT = { has_country_flag = PER_health_cool_down } } PER = { random_list = { 40 = { country_event = { id = PER_majlis.34 days = 5 } } 60 = { PER_clear_majles_flags = yes } } } } } } PER_social_change = { hidden_effect = { if = { limit = { original_tag = PER NOT = { has_country_flag = PER_social_cool_down } } PER = { random_list = { 40 = { country_event = { id = PER_majlis.35 days = 5 } } 60 = { PER_clear_majles_flags = yes } } } } } } PER_pan_iran_sf = { set_variable = { PER_pan_iranist_popularity = party_pop_array^20 } } PER_party_change = { if = { limit = { western_autocrats_are_in_power = yes } set_temp_variable = { rul_party_temp = 0 } change_ruling_party_effect = yes } if = { limit = { western_conservatism_are_in_power = yes } set_temp_variable = { rul_party_temp = 1 } change_ruling_party_effect = yes } if = { limit = { western_liberals_are_in_power = yes } set_temp_variable = { rul_party_temp = 2 } change_ruling_party_effect = yes } if = { limit = { western_social_democrats_are_in_power = yes } set_temp_variable = { rul_party_temp = 3 } change_ruling_party_effect = yes } if = { limit = { emerging_communist_state_are_in_power = yes } set_temp_variable = { rul_party_temp = 4 } change_ruling_party_effect = yes } if = { limit = { emerging_anarchist_communism_are_in_power = yes } set_temp_variable = { rul_party_temp = 5 } change_ruling_party_effect = yes } if = { limit = { emerging_reactionaries_are_in_power = yes } set_temp_variable = { rul_party_temp = 6 } change_ruling_party_effect = yes } if = { limit = { emerging_autocracy_are_in_power = yes } set_temp_variable = { rul_party_temp = 7 } change_ruling_party_effect = yes } if = { limit = { emerging_moderate_shiite_are_in_power = yes } set_temp_variable = { rul_party_temp = 8 } change_ruling_party_effect = yes } if = { limit = { emerging_hardline_shiite_are_in_power = yes } set_temp_variable = { rul_party_temp = 9 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_muslim_brotherhood_are_in_power = yes } set_temp_variable = { rul_party_temp = 12 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_autocracy_are_in_power = yes } set_temp_variable = { rul_party_temp = 13 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_conservatism_are_in_power = yes } set_temp_variable = { rul_party_temp = 14 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_oligarch_are_in_power = yes } set_temp_variable = { rul_party_temp = 15 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_libertarians_are_in_power = yes } set_temp_variable = { rul_party_temp = 16 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_green_are_in_power = yes } set_temp_variable = { rul_party_temp = 17 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_social_are_in_power = yes } set_temp_variable = { rul_party_temp = 18 } change_ruling_party_effect = yes } if = { limit = { neutrality_neutral_communism_are_in_power = yes } set_temp_variable = { rul_party_temp = 19 } change_ruling_party_effect = yes } if = { limit = { nationalist_right_wing_populists_are_in_power = yes } set_temp_variable = { rul_party_temp = 20 } change_ruling_party_effect = yes } if = { limit = { nationalist_fascist_are_in_power = yes } set_temp_variable = { rul_party_temp = 21 } change_ruling_party_effect = yes } if = { limit = { nationalist_military_junta_are_in_power = yes } set_temp_variable = { rul_party_temp = 22 } change_ruling_party_effect = yes } if = { limit = { nationalist_monarchists_are_in_power = yes } set_temp_variable = { rul_party_temp = 23 } change_ruling_party_effect = yes } } PER_montazeri_change = { if = { limit = { western_autocrats_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Western_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_conservatism_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_liberals_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = liberalism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_social_democrats_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = socialism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_communist_state_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Communist-State traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_anarchist_communism_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = anarchist_communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_reactionaries_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Conservative traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_autocracy_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_moderate_shiite_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Mod_Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_hardline_shiite_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_muslim_brotherhood_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_Muslim_Brotherhood traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_autocracy_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_conservatism_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_oligarch_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = oligarchism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_libertarians_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_green_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_green traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_social_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = neutral_Social traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_communism_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Neutral_Communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_fascist_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Nat_Fascism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_right_wing_populists_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Nat_Populism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_military_junta_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Nat_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_monarchists_are_in_power = yes has_country_flag = PER_second_ir NOT = { has_country_flag = PER_montazeri_dead } } country_event = iranian_focus.128 create_country_leader = { name = "Hossein-Ali Montazeri" picture = "hossein_montazeri.dds" ideology = Monarchist traits = { neutrality_Neutral_Autocracy zealous cleric } } } } PER_asadollah_change = { if = { limit = { western_autocrats_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Western_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_fascist_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Western_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_conservatism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_liberals_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = liberalism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_social_democrats_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = socialism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_communist_state_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Communist-State traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_anarchist_communism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = anarchist_communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_reactionaries_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Conservative traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_autocracy_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_moderate_shiite_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Mod_Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_hardline_shiite_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_muslim_brotherhood_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_Muslim_Brotherhood traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_autocracy_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_conservatism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_oligarch_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = oligarchism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_libertarians_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_green_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_green traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_social_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = neutral_Social traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_communism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Neutral_Communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_right_wing_populists_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Nat_Populism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_military_junta_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Nat_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_monarchists_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_assadollah } country_event = iranian_focus.128 create_country_leader = { name = "Asadollah Bayat-Zanjani" picture = "asadollah_bayat-zanjani.dds" ideology = Monarchist traits = { neutrality_Neutral_Autocracy zealous cleric } } } } PER_saneei_change = { if = { limit = { western_autocrats_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Western_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_conservatism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_liberals_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = liberalism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { western_social_democrats_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = socialism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_communist_state_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Communist-State traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_anarchist_communism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = anarchist_communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_reactionaries_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Conservative traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_autocracy_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_fascist_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_moderate_shiite_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Mod_Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { emerging_hardline_shiite_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Vilayat_e_Faqih traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_muslim_brotherhood_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_Muslim_Brotherhood traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_autocracy_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_conservatism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_oligarch_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = oligarchism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_libertarians_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_green_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_green traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_social_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = neutral_Social traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { neutrality_neutral_communism_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Neutral_Communism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_right_wing_populists_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Nat_Populism traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_military_junta_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Nat_Autocracy traits = { neutrality_Neutral_Autocracy zealous cleric } } } if = { limit = { nationalist_monarchists_are_in_power = yes has_country_flag = PER_second_ir has_country_flag = PER_selected_saneei } country_event = iranian_focus.128 create_country_leader = { name = "Yousef Saanei" picture = "yousef_saanei.dds" ideology = Monarchist traits = { neutrality_Neutral_Autocracy zealous cleric } } } } # Protest system update_per_civil_war_dirty_variable = { if = { limit = { check_variable = { global.PER_civil_war_dirty_update_var < 10000 } } add_to_variable = { global.PER_civil_war_dirty_update_var = 1 } } else = { set_variable = { global.PER_civil_war_dirty_update_var = 1 } } } update_per_irgc_dirty_variable = { if = { limit = { check_variable = { global.PER_IRGC_dirty_update_var < 10000 } } add_to_variable = { global.PER_IRGC_dirty_update_var = 1 } } else = { set_variable = { global.PER_IRGC_dirty_update_var = 1 } } } PER_sway_state = { set_state_flag = PER_locals_swayed if = { limit = { ROOT = { is_ai = no } } update_per_civil_war_dirty_variable = yes } } PER_unsway_state = { clr_state_flag = PER_locals_swayed if = { limit = { ROOT = { is_ai = no } } update_per_civil_war_dirty_variable = yes } } PER_trigger_protest = { random_list = { 10 = { modifier = { factor = 1.1 NOT = { 1039 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1039 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.20 } 10 = { modifier = { factor = 1.1 NOT = { 979 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 979 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.21 } 10 = { modifier = { factor = 1.1 NOT = { 407 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 407 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.22 } 10 = { modifier = { factor = 1.1 NOT = { 408 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 408 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.23 } 10 = { modifier = { factor = 1.1 NOT = { 1139 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1139 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.24 } 10 = { modifier = { factor = 1.1 NOT = { 1138 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1138 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.25 } 10 = { modifier = { factor = 1.1 NOT = { 399 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 399 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.26 } 10 = { modifier = { factor = 1.1 NOT = { 1148 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1148 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.27 } 10 = { modifier = { factor = 1.1 NOT = { 406 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 406 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.28 } 10 = { modifier = { factor = 1.1 NOT = { 404 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 404 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.29 } 10 = { modifier = { factor = 1.1 NOT = { 1144 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1144 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.30 } 10 = { modifier = { factor = 1.1 NOT = { 405 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 405 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.31 } 10 = { modifier = { factor = 1.1 NOT = { 1149 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1149 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.32 } 10 = { modifier = { factor = 1.1 NOT = { 976 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 976 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.33 } 10 = { modifier = { factor = 1.1 NOT = { 400 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 400 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.34 } 10 = { modifier = { factor = 1.1 NOT = { 1146 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1146 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.35 } 10 = { modifier = { factor = 1.1 NOT = { 1147 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1147 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.36 } 10 = { modifier = { factor = 1.1 NOT = { 1073 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1073 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.37 } 10 = { modifier = { factor = 1.1 NOT = { 403 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 403 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.38 } 10 = { modifier = { factor = 1.1 NOT = { 1145 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1145 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.39 } 10 = { modifier = { factor = 1.1 NOT = { 1150 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1150 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.40 } 10 = { modifier = { factor = 1.1 NOT = { 402 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 402 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.41 } 10 = { modifier = { factor = 1.1 NOT = { 1151 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 1151 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.42 } 10 = { modifier = { factor = 1.1 NOT = { 977 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 977 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.43 } 10 = { modifier = { factor = 1.1 NOT = { 401 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 401 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.44 } 10 = { modifier = { factor = 1.1 NOT = { 978 = { has_state_flag = PER_locals_swayed } } } modifier = { factor = 0 978 = { has_state_flag = PER_locals_swayed } } country_event = iranian_events.45 } } } PER_neutral_politics = { random_list = { 25 = { modifier = { factor = 1.1 neutrality_neutral_conservatism_are_in_power = yes } set_temp_variable = { party_index = 12 } set_temp_variable = { party_popularity_increase = 0.015 } set_temp_variable = { temp_outlook_increase = 0.035 } change_relative_party_popularity = yes } 25 = { modifier = { factor = 1.1 neutrality_neutral_muslim_brotherhood_are_in_power = yes } set_temp_variable = { party_index = 14 } set_temp_variable = { party_popularity_increase = 0.015 } set_temp_variable = { temp_outlook_increase = 0.035 } change_relative_party_popularity = yes } 25 = { modifier = { factor = 1.1 neutrality_neutral_muslim_brotherhood_are_in_power = yes } set_temp_variable = { party_index = 16 } set_temp_variable = { party_popularity_increase = 0.015 } set_temp_variable = { temp_outlook_increase = 0.035 } change_relative_party_popularity = yes } 25 = { # Nothing happens } } }