RAJ_religious_groups = { RAJ_appease_hindus = { icon = GFX_decision_generic_political_discourse cost = 25 days_remove = 30 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_appease_hindus" set_temp_variable = { appease_target = 1 } RAJ_appease_religion = yes } ai_will_do = { base = 0 modifier = { add = 3 check_variable = { RAJ_hindus_opinion < 60 } } modifier = { add = 5 check_variable = { RAJ_hindus_opinion < 35 } } modifier = { add = 10 check_variable = { RAJ_hindus_opinion < 20 } } } } RAJ_appease_sikhs = { icon = GFX_decision_generic_political_discourse cost = 25 days_remove = 30 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_appease_sikhs" set_temp_variable = { appease_target = 4 } RAJ_appease_religion = yes } ai_will_do = { base = 0 modifier = { add = 3 check_variable = { RAJ_sikh_opinion < 60 } } modifier = { add = 5 check_variable = { RAJ_sikh_opinion < 35 } } modifier = { add = 10 check_variable = { RAJ_sikh_opinion < 20 } } } } RAJ_appease_buddhists = { icon = GFX_decision_generic_political_discourse cost = 25 days_remove = 30 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_appease_buddhists" set_temp_variable = { appease_target = 5 } RAJ_appease_religion = yes } ai_will_do = { base = 0 modifier = { add = 3 check_variable = { RAJ_buddhist_opinion < 60 } } modifier = { add = 5 check_variable = { RAJ_buddhist_opinion < 35 } } modifier = { add = 10 check_variable = { RAJ_buddhist_opinion < 20 } } } } RAJ_appease_christians = { icon = GFX_decision_generic_political_discourse cost = 25 days_remove = 30 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_appease_christians" set_temp_variable = { appease_target = 3 } RAJ_appease_religion = yes } ai_will_do = { base = 0 modifier = { add = 3 check_variable = { RAJ_christians_opinion < 60 } } modifier = { add = 5 check_variable = { RAJ_christians_opinion < 35 } } modifier = { add = 10 check_variable = { RAJ_christians_opinion < 20 } } } } RAJ_appease_muslims = { icon = GFX_decision_generic_political_discourse cost = 25 days_remove = 30 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_appease_muslims" set_temp_variable = { appease_target = 2 } RAJ_appease_religion = yes } ai_will_do = { base = 0 modifier = { add = 3 check_variable = { RAJ_muslim_opinion < 60 } } modifier = { add = 5 check_variable = { RAJ_muslim_opinion < 35 } } modifier = { add = 10 check_variable = { RAJ_muslim_opinion < 20 } } } } RAJ_interfaith_dialogue = { icon = GFX_decision_generic_political_discourse cost = 100 days_remove = 180 fire_only_once = no available = { NOT = { has_civil_war = yes } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_interfaith_dialogue" set_temp_variable = { treasury_change = -15 } modify_treasury_effect = yes add_to_variable = { RAJ_muslim_opinion = 3 tooltip = RAJ_muslim_opinion_tt } clamp_variable = { var = RAJ_muslim_opinion min = 0 max = 100 } add_to_variable = { RAJ_sikh_opinion = 3 tooltip = RAJ_sikh_opinion_tt } clamp_variable = { var = RAJ_sikh_opinion min = 0 max = 100 } add_to_variable = { RAJ_buddhist_opinion = 3 tooltip = RAJ_buddhist_opinion_tt } clamp_variable = { var = RAJ_buddhist_opinion min = 0 max = 100 } add_to_variable = { RAJ_christians_opinion = 3 tooltip = RAJ_christians_opinion_tt } clamp_variable = { var = RAJ_christians_opinion min = 0 max = 100 } add_to_variable = { RAJ_hindus_opinion = 1 tooltip = RAJ_hindus_opinion_tt } clamp_variable = { var = RAJ_hindus_opinion min = 0 max = 100 } } ai_will_do = { base = 5 modifier = { factor = 0 has_active_mission = bankruptcy_incoming_collapse } modifier = { add = 5 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 } } } } } RAJ_enshrine_pluralism = { icon = GFX_decision_generic_form_nation cost = 150 fire_only_once = yes visible = { has_idea = RAJ_pluralist_harmony } available = { has_idea = RAJ_religious_harmony NOT = { has_civil_war = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_enshrine_pluralism" swap_ideas = { remove_idea = RAJ_pluralist_harmony add_idea = RAJ_pluralist_settlement } if = { limit = { has_dynamic_modifier = { modifier = RAJ_religious_climate } } remove_dynamic_modifier = { modifier = RAJ_religious_climate } } set_temp_variable = { treasury_change = -50 } newline = yes modify_treasury_effect = yes } ai_will_do = { base = 10 } } RAJ_ladakh_crisis = { icon = GFX_decision_zsr_unrest activation = { owns_state = 993 check_variable = { RAJ_muslim_opinion < 20 } NOT = { has_country_flag = RAJ_ladakh_rebellion_fired } NOT = { has_idea = RAJ_pluralist_settlement } } available = { custom_trigger_tooltip = { tooltip = RAJ_raise_muslim_opinion_tt check_variable = { RAJ_muslim_opinion > 19 } } } cancel_trigger = { NOT = { owns_state = 993 } } days_mission_timeout = 180 is_good = no selectable_mission = no fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_ladakh_crisis resolved" add_stability = 0.02 } timeout_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_ladakh_crisis timed out" 993 = { set_demilitarized_zone = yes } add_stability = -0.05 set_variable = { RAJ_rebel_target_state = 993 } country_event = { id = RAJ_rebellion.1 days = 90 } } } RAJ_meghalaya_crisis = { icon = GFX_decision_zsr_unrest activation = { owns_state = 980 check_variable = { RAJ_christians_opinion < 20 } NOT = { has_country_flag = RAJ_meghalaya_rebellion_fired } NOT = { has_idea = RAJ_pluralist_settlement } } available = { custom_trigger_tooltip = { tooltip = RAJ_raise_christian_opinion_tt check_variable = { RAJ_christians_opinion > 19 } } } cancel_trigger = { NOT = { owns_state = 980 } } days_mission_timeout = 180 is_good = no selectable_mission = no fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_meghalaya_crisis resolved" add_stability = 0.02 } timeout_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_meghalaya_crisis timed out" 980 = { set_demilitarized_zone = yes } add_stability = -0.05 set_variable = { RAJ_rebel_target_state = 980 } country_event = { id = RAJ_rebellion.1 days = 90 } } } RAJ_manipur_crisis = { icon = GFX_decision_zsr_unrest activation = { owns_state = 477 check_variable = { RAJ_christians_opinion < 20 } NOT = { has_country_flag = RAJ_manipur_rebellion_fired } NOT = { has_idea = RAJ_pluralist_settlement } } available = { custom_trigger_tooltip = { tooltip = RAJ_raise_christian_opinion_tt check_variable = { RAJ_christians_opinion > 19 } } } cancel_trigger = { NOT = { owns_state = 477 } } days_mission_timeout = 180 is_good = no selectable_mission = no fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_manipur_crisis resolved" add_stability = 0.02 } timeout_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_manipur_crisis timed out" 477 = { set_demilitarized_zone = yes } add_stability = -0.05 set_variable = { RAJ_rebel_target_state = 477 } country_event = { id = RAJ_rebellion.1 days = 90 } } } RAJ_sikkim_crisis = { icon = GFX_decision_zsr_unrest activation = { owns_state = 982 check_variable = { RAJ_buddhist_opinion < 20 } NOT = { has_country_flag = RAJ_sikkim_rebellion_fired } NOT = { has_idea = RAJ_pluralist_settlement } } available = { custom_trigger_tooltip = { tooltip = RAJ_raise_buddhist_opinion_tt check_variable = { RAJ_buddhist_opinion > 19 } } } cancel_trigger = { NOT = { owns_state = 982 } } days_mission_timeout = 180 is_good = no selectable_mission = no fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_sikkim_crisis resolved" add_stability = 0.02 } timeout_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_sikkim_crisis timed out" 982 = { set_demilitarized_zone = yes } add_stability = -0.05 set_variable = { RAJ_rebel_target_state = 982 } country_event = { id = RAJ_rebellion.1 days = 90 } } } RAJ_punjab_crisis = { icon = GFX_decision_zsr_unrest activation = { owns_state = 429 check_variable = { RAJ_sikh_opinion < 15 } NOT = { has_country_flag = RAJ_punjab_rebellion_fired } NOT = { has_idea = RAJ_pluralist_settlement } } available = { custom_trigger_tooltip = { tooltip = RAJ_raise_sikh_opinion_tt check_variable = { RAJ_sikh_opinion > 14 } } } cancel_trigger = { NOT = { owns_state = 429 } } days_mission_timeout = 180 is_good = no selectable_mission = no fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_punjab_crisis resolved" add_stability = 0.02 } timeout_effect = { log = "[GetDateText]: [Root.GetName]: RAJ_punjab_crisis timed out" 429 = { set_demilitarized_zone = yes } add_stability = -0.05 set_variable = { RAJ_rebel_target_state = 429 } country_event = { id = RAJ_rebellion.1 days = 90 } } } RAJ_settle_gujarat_unrest = { icon = GFX_decision_generic_political_discourse available = { custom_trigger_tooltip = { tooltip = RAJ_settle_gujarat_unrest_TT check_variable = { RAJ_muslim_opinion > 50 } check_variable = { RAJ_hindus_opinion > 50 } } } visible = { has_idea = RAJ_gujarat_trouble_idea } cost = 75 days_remove = 60 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_settle_gujarat_unrest removed" add_to_variable = { RAJ_hindus_opinion = 8 tooltip = RAJ_hindus_opinion_tt } clamp_variable = { var = RAJ_hindus_opinion min = 0 max = 100 } add_to_variable = { RAJ_muslim_opinion = 12 tooltip = RAJ_muslim_opinion_tt } clamp_variable = { var = RAJ_muslim_opinion min = 0 max = 100 } add_stability = 0.02 } ai_will_do = { base = 10 } } } RAJ_Export_category = { RAJ_ita_export = { icon = GFX_decision_italian_guns days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = ITA NOT = { has_war_with = ITA } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_ita_export" ITA = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = ITA modifier = improve_trade } reverse_add_opinion_modifier = { target = ITA modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_italy_export_weapon_flag } } set_country_flag = RAJ_italy_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } set_temp_variable = { treasury_change = 3 } modify_treasury_effect = yes } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_shri_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = SRI NOT = { has_war_with = SRI } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_shri_export" SRI = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = SRI modifier = improve_trade } reverse_add_opinion_modifier = { target = SRI modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_srilanka_export_weapon_flag } } set_country_flag = RAJ_srilanka_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_isr_export = { icon = GFX_decision_israeli_guns days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = ISR NOT = { has_war_with = ISR } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_isr_export" ISR = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = ISR modifier = improve_trade } reverse_add_opinion_modifier = { target = ISR modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_israeli_export_weapon_flag } } set_country_flag = RAJ_israeli_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_sau_export = { icon = GFX_decision_saudi_arabia days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = SAU NOT = { has_war_with = SAU } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_sau_export" SAU = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = SAU modifier = improve_trade } reverse_add_opinion_modifier = { target = SAU modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_saudi_export_weapon_flag } } set_country_flag = RAJ_saudi_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_arm_export = { icon = GFX_decision_armenia days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = ARM NOT = { has_war_with = ARM } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_arm_export" ARM = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = ARM modifier = improve_trade } reverse_add_opinion_modifier = { target = ARM modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_nardi_export_weapon_flag } } set_country_flag = RAJ_nardi_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_eth_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = ETH NOT = { has_war_with = ETH } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_eth_export" ETH = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = ETH modifier = improve_trade } reverse_add_opinion_modifier = { target = ETH modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_ethiopia_export_weapon_flag } } set_country_flag = RAJ_ethiopia_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_nep_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = NEP NOT = { has_war_with = NEP } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_nep_export" NEP = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = NEP modifier = improve_trade } reverse_add_opinion_modifier = { target = NEP modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_nepal_export_weapon_flag } } set_country_flag = RAJ_nepal_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_fra_export = { icon = GFX_decision_french_guns days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = FRA NOT = { has_war_with = FRA } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_fra_export" FRA = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = FRA modifier = improve_trade } reverse_add_opinion_modifier = { target = FRA modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_baguette_export_weapon_flag } } set_country_flag = RAJ_baguette_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_sov_export = { icon = GFX_decision_russian_guns days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = SOV NOT = { has_war_with = SOV } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_sov_export" SOV = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = SOV modifier = improve_trade } reverse_add_opinion_modifier = { target = SOV modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_russia_export_weapon_flag } } set_country_flag = RAJ_russia_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_mld_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = MLD NOT = { has_war_with = MLD } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_mld_export" MLD = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = MLD modifier = improve_trade } reverse_add_opinion_modifier = { target = MLD modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_mld_export_weapon_flag } } set_country_flag = RAJ_mld_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_mrt_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = MRT NOT = { has_war_with = MRT } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_mrt_export" MRT = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = MRT modifier = improve_trade } reverse_add_opinion_modifier = { target = MRT modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_mrt_export_weapon_flag } } set_country_flag = RAJ_mrt_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_egy_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = EGY NOT = { has_war_with = EGY } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_egy_export" EGY = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = EGY modifier = improve_trade } reverse_add_opinion_modifier = { target = EGY modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_egy_export_weapon_flag } } set_country_flag = RAJ_egy_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_uae_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 visible = { has_completed_focus = RAJ_indian_arms_exports } available = { country_exists = UAE NOT = { has_war_with = UAE } } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_uae_export" UAE = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = UAE modifier = improve_trade } reverse_add_opinion_modifier = { target = UAE modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_uae_export_weapon_flag } } set_country_flag = RAJ_uae_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } RAJ_bhu_export = { icon = GFX_decision_generic_prepare_civil_war_new days_remove = 300 available = { country_exists = BHU NOT = { has_war_with = BHU } } visible = { has_completed_focus = RAJ_indian_arms_exports } cost = 65 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_bhu_export" BHU = { country_event = { id = raj_exports.1 days = 1 } } add_opinion_modifier = { target = BHU modifier = improve_trade } reverse_add_opinion_modifier = { target = BHU modifier = improve_trade } if = { limit = { NOT = { has_country_flag = RAJ_bhu_export_weapon_flag } } set_country_flag = RAJ_bhu_export_weapon_flag add_to_variable = { RAJ_arms_export_bonus = 0.01 tooltip = industrial_capacity_factory_tt } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_equipment_to_stockpile = { type = Anti_Air_0 amount = 40 producer = RAJ } } } ai_will_do = { base = 10 modifier = { factor = 0 has_war = yes } } } } RAJ_brics_alliance_decisions = { # Self-application to join (non-leader BRICS-potential nations) BRICS_apply_to_join_brics = { icon = emerging_button # TODO: Replace with a better icon cost = 100 days_remove = 30 days_re_enable = 90 visible = { NOT = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } NOT = { has_idea = RAJ_BRICS_observer } NOT = { has_idea = RAJ_BRICS_associate } NOT = { has_idea = RAJ_BRICS } BRICS_focus_requirement_met = yes } available = { NOT = { has_country_flag = BRICS_application_pending } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision BRICS_apply_to_join_brics" BRICS_request_observer_status_via_event = yes } ai_will_do = { base = 0 } } # Tier 2: Full Member Invite RAJ_brics_invite_full_member = { icon = GFX_decision_faction_targeted target_array = global.BRICS_potential target_root_trigger = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } target_trigger = { country_exists = FROM FROM = { NOT = { tag = ROOT } BRICS_valid_invite_target = yes BRICS_can_full_member = yes } } days_remove = 60 fire_only_once = no days_re_enable = 270 cost = 100 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_brics_invite_full_member target: [From.GetName]" FROM = { country_event = { id = indian_event.70 days = 1 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_to_faction = FROM add_opinion_modifier = { target = FROM modifier = RAJ_brics_member_opinion } } } ai_will_do = { base = 20 modifier = { factor = 1.5 FROM = { has_opinion = { target = ROOT value > 50 } } } } } # Tier 3: Associate Member Invite RAJ_brics_invite_associate_member = { icon = GFX_decision_faction_targeted target_array = global.BRICS_potential target_root_trigger = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } target_trigger = { country_exists = FROM FROM = { NOT = { tag = ROOT } BRICS_valid_invite_target = yes BRICS_can_associate_member = yes } } days_remove = 45 fire_only_once = no days_re_enable = 180 cost = 75 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_brics_invite_associate_member target: [From.GetName]" FROM = { country_event = { id = indian_event.73 days = 1 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_opinion_modifier = { target = FROM modifier = RAJ_brics_associate_opinion } } } ai_will_do = { base = 15 modifier = { factor = 1.3 FROM = { has_opinion = { target = ROOT value > 30 } } } } } # Tier 4: Observer State Invite RAJ_brics_invite_observer = { icon = GFX_decision_faction_targeted target_array = global.BRICS_potential target_root_trigger = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } target_trigger = { country_exists = FROM FROM = { NOT = { tag = ROOT } BRICS_valid_invite_target = yes BRICS_can_observer = yes } } days_remove = 30 fire_only_once = no days_re_enable = 90 cost = 40 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_brics_invite_observer target: [From.GetName]" FROM = { country_event = { id = indian_event.76 days = 1 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_opinion_modifier = { target = FROM modifier = RAJ_brics_observer_opinion } } } ai_will_do = { base = 10 modifier = { factor = 1.2 FROM = { has_opinion = { target = ROOT value > 0 } } } } } # Tier Promotion: Observer → Associate RAJ_brics_promote_to_associate = { icon = GFX_decision_faction_targeted target_array = global.BRICS_observers target_root_trigger = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } target_trigger = { country_exists = FROM FROM = { has_idea = RAJ_BRICS_observer NOT = { has_idea = RAJ_BRICS_associate } NOT = { has_idea = RAJ_BRICS } BRICS_can_associate_member = yes } } days_remove = 45 fire_only_once = no days_re_enable = 90 cost = 50 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_brics_promote_to_associate target: [From.GetName]" FROM = { country_event = { id = indian_event.79 days = 1 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_opinion_modifier = { target = FROM modifier = RAJ_brics_associate_opinion } } } ai_will_do = { base = 10 } } # Tier Promotion: Associate → Full Member RAJ_brics_promote_to_full = { icon = GFX_decision_faction_targeted target_array = global.BRICS_associates target_root_trigger = { has_dynamic_modifier = { modifier = RAJ_brics_leadership } } target_trigger = { country_exists = FROM FROM = { has_idea = RAJ_BRICS_associate NOT = { has_idea = RAJ_BRICS } BRICS_can_full_member = yes } } days_remove = 60 fire_only_once = no days_re_enable = 90 cost = 75 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_brics_promote_to_full target: [From.GetName]" FROM = { country_event = { id = indian_event.82 days = 1 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { add_to_faction = FROM add_opinion_modifier = { target = FROM modifier = RAJ_brics_member_opinion } } } ai_will_do = { base = 10 } } } maoist_decision_category = { RAJ_MAO_rebellion = { priority = 100 icon = GFX_decision_generic_nationalism days_mission_timeout = 365 fire_only_once = no activation = { hidden_trigger = { NOT = { has_country_flag = RAJ_naxalite_mission_active } RAJ_country_has_any_naxalite_states = yes RAJ_has_severe_naxalite_states_trigger = yes check_variable = { party_pop_array^19 > 0.14 } } } available = { always = no } on_map_mode = map_only selectable_mission = no cancel_trigger = { custom_trigger_tooltip = { tooltip = RAJ_focus_mao_how_to_cancel OR = { emerging_communist_state_are_in_power = yes neutrality_neutral_communism_are_in_power = yes emerging_anarchist_communism_are_in_power = yes } } } is_good = no timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_MAO_rebellion" set_country_flag = RAJ_naxalite_mission_active set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.05 } change_relative_party_popularity = yes add_stability = -0.05 country_event = RAJ_mao_reb.4 activate_mission = RAJ_MAO_rebellion_armed } } RAJ_MAO_rebellion_armed = { priority = 100 icon = GFX_decision_generic_nationalism days_mission_timeout = 365 fire_only_once = yes activation = { hidden_trigger = { always = no } } on_map_mode = map_only selectable_mission = no cancel_trigger = { custom_trigger_tooltip = { tooltip = RAJ_focus_mao_how_to_cancel OR = { emerging_communist_state_are_in_power = yes neutrality_neutral_communism_are_in_power = yes emerging_anarchist_communism_are_in_power = yes } } } is_good = no timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_MAO_rebellion_armed" country_event = RAJ_mao_reb.5 } } RAJ_maoist_suppression = { icon = { key = GFX_decision_com_rebel_highest trigger = { FROM = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency } } } } icon = { key = GFX_decision_com_rebel_high trigger = { FROM = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_1 } } } } icon = { key = GFX_decision_com_rebel_medium trigger = { FROM = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_2 } } } } icon = { key = GFX_decision_com_rebel_moderat trigger = { FROM = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_3 } } } } icon = { key = GFX_decision_com_rebel_weak trigger = { FROM = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_4 } } } } state_target = yes on_map_mode = map_and_decisions_view targets = { 456 459 991 989 451 452 447 458 988 470 } target_trigger = { FROM = { RAJ_state_has_any_naxalite = yes } } target_root_trigger = { RAJ_country_has_any_naxalite_states = yes } cost = 60 fixed_random_seed = no fire_only_once = no days_remove = 15 available = { NOT = { has_country_flag = RAJ_suppression_active } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_maoist_suppression" set_country_flag = RAJ_suppression_active } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_maoist_suppression" clr_country_flag = RAJ_suppression_active random_list = { 75 = { set_temp_variable = { RAJ_naxalite_target_state = FROM } RAJ_downgrade_naxalite_var = yes RAJ_suppression_equipment_reward = yes } 25 = { modifier = { factor = 1.5 check_variable = { party_pop_array^19 > 0.09 } } modifier = { factor = 1.5 check_variable = { party_pop_array^19 > 0.14 } } modifier = { factor = 1.5 check_variable = { party_pop_array^19 > 0.19 } } custom_effect_tooltip = RAJ_suppression_failed_tt set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.01 } change_relative_party_popularity = yes add_stability = -0.01 } } } ai_will_do = { base = 25 modifier = { factor = 2 RAJ_has_severe_naxalite_states_trigger = yes } modifier = { factor = 1.5 check_variable = { party_pop_array^19 > 0.10 } } } } RAJ_integrated_development_initiative = { icon = GFX_decision_generic_construction cost = 75 fire_only_once = no days_remove = 60 fixed_random_seed = no available = { NOT = { has_country_flag = RAJ_development_in_progress } RAJ_country_has_any_naxalite_states = yes } visible = { RAJ_country_has_any_naxalite_states = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_integrated_development_initiative" set_country_flag = RAJ_development_in_progress set_temp_variable = { treasury_change = -5 } modify_treasury_effect = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_integrated_development_initiative removed" clr_country_flag = RAJ_development_in_progress random_list = { 70 = { # Success add_stability = 0.02 random_controlled_state = { limit = { RAJ_state_has_any_naxalite = yes } RAJ_downgrade_naxalite_level = yes add_dynamic_modifier = { modifier = RAJ_development_boost days = 180 } } } 30 = { # Failure - funds misappropriated add_stability = -0.01 set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.02 } change_relative_party_popularity = yes custom_effect_tooltip = RAJ_suppression_failed_tt } } } ai_will_do = { base = 50 modifier = { factor = 2 has_political_power > 100 } } } RAJ_surrender_rehabilitation_program = { icon = GFX_decision_generic_political_discourse cost = 50 fire_only_once = no days_remove = 30 fixed_random_seed = no available = { NOT = { has_country_flag = RAJ_rehabilitation_in_progress } } visible = { RAJ_country_has_any_naxalite_states = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_surrender_rehabilitation_program" set_country_flag = RAJ_rehabilitation_in_progress } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_surrender_rehabilitation_program" clr_country_flag = RAJ_rehabilitation_in_progress random_list = { 40 = { # Success - insurgents reintegrated add_stability = 0.02 country_event = RAJ_naxal.12 } 35 = { # Partial failure - limited uptake add_stability = -0.01 set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.01 } change_relative_party_popularity = yes custom_effect_tooltip = RAJ_suppression_failed_tt } 25 = { # Full failure - program exploited for regrouping add_stability = -0.02 set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.02 } change_relative_party_popularity = yes custom_effect_tooltip = RAJ_suppression_failed_tt } } } ai_will_do = { base = 40 } } RAJ_operation_green_hunt = { icon = GFX_decision_generic_army_support cost = 100 fire_only_once = no days_remove = 90 fixed_random_seed = no available = { NOT = { has_country_flag = RAJ_green_hunt_active } OR = { date > 2009.1.1 RAJ_has_severe_naxalite_states_trigger = yes } } visible = { RAJ_has_severe_naxalite_states_trigger = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_operation_green_hunt" set_country_flag = RAJ_green_hunt_active add_ideas = RAJ_operation_green_hunt_active } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_operation_green_hunt" clr_country_flag = RAJ_green_hunt_active remove_ideas = RAJ_operation_green_hunt_active random_list = { 75 = { # Success - major crackdown log = "[GetDateText]: [Root.GetName]: Operation Green Hunt succeeded" every_controlled_state = { limit = { RAJ_state_has_any_naxalite = yes } RAJ_downgrade_naxalite_level = yes } country_event = RAJ_naxal.15 } 25 = { # Failure - civilian casualties backfire log = "[GetDateText]: [Root.GetName]: Operation Green Hunt failed" add_stability = -0.03 add_political_power = -25 set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.03 } change_relative_party_popularity = yes custom_effect_tooltip = RAJ_suppression_failed_tt } } } ai_will_do = { base = 80 modifier = { factor = 0 date < 2009.1.1 } } } RAJ_samadhan_doctrine = { icon = GFX_decision_SWI_expand_covert_operations cost = 75 fire_only_once = yes available = { date > 2017.1.1 NOT = { has_idea = RAJ_samadhan_doctrine_idea } } visible = { date > 2015.1.1 RAJ_country_has_any_naxalite_states = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_samadhan_doctrine" add_ideas = RAJ_samadhan_doctrine_idea } ai_will_do = { base = 100 } } # Salwa Judum - Controversial civilian militia program (2005-2011) RAJ_salwa_judum = { fixed_random_seed = no icon = GFX_decision_generic_prepare_civil_war_new cost = 40 days_remove = 180 available = { date > 2005.1.1 date < 2012.1.1 NOT = { has_idea = RAJ_salwa_judum_active } 456 = { # Chhattisgarh is_controlled_by = RAJ OR = { has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency } has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_1 } has_dynamic_modifier = { modifier = RAJ_naxalite_insurgency_2 } } } } visible = { date > 2004.1.1 date < 2012.1.1 } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_salwa_judum" add_stability = -0.02 add_ideas = RAJ_salwa_judum_active } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_salwa_judum removed" set_temp_variable = { RAJ_naxalite_target_state = 456 } RAJ_downgrade_naxalite_var = yes random_list = { 60 = { # Controversy add_stability = -0.03 add_political_power = -25 } 40 = { # Success add_stability = 0.01 } } remove_ideas = RAJ_salwa_judum_active } ai_will_do = { base = 50 } } RAJ_road_connectivity_program = { icon = GFX_decision_generic_construction cost = 60 days_remove = 120 fixed_random_seed = no available = { num_of_civilian_factories > 30 } visible = { RAJ_country_has_any_naxalite_states = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_road_connectivity_program" set_temp_variable = { treasury_change = -8 } modify_treasury_effect = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_road_connectivity_program" random_list = { 70 = { # Success - infrastructure completed random_controlled_state = { limit = { RAJ_state_has_any_naxalite = yes } add_dynamic_modifier = { modifier = RAJ_development_boost days = 180 } } add_stability = 0.01 } 30 = { # Failure - funds embezzled, roads incomplete add_stability = -0.01 set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.01 } change_relative_party_popularity = yes custom_effect_tooltip = RAJ_suppression_failed_tt } } } ai_will_do = { base = 30 } } } RAJ_central_asian_salaf_revolution = { RAJ_central_asian_revolution = { icon = GFX_decision_generic_prepare_civil_war_new targets = { KAZ UZB TAJ KYR } target_root_trigger = { tag = RAJ } target_trigger = { FROM = { NOT = { has_government = fascism } } } fire_only_once = yes cost = 200 days_remove = 70 available = { FROM = { OR = { communism > 0.15 AND = { NOT = { tag = KAZ } OR = { neutrality > 0.15 democratic > 0.15 } } } fascism > 0.3 influence_higher_35 = yes } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_central_asian_revolution against [FROM.GetTag]" FROM = { set_temp_variable = { rul_party_temp = 11 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes set_temp_variable = { party_index = 11 } set_temp_variable = { party_popularity_increase = 0.25 } set_temp_variable = { temp_outlook_increase = 0.25 } change_relative_party_popularity = yes start_civil_war = { ideology = democratic size = 0.3 } } } ai_will_do = { base = 0 } } } RAJ_greater_hindustan_decisions_category = { RAJ_expanding_sphere_of_influence = { icon = GFX_decision_afghanistan cost = 500 days_remove = 120 fire_only_once = yes war_with_on_remove = AFG war_with_on_remove = TAL remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_expanding_sphere_of_influence" set_temp_variable = { demand_annex_target = AFG.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = TAL.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_demand_sri_lanka = { icon = GFX_decision_eng_trade_unions_demand cost = 250 days_remove = 120 fire_only_once = yes war_with_on_remove = SRI remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_demand_sri_lanka" set_temp_variable = { demand_annex_target = SRI.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_demand_myanma = { icon = GFX_decision_spr_political_assassination cost = 500 days_remove = 120 fire_only_once = yes war_with_on_remove = BRM remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_demand_myanma" set_temp_variable = { demand_annex_target = BRM.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_burn_down_the_separatist_sentiments = { icon = GFX_decision_oppression cost = 250 days_remove = 120 fire_only_once = yes war_with_on_remove = BRM war_with_on_remove = WAA war_with_on_remove = SHN war_with_on_remove = NHN war_with_on_remove = KAR remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_burn_down_the_separatist_sentiments" add_threat = 0.05 set_temp_variable = { demand_annex_target = KAC.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = WAA.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = SHN.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = NHN.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = KAR.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_land_of_freedom = { icon = GFX_decision_hol_war_on_pacifism cost = 500 days_remove = 120 fire_only_once = yes war_with_on_remove = SIA remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_land_of_freedom" set_temp_variable = { demand_annex_target = SIA.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_laotian_resorts = { icon = GFX_decision_3si_dec cost = 250 days_remove = 120 fire_only_once = yes war_with_on_remove = LAO remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_laotian_resorts" set_temp_variable = { demand_annex_target = LAO.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_vietnamese_intervention = { icon = GFX_decision_kavkaz_revol cost = 250 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_vietnamese_intervention" set_temp_variable = { demand_annex_target = VIE.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_cambodian_natural_resources = { icon = GFX_decision_generic_construction cost = 250 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_cambodian_natural_resources" set_temp_variable = { demand_annex_target = CBD.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_change_the_malaysian_constitution = { icon = GFX_decision_generic_construction cost = 250 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_change_the_malaysian_constitution" set_temp_variable = { demand_annex_target = MAY.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_demand_singapore = { icon = GFX_decision_singapore cost = 250 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_demand_singapore" set_temp_variable = { demand_annex_target = SIN.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } RAJ_bring_hinduism_back_to_indonesia = { icon = GFX_decision_indonesia_export cost = 500 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_bring_hinduism_back_to_indonesia" set_temp_variable = { demand_annex_target = IND.id } RAJ_demand_annex_target = yes set_temp_variable = { demand_annex_target = ACE.id } RAJ_demand_annex_target = yes } ai_will_do = { base = 0 } } } RAJ_PAK_border_conflict_category = { pak_raj_border_train_army = { desc = pak_raj_border_train_army_desc icon = generic_army_support state_target = yes on_map_mode = map_and_decisions_view targets = { 420 426 427 429 563 573 984 987 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = pak_raj_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = PAK } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } has_country_flag = pak_raj_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_garrison_tt FROM = { is_controlled_by = ROOT } divisions_in_state = { size > 4 state = FROM } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_train_army on state [?FROM.id]" clr_country_flag = pak_raj_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { divisions_in_state = { size > 4 state = FROM } } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel pak_raj_border_train_army on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } PAK = { set_temp_variable = { pak_raj_border_readiness_change = 3 } pak_raj_border_add_readiness = yes } } if = { limit = { original_tag = PAK } RAJ = { set_temp_variable = { pak_raj_border_readiness_change = 3 } pak_raj_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 pak_raj_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_train_army on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready set_temp_variable = { pak_raj_border_readiness_change = 3 } pak_raj_border_add_readiness = yes hidden_effect = { random = { chance = 10 country_event = { id = border_war_training_failure.1 days = 1 } } } pak_raj_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { pak_raj_border_readiness > 80 } } modifier = { factor = 0 NOT = { pak_raj_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = pak_raj_border_readiness value = RAJ.pak_raj_border_readiness compare = less_than } } } } pak_raj_border_train_mechanized = { desc = pak_raj_border_train_mechanized_desc icon = zbl08_button state_target = yes on_map_mode = map_and_decisions_view targets = { 420 426 427 429 563 573 984 987 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = pak_raj_border_sector } } days_remove = 15 days_re_enable = 45 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = PAK } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } has_country_flag = pak_raj_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_mechanized_tt FROM = { is_controlled_by = ROOT } border_war_state_mechanized = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_train_mechanized on state [?FROM.id]" clr_country_flag = pak_raj_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_mechanized = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel pak_raj_border_train_mechanized on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } PAK = { set_temp_variable = { pak_raj_border_readiness_change = 8 } pak_raj_border_add_readiness = yes } } if = { limit = { original_tag = PAK } RAJ = { set_temp_variable = { pak_raj_border_readiness_change = 8 } pak_raj_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 pak_raj_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_train_mechanized on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready set_temp_variable = { pak_raj_border_readiness_change = 8 } pak_raj_border_add_readiness = yes hidden_effect = { random = { chance = 10 country_event = { id = border_war_training_failure.2 days = 1 } } } pak_raj_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { pak_raj_border_readiness > 80 } } modifier = { factor = 0 NOT = { pak_raj_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = pak_raj_border_readiness value = RAJ.pak_raj_border_readiness compare = less_than } } } } pak_raj_border_train_artillery = { desc = pak_raj_border_train_artillery_desc icon = ger_military_buildup state_target = yes on_map_mode = map_and_decisions_view targets = { 420 426 427 429 563 573 984 987 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = pak_raj_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = PAK } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } has_country_flag = pak_raj_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_artillery_tt FROM = { is_controlled_by = ROOT } border_war_state_artillery = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_train_artillery on state [?FROM.id]" clr_country_flag = pak_raj_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_artillery = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel pak_raj_border_train_artillery on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } PAK = { set_temp_variable = { pak_raj_border_readiness_change = 5 } pak_raj_border_add_readiness = yes } } if = { limit = { original_tag = PAK } RAJ = { set_temp_variable = { pak_raj_border_readiness_change = 5 } pak_raj_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 pak_raj_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_train_artillery on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready set_temp_variable = { pak_raj_border_readiness_change = 5 } pak_raj_border_add_readiness = yes pak_raj_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { pak_raj_border_readiness > 80 } } modifier = { factor = 0 NOT = { pak_raj_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = pak_raj_border_readiness value = RAJ.pak_raj_border_readiness compare = less_than } } } } pak_raj_border_stage_incursion = { desc = pak_raj_border_stage_incursion_desc icon = generic_reorganize_irregulars state_target = yes on_map_mode = map_and_decisions_view targets = { 420 426 427 429 563 573 984 987 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = pak_raj_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = PAK } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } has_country_flag = pak_raj_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_patrol_tt FROM = { is_controlled_by = ROOT } divisions_in_state = { size > 2 state = FROM } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_stage_incursion on state [?FROM.id]" clr_country_flag = pak_raj_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_operation days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { divisions_in_state = { size > 2 state = FROM } } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel pak_raj_border_stage_incursion on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_operation } } remove_dynamic_modifier = { modifier = border_war_frontier_operation } } } if = { limit = { original_tag = RAJ } PAK = { set_temp_variable = { pak_raj_border_readiness_change = 3 } pak_raj_border_add_readiness = yes } } if = { limit = { original_tag = PAK } RAJ = { set_temp_variable = { pak_raj_border_readiness_change = 3 } pak_raj_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 pak_raj_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_stage_incursion on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready set_temp_variable = { pak_raj_border_tension_change = 15 } pak_raj_border_add_tension = yes add_threat = 0.25 hidden_effect = { random = { chance = 10 set_temp_variable = { pak_raj_border_readiness_change = -10 } pak_raj_border_add_readiness = yes country_event = { id = border_war_tension_failure.1 days = 1 } } } pak_raj_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { global.pak_raj_border_tension > 79 } } modifier = { factor = 0 NOT = { pak_raj_border_ai_should_prepare = yes } } } } pak_raj_border_shell_positions = { desc = pak_raj_border_shell_positions_desc icon = generic_scorched_earth state_target = yes on_map_mode = map_and_decisions_view targets = { 420 426 427 429 563 573 984 987 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = pak_raj_border_sector } } days_remove = 15 days_re_enable = 45 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = PAK } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } has_country_flag = pak_raj_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_artillery_tt FROM = { is_controlled_by = ROOT } border_war_state_artillery = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_shell_positions on state [?FROM.id]" clr_country_flag = pak_raj_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_operation days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_artillery = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel pak_raj_border_shell_positions on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_operation } } remove_dynamic_modifier = { modifier = border_war_frontier_operation } } } if = { limit = { original_tag = RAJ } PAK = { set_temp_variable = { pak_raj_border_readiness_change = 5 } pak_raj_border_add_readiness = yes } } if = { limit = { original_tag = PAK } RAJ = { set_temp_variable = { pak_raj_border_readiness_change = 5 } pak_raj_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 pak_raj_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_shell_positions on state [?FROM.id]" set_country_flag = pak_raj_border_preparation_ready set_temp_variable = { pak_raj_border_tension_change = 22 } pak_raj_border_add_tension = yes add_threat = 0.5 hidden_effect = { random = { chance = 10 set_temp_variable = { pak_raj_border_readiness_change = -10 } pak_raj_border_add_readiness = yes country_event = { id = border_war_tension_failure.1 days = 1 } } } pak_raj_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { global.pak_raj_border_tension > 79 } } modifier = { factor = 0 NOT = { pak_raj_border_ai_should_prepare = yes } } } } pak_raj_border_negotiate = { desc = pak_raj_border_negotiate_desc icon = GFX_decision_negotiate_icon cost = 75 fire_only_once = no days_re_enable = 90 visible = { pak_raj_border_pair_valid = yes OR = { check_variable = { global.pak_raj_border_tension > 19 } has_global_flag = GLOBAL_pak_raj_border_crisis_active } } available = { custom_trigger_tooltip = { tooltip = border_war_negotiate_opinion_tt RAJ = { has_opinion = { target = PAK value > 24 } } PAK = { has_opinion = { target = RAJ value > 24 } } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_negotiate" custom_effect_tooltip = pak_raj_border_negotiate_tt hidden_effect = { subtract_from_variable = { global.pak_raj_border_tension = 25 } clamp_variable = { var = global.pak_raj_border_tension min = 0 max = 100 } if = { limit = { has_global_flag = GLOBAL_pak_raj_border_crisis_active } pak_raj_border_crisis_resolve_peacefully = yes } } if = { limit = { has_global_flag = GLOBAL_pak_raj_border_crisis_resolved_peacefully NOT = { has_global_flag = GLOBAL_pak_raj_border_regulated } check_variable = { global.pak_raj_border_tension < 21 } RAJ = { has_opinion = { target = PAK value > 49 } } PAK = { has_opinion = { target = RAJ value > 49 } } } custom_effect_tooltip = pak_raj_border_settlement_tt set_global_flag = GLOBAL_pak_raj_border_regulated } } ai_will_do = { base = 0 modifier = { add = 5 has_stability < 0.50 } } } pak_raj_border_issue_ultimatum = { desc = pak_raj_border_issue_ultimatum_desc icon = GFX_decisions_war_campaign_button cost = 50 fire_only_once = no days_re_enable = 60 visible = { has_global_flag = GLOBAL_pak_raj_border_crisis_active has_country_flag = pak_raj_border_crisis_escalator } available = { hidden_trigger = { NOT = { has_country_flag = pak_raj_border_ultimatum_pending } } has_idea = border_war_mobilization_idea custom_trigger_tooltip = { tooltip = pak_raj_border_tension_90_required_tt check_variable = { global.pak_raj_border_tension > 89 } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_issue_ultimatum" set_country_flag = { flag = pak_raj_border_ultimatum_pending value = 1 days = 60 } if = { limit = { original_tag = RAJ } PAK = { country_event = { id = pak_raj_border_crisis.3 days = 1 } } } else_if = { limit = { original_tag = PAK } RAJ = { country_event = { id = pak_raj_border_crisis.3 days = 1 } } } custom_effect_tooltip = pak_raj_border_ultimatum_tt } ai_will_do = { base = 3 modifier = { factor = 0 NOT = { has_idea = border_war_mobilization_idea } } modifier = { factor = 0.1 is_historical_focus_on = yes } modifier = { factor = 0.25 has_global_flag = GLOBAL_pak_raj_border_nuclear_standoff } } } pak_raj_border_stand_down = { desc = pak_raj_border_stand_down_desc icon = GFX_decisions_cease_fire_button cost = 50 fire_only_once = no days_re_enable = 30 visible = { has_global_flag = GLOBAL_pak_raj_border_crisis_active } available = { pak_raj_border_pair_valid = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_stand_down" add_stability = 0.03 add_war_support = -0.05 custom_effect_tooltip = pak_raj_border_stand_down_tt hidden_effect = { subtract_from_variable = { global.pak_raj_border_tension = 30 } clamp_variable = { var = global.pak_raj_border_tension min = 0 max = 100 } pak_raj_border_crisis_resolve_peacefully = yes if = { limit = { original_tag = RAJ } PAK = { country_event = { id = pak_raj_border_crisis.9 days = 1 } } } else_if = { limit = { original_tag = PAK } RAJ = { country_event = { id = pak_raj_border_crisis.9 days = 1 } } } } } ai_will_do = { base = 2 modifier = { factor = 5 has_global_flag = GLOBAL_pak_raj_border_nuclear_standoff is_historical_focus_on = yes } modifier = { factor = 3 has_stability < 0.40 } } } pak_raj_border_attack_427_from_420 = { desc = pak_raj_border_attack_427_from_420_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 427 } } visible = { controls_state = 420 NOT = { controls_state = 427 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_427_from_420_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_427_from_420" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_427_from_420" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_427_from_420_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 427 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 420 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 420 } } } start_border_war = { change_state_after_war = no attacker = { state = 420 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 427 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_420_from_427 = { desc = pak_raj_border_attack_420_from_427_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 420 } } visible = { controls_state = 427 NOT = { controls_state = 420 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_420_from_427_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_420_from_427" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_420_from_427" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_420_from_427_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 420 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 427 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 427 } } } start_border_war = { change_state_after_war = no attacker = { state = 427 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 420 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_420_from_418 = { desc = pak_raj_border_attack_420_from_418_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 420 } } visible = { controls_state = 418 NOT = { controls_state = 420 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_420_from_418_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_420_from_418" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_420_from_418" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_420_from_418_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 420 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 418 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 418 } } } start_border_war = { change_state_after_war = no attacker = { state = 418 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 420 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_429_from_563 = { desc = pak_raj_border_attack_429_from_563_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 429 } } visible = { controls_state = 563 NOT = { controls_state = 429 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_429_from_563_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_429_from_563" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_429_from_563" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_429_from_563_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 429 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 563 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 563 } } } start_border_war = { change_state_after_war = no attacker = { state = 563 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 429 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_563_from_429 = { desc = pak_raj_border_attack_563_from_429_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 563 } } visible = { controls_state = 429 NOT = { controls_state = 563 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_563_from_429_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_563_from_429" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_563_from_429" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_563_from_429_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 563 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 429 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 429 } } } start_border_war = { change_state_after_war = no attacker = { state = 429 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 563 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_427_from_428 = { desc = pak_raj_border_attack_427_from_428_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 427 } } visible = { controls_state = 428 NOT = { controls_state = 427 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_427_from_428_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_427_from_428" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_427_from_428" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_427_from_428_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 427 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 428 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 428 } } } start_border_war = { change_state_after_war = no attacker = { state = 428 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 427 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_429_from_431 = { desc = pak_raj_border_attack_429_from_431_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 429 } } visible = { controls_state = 431 NOT = { controls_state = 429 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_429_from_431_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_429_from_431" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_429_from_431" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_429_from_431_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 429 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 431 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 431 } } } start_border_war = { change_state_after_war = no attacker = { state = 431 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 429 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_563_from_422 = { desc = pak_raj_border_attack_563_from_422_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 563 } } visible = { controls_state = 422 NOT = { controls_state = 563 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_563_from_422_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_563_from_422" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_563_from_422" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_563_from_422_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 563 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 422 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 422 } } } start_border_war = { change_state_after_war = no attacker = { state = 422 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 563 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_573_from_984 = { desc = pak_raj_border_attack_573_from_984_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 573 } } visible = { controls_state = 984 NOT = { controls_state = 573 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_573_from_984_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_573_from_984" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_573_from_984" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_573_from_984_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 573 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 984 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 984 } } } start_border_war = { change_state_after_war = no attacker = { state = 984 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 573 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_984_from_573 = { desc = pak_raj_border_attack_984_from_573_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 984 } } visible = { controls_state = 573 NOT = { controls_state = 984 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_984_from_573_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_984_from_573" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_984_from_573" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_984_from_573_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 984 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 573 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 573 } } } start_border_war = { change_state_after_war = no attacker = { state = 573 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 984 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_573_from_422 = { desc = pak_raj_border_attack_573_from_422_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 573 } } visible = { controls_state = 422 NOT = { controls_state = 573 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_573_from_422_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_573_from_422" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_573_from_422" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_573_from_422_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 573 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 422 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 422 } } } start_border_war = { change_state_after_war = no attacker = { state = 422 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 573 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_426_from_984 = { desc = pak_raj_border_attack_426_from_984_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 426 } } visible = { controls_state = 984 NOT = { controls_state = 426 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_426_from_984_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_426_from_984" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_426_from_984" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_426_from_984_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 426 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 984 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 984 } } } start_border_war = { change_state_after_war = no attacker = { state = 984 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 426 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_984_from_426 = { desc = pak_raj_border_attack_984_from_426_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 984 } } visible = { controls_state = 426 NOT = { controls_state = 984 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_984_from_426_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_984_from_426" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_984_from_426" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_984_from_426_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 984 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 426 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 426 } } } start_border_war = { change_state_after_war = no attacker = { state = 426 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 984 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_426_from_416 = { desc = pak_raj_border_attack_426_from_416_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 426 } } visible = { controls_state = 416 NOT = { controls_state = 426 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_426_from_416_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_426_from_416" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_426_from_416" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_426_from_416_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 426 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 416 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 416 } } } start_border_war = { change_state_after_war = no attacker = { state = 416 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 426 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_426_from_987 = { desc = pak_raj_border_attack_426_from_987_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 426 } } visible = { controls_state = 987 NOT = { controls_state = 426 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_426_from_987_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_426_from_987" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_426_from_987" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_426_from_987_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 426 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 987 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 987 } } } start_border_war = { change_state_after_war = no attacker = { state = 987 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 426 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_987_from_426 = { desc = pak_raj_border_attack_987_from_426_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 987 } } visible = { controls_state = 426 NOT = { controls_state = 987 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_987_from_426_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_987_from_426" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_987_from_426" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_987_from_426_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 987 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 426 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 426 } } } start_border_war = { change_state_after_war = no attacker = { state = 426 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 987 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_987_from_436 = { desc = pak_raj_border_attack_987_from_436_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 987 } } visible = { controls_state = 436 NOT = { controls_state = 987 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_987_from_436_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_987_from_436" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_987_from_436" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_987_from_436_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 987 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 436 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 436 } } } start_border_war = { change_state_after_war = no attacker = { state = 436 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 987 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_attack_984_from_432 = { desc = pak_raj_border_attack_984_from_432_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 984 } } visible = { controls_state = 432 NOT = { controls_state = 984 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_attack_thresholds_tt pak_raj_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt pak_raj_border_axis_984_from_432_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_attack_984_from_432" set_global_flag = GLOBAL_pak_raj_border_attack_pending custom_effect_tooltip = pak_raj_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_attack_984_from_432" hidden_effect = { if = { limit = { pak_raj_border_attack_revalidate = yes pak_raj_border_axis_984_from_432_valid = yes } clr_global_flag = GLOBAL_pak_raj_border_attack_pending set_global_flag = GLOBAL_pak_raj_border_war_active set_variable = { pak_raj_border_objective_state = 984 } if = { limit = { original_tag = RAJ } PAK = { set_variable = { pak_raj_border_objective_state = 432 } } } if = { limit = { original_tag = PAK } RAJ = { set_variable = { pak_raj_border_objective_state = 432 } } } start_border_war = { change_state_after_war = no attacker = { state = 432 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } defender = { state = 984 num_provinces = 3 on_win = pak_raj_border_outcome.1 on_lose = pak_raj_border_outcome.2 on_cancel = pak_raj_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_pak_raj_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } pak_raj_border_capture_420 = { desc = pak_raj_border_capture_420_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 420 } } visible = { NOT = { controls_state = 420 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_420_tt check_variable = { pak_raj_border_progress_420 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_420_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_420" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_420" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_420 > 79 } pak_raj_border_capture_420_valid = yes } add_to_variable = { pak_raj_border_progress_420 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 420 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_427 = { desc = pak_raj_border_capture_427_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 427 } } visible = { NOT = { controls_state = 427 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_427_tt check_variable = { pak_raj_border_progress_427 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_427_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_427" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_427" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_427 > 79 } pak_raj_border_capture_427_valid = yes } add_to_variable = { pak_raj_border_progress_427 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 427 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_429 = { desc = pak_raj_border_capture_429_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 429 } } visible = { NOT = { controls_state = 429 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_429_tt check_variable = { pak_raj_border_progress_429 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_429_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_429" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_429" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_429 > 79 } pak_raj_border_capture_429_valid = yes } add_to_variable = { pak_raj_border_progress_429 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 429 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_563 = { desc = pak_raj_border_capture_563_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 563 } } visible = { NOT = { controls_state = 563 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_563_tt check_variable = { pak_raj_border_progress_563 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_563_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_563" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_563" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_563 > 79 } pak_raj_border_capture_563_valid = yes } add_to_variable = { pak_raj_border_progress_563 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 563 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_573 = { desc = pak_raj_border_capture_573_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 573 } } visible = { NOT = { controls_state = 573 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_573_tt check_variable = { pak_raj_border_progress_573 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_573_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_573" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_573" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_573 > 79 } pak_raj_border_capture_573_valid = yes } add_to_variable = { pak_raj_border_progress_573 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 573 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_426 = { desc = pak_raj_border_capture_426_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 426 } } visible = { NOT = { controls_state = 426 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_426_tt check_variable = { pak_raj_border_progress_426 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_426_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_426" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_426" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_426 > 79 } pak_raj_border_capture_426_valid = yes } add_to_variable = { pak_raj_border_progress_426 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 426 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_987 = { desc = pak_raj_border_capture_987_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 987 } } visible = { NOT = { controls_state = 987 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_987_tt check_variable = { pak_raj_border_progress_987 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_987_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_987" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_987" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_987 > 79 } pak_raj_border_capture_987_valid = yes } add_to_variable = { pak_raj_border_progress_987 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 987 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } pak_raj_border_capture_984 = { desc = pak_raj_border_capture_984_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 984 } } visible = { NOT = { controls_state = 984 } } available = { custom_trigger_tooltip = { tooltip = pak_raj_border_no_operation_tt pak_raj_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_no_claim_cooldown_tt pak_raj_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_pair_valid_tt pak_raj_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = pak_raj_border_progress_984_tt check_variable = { pak_raj_border_progress_984 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt pak_raj_border_capture_984_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision pak_raj_border_capture_984" set_global_flag = GLOBAL_pak_raj_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove pak_raj_border_capture_984" if = { limit = { pak_raj_border_capture_revalidate = yes check_variable = { pak_raj_border_progress_984 > 79 } pak_raj_border_capture_984_valid = yes } add_to_variable = { pak_raj_border_progress_984 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 984 } pak_raj_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_pak_raj_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { pak_raj_border_ai_should_capture = yes } } } } } RAJ_CHI_border_conflict_category = { raj_chi_border_train_army = { desc = raj_chi_border_train_army_desc icon = generic_military state_target = yes on_map_mode = map_and_decisions_view targets = { 475 589 591 982 993 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = raj_chi_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = CHI } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } has_country_flag = raj_chi_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_garrison_tt FROM = { is_controlled_by = ROOT } divisions_in_state = { size > 4 state = FROM } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_train_army on state [?FROM.id]" clr_country_flag = raj_chi_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { divisions_in_state = { size > 4 state = FROM } } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel raj_chi_border_train_army on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } CHI = { set_temp_variable = { raj_chi_border_readiness_change = 3 } raj_chi_border_add_readiness = yes } } if = { limit = { original_tag = CHI } RAJ = { set_temp_variable = { raj_chi_border_readiness_change = 3 } raj_chi_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 raj_chi_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_train_army on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready set_temp_variable = { raj_chi_border_readiness_change = 3 } raj_chi_border_add_readiness = yes hidden_effect = { random = { chance = 10 country_event = { id = border_war_training_failure.1 days = 1 } } } raj_chi_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { raj_chi_border_readiness > 80 } } modifier = { factor = 0 NOT = { raj_chi_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = raj_chi_border_readiness value = RAJ.raj_chi_border_readiness compare = less_than } } } } raj_chi_border_train_mechanized = { desc = raj_chi_border_train_mechanized_desc icon = kurganets_button state_target = yes on_map_mode = map_and_decisions_view targets = { 475 589 591 982 993 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = raj_chi_border_sector } } days_remove = 15 days_re_enable = 45 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = CHI } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } has_country_flag = raj_chi_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_mechanized_tt FROM = { is_controlled_by = ROOT } border_war_state_mechanized = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_train_mechanized on state [?FROM.id]" clr_country_flag = raj_chi_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_mechanized = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel raj_chi_border_train_mechanized on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } CHI = { set_temp_variable = { raj_chi_border_readiness_change = 8 } raj_chi_border_add_readiness = yes } } if = { limit = { original_tag = CHI } RAJ = { set_temp_variable = { raj_chi_border_readiness_change = 8 } raj_chi_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 raj_chi_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_train_mechanized on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready set_temp_variable = { raj_chi_border_readiness_change = 8 } raj_chi_border_add_readiness = yes hidden_effect = { random = { chance = 10 country_event = { id = border_war_training_failure.2 days = 1 } } } raj_chi_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { raj_chi_border_readiness > 80 } } modifier = { factor = 0 NOT = { raj_chi_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = raj_chi_border_readiness value = RAJ.raj_chi_border_readiness compare = less_than } } } } raj_chi_border_train_artillery = { desc = raj_chi_border_train_artillery_desc icon = ger_military_buildup state_target = yes on_map_mode = map_and_decisions_view targets = { 475 589 591 982 993 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = raj_chi_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = CHI } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } has_country_flag = raj_chi_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_artillery_tt FROM = { is_controlled_by = ROOT } border_war_state_artillery = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_train_artillery on state [?FROM.id]" clr_country_flag = raj_chi_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_exercise days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_artillery = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel raj_chi_border_train_artillery on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_exercise } } remove_dynamic_modifier = { modifier = border_war_frontier_exercise } } } if = { limit = { original_tag = RAJ } CHI = { set_temp_variable = { raj_chi_border_readiness_change = 5 } raj_chi_border_add_readiness = yes } } if = { limit = { original_tag = CHI } RAJ = { set_temp_variable = { raj_chi_border_readiness_change = 5 } raj_chi_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 raj_chi_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_train_artillery on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready set_temp_variable = { raj_chi_border_readiness_change = 5 } raj_chi_border_add_readiness = yes raj_chi_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { raj_chi_border_readiness > 80 } } modifier = { factor = 0 NOT = { raj_chi_border_ai_should_prepare = yes } } modifier = { add = 15 check_variable = { var = raj_chi_border_readiness value = RAJ.raj_chi_border_readiness compare = less_than } } } } raj_chi_border_stage_incursion = { desc = raj_chi_border_stage_incursion_desc icon = SWI_expand_covert_operations state_target = yes on_map_mode = map_and_decisions_view targets = { 475 589 591 982 993 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = raj_chi_border_sector } } days_remove = 15 days_re_enable = 30 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = CHI } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } has_country_flag = raj_chi_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_patrol_tt FROM = { is_controlled_by = ROOT } divisions_in_state = { size > 2 state = FROM } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_stage_incursion on state [?FROM.id]" clr_country_flag = raj_chi_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_operation days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { divisions_in_state = { size > 2 state = FROM } } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel raj_chi_border_stage_incursion on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_operation } } remove_dynamic_modifier = { modifier = border_war_frontier_operation } } } if = { limit = { original_tag = RAJ } CHI = { set_temp_variable = { raj_chi_border_readiness_change = 3 } raj_chi_border_add_readiness = yes } } if = { limit = { original_tag = CHI } RAJ = { set_temp_variable = { raj_chi_border_readiness_change = 3 } raj_chi_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 raj_chi_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_stage_incursion on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready set_temp_variable = { raj_chi_border_tension_change = 15 } raj_chi_border_add_tension = yes add_threat = 0.25 hidden_effect = { random = { chance = 10 set_temp_variable = { raj_chi_border_readiness_change = -10 } raj_chi_border_add_readiness = yes country_event = { id = border_war_tension_failure.1 days = 1 } } } raj_chi_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { global.raj_chi_border_tension > 79 } } modifier = { factor = 0 NOT = { raj_chi_border_ai_should_prepare = yes } } } } raj_chi_border_shell_positions = { desc = raj_chi_border_shell_positions_desc icon = generic_scorched_earth state_target = yes on_map_mode = map_and_decisions_view targets = { 475 589 591 982 993 } target_trigger = { FROM = { is_controlled_by = ROOT has_state_flag = raj_chi_border_sector } } days_remove = 15 days_re_enable = 45 fire_only_once = no fixed_random_seed = no custom_cost_text = command_power_more_than_20 custom_cost_trigger = { command_power > 20 } target_root_trigger = { OR = { original_tag = RAJ original_tag = CHI } } highlight_states = { highlight_state_targets = { state = FROM } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } has_country_flag = raj_chi_border_preparation_ready custom_trigger_tooltip = { tooltip = border_war_state_artillery_tt FROM = { is_controlled_by = ROOT } border_war_state_artillery = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_shell_positions on state [?FROM.id]" clr_country_flag = raj_chi_border_preparation_ready add_command_power = -20 FROM = { add_dynamic_modifier = { modifier = border_war_frontier_operation days = 15 } } } cancel_trigger = { OR = { NOT = { FROM = { is_controlled_by = ROOT } } NOT = { border_war_state_artillery = yes } } } cancel_effect = { log = "[GetDateText]: [Root.GetName]: Decision cancel raj_chi_border_shell_positions on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready FROM = { if = { limit = { has_dynamic_modifier = { modifier = border_war_frontier_operation } } remove_dynamic_modifier = { modifier = border_war_frontier_operation } } } if = { limit = { original_tag = RAJ } CHI = { set_temp_variable = { raj_chi_border_readiness_change = 5 } raj_chi_border_add_readiness = yes } } if = { limit = { original_tag = CHI } RAJ = { set_temp_variable = { raj_chi_border_readiness_change = 5 } raj_chi_border_add_readiness = yes } } country_event = border_war_operation_blocked.2 raj_chi_border_pick_sector = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_shell_positions on state [?FROM.id]" set_country_flag = raj_chi_border_preparation_ready set_temp_variable = { raj_chi_border_tension_change = 22 } raj_chi_border_add_tension = yes add_threat = 0.5 hidden_effect = { random = { chance = 10 set_temp_variable = { raj_chi_border_readiness_change = -10 } raj_chi_border_add_readiness = yes country_event = { id = border_war_tension_failure.1 days = 1 } } } raj_chi_border_pick_sector = yes } ai_will_do = { base = 5 modifier = { factor = 0 check_variable = { global.raj_chi_border_tension > 79 } } modifier = { factor = 0 NOT = { raj_chi_border_ai_should_prepare = yes } } } } raj_chi_border_negotiate = { desc = raj_chi_border_negotiate_desc icon = negotiate_icon cost = 75 fire_only_once = no days_re_enable = 90 visible = { raj_chi_border_pair_valid = yes OR = { check_variable = { global.raj_chi_border_tension > 19 } has_global_flag = GLOBAL_raj_chi_border_crisis_active } } available = { custom_trigger_tooltip = { tooltip = border_war_negotiate_opinion_tt RAJ = { has_opinion = { target = CHI value > 24 } } CHI = { has_opinion = { target = RAJ value > 24 } } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_negotiate" custom_effect_tooltip = raj_chi_border_negotiate_tt hidden_effect = { subtract_from_variable = { global.raj_chi_border_tension = 25 } clamp_variable = { var = global.raj_chi_border_tension min = 0 max = 100 } if = { limit = { has_global_flag = GLOBAL_raj_chi_border_crisis_active } raj_chi_border_crisis_cleanup = yes } } } ai_will_do = { base = 0 modifier = { add = 5 has_stability < 0.50 } } } raj_chi_border_attack_475_from_589 = { desc = raj_chi_border_attack_475_from_589_desc icon = generic_confiscation days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 475 } } visible = { controls_state = 589 NOT = { controls_state = 475 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_475_from_589_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_475_from_589" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_475_from_589" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_475_from_589_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 475 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 589 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 589 } } } start_border_war = { change_state_after_war = no attacker = { state = 589 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 475 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_475_from_473 = { desc = raj_chi_border_attack_475_from_473_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 475 } } visible = { controls_state = 473 NOT = { controls_state = 475 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_475_from_473_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_475_from_473" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_475_from_473" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_475_from_473_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 475 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 473 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 473 } } } start_border_war = { change_state_after_war = no attacker = { state = 473 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 475 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_982_from_589 = { desc = raj_chi_border_attack_982_from_589_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 982 } } visible = { controls_state = 589 NOT = { controls_state = 982 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_982_from_589_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_982_from_589" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_982_from_589" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_982_from_589_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 982 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 589 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 589 } } } start_border_war = { change_state_after_war = no attacker = { state = 589 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 982 num_provinces = 1 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_982_from_455 = { desc = raj_chi_border_attack_982_from_455_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 982 } } visible = { controls_state = 455 NOT = { controls_state = 982 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_982_from_455_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_982_from_455" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_982_from_455" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_982_from_455_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 982 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 455 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 455 } } } start_border_war = { change_state_after_war = no attacker = { state = 455 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 982 num_provinces = 1 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_591_from_993 = { desc = raj_chi_border_attack_591_from_993_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 591 } } visible = { controls_state = 993 NOT = { controls_state = 591 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_591_from_993_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_591_from_993" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_591_from_993" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_591_from_993_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 591 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 993 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 993 } } } start_border_war = { change_state_after_war = no attacker = { state = 993 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 591 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_993_from_591 = { desc = raj_chi_border_attack_993_from_591_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 993 } } visible = { controls_state = 591 NOT = { controls_state = 993 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_993_from_591_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_993_from_591" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_993_from_591" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_993_from_591_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 993 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 591 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 591 } } } start_border_war = { change_state_after_war = no attacker = { state = 591 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 993 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_993_from_589 = { desc = raj_chi_border_attack_993_from_589_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 993 } } visible = { controls_state = 589 NOT = { controls_state = 993 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_993_from_589_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_993_from_589" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_993_from_589" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_993_from_589_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 993 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 589 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 589 } } } start_border_war = { change_state_after_war = no attacker = { state = 589 num_provinces = 1 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 993 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_993_from_428 = { desc = raj_chi_border_attack_993_from_428_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 993 } } visible = { controls_state = 428 NOT = { controls_state = 993 } OR = { NOT = { original_tag = CHI } has_completed_focus = CHI_Strike_Across_the_Himalayas } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_993_from_428_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_993_from_428" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_993_from_428" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_993_from_428_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 993 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 428 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 428 } } } start_border_war = { change_state_after_war = no attacker = { state = 428 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 993 num_provinces = 2 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_attack_591_from_589 = { desc = raj_chi_border_attack_591_from_589_desc icon = GFX_decision_border_war days_remove = 10 days_re_enable = 90 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 591 } } visible = { controls_state = 589 NOT = { controls_state = 591 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_attack_thresholds_tt raj_chi_border_attack_thresholds = yes } custom_trigger_tooltip = { tooltip = border_war_axis_requirements_tt raj_chi_border_axis_591_from_589_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_attack_591_from_589" set_global_flag = GLOBAL_raj_chi_border_attack_pending custom_effect_tooltip = raj_chi_border_attack_outcome_tt } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_attack_591_from_589" hidden_effect = { if = { limit = { raj_chi_border_attack_revalidate = yes raj_chi_border_axis_591_from_589_valid = yes } clr_global_flag = GLOBAL_raj_chi_border_attack_pending set_global_flag = GLOBAL_raj_chi_border_war_active set_variable = { raj_chi_border_objective_state = 591 } if = { limit = { original_tag = RAJ } CHI = { set_variable = { raj_chi_border_objective_state = 589 } } } if = { limit = { original_tag = CHI } RAJ = { set_variable = { raj_chi_border_objective_state = 589 } } } start_border_war = { change_state_after_war = no attacker = { state = 589 num_provinces = 1 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } defender = { state = 591 num_provinces = 3 on_win = raj_chi_border_outcome.1 on_lose = raj_chi_border_outcome.2 on_cancel = raj_chi_border_outcome.3 } } } else = { clr_global_flag = GLOBAL_raj_chi_border_attack_pending country_event = border_war_operation_blocked.1 } } } ai_will_do = { base = 5 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_attack = yes } } modifier = { factor = 0.3 is_historical_focus_on = yes } } } raj_chi_border_capture_475 = { desc = raj_chi_border_capture_475_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 475 } } visible = { NOT = { controls_state = 475 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_no_claim_cooldown_tt raj_chi_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_progress_475_tt check_variable = { raj_chi_border_progress_475 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt raj_chi_border_capture_475_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_capture_475" set_global_flag = GLOBAL_raj_chi_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_capture_475" if = { limit = { raj_chi_border_capture_revalidate = yes check_variable = { raj_chi_border_progress_475 > 79 } raj_chi_border_capture_475_valid = yes } add_to_variable = { raj_chi_border_progress_475 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 475 } raj_chi_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_raj_chi_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_capture = yes } } } } raj_chi_border_capture_982 = { desc = raj_chi_border_capture_982_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 982 } } visible = { NOT = { controls_state = 982 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_no_claim_cooldown_tt raj_chi_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_progress_982_tt check_variable = { raj_chi_border_progress_982 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt raj_chi_border_capture_982_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_capture_982" set_global_flag = GLOBAL_raj_chi_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_capture_982" if = { limit = { raj_chi_border_capture_revalidate = yes check_variable = { raj_chi_border_progress_982 > 79 } raj_chi_border_capture_982_valid = yes } add_to_variable = { raj_chi_border_progress_982 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 982 } raj_chi_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_raj_chi_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_capture = yes } } } } raj_chi_border_capture_591 = { desc = raj_chi_border_capture_591_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 591 } } visible = { NOT = { controls_state = 591 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_no_claim_cooldown_tt raj_chi_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_progress_591_tt check_variable = { raj_chi_border_progress_591 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt raj_chi_border_capture_591_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_capture_591" set_global_flag = GLOBAL_raj_chi_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_capture_591" if = { limit = { raj_chi_border_capture_revalidate = yes check_variable = { raj_chi_border_progress_591 > 79 } raj_chi_border_capture_591_valid = yes } add_to_variable = { raj_chi_border_progress_591 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 591 } raj_chi_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_raj_chi_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_capture = yes } } } } raj_chi_border_capture_993 = { desc = raj_chi_border_capture_993_desc icon = generic_confiscation days_remove = 30 days_re_enable = 180 fire_only_once = no highlight_states = { highlight_states_trigger = { state = 993 } } visible = { NOT = { controls_state = 993 } } available = { custom_trigger_tooltip = { tooltip = raj_chi_border_no_operation_tt raj_chi_border_no_operation_active = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_no_claim_cooldown_tt raj_chi_border_no_claim_cooldown = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_pair_valid_tt raj_chi_border_pair_valid = yes } custom_trigger_tooltip = { tooltip = raj_chi_border_progress_993_tt check_variable = { raj_chi_border_progress_993 > 79 } } custom_trigger_tooltip = { tooltip = border_war_capture_requirements_tt raj_chi_border_capture_993_valid = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision raj_chi_border_capture_993" set_global_flag = GLOBAL_raj_chi_border_capture_pending } remove_effect = { log = "[GetDateText]: [Root.GetName]: Remove raj_chi_border_capture_993" if = { limit = { raj_chi_border_capture_revalidate = yes check_variable = { raj_chi_border_progress_993 > 79 } raj_chi_border_capture_993_valid = yes } add_to_variable = { raj_chi_border_progress_993 = -80 tooltip = border_war_claim_progress_cost_tt } set_temp_variable = { border_war_claimed_state = 993 } raj_chi_border_begin_claim = yes } else = { hidden_effect = { country_event = border_war_operation_blocked.1 } } hidden_effect = { clr_global_flag = GLOBAL_raj_chi_border_capture_pending } } ai_will_do = { base = 10 modifier = { factor = 0 NOT = { raj_chi_border_ai_should_capture = yes } } } } } RAJ_ai_path_category = { RAJ_rally_the_nationalist_front = { icon = generic_decision cost = 25 days_re_enable = 30 visible = { has_global_flag = RAJ_GREATER_INDIA_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy check_variable = { party_pop_array^20 < 0.42 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_rally_the_nationalist_front" set_temp_variable = { party_index = 20 } set_temp_variable = { party_popularity_increase = 0.04 } set_temp_variable = { temp_outlook_increase = 0.04 } change_relative_party_popularity = yes } ai_will_do = { base = 100 } } RAJ_nationalists_take_the_country = { icon = generic_decision cost = 150 days_re_enable = 180 visible = { has_global_flag = RAJ_GREATER_INDIA_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy nationalist_right_wing_populists_are_in_power = no check_variable = { party_pop_array^20 > 0.34 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_nationalists_take_the_country" set_temp_variable = { rul_party_temp = 20 } change_ruling_party_effect = yes } ai_will_do = { base = 100 } } RAJ_rally_the_communists = { icon = generic_decision cost = 25 days_re_enable = 30 visible = { has_global_flag = RAJ_RED_REPUBLIC_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy check_variable = { party_pop_array^19 < 0.42 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_rally_the_communists" set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.04 } change_relative_party_popularity = yes } ai_will_do = { base = 100 } } RAJ_communists_take_the_country = { icon = generic_decision cost = 150 days_re_enable = 180 visible = { has_global_flag = RAJ_RED_REPUBLIC_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy neutrality_neutral_communism_are_in_power = no check_variable = { party_pop_array^19 > 0.34 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_communists_take_the_country" set_temp_variable = { rul_party_temp = 19 } change_ruling_party_effect = yes } ai_will_do = { base = 100 } } RAJ_rally_the_samajwadi = { icon = generic_decision cost = 25 days_re_enable = 30 visible = { has_global_flag = RAJ_PEOPLES_FRONT_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy check_variable = { party_pop_array^18 < 0.42 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_rally_the_samajwadi" set_temp_variable = { party_index = 18 } set_temp_variable = { party_popularity_increase = 0.04 } change_relative_party_popularity = yes } ai_will_do = { base = 100 } } RAJ_samajwadi_take_the_country = { icon = generic_decision cost = 150 days_re_enable = 180 visible = { has_global_flag = RAJ_PEOPLES_FRONT_FOCUS_PATH } available = { has_civil_war = no has_completed_focus = RAJ_article_three_seventy neutrality_neutral_social_are_in_power = no check_variable = { party_pop_array^18 > 0.34 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision RAJ_samajwadi_take_the_country" set_temp_variable = { rul_party_temp = 18 } change_ruling_party_effect = yes } ai_will_do = { base = 100 } } }