RAJ_china_is_a_threat = { allowed = { original_tag = RAJ } enable = { country_exists = CHI CHI = { check_variable = { CHI_chinese_aggression > 2 } is_subject = no OR = { has_government = nationalist has_government = communism has_government = fascism } } has_war = no } abort_when_not_enabled = yes ai_strategy = { type = put_unit_buffers states = { 429 427 428 455 475 993 984 987 982 } ratio = 0.60 subtract_fronts_from_need = no subtract_invasions_from_need = no } ai_strategy = { type = front_unit_request tag = CHI value = 50 } ai_strategy = { type = force_build_armies value = 100 } ai_strategy = { type = antagonize id = "CHI" value = 25 } ai_strategy = { type = contain id = "CHI" value = 25 } ai_strategy = { type = alliance id = "CHI" value = -50 } ai_strategy = { type = support id = "CHI" value = -50 } ai_strategy = { type = befriend id = "CHI" value = -50 } } RAJ_entrench_against_china = { allowed = { original_tag = RAJ } enable = { has_war_with = CHI alliance_strength_ratio < 1.0 } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request tag = CHI value = 20 } } RAJ_contain_pakistan = { allowed = { original_tag = RAJ } enable = { country_exists = PAK PAK = { NOT = { is_subject_of = RAJ } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "PAK" value = 200 } ai_strategy = { type = alliance id = "PAK" value = -200 } ai_strategy = { type = support id = "PAK" value = -200 } ai_strategy = { type = contain id = "PAK" value = 200 } } RAJ_contain_pakistan_active_threat = { allowed = { original_tag = RAJ } enable = { country_exists = PAK PAK = { NOT = { is_subject_of = RAJ } } threat > 0.15 } abort_when_not_enabled = yes ai_strategy = { type = conquer id = "PAK" value = 200 } } RAJ_no_garrison_ban = { allowed = { original_tag = RAJ } enable = { country_exists = BAN NOT = { BAN = { OR = { has_government = nationalist has_government = fascism } } } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request tag = BAN value = -100 } ai_strategy = { type = befriend id = "BAN" value = 100 } ai_strategy = { type = alliance id = "BAN" value = 100 } } RAJ_no_garrison_bhu = { allowed = { original_tag = RAJ } enable = { country_exists = BHU NOT = { BHU = { OR = { has_government = nationalist has_government = fascism } } } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request tag = BHU value = -100 } ai_strategy = { type = befriend id = "BHU" value = 100 } ai_strategy = { type = alliance id = "BHU" value = 100 } } RAJ_no_garrison_nep = { allowed = { original_tag = RAJ } enable = { country_exists = NEP NOT = { NEP = { OR = { has_government = nationalist has_government = fascism } } } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request tag = NEP value = -100 } ai_strategy = { type = befriend id = "NEP" value = 100 } ai_strategy = { type = alliance id = "NEP" value = 100 } } RAJ_increase_army_against_china = { allowed = { original_tag = RAJ } enable = { CHI = { check_variable = { CHI_chinese_aggression > 3 } } } abort_when_not_enabled = yes ai_strategy = { type = force_build_armies value = 50 } ai_strategy = { type = build_army id = infantry value = 25 } ai_strategy = { type = build_army id = apc_mechanized value = 25 } ai_strategy = { type = build_army id = ifv_mechanized value = 25 } ai_strategy = { type = build_army id = armor value = 25 } ai_strategy = { type = build_army id = marines value = 15 } ai_strategy = { type = build_army id = Air_mech value = 15 } ai_strategy = { type = build_army id = Special_Forces value = 10 } } RAJ_area_priority = { allowed = { original_tag = RAJ } 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 = -50 } ai_strategy = { type = area_priority id = asia value = 200 } 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 = 5 } ai_strategy = { type = area_priority id = africa value = 25 } } RAJ_oppose_usa_if_supporting_pakistan = { allowed = { original_tag = RAJ } enable = { PAK = { is_guaranteed_by = USA } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "USA" value = 25 } ai_strategy = { type = contain id = "USA" value = 25 } ai_strategy = { type = alliance id = "USA" value = -50 } ai_strategy = { type = support id = "USA" value = -50 } ai_strategy = { type = befriend id = "CHI" value = 50 } } RAJ_oppose_iran_if_supporting_pakistan = { allowed = { original_tag = RAJ } enable = { PAK = { is_guaranteed_by = PER } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "PER" value = 25 } ai_strategy = { type = contain id = "PER" value = 25 } ai_strategy = { type = alliance id = "PER" value = -50 } ai_strategy = { type = support id = "PER" value = -50 } ai_strategy = { type = befriend id = "PER" value = -150 } } RAJ_oppose_russia_if_supporting_pakistan = { allowed = { original_tag = RAJ } enable = { PAK = { is_guaranteed_by = SOV } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "SOV" value = -25 } ai_strategy = { type = contain id = "SOV" value = -25 } ai_strategy = { type = alliance id = "SOV" value = 50 } ai_strategy = { type = support id = "SOV" value = 10 } ai_strategy = { type = befriend id = "SOV" value = 150 } } RAJ_support_afghanistan = { allowed = { original_tag = RAJ } enable = { AFG = { NOT = { has_country_flag = AFG_new_war } NOT = { has_government = fascism } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "AFG" value = -25 } ai_strategy = { type = contain id = "AFG" value = -25 } ai_strategy = { type = support id = "AFG" value = 100 } ai_strategy = { type = befriend id = "AFG" value = 100 } ai_strategy = { type = send_volunteers_desire id = "AFG" value = -50 } } RAJ_support_botswana_militarily = { allowed = { original_tag = RAJ } enable = { BOT = { OR = { has_completed_focus = BOT_indian_military_cooperation has_completed_focus = BOT_found_indian_embassy } } NOT = { has_war_with = BOT } BOT = { NOT = { is_in_faction_with = CHI } NOT = { is_in_faction_with = PAK } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "BOT" value = 50 } ai_strategy = { type = support id = "BOT" value = 50 } } ##India unique AI for combat units RAJ_default_naval_breakdown = { allowed = { original_tag = RAJ } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 10 } ai_strategy = { type = role_ratio id = naval_frigate value = 15 } ai_strategy = { type = role_ratio id = naval_destroyer value = 25 } ai_strategy = { type = role_ratio id = naval_stealth_destroyer value = 2 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 25 } ai_strategy = { type = role_ratio id = naval_missile_submarine value = 8 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 8 } ai_strategy = { type = role_ratio id = naval_carrier value = 5 } ai_strategy = { type = role_ratio id = naval_battlecruiser value = 2 } ai_strategy = { type = role_ratio id = naval_battleship value = 1 } ai_strategy = { type = role_ratio id = naval_cruiser value = 2 } } generic_india_industrial_construction = { allowed = { original_tag = RAJ } enable = { check_variable = { unfulfilled_energy_demand_var > -0.05 } } abort_when_not_enabled = yes ai_strategy = { type = building_target id = industrial_complex value = 100 } } RAJ_army_focus = { allowed = { original_tag = RAJ } enable = { has_equipment = { infantry_weapons_type > 35000 } has_equipment = { medium_tank_artillery_chassis > 1000 } has_equipment = { cnc_equipment_type > 500 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = L_Inf value = 250 } ai_strategy = { type = build_army id = L_Inf value = 1000 } ai_strategy = { type = role_ratio id = marines value = 200 } ai_strategy = { type = build_army id = marines value = 1000 } ai_strategy = { type = role_ratio id = Special_Forces value = 100 } ai_strategy = { type = build_army id = Special_Forces value = 500 } } # RAJ_accepted_to_join_brics = { allowed = { NOT = { original_tag = RAJ } } enable = { RAJ = { has_idea = faction_brics_alliance } OR = { has_idea = faction_brics_alliance has_idea = RAJ_BRICS_observer has_idea = RAJ_BRICS_associate } } abort_when_not_enabled = yes ai_strategy = { type = alliance id = "RAJ" value = 200 } } #CIVIL WAR IN AMERICA RAJ_new_york_help = { allowed = { original_tag = RAJ } enable = { country_exists = NYK has_war = no has_opinion = { target = NYK value > 20 } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "NYK" value = 1000 } ai_strategy = { type = send_lend_lease_desire id = "NYK" value = 400 } } RAJ_texas_help = { allowed = { original_tag = RAJ } enable = { country_exists = TEX has_war = no has_opinion = { target = TEX value > 20 } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "TEX" value = 1000 } ai_strategy = { type = send_lend_lease_desire id = "TEX" value = 400 } } RAJ_confederate_states_america_help = { allowed = { original_tag = RAJ } enable = { country_exists = CSA has_war = no has_opinion = { target = CSA value > 20 } } 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 } } RAJ_cascadia_help = { allowed = { original_tag = RAJ } enable = { country_exists = CAS has_war = no has_opinion = { target = CAS value > 20 } } abort_when_not_enabled = yes ai_strategy = { type = send_volunteers_desire id = "CAS" value = 1000 } ai_strategy = { type = send_lend_lease_desire id = "CAS" value = 400 } } RAJ_do_not_declare_additional_wars = { allowed = { original_tag = RAJ } enable = { OR = { has_war_with = CHI has_war_with = SOV has_war_with = USA has_war_with = PAK } } abort_when_not_enabled = yes ai_strategy = { type = avoid_starting_wars value = -100 } } RAJ_do_not_declare_on_myanmar_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = BRM has_wargoal_against = BRM BRM = { OR = { is_guaranteed_by = CHI is_guaranteed_by = IND is_guaranteed_by = SIA } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "BRM" value = -200 } } RAJ_do_not_declare_on_singapore_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = SIN has_wargoal_against = SIN SIN = { OR = { is_guaranteed_by = CHI is_guaranteed_by = IND is_guaranteed_by = SIA } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "SIN" value = -200 } } RAJ_do_not_declare_on_vietnam_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = VIE has_wargoal_against = VIE VIE = { OR = { is_guaranteed_by = CHI is_guaranteed_by = IND is_guaranteed_by = SIA } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "VIE" value = -200 } } RAJ_do_not_declare_on_malaysia_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = MAY has_wargoal_against = MAY MAY = { OR = { is_guaranteed_by = CHI is_guaranteed_by = IND is_guaranteed_by = SIA } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "MAY" value = -200 } } RAJ_pursue_friendly_relations_with_sri_lanka = { allowed = { original_tag = RAJ } enable = { country_exists = SRI NOT = { has_government = nationalist } NOT = { has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "SRI" value = 25 } ai_strategy = { type = support id = "SRI" value = 25 } ai_strategy = { type = protect id = "SRI" value = 25 } } RAJ_pursue_friendly_relations_with_nepal = { allowed = { original_tag = RAJ } enable = { country_exists = NEP NOT = { has_government = nationalist } NOT = { has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "NEP" value = 25 } ai_strategy = { type = support id = "NEP" value = 25 } ai_strategy = { type = protect id = "NEP" value = 25 } } RAJ_pursue_friendly_relations_with_bhutan = { allowed = { original_tag = RAJ } enable = { country_exists = BHU NOT = { has_government = nationalist } NOT = { has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "BHU" value = 25 } ai_strategy = { type = support id = "BHU" value = 25 } ai_strategy = { type = protect id = "BHU" value = 25 } } RAJ_threat_of_terror_mil = { allowed = { original_tag = RAJ } enable = { has_completed_focus = RAJ_threat_of_terror_mil NOT = { has_war_with = USA } NOT = { has_government = nationalist } NOT = { has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "USA" value = 15 } ai_strategy = { type = support id = "USA" value = 25 } } RAJ_USA_threat_of_terror_mil = { allowed = { original_tag = USA } enable = { has_completed_focus = RAJ_threat_of_terror_mil NOT = { has_war_with = RAJ } NOT = { has_government = nationalist } NOT = { has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "RAJ" value = 15 } ai_strategy = { type = support id = "RAJ" value = 25 } } RAJ_strategic_assistance_to_us = { allowed = { original_tag = RAJ } enable = { has_country_leader = { name = "Atal Bihari Vajpayee" } has_completed_focus = RAJ_strategic_assistance_to_us } abort_when_not_enabled = yes ai_strategy = { type = befriend id = USA value = 15 } ai_strategy = { type = support id = USA value = 25 } } RAJ_USA_strategic_assistance_to_us = { allowed = { original_tag = USA } enable = { RAJ = { has_country_leader = { name = "Atal Bihari Vajpayee" } has_completed_focus = RAJ_strategic_assistance_to_us } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = RAJ value = 15 } ai_strategy = { type = support id = RAJ value = 25 } } RAJ_handle_naxalite_insurgency = { allowed = { original_tag = RAJ } enable = { RAJ_country_has_any_naxalite_states = yes } abort_when_not_enabled = yes ai_strategy = { type = pp_spend_priority id = decision value = 20 } ai_strategy = { type = avoid_starting_wars value = 40 } } RAJ_prioritize_insurgency_severe = { allowed = { original_tag = RAJ } enable = { RAJ_has_severe_naxalite_states_trigger = yes } abort_when_not_enabled = yes ai_strategy = { type = pp_spend_priority id = decision value = 75 } ai_strategy = { type = pp_spend_amount id = decision value = 75 } ai_strategy = { type = avoid_starting_wars value = 50 } } RAJ_garrison_red_corridor = { allowed = { original_tag = RAJ } enable = { RAJ_country_has_any_naxalite_states = yes } abort_when_not_enabled = yes ai_strategy = { type = garrison value = 200 } ai_strategy = { type = force_build_armies value = 30 } } # RAJ Air Doctrine — balanced land + maritime coverage RAJ_air_doctrine = { allowed = { original_tag = RAJ } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = fighter value = 12 } ai_strategy = { type = unit_ratio id = cas value = 15 } ai_strategy = { type = unit_ratio id = naval_bomber value = 15 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 20 } ai_strategy = { type = unit_ratio id = interceptor value = 30 } ai_strategy = { type = unit_ratio id = scout_plane value = 3 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 5 } } RAJ_handle_religious_crisis = { allowed = { original_tag = RAJ } enable = { OR = { check_variable = { RAJ_muslim_opinion < 35 } check_variable = { RAJ_sikh_opinion < 35 } check_variable = { RAJ_buddhist_opinion < 35 } check_variable = { RAJ_christians_opinion < 35 } check_variable = { RAJ_hindus_opinion < 35 } } } abort_when_not_enabled = yes ai_strategy = { type = pp_spend_priority id = decision value = 75 } } RAJ_handle_religious_crisis_severe = { allowed = { original_tag = RAJ } enable = { OR = { check_variable = { RAJ_muslim_opinion < 15 } check_variable = { RAJ_sikh_opinion < 15 } check_variable = { RAJ_buddhist_opinion < 15 } check_variable = { RAJ_christians_opinion < 15 } } } abort_when_not_enabled = yes ai_strategy = { type = pp_spend_priority id = decision value = 150 } } RAJ_befriend_myanmar_buffer = { allowed = { original_tag = RAJ } enable = { country_exists = BRM NOT = { has_war_with = BRM } BRM = { NOT = { is_in_faction_with = CHI } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "BRM" value = 50 } ai_strategy = { type = support id = "BRM" value = 25 } ai_strategy = { type = protect id = "BRM" value = 25 } } RAJ_counter_chinese_influence_myanmar = { allowed = { original_tag = RAJ } enable = { country_exists = BRM BRM = { is_in_faction_with = CHI } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "CHI" value = 25 } ai_strategy = { type = contain id = "CHI" value = 50 } } RAJ_reconquer_breakaway = { allowed = { original_tag = RAJ } enable = { OR = { country_exists = LAD country_exists = MEG country_exists = MAN country_exists = SIK } } abort_when_not_enabled = yes ai_strategy = { type = conquer id = "LAD" value = 200 } ai_strategy = { type = conquer id = "MEG" value = 200 } ai_strategy = { type = conquer id = "MAN" value = 200 } ai_strategy = { type = conquer id = "SIK" value = 200 } } RAJ_do_not_declare_on_nepal_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = NEP has_wargoal_against = NEP NEP = { OR = { is_guaranteed_by = CHI is_guaranteed_by = USA is_guaranteed_by = SOV } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "NEP" value = -200 } } RAJ_do_not_declare_on_bhutan_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = BHU has_wargoal_against = BHU BHU = { OR = { is_guaranteed_by = CHI is_guaranteed_by = USA is_guaranteed_by = SOV } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "BHU" value = -200 } } RAJ_do_not_declare_on_turkmenistan_if_guaranteed = { allowed = { original_tag = RAJ } enable = { country_exists = TRK has_wargoal_against = TRK TRK = { OR = { is_guaranteed_by = SOV is_guaranteed_by = CHI is_guaranteed_by = USA } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = "TRK" value = -200 } }