is_reserve_currency_issuer = { OR = { has_country_flag = is_usd_issuer has_country_flag = is_eur_issuer has_country_flag = is_rub_issuer has_country_flag = is_gbp_issuer has_country_flag = is_jpy_issuer has_country_flag = is_chf_issuer has_country_flag = is_cny_issuer has_country_flag = is_nlg_issuer } } # AI Has Treasury Rate +- ai_has_acceptable_deficit = { OR = { AND = { has_communist_government = yes check_variable = { treasury_rate > -7.50 } } AND = { has_socialist_government = yes check_variable = { treasury_rate > -6.75 } } AND = { has_liberal_government = yes check_variable = { treasury_rate > -5.50 } } AND = { has_conservative_government = yes check_variable = { treasury_rate > -3.00 } } } } ai_has_acceptable_surplus = { OR = { AND = { has_communist_government = yes check_variable = { treasury_rate > 1.00 } } AND = { has_socialist_government = yes check_variable = { treasury_rate > 2.00 } } AND = { has_liberal_government = yes check_variable = { treasury_rate > 2.75 } } AND = { has_conservative_government = yes check_variable = { treasury_rate > 3.50 } } } } ai_has_acceptable_deficit_factories = { OR = { AND = { num_of_factories < 15 check_variable = { treasury_rate > -0.35 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 14 num_of_factories < 30 check_variable = { treasury_rate > -1.0 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 29 num_of_factories < 45 check_variable = { treasury_rate > -1.5 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 44 num_of_factories < 60 check_variable = { treasury_rate > -1.75 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 59 num_of_factories < 100 check_variable = { treasury_rate > -2.0 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 99 num_of_factories < 150 check_variable = { treasury_rate > -2.5 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 149 num_of_factories < 200 check_variable = { treasury_rate > -3.0 } check_variable = { treasury_rate < 0 } } AND = { num_of_factories > 199 check_variable = { treasury_rate > -3.50 } check_variable = { treasury_rate < 0 } } } } ai_has_acceptable_surplus_factories = { OR = { AND = { num_of_factories < 15 check_variable = { treasury_rate > 0.35 } } AND = { num_of_factories > 14 num_of_factories < 30 check_variable = { treasury_rate > 0.60 } } AND = { num_of_factories > 29 num_of_factories < 45 check_variable = { treasury_rate > 1.25 } } AND = { num_of_factories > 44 num_of_factories < 60 check_variable = { treasury_rate > 2.25 } } AND = { num_of_factories > 59 num_of_factories < 100 check_variable = { treasury_rate > 3.0 } } AND = { num_of_factories > 99 num_of_factories < 150 check_variable = { treasury_rate > 3.50 } } AND = { num_of_factories > 149 num_of_factories < 200 check_variable = { treasury_rate > 5.0 } } AND = { num_of_factories > 199 check_variable = { treasury_rate > 6.50 } } } } ai_has_minor_economic_problems = { if = { limit = { OR = { tag = USA tag = CHI } } check_variable = { interest_rate > 1.0 } } else = { check_variable = { interest_rate > 6.00 } } check_variable = { treasury_rate < -2.50 } } ai_has_moderate_economic_problems = { if = { limit = { OR = { tag = USA tag = CHI } } check_variable = { interest_rate > 1.2 } } else = { check_variable = { interest_rate > 8.999 } } check_variable = { treasury_rate < -5.00 } } ai_has_major_economic_problems = { if = { limit = { OR = { tag = USA tag = CHI } } check_variable = { interest_rate > 3.999 } } else = { check_variable = { interest_rate > 11.999 } } check_variable = { treasury_rate < -9.00 } } # Balance ai_has_deficit = { check_variable = { treasury_rate < -0.05 } } ai_has_high_deficit = { check_variable = { treasury_rate < -3.00 } } ai_has_surplus = { check_variable = { treasury_rate > 0.05 } } ai_has_high_surplus = { check_variable = { treasury_rate > 10.00 } } # AI Has Same Organization # If FROM has the same organization as THIS ai_has_same_organization = { OR = { # NATO AND = { FROM = { has_idea = NATO_member } has_idea = NATO_member } # ASEAN AND = { FROM = { has_idea = NATO_member } has_idea = NATO_member } # EU Member AND = { FROM = { has_idea = EU_member } has_idea = EU_member } # African Union AND = { FROM = { has_idea = AU_member } has_idea = AU_member } # Ecowas AND = { FROM = { has_idea = ecowas_member_state } has_idea = ecowas_member_state } # GCC AND = { FROM = { has_idea = idea_gcc_member_state } has_idea = idea_gcc_member_state } # SCO AND = { FROM = { has_idea = CHI_sco_member } has_idea = CHI_sco_member } # Commonwealth of nations AND = { FROM = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } # GUAM AND = { FROM = { has_idea = idea_GUAM_member_state } has_idea = idea_GUAM_member_state } AND = { FROM = { has_idea = idea_GUAM_member_state_2 } has_idea = idea_GUAM_member_state_2 } } } bankruptcy_default_intervention_trigger = { OR = { AND = { is_neighbor_of = ROOT OR = { has_idea = intervention_limited_interventionism has_idea = intervention_regional_interventionism } } AND = { ROOT_and_THIS_are_in_the_same_group = yes has_idea = intervention_regional_interventionism } has_idea = intervention_global_interventionism has_idea = intervention_neo_imperialism } NOT = { has_country_flag = political_concessions_from@ROOT } NOT = { is_in_faction_with = ROOT } NOT = { OR = { has_idea = EU_member ROOT = { has_idea = EU_member } } } } # Employment — total_unemployed_k and workers_per_X_display are both in thousands can_staff_an_industrial_complex = { check_variable = { total_unemployed_k > workers_per_civ_fac_display } } can_staff_an_arms_industry = { check_variable = { total_unemployed_k > workers_per_mil_fac_display } } can_staff_an_dockyard = { check_variable = { total_unemployed_k > workers_per_dockyard_display } } can_staff_an_offices = { check_variable = { total_unemployed_k > workers_per_office_display } } can_staff_an_agriculture_district = { check_variable = { total_unemployed_k > workers_per_agriculture_district_display } } can_staff_an_microchip_plant = { check_variable = { total_unemployed_k > workers_per_microchip_plant_display } } can_staff_an_composite_plant = { check_variable = { total_unemployed_k > workers_per_composite_plant_display } } # Interest Rate Checks interest_rate_lower_than_2 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_2_tt check_variable = { interest_rate < 2 } } } interest_rate_lower_than_3_5 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_3_5_tt check_variable = { interest_rate < 3.5 } } } interest_rate_lower_than_5 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_5_tt check_variable = { interest_rate < 5 } } } interest_rate_lower_than_5_5 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_5_5_tt check_variable = { interest_rate < 5.5 } } } interest_rate_lower_than_6_5 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_6_5_tt check_variable = { interest_rate < 6.5 } } } interest_rate_lower_than_8 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_8_tt check_variable = { interest_rate < 8 } } } interest_rate_lower_than_9 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_9_tt check_variable = { interest_rate < 9 } } } interest_rate_lower_than_15 = { custom_trigger_tooltip = { tooltip = interest_rate_lower_than_15_tt check_variable = { interest_rate < 15 } } } interest_rate_higher_than_8 = { custom_trigger_tooltip = { tooltip = interest_rate_higher_than_8_tt check_variable = { interest_rate > 8 } } } interest_rate_higher_than_10 = { custom_trigger_tooltip = { tooltip = interest_rate_higher_than_10_tt check_variable = { interest_rate > 10 } } } interest_rate_higher_than_15 = { custom_trigger_tooltip = { tooltip = interest_rate_higher_than_15_tt check_variable = { interest_rate > 14.999 } } } # Inflation Rate Checks inflation_rate_lower_than_1 = { custom_trigger_tooltip = { tooltip = inflation_rate_lower_than_1_tt check_variable = { inflation_rate_var < 0.01 } } } inflation_rate_lower_than_2 = { custom_trigger_tooltip = { tooltip = inflation_rate_lower_than_2_tt check_variable = { inflation_rate_var < 0.02 } } } inflation_rate_higher_than_2 = { custom_trigger_tooltip = { tooltip = inflation_rate_higher_than_2_tt check_variable = { inflation_rate_var > 0.019 } } } inflation_rate_higher_than_3 = { custom_trigger_tooltip = { tooltip = inflation_rate_higher_than_3_tt check_variable = { inflation_rate_var > 0.029 } } } # Treasury / Debt Checks treasury_lower_than_5 = { custom_trigger_tooltip = { tooltip = treasury_lower_than_5_tt check_variable = { treasury < 5 } } } treasury_lower_than_10 = { custom_trigger_tooltip = { tooltip = treasury_lower_than_10_tt check_variable = { treasury < 10 } } } treasury_higher_than_0_5 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_0_5_tt check_variable = { treasury > 0.5 } } } treasury_higher_than_2 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_2_tt check_variable = { treasury > 2 } } } treasury_higher_than_3 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_3_tt check_variable = { treasury > 3 } } } treasury_higher_than_4 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_4_tt check_variable = { treasury > 4 } } } treasury_higher_than_5 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_5_tt check_variable = { treasury > 5 } } } treasury_higher_than_8 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_8_tt check_variable = { treasury > 8 } } } treasury_higher_than_10 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_10_tt check_variable = { treasury > 10 } } } treasury_higher_than_12 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_12_tt check_variable = { treasury > 12 } } } treasury_higher_than_14 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_14_tt check_variable = { treasury > 14 } } } treasury_higher_than_25 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_25_tt check_variable = { treasury > 25 } } } treasury_higher_than_30 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_30_tt check_variable = { treasury > 30 } } } treasury_higher_than_50 = { custom_trigger_tooltip = { tooltip = treasury_higher_than_50_tt check_variable = { treasury > 49 } } } debt_lower_than_1 = { custom_trigger_tooltip = { tooltip = debt_lower_than_1_tt check_variable = { debt < 1 } } } debt_lower_than_1000 = { custom_trigger_tooltip = { tooltip = debt_lower_than_1000_tt check_variable = { debt < 1000 } } } debt_higher_than_30 = { custom_trigger_tooltip = { tooltip = debt_higher_than_30_tt check_variable = { debt > 30 } } } # GDP per Capita Checks gdp_per_capita_greater_than_2 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_2_tt check_variable = { gdp_per_capita > 1.999 } } } gdp_per_capita_greater_than_3 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_3_tt check_variable = { gdp_per_capita > 2.999 } } } gdp_per_capita_greater_than_5 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_5_tt check_variable = { gdp_per_capita > 4.999 } } } gdp_per_capita_greater_than_7 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_7_tt check_variable = { gdp_per_capita > 6.999 } } } gdp_per_capita_greater_than_10 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_10_tt check_variable = { gdp_per_capita > 9.999 } } } gdp_per_capita_greater_than_30 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_30_tt check_variable = { gdp_per_capita > 29.999 } } } gdp_per_capita_greater_than_35 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_35_tt check_variable = { gdp_per_capita > 34.999 } } } gdp_per_capita_greater_than_40 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_40_tt check_variable = { gdp_per_capita > 39.999 } } } gdp_per_capita_greater_than_55 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_55_tt check_variable = { gdp_per_capita > 54.999 } } } gdp_per_capita_greater_than_60 = { custom_trigger_tooltip = { tooltip = gdp_per_capita_greater_than_60_tt check_variable = { gdp_per_capita > 59.999 } } } # GDP Total Checks gdp_total_greater_than_20 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_20_tt check_variable = { gdp_total > 20 } } } gdp_total_greater_than_35 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_35_tt check_variable = { gdp_total > 35 } } } gdp_total_greater_than_50 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_50_tt check_variable = { gdp_total > 50 } } } gdp_total_greater_than_60 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_60_tt check_variable = { gdp_total > 59.99 } } } gdp_total_greater_than_65 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_65_tt check_variable = { gdp_total > 65 } } } gdp_total_greater_than_80 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_80_tt check_variable = { gdp_total > 80 } } } gdp_total_greater_than_95 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_95_tt check_variable = { gdp_total > 95 } } } gdp_total_greater_than_100 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_100_tt check_variable = { gdp_total > 100 } } } gdp_total_greater_than_135 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_135_tt check_variable = { gdp_total > 135 } } } gdp_total_greater_than_150 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_150_tt check_variable = { gdp_total > 150 } } } gdp_total_greater_than_160 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_160_tt check_variable = { gdp_total > 160 } } } gdp_total_greater_than_200 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_200_tt check_variable = { gdp_total > 200 } } } gdp_total_greater_than_250 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_250_tt check_variable = { gdp_total > 250 } } } gdp_total_greater_than_300 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_300_tt check_variable = { gdp_total > 300 } } } gdp_total_greater_than_400 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_400_tt check_variable = { gdp_total > 400 } } } gdp_total_greater_than_500 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_500_tt check_variable = { gdp_total > 500 } } } gdp_total_greater_than_600 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_600_tt check_variable = { gdp_total > 600 } } } gdp_total_greater_than_1500 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_1500_tt check_variable = { gdp_total > 1500 } } } gdp_total_greater_than_7000 = { custom_trigger_tooltip = { tooltip = gdp_total_greater_than_7000_tt check_variable = { gdp_total > 7000 } } } gdp_total_lower_than_1000 = { custom_trigger_tooltip = { tooltip = gdp_total_lower_than_1000_tt check_variable = { gdp_total < 1000 } } } # Overall Productivity Checks overall_productivity_greater_than_650 = { custom_trigger_tooltip = { tooltip = overall_productivity_greater_than_650_tt check_variable = { overall_productivity > 649.999 } } } overall_productivity_greater_than_750 = { custom_trigger_tooltip = { tooltip = overall_productivity_greater_than_750_tt check_variable = { overall_productivity > 749.999 } } } overall_productivity_greater_than_900 = { custom_trigger_tooltip = { tooltip = overall_productivity_greater_than_900_tt check_variable = { overall_productivity > 899.999 } } } overall_productivity_greater_than_1000 = { custom_trigger_tooltip = { tooltip = overall_productivity_greater_than_1000_tt check_variable = { overall_productivity > 999.999 } } } # Overall Productivity vs Global Target is_overall_productivity_less_than_global_target = { custom_trigger_tooltip = { tooltip = is_overall_productivity_less_than_global_target_tt check_variable = { overall_productivity < global.world_productivity_target } } } # Tax Rate Checks corporate_tax_rate_below_6 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_below_6_tt check_variable = { corporate_tax_rate < 6 } } } corporate_tax_rate_below_10 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_below_10_tt check_variable = { corporate_tax_rate < 10 } } } corporate_tax_rate_above_14 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_above_14_tt check_variable = { corporate_tax_rate > 14 } } } corporate_tax_rate_below_15 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_below_15_tt check_variable = { corporate_tax_rate < 15 } } } corporate_tax_rate_below_20 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_below_20_tt check_variable = { corporate_tax_rate < 20 } } } corporate_tax_rate_below_26 = { custom_trigger_tooltip = { tooltip = corporate_tax_rate_below_26_tt check_variable = { corporate_tax_rate < 26 } } } population_tax_rate_below_16 = { custom_trigger_tooltip = { tooltip = population_tax_rate_below_16_tt check_variable = { population_tax_rate < 16 } } } population_tax_rate_below_26 = { custom_trigger_tooltip = { tooltip = population_tax_rate_below_26_tt check_variable = { population_tax_rate < 26 } } } has_resource = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 } }