# Written by Andreas "Cold Evul" Brostrom #Iran support Shias PER_support_shias = { allowed = { original_tag = PER } reversed = yes enable = { NOT = { tag = PER } has_idea = shia NOT = { has_country_flag = Insulted_Iran } } targets = { FSA NUS ROJ IRQ SAU OMA YEM JOR BHR QAT KUW LEB } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "PER" value = 200 } ai_strategy = { type = protect id = "PER" value = 200 } ai_strategy = { type = support id = "PER" value = 200 } ai_strategy = { type = send_volunteers_desire id = "PER" value = 200 } ai_strategy = { type = influence id = "PER" value = 200 } } PER_defend_bandar_mahshahr = { # Protect Port from U.S. allowed = { original_tag = PER } enable = { has_war_with = USA } abort_when_not_enabled = yes ai_strategy = { type = theatre_distribution_demand_increase id = 399 value = 5 } } PER_defend_hormuz = { # Protect Port from U.S. allowed = { original_tag = PER } enable = { has_war_with = USA } abort_when_not_enabled = yes ai_strategy = { type = theatre_distribution_demand_increase id = 978 value = 5 } } PER_Hell_bent_on_sending_volunteer_to_iraq = { allowed = { original_tag = PER } enable = { country_exists = IRQ PER = { has_war = no } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "MDA" value = 200 } ai_strategy = { type = befriend id = "MDA" value = 200 } ai_strategy = { type = protect id = "MDA" value = 200 } ai_strategy = { type = influence id = "MDA" value = 200 } ai_strategy = { type = antagonize id = "MDA" value = -50 } ai_strategy = { type = alliance id = "MDA" value = 50 } ai_strategy = { type = support id = "MDA" value = 200 } ai_strategy = { type = contain id = "MDA" value = -50 } } PER_ISI_rush_IRQ = { allowed = { original_tag = ISI } enable = { PER = { has_completed_focus = PER_descend_on_iraq } } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = IRQ priority = 100 ordertype = front execution_type = rush execute_order = yes manual_attack = yes } } PER_NTR_Hates_iraq = { allowed = { tag = NTR } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = IRQ priority = 70 ordertype = front } } PER_NTR_not_guard_and_push_isi = { allowed = { tag = NTR } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = ISI priority = -25 ordertype = front } } PER_HOU_rush_YEM = { allowed = { tag = HOU } enable = { has_global_flag = HOU_Houthi_offensive } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = YEM priority = 100 ordertype = front execution_type = rush execute_order = yes manual_attack = yes } } PER_YEM_AQY_dont_fight_alot = { allowed = { tag = AQY } enable = { has_global_flag = AQY_limited_war } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "SAU" value = 200 } ai_strategy = { type = front_control tag = YEM priority = -50 ordertype = front execute_order = no manual_attack = no } } PER_YEM_AQY_dont_fight_alot_two = { allowed = { tag = YEM } enable = { has_global_flag = AQY_limited_war } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = AQY priority = -50 ordertype = front execute_order = no manual_attack = no } } PER_HOU_slow_down = { allowed = { tag = HOU } enable = { NOT = { has_global_flag = HOU_Houthi_offensive } } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = YEM priority = -10 ordertype = front execute_order = no manual_attack = no } } PER_YEM_slow_down = { allowed = { tag = YEM } enable = { NOT = { has_global_flag = HOU_Houthi_offensive } } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = HOU priority = -70 ordertype = front execute_order = no manual_attack = no } } PER_HOU_dont_attack_YEM = { allowed = { tag = YEM } enable = { has_global_flag = HOU_Houthi_offensive } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = HOU execute_order = no manual_attack = no } ai_strategy = { type = front_unit_request tag = HOU value = -1000 } } PER_IRS_rush_IRQ = { allowed = { tag = IRS } enable = { PER = { has_completed_focus = PER_descend_on_iraq } } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = IRQ priority = 100 ordertype = front execution_type = rush execute_order = yes manual_attack = yes } } PER_IRQ_rush_ISI = { allowed = { original_tag = IRQ } enable = { PER = { has_completed_focus = PER_descend_on_iraq } } abort_when_not_enabled = yes ai_strategy = { type = front_control tag = ISI priority = 100 ordertype = front execution_type = rush execute_order = yes manual_attack = yes } } PER_rival_saudis = { allowed = { original_tag = PER } enable = { country_exists = SAU } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "SAU" value = 200 } ai_strategy = { type = contain id = "SAU" value = 200 } ai_strategy = { type = consider_weak id = "SAU" value = 200 } ai_strategy = { type = alliance id = "SAU" value = -200 } ai_strategy = { type = support id = "SAU" value = -200 } } PER_do_no_volunteer_in_iraq = { allowed = { original_tag = PER } enable = { OR = { has_global_flag = PER_iraqi_falling AND = { IRQ = { has_war_with = IRS } IRQ = { has_war_with = ISI } } } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "IRQ" value = -200 } } PER_area_strategy = { allowed = { original_tag = PER } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = europe value = -50 } ai_strategy = { type = area_priority id = north_america value = -50 } ai_strategy = { type = area_priority id = caribbean value = -50 } ai_strategy = { type = area_priority id = south_america value = -25 } ai_strategy = { type = area_priority id = asia value = 100 } ai_strategy = { type = area_priority id = pacific value = -50 } ai_strategy = { type = area_priority id = oceania value = -50 } ai_strategy = { type = area_priority id = middle_east value = 200 } ai_strategy = { type = area_priority id = africa value = -25 } } PER_support_SUD = { allowed = { original_tag = PER } enable = { SUD = { OR = { has_government = communism has_government = neutrality } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "SUD" value = 50 } ai_strategy = { type = influence id = "SUD" value = 50 } ai_strategy = { type = support id = "SUD" value = 100 } } PER_great_satan = { allowed = { original_tag = PER } enable = { OR = { NOT = { is_in_faction_with = USA } PER = { emerging_moderate_shiite_are_in_power = yes emerging_hardline_shiite_are_in_power = yes } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "USA" value = 50 } ai_strategy = { type = alliance id = "USA" value = -200 } ai_strategy = { type = support id = "USA" value = -200 } } PER_hate_ISR = { allowed = { original_tag = PER } enable = { OR = { NOT = { is_in_faction_with = ISR } PER = { emerging_moderate_shiite_are_in_power = yes emerging_hardline_shiite_are_in_power = yes } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "ISR" value = -100 } ai_strategy = { type = conquer id = "ISR" value = 25 } ai_strategy = { type = invade id = "ISR" value = 25 } ai_strategy = { type = antagonize id = "ISR" value = 100 } ai_strategy = { type = alliance id = "ISR" value = -200 } ai_strategy = { type = support id = "ISR" value = -200 } ai_strategy = { type = contain id = "ISR" value = 100 } } PER_warm_with_TUR = { allowed = { original_tag = PER } enable = { NOT = { has_war_with = TUR } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "TUR" value = 50 } ai_strategy = { type = protect id = "TUR" value = -50 } ai_strategy = { type = influence id = "TUR" value = 50 } ai_strategy = { type = antagonize id = "TUR" value = 25 } ai_strategy = { type = alliance id = "TUR" value = -50 } ai_strategy = { type = support id = "TUR" value = -50 } ai_strategy = { type = contain id = "TUR" value = 25 } } PER_warm_with_USA = { allowed = { original_tag = PER } enable = { NOT = { has_war_with = USA } PER = { emerging_moderate_shiite_are_in_power = no emerging_hardline_shiite_are_in_power = no } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "USA" value = 50 } ai_strategy = { type = protect id = "USA" value = -50 } ai_strategy = { type = influence id = "USA" value = 50 } ai_strategy = { type = antagonize id = "USA" value = 25 } ai_strategy = { type = alliance id = "USA" value = -50 } ai_strategy = { type = support id = "USA" value = -50 } ai_strategy = { type = contain id = "USA" value = 25 } } PER_warm_with_RAJ = { allowed = { original_tag = PER } enable = { NOT = { has_war_with = RAJ } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "RAJ" value = 50 } ai_strategy = { type = protect id = "RAJ" value = 50 } ai_strategy = { type = influence id = "RAJ" value = 50 } ai_strategy = { type = antagonize id = "RAJ" value = -50 } ai_strategy = { type = alliance id = "RAJ" value = 50 } ai_strategy = { type = support id = "RAJ" value = 100 } ai_strategy = { type = contain id = "RAJ" value = -50 } } ##Iran unique AI for combat units PER_default_naval_breakdown = { allowed = { original_tag = PER } enable = { original_tag = PER } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 50 } ai_strategy = { type = role_ratio id = naval_frigate value = 10 } ai_strategy = { type = role_ratio id = naval_destroyer value = 4 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 31 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 5 } ai_strategy = { type = role_ratio id = naval_mine_sweeper value = 8 } } ## PER_accepted_to_join_cento = { allowed = { NOT = { original_tag = PER } } enable = { PER = { has_idea = faction_cento_alliance } has_idea = faction_cento_alliance } abort_when_not_enabled = yes ai_strategy = { type = alliance id = "PER" value = 200 } } # PER_befriend_hezbolla = { allowed = { original_tag = PER } enable = { OR = { NOT = { has_war_with = HEZ } PER = { emerging_moderate_shiite_are_in_power = yes emerging_hardline_shiite_are_in_power = yes } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "HEZ" value = 200 } ai_strategy = { type = protect id = "HEZ" value = 200 } ai_strategy = { type = influence id = "HEZ" value = 200 } ai_strategy = { type = antagonize id = "HEZ" value = -50 } ai_strategy = { type = alliance id = "HEZ" value = 50 } ai_strategy = { type = support id = "HEZ" value = 200 } ai_strategy = { type = contain id = "HEZ" value = -50 } } # PER_befriend_syria = { allowed = { original_tag = PER } enable = { OR = { NOT = { has_war_with = SYR } PER = { emerging_moderate_shiite_are_in_power = yes emerging_hardline_shiite_are_in_power = yes } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "SYR" value = 200 } ai_strategy = { type = protect id = "SYR" value = 200 } ai_strategy = { type = influence id = "SYR" value = 200 } ai_strategy = { type = antagonize id = "SYR" value = -50 } ai_strategy = { type = alliance id = "SYR" value = 50 } ai_strategy = { type = support id = "SYR" value = 200 } ai_strategy = { type = contain id = "SYR" value = -50 } } PER_support_afghanistan_enduring_freedom = { allowed = { original_tag = PER } enable = { country_exists = AFG AFG = { NOT = { has_country_flag = AFG_new_war } } USA = { has_country_flag = USA_wot_enduring_freedom } AFG = { has_war_with = TAL } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = AFG value = 200 } ai_strategy = { type = befriend id = AFG value = 200 } ai_strategy = { type = support id = AFG value = 200 } } PER_stop_supporting_houthis_during_the_yemeni_war = { allowed = { original_tag = PER } enable = { country_exists = HOU NOT = { HOU = { has_war_with = YEM } } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = HOU value = -200 } } PER_support_houthis_during_the_yemeni_war = { allowed = { original_tag = PER } enable = { country_exists = HOU HOU = { has_war_with = YEM } PER = { has_country_leader = { name = "Sayyid Ali Hosseini Khamenei" ruling_only = yes } } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = HOU value = 200 } ai_strategy = { type = send_lend_lease_desire id = HOU value = 200 } ai_strategy = { type = protect id = HOU value = 200 } ai_strategy = { type = befriend id = HOU value = 200 } ai_strategy = { type = support id = HOU value = 200 } ai_strategy = { type = alliance id = HOU value = 200 } } #CIVIL WAR IN AMERICA PER_california_help = { allowed = { original_tag = PER } enable = { country_exists = CAL has_war = no OR = { has_government = nationalist has_government = neutrality has_government = democratic } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "CAL" value = 1000 } ai_strategy = { type = send_lend_lease_desire id = "CAL" value = 400 } } PER_confederate_states_america_help = { allowed = { original_tag = PER } enable = { country_exists = CSA has_war = no } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "CSA" value = 1000 } ai_strategy = { type = send_lend_lease_desire id = "CSA" value = 400 } } PER_CENTO_intervention_in_syria = { allowed = { OR = { original_tag = PER original_tag = TUR original_tag = PAK original_tag = IRQ } } enable = { has_idea = faction_cento_alliance has_relation_modifier = { target = FSA modifier = generic_increased_military_support } has_country_flag = CENTO_intervention_in_syria } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "FSA" value = 200 } } PER_support_shia_revolutions = { allowed = { NOT = { original_tag = PER } } enable = { has_country_flag = set_vilayat_e_faqih_civil_war has_civil_war = yes } enable_reverse = { PER = { OR = { check_variable = { ruling_party = 8 } check_variable = { ruling_party = 9 } check_variable = { ruling_party = 22 } #IRCG } } } reversed = yes abort_when_not_enabled = yes ai_strategy = { type = befriend id = PER value = 200 } ai_strategy = { type = send_volunteers_desire id = PER value = 200 } ai_strategy = { type = support id = PER value = 200 } } # Wartime execution — asymmetric air/missile doctrine PER_asymmetric_air_war = { allowed = { original_tag = PER } enable = { has_war = yes } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = fighter value = 8 } ai_strategy = { type = unit_ratio id = cas value = 6 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 6 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 6 } ai_strategy = { type = air_factory_balance value = 12 } } # Counter superpower navy — boost naval bombers when outmatched at sea PER_counter_superpower_navy = { allowed = { original_tag = PER } enable = { has_war = yes OR = { has_war_with = USA has_war_with = ENG enemies_naval_strength_ratio > 1.2 } } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = naval_bomber value = 12 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 6 } } # Total war against Israel PER_total_war_against_israel = { allowed = { original_tag = PER } enable = { has_war_with = ISR } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = ISR value = 300 } ai_strategy = { type = contain id = ISR value = 300 } ai_strategy = { type = force_build_armies value = 100 } ai_strategy = { type = unit_ratio id = fighter value = 6 } ai_strategy = { type = unit_ratio id = cas value = 6 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 10 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 12 } ai_strategy = { type = air_factory_balance value = 14 } } # Pre-war air escalation — build air when tensions rise (prepare_for_war handled by MD_war_declaration_ai.txt) PER_prewar_regional_escalation = { allowed = { original_tag = PER } enable = { OR = { threat > 0.15 has_wargoal_against = ISR } NOT = { has_war_with = ISR } } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = fighter value = 7 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 5 } } PER_cancel_war_neighbours = { allowed = { original_tag = PER } enable = { has_war = yes surrender_progress > 0.15 } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "IRQ" value = -4000 } ai_strategy = { type = declare_war id = "ISR" value = -4000 } ai_strategy = { type = declare_war id = "SAU" value = -4000 } ai_strategy = { type = declare_war id = "AZE" value = -4000 } ai_strategy = { type = declare_war id = "AFG" value = -4000 } ai_strategy = { type = declare_war id = "TUR" value = -4000 } ai_strategy = { type = declare_war id = "PAK" value = -4000 } ai_strategy = { type = declare_war id = "UAE" value = -4000 } }