# Authors: Birdy, Killerabbit # see Modding Resources/Internal Factions/ for more info on functions and code # Purpose of this file: # This file handles ALL background methods for the internal faction system. # Version: v2.0 # Last Modified: January 2022 # List of Factions sorted by category # Economic Type: Small & Medium Business Owners, International Bankers, Fossil Fuel Industry # Industrial Conglomerates, Oligarchs # Militaristic: Maritime Industry, Military-Industrial Complex, The Military, Intelligence Community # Special Interest: Labour Unions, Landowners, Farmers, Communist Cadres # Religious Factions: Wahabi Ulema, The Ulema, The Clergy, The Priesthood # Nation Specific: The Donju, The Bazaar, Saudi Royal Family, IRGC, Iranian Quds Force, # Foreign Jihadis, VEVAK, Chaebols, Wall Street, ISI Pakistan # setup_init_factions: # Method for initializing all dynamic modifiers and other effects for the internal faction system setup_init_factions = { # Economic Factions if = { limit = { has_idea = small_medium_business_owners NOT = { has_variable = small_medium_business_owners_opinion } } set_variable = { small_medium_business_owners_opinion = 50 } } if = { limit = { has_idea = international_bankers NOT = { has_variable = international_bankers_opinion } } set_variable = { international_bankers_opinion = 50 } } if = { limit = { has_idea = oligarchs NOT = { has_variable = oligarchs_opinion } } set_variable = { oligarchs_opinion = 50 } } if = { limit = { has_idea = industrial_conglomerates NOT = { has_variable = industrial_conglomerates_opinion } } set_variable = { industrial_conglomerates_opinion = 50 } } if = { limit = { has_idea = fossil_fuel_industry NOT = { has_variable = fossil_fuel_industry_opinion } } set_variable = { fossil_fuel_industry_opinion = 50 } } # Militaristic Factions if = { limit = { has_idea = intelligence_community NOT = { has_variable = intelligence_community_opinion } } set_variable = { intelligence_community_opinion = 50 } } if = { limit = { has_idea = the_military NOT = { has_variable = the_military_opinion } } set_variable = { the_military_opinion = 50 } } if = { limit = { has_idea = defense_industry NOT = { has_variable = defense_industry_opinion } } set_variable = { defense_industry_opinion = 50 } } if = { limit = { has_idea = maritime_industry NOT = { has_variable = maritime_industry_opinion } } set_variable = { maritime_industry_opinion = 50 } } # Special Interest Groups if = { limit = { has_idea = wahabi_ulema NOT = { has_variable = wahabi_ulema_opinion } } set_variable = { wahabi_ulema_opinion = 50 } } if = { limit = { has_idea = the_priesthood NOT = { has_variable = the_priesthood_opinion } } set_variable = { the_priesthood_opinion = 50 } } if = { limit = { has_idea = the_ulema NOT = { has_variable = the_ulema_opinion } } set_variable = { the_ulema_opinion = 50 } } if = { limit = { has_idea = the_clergy NOT = { has_variable = the_clergy_opinion } } set_variable = { the_clergy_opinion = 50 } } if = { limit = { has_idea = communist_cadres NOT = { has_variable = communist_cadres_opinion } } set_variable = { communist_cadres_opinion = 50 } } if = { limit = { has_idea = farmers NOT = { has_variable = farmers_opinion } } set_variable = { farmers_opinion = 50 } } if = { limit = { has_idea = landowners NOT = { has_variable = landowners_opinion } } set_variable = { landowners_opinion = 50 } } if = { limit = { has_idea = labour_unions NOT = { has_variable = labour_unions_opinion } } set_variable = { labour_unions_opinion = 50 } } # Nation Specific if = { limit = { has_idea = foreign_jihadis NOT = { has_variable = foreign_jihadis_opinion } } set_variable = { foreign_jihadis_opinion = 50 } } if = { limit = { has_idea = iranian_quds_force NOT = { has_variable = iranian_quds_force_opinion } } set_variable = { iranian_quds_force_opinion = 50 } } if = { limit = { has_idea = saudi_royal_family NOT = { has_variable = saudi_royal_family_opinion } } set_variable = { saudi_royal_family_opinion = 50 } } if = { limit = { has_idea = chaebols NOT = { has_variable = chaebols_opinion } } set_variable = { chaebols_opinion = 50 } } if = { limit = { has_idea = wall_street NOT = { has_variable = wall_street_opinion } } set_variable = { wall_street_opinion = 50 } } if = { limit = { has_idea = the_donju NOT = { has_variable = the_donju_opinion } } set_variable = { the_donju_opinion = 50 } } # Set minimum opinion values if = { limit = { has_idea = small_medium_business_owners } set_variable = { small_medium_business_owners_opinion_min = 50 } } if = { limit = { has_idea = international_bankers } set_variable = { international_bankers_opinion_min = 50 } } if = { limit = { has_idea = oligarchs } set_variable = { oligarchs_opinion_min = 50 } } if = { limit = { has_idea = industrial_conglomerates } set_variable = { industrial_conglomerates_opinion_min = 50 } } if = { limit = { has_idea = fossil_fuel_industry } set_variable = { fossil_fuel_industry_opinion_min = 50 } } if = { limit = { has_idea = intelligence_community } set_variable = { intelligence_community_opinion_min = 50 } } if = { limit = { has_idea = the_military } set_variable = { the_military_opinion_min = 50 } } if = { limit = { has_idea = defense_industry } set_variable = { defense_industry_opinion_min = 50 } } if = { limit = { has_idea = maritime_industry } set_variable = { maritime_industry_opinion_min = 50 } } if = { limit = { has_idea = wahabi_ulema } set_variable = { wahabi_ulema_opinion_min = 50 } } if = { limit = { has_idea = the_priesthood } set_variable = { the_priesthood_opinion_min = 50 } } if = { limit = { has_idea = the_ulema } set_variable = { the_ulema_opinion_min = 50 } } if = { limit = { has_idea = the_clergy } set_variable = { the_clergy_opinion_min = 50 } } if = { limit = { has_idea = communist_cadres } set_variable = { communist_cadres_opinion_min = 50 } } if = { limit = { has_idea = farmers } set_variable = { farmers_opinion_min = 50 } } if = { limit = { has_idea = landowners } set_variable = { landowners_opinion_min = 50 } } if = { limit = { has_idea = labour_unions } set_variable = { labour_unions_opinion_min = 50 } } if = { limit = { has_idea = foreign_jihadis } set_variable = { foreign_jihadis_opinion_min = 50 } } if = { limit = { has_idea = iranian_quds_force } set_variable = { iranian_quds_force_opinion_min = 50 } } if = { limit = { has_idea = saudi_royal_family } set_variable = { saudi_royal_family_opinion_min = 50 } } if = { limit = { has_idea = chaebols } set_variable = { chaebols_opinion_min = 50 } } if = { limit = { has_idea = wall_street } set_variable = { wall_street_opinion_min = 50 } } if = { limit = { has_idea = the_donju } set_variable = { the_donju_opinion_min = 50 } } initialize_internal_faction_dynamic_modifiers = yes } # display_election_campaign_status: # Method for handling Internal Factions role in MDs Election System # Note: This is a handler for adding to variable campaign_funding_count which impacts the election system # Otherwise it is only used for localization purposes in the initial event for elections. # Subsequent effects such as display_election_status_small_medium_business_owners are just for the # individual factions and their impact on the variable campaign_funding_count and their display loc display_election_campaign_status = { # Base Value of Campaign Funding # Further Modified by your factions set_variable = { campaign_funding_count = 10 } # Economic Factions if = { limit = { has_idea = small_medium_business_owners } set_temp_variable = { temp_faction_opinion = small_medium_business_owners_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = international_bankers } set_temp_variable = { temp_faction_opinion = international_bankers_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = fossil_fuel_industry } set_temp_variable = { temp_faction_opinion = fossil_fuel_industry_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = industrial_conglomerates } set_temp_variable = { temp_faction_opinion = industrial_conglomerates_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = oligarchs } set_temp_variable = { temp_faction_opinion = oligarchs_opinion } calculate_election_funding_from_opinion = yes } # Militaristic Groups if = { limit = { has_idea = defense_industry } set_temp_variable = { temp_faction_opinion = defense_industry_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = maritime_industry } set_temp_variable = { temp_faction_opinion = maritime_industry_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = the_military } set_temp_variable = { temp_faction_opinion = the_military_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = intelligence_community } set_temp_variable = { temp_faction_opinion = intelligence_community_opinion } calculate_election_funding_from_opinion = yes } # Special Interest Groups if = { limit = { has_idea = labour_unions } set_temp_variable = { temp_faction_opinion = labour_unions_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = landowners } set_temp_variable = { temp_faction_opinion = landowners_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = farmers } set_temp_variable = { temp_faction_opinion = farmers_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = communist_cadres } set_temp_variable = { temp_faction_opinion = communist_cadres_opinion } calculate_election_funding_from_opinion = yes } # Religious Factions if = { limit = { has_idea = the_priesthood } set_temp_variable = { temp_faction_opinion = the_priesthood_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = the_ulema } set_temp_variable = { temp_faction_opinion = the_ulema_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = the_clergy } set_temp_variable = { temp_faction_opinion = the_clergy_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = wahabi_ulema } set_temp_variable = { temp_faction_opinion = wahabi_ulema_opinion } calculate_election_funding_from_opinion = yes } # Nation Specific Factions if = { limit = { has_idea = the_donju } set_temp_variable = { temp_faction_opinion = the_donju_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = saudi_royal_family } set_temp_variable = { temp_faction_opinion = saudi_royal_family_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = iranian_quds_force } set_temp_variable = { temp_faction_opinion = iranian_quds_force_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = foreign_jihadis } set_temp_variable = { temp_faction_opinion = foreign_jihadis_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = wall_street } set_temp_variable = { temp_faction_opinion = wall_street_opinion } calculate_election_funding_from_opinion = yes } if = { limit = { has_idea = chaebols } set_temp_variable = { temp_faction_opinion = chaebols_opinion } calculate_election_funding_from_opinion = yes } custom_effect_tooltip = display_internal_faction_election_effects } # Generic election funding calculator # Maps opinion tiers to funding: <20 = -2, 20-39 = -1, 40-59 = 0, 60-79 = +1, >=80 = +2 # Usage: set temp_faction_opinion before calling calculate_election_funding_from_opinion = { if = { limit = { check_variable = { temp_faction_opinion < 20 } } add_to_variable = { campaign_funding_count = -2 } } else_if = { limit = { check_variable = { temp_faction_opinion < 40 } } add_to_variable = { campaign_funding_count = -1 } } else_if = { limit = { check_variable = { temp_faction_opinion > 79 } } add_to_variable = { campaign_funding_count = 2 } } else_if = { limit = { check_variable = { temp_faction_opinion > 59 } } add_to_variable = { campaign_funding_count = 1 } } # 40-59 adds 0, no action needed } # Cleanup Function: # This is a tidy function to remove a variable if a nation no longer has a faction it will clear its variable if_no_longer_has_faction_clear_previous = { if = { limit = { NOT = { has_idea = small_medium_business_owners } has_variable = small_medium_business_owners_opinion } clear_variable = small_medium_business_owners_opinion clear_variable = SMBO_production_speed_industrial_complex_factor clear_variable = SMBO_stability_factor clear_variable = SMBO_consumer_goods_factor_var clear_variable = SMBO_civilian_industry_tax_modifier_var clear_variable = SMBO_production_speed_internet_station_factor_var } if = { limit = { NOT = { has_idea = international_bankers } has_variable = international_bankers_opinion } clear_variable = international_bankers_opinion clear_variable = INTB_psof_var clear_variable = INTB_local_resources_factor_var clear_variable = INTB_trade_opinion_factor_var clear_variable = INTB_democratic_acceptance_factor_var clear_variable = INTB_democratic_drift_var clear_variable = INTB_investment_duration_var clear_variable = INTB_investment_cost_var clear_variable = INTB_office_park_income_tax_modifier_var } if = { limit = { NOT = { has_idea = fossil_fuel_industry } has_variable = fossil_fuel_industry_opinion } clear_variable = fossil_fuel_industry_opinion clear_variable = FFI_local_resource_factor_var clear_variable = FFI_fuel_gain_factor_var clear_variable = FFI_justify_war_goal_time_var clear_variable = FFI_oil_export_multiplier_modifier_var clear_variable = FFI_production_speed_fuel_silo_factor_var } if = { limit = { NOT = { has_idea = industrial_conglomerates } has_variable = industrial_conglomerates_opinion } clear_variable = industrial_conglomerates_opinion clear_variable = ICL_psifra_factor_var clear_variable = ICL_local_resources_factor_var clear_variable = ICL_communism_acceptance_factor_var clear_variable = ICL_communism_drift } if = { limit = { NOT = { has_idea = oligarchs } has_variable = oligarchs_opinion } clear_variable = oligarchs_opinion clear_variable = OLI_psic_factor_var clear_variable = OLI_local_resources_factor_var clear_variable = OLI_communism_acceptance_factor_var clear_variable = OLI_communism_drift_var clear_variable = OLI_military_industrial_organization_funds_gain_var } if = { limit = { NOT = { has_idea = maritime_industry } has_variable = maritime_industry_opinion } clear_variable = maritime_industry_opinion clear_variable = MRI_dockyard_factor_var clear_variable = MRI_psvb_factor_var clear_variable = MRI_industrial_capacity_dockyard_var clear_variable = MRI_navy_max_range_factor_var clear_variable = MRI_dockyard_productivity_var clear_variable = MRI_dockyard_income_tax_modifier_var } if = { limit = { NOT = { has_idea = defense_industry } has_variable = defense_industry_opinion } clear_variable = defense_industry_opinion clear_variable = DEF_military_factory_speed_factor_var clear_variable = DEF_factory_base_efficiency_factor_var clear_variable = DEF_military_factory_speed_factor_var clear_variable = DEF_military_factories_productivity_var clear_variable = DEF_military_industry_tax_modifier_var clear_variable = DEF_military_industrial_organization_industrial_manufacturer_assign_cost_var clear_variable = DEF_military_industrial_organization_design_team_assign_cost_var } if = { limit = { NOT = { has_idea = the_military } has_variable = the_military_opinion } clear_variable = the_military_opinion clear_variable = MILI_army_org_factor_var clear_variable = MILI_army_morale_factor_var clear_variable = MILI_training_time_factor_var clear_variable = MILI_air_base_production_factor_var clear_variable = MILI_personnel_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = intelligence_community } has_variable = intelligence_community_opinion } clear_variable = intelligence_community_opinion clear_variable = INTC_decryption_factor_var clear_variable = INTC_encryption_factor_var clear_variable = INTC_foreign_subversive_activies_upkeep_var clear_variable = INTC_foreign_subversive_activies_var clear_variable = INTC_civilian_intel_factor_var clear_variable = INTC_army_intel_factor_var clear_variable = INTC_navy_intel_factor_var clear_variable = INTC_airforce_intel_factor_var } if = { limit = { NOT = { has_idea = labour_unions } has_variable = labour_unions_opinion } clear_variable = labour_unions_opinion clear_variable = LBU_production_factory_efficiency_gain_factor_var clear_variable = LBU_production_start_effiency_factor_var clear_variable = LBU_political_power_factor_var clear_variable = LBU_health_cost_multiplier_modifier_var clear_variable = LBU_social_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = landowners } has_variable = landowners_opinion } clear_variable = landowners_opinion clear_variable = LAND_local_resources_factor_var clear_variable = LAND_conscription_factor_var clear_variable = LAND_psic_factor_var clear_variable = LAND_office_park_income_tax_modifier_var clear_variable = LAND_political_power_factor_var } if = { limit = { NOT = { has_idea = farmers } has_variable = farmers_opinion } clear_variable = farmers_opinion clear_variable = FARM_conscription_factor_var clear_variable = FARM_consumer_goods_factor_var clear_variable = FARM_monthly_pop_var clear_variable = FARM_productivity_modifier_var clear_variable = FARM_agriculture_income_modifier_var clear_variable = FARM_production_speed_agricultural_district_factor_var } if = { limit = { NOT = { has_idea = communist_cadres } has_variable = communist_cadres_opinion } clear_variable = communist_cadres_opinion clear_variable = COM_army_org_regain_var clear_variable = COM_consumer_good_factor_var clear_variable = COM_army_core_defence_factor_var clear_variable = COM_mobilization_speed_var clear_variable = COM_bureaucracy_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = the_priesthood } has_variable = the_priesthood_opinion } clear_variable = the_priesthood_opinion clear_variable = PRIEST_stability_factor_var clear_variable = PRIEST_monthly_population_var clear_variable = PRIEST_political_power_var clear_variable = PRIEST_education_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = the_ulema } has_variable = the_ulema_opinion } clear_variable = the_ulema_opinion clear_variable = ULE_stability_factor_var clear_variable = ULE_monthly_population_var clear_variable = ULE_political_power_var clear_variable = ULE_education_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = the_clergy } has_variable = the_clergy_opinion } clear_variable = the_clergy_opinion clear_variable = CLER_stability_factor_var clear_variable = CLER_monthly_population_var clear_variable = CLER_political_power_var clear_variable = CLER_education_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = wahabi_ulema } has_variable = wahabi_ulema_opinion } clear_variable = wahabi_ulema_opinion clear_variable = WAHULE_stability_factor_var clear_variable = WAHULE_monthly_population_var clear_variable = WAHULE_political_power_var clear_variable = WAHULE_fascism_drift_var clear_variable = WAHULE_education_cost_multiplier_modifier_var } if = { limit = { NOT = { has_idea = the_donju } has_variable = the_donju_opinion } clear_variable = the_donju_opinion clear_variable = DONJU_production_speed_industrial_complex_factor clear_variable = DONJU_stability_factor clear_variable = DONJU_consunmer_goods_factor_var clear_variable = DONJU_infrastructure_production_speed_var } if = { limit = { NOT = { has_idea = saudi_royal_family } has_variable = saudi_royal_family_opinion } clear_variable = saudi_royal_family_opinion clear_variable = SARF_political_power_factor_var #20% Max clear_variable = SARF_ideology_drift_defense_var #25% Max clear_variable = SARF_stability_factor_var #5% max } if = { limit = { NOT = { has_idea = iranian_quds_force } has_variable = iranian_quds_force_opinion } clear_variable = iranian_quds_force_opinion clear_variable = IRGC_commmunist_drift_var } if = { limit = { NOT = { has_idea = foreign_jihadis } has_variable = foreign_jihadis_opinion } clear_variable = foreign_jihadis_opinion clear_variable = JIHAD_fascism_drift_var clear_variable = JIHAD_non_core_manpower_var clear_variable = JIHAD_special_forces_cap_var } if = { limit = { NOT = { has_idea = wall_street } has_variable = wall_street_opinion } clear_variable = wall_street_opinion clear_variable = WALL_local_resources_factor_var clear_variable = WALL_trade_opinion_factor_var clear_variable = WALL_psic_factor_var clear_variable = WALL_office_park_income_tax_modifier_var clear_variable = WALL_investment_cost_var clear_variable = WALL_investment_duration_var } if = { limit = { NOT = { has_idea = chaebols } has_variable = chaebols_opinion } clear_variable = chaebols_opinion clear_variable = CHAE_psic_factor_var clear_variable = CHAE_psinfra_factor_avr clear_variable = CHAE_local_resouces_factor } update_mio_catalog_dirty_variable = yes } # Dynamic Modifier System for Internal Factions. The dynamic effects are sourced here using dynamic modifiers and basic variables. ######Apply Modifiers##### ##Do NOT add to these variables. They will break and the effects will reverse whatever you add.### initialize_internal_faction_dynamic_modifiers = { if = { limit = { is_debug = yes } log = "[GetDateText]: [THIS.GetName]: initialization of dynamic modifiers for Internal Faction System" } #Economic Internal Factions if = { limit = { has_idea = small_medium_business_owners } add_dynamic_modifier = { modifier = small_medium_business_owners_dynamic_modifier } apply_small_medium_business_owner_effect_DYNMOD = yes } if = { limit = { has_idea = international_bankers } add_dynamic_modifier = { modifier = international_bankers_dynamic_modifier } apply_international_bankers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = fossil_fuel_industry } add_dynamic_modifier = { modifier = fossil_fuel_industry_dynamic_modifier } apply_fossil_fuel_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = industrial_conglomerates } add_dynamic_modifier = { modifier = industrial_conglomerates_dynamic_modifier } apply_industrial_conglomerates_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = oligarchs } add_dynamic_modifier = { modifier = oligarchs_dynamic_modifier } apply_oligarchs_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = maritime_industry } add_dynamic_modifier = { modifier = maritime_industry_dynamic_modifier } apply_maritime_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = defense_industry } add_dynamic_modifier = { modifier = defense_industry_dynamic_modifier } apply_defense_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_military } add_dynamic_modifier = { modifier = the_military_dynamic_modifier } apply_the_military_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = intelligence_community } add_dynamic_modifier = { modifier = intelligence_community_dynamic_modifier } apply_intelligence_community_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = labour_unions } add_dynamic_modifier = { modifier = labour_unions_dynamic_modifier } apply_labour_unions_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = landowners } add_dynamic_modifier = { modifier = landowners_dynamic_modifier } apply_landowners_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = farmers } add_dynamic_modifier = { modifier = farmers_dynamic_modifier } apply_farmers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = communist_cadres } add_dynamic_modifier = { modifier = communist_cadres_dynamic_modifier } apply_communist_cadres_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_priesthood } add_dynamic_modifier = { modifier = the_priesthood_dynamic_modifier } apply_the_priesthood_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_ulema } add_dynamic_modifier = { modifier = the_ulema_dynamic_modifier } apply_the_ulema_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_clergy } add_dynamic_modifier = { modifier = the_clergy_dynamic_modifier } apply_the_clergy_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = wahabi_ulema } add_dynamic_modifier = { modifier = wahabi_ulema_dynamic_modifier } apply_wahabi_ulema_dynamic_effect_DYNMOD = yes } # Nation Specific Factions if = { limit = { has_idea = the_donju } add_dynamic_modifier = { modifier = the_donju_dynamic_modifier } apply_the_donju_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = saudi_royal_family } add_dynamic_modifier = { modifier = saudi_royal_family_dynamic_modifier } apply_saudi_royal_family_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = iranian_quds_force } add_dynamic_modifier = { modifier = iranian_quds_force_dynamic_modifier } apply_irgc_iranian_quds_force_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = foreign_jihadis } add_dynamic_modifier = { modifier = foreign_jihadis_force_dynamic_modifier } apply_foreign_jihadis_effect_DYNMOD = yes } if = { limit = { has_idea = wall_street } add_dynamic_modifier = { modifier = wall_street_force_dynamic_modifier } apply_wall_street_effect_DYNMOD = yes } if = { limit = { has_idea = chaebols } add_dynamic_modifier = { modifier = chaebols_force_dynamic_modifier } apply_chaebols_effect_DYNMOD = yes } } # Update the Dynamic Modifier Effects # This section pertains to the updating of the Dynamic Modifiers for the individual Internal Factions # Economic Factions apply_small_medium_business_owner_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = { value = small_medium_business_owners_opinion subtract = 50 } } set_variable = { SMBO_production_speed_industrial_complex_factor = base_modifier } set_variable = { SMBO_stability_factor = base_modifier } set_variable = { SMBO_consumer_goods_factor_var = base_modifier } set_variable = { SMBO_civilian_industry_tax_modifier_var = base_modifier } set_variable = { SMBO_production_speed_internet_station_factor_var = base_modifier } set_variable = { SMBO_civilian_factories_productivity_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 10%, -10%, 20% multiply_variable = { SMBO_production_speed_industrial_complex_factor = 0.003 } multiply_variable = { SMBO_stability_factor = 0.002 } multiply_variable = { SMBO_consumer_goods_factor_var = -0.002 } multiply_variable = { SMBO_civilian_industry_tax_modifier_var = 0.004 } multiply_variable = { SMBO_production_speed_internet_station_factor_var = 0.003 } multiply_variable = { SMBO_civilian_factories_productivity_var = 0.003 } } apply_international_bankers_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = { value = international_bankers_opinion subtract = 50 } } set_variable = { INTB_psof_var = base_modifier } set_variable = { INTB_local_resources_factor_var = base_modifier } set_variable = { INTB_trade_opinion_factor_var = base_modifier } set_variable = { INTB_democratic_acceptance_factor_var = base_modifier } set_variable = { INTB_democratic_drift_var = base_modifier } set_variable = { INTB_investment_duration_var = base_modifier } set_variable = { INTB_investment_cost_var = base_modifier } set_variable = { INTB_office_park_income_tax_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 10%, 20%, +25, +0.05 multiply_variable = { INTB_psof_var = 0.003 } multiply_variable = { INTB_local_resources_factor_var = 0.002 } multiply_variable = { INTB_trade_opinion_factor_var = 0.004 } multiply_variable = { INTB_democratic_acceptance_factor_var = global.monthly_internal_faction_tick_rate } multiply_variable = { INTB_democratic_drift_var = 0.001 } multiply_variable = { INTB_investment_duration_var = -0.002 } multiply_variable = { INTB_investment_cost_var = -0.002 } multiply_variable = { INTB_office_park_income_tax_modifier_var = 0.003 } } apply_fossil_fuel_industry_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = fossil_fuel_industry_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { FFI_local_resource_factor_var = base_modifier } set_variable = { FFI_fuel_gain_factor_var = base_modifier } set_variable = { FFI_justify_war_goal_time_var = base_modifier } set_variable = { FFI_oil_export_multiplier_modifier_var = base_modifier } set_variable = { FFI_production_speed_fuel_silo_factor_var = base_modifier } # Multiplies by the scaled factor - Max values: 20%, 25%, -15%, 20%, 15% multiply_variable = { FFI_local_resource_factor_var = 0.004 } multiply_variable = { FFI_fuel_gain_factor_var = 0.005 } multiply_variable = { FFI_justify_war_goal_time_var = -0.003 } multiply_variable = { FFI_oil_export_multiplier_modifier_var = 0.004 } multiply_variable = { FFI_production_speed_fuel_silo_factor_var = 0.003 } } apply_industrial_conglomerates_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = industrial_conglomerates_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { ICL_psifra_factor_var = base_modifier } set_variable = { ICL_local_resources_factor_var = base_modifier } set_variable = { ICL_communism_acceptance_factor_var = base_modifier } set_variable = { ICL_communism_drift = base_modifier } set_variable = { ICL_civilian_industry_tax_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 10%, 25, 0.05 multiply_variable = { ICL_psifra_factor_var = 0.003 } multiply_variable = { ICL_local_resources_factor_var = 0.002 } multiply_variable = { ICL_communism_acceptance_factor_var = global.monthly_internal_faction_tick_rate } multiply_variable = { ICL_communism_drift = 0.001 } multiply_variable = { ICL_civilian_industry_tax_modifier_var = 0.004 } } apply_oligarchs_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = oligarchs_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { OLI_psic_factor_var = base_modifier } set_variable = { OLI_local_resources_factor_var = base_modifier } set_variable = { OLI_communism_acceptance_factor_var = base_modifier } set_variable = { OLI_communism_drift_var = base_modifier } set_variable = { OLI_military_industrial_organization_funds_gain_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 5%, 25, 0.05 multiply_variable = { OLI_psic_factor_var = 0.003 } multiply_variable = { OLI_local_resources_factor_var = 0.004 } multiply_variable = { OLI_communism_acceptance_factor_var = global.monthly_internal_faction_tick_rate } multiply_variable = { OLI_communism_drift_var = 0.001 } multiply_variable = { OLI_military_industrial_organization_funds_gain_var = 0.004 } } apply_maritime_industry_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = maritime_industry_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { MRI_dockyard_factor_var = base_modifier } set_variable = { MRI_psvb_factor_var = base_modifier } set_variable = { MRI_industrial_capacity_dockyard_var = base_modifier } set_variable = { MRI_navy_max_range_factor_var = base_modifier } set_variable = { MRI_dockyard_productivity_var = base_modifier } set_variable = { MRI_dockyard_income_tax_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 20%, 20%, 10%, 20% multiply_variable = { MRI_dockyard_factor_var = 0.004 } multiply_variable = { MRI_psvb_factor_var = 0.004 } multiply_variable = { MRI_industrial_capacity_dockyard_var = 0.004 } multiply_variable = { MRI_navy_max_range_factor_var = 0.004 } multiply_variable = { MRI_dockyard_productivity_var = 0.004 } multiply_variable = { MRI_dockyard_income_tax_modifier_var = 0.004 } } apply_defense_industry_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = defense_industry_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { DEF_military_factory_speed_factor_var = base_modifier } set_variable = { DEF_factory_efficiency_gain_factor_var = base_modifier } set_variable = { DEF_factory_base_efficiency_factor_var = base_modifier } set_variable = { DEF_military_factories_productivity_var = base_modifier } set_variable = { DEF_military_industry_tax_modifier_var = base_modifier } set_variable = { DEF_military_industrial_organization_industrial_manufacturer_assign_cost_var = base_modifier } set_variable = { DEF_military_industrial_organization_design_team_assign_cost_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 5%, 25, 0.05 multiply_variable = { DEF_military_factory_speed_factor_var = 0.002 } multiply_variable = { DEF_factory_efficiency_gain_factor_var = 0.003 } multiply_variable = { DEF_factory_base_efficiency_factor_var = 0.003 } multiply_variable = { DEF_military_factories_productivity_var = 0.003 } multiply_variable = { DEF_military_industry_tax_modifier_var = 0.004 } multiply_variable = { DEF_military_industrial_organization_industrial_manufacturer_assign_cost_var = 0.003 } multiply_variable = { DEF_military_industrial_organization_design_team_assign_cost_var = 0.003 } } # Special Interest Factions apply_landowners_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = landowners_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { LAND_local_resources_factor_var = base_modifier } set_variable = { LAND_conscription_factor_var = base_modifier } set_variable = { LAND_psic_factor_var = base_modifier } set_variable = { LAND_office_park_income_tax_modifier_var = base_modifier } set_variable = { LAND_political_power_factor_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { LAND_local_resources_factor_var = 0.003 } multiply_variable = { LAND_conscription_factor_var = 0.003 } multiply_variable = { LAND_psic_factor_var = 0.003 } multiply_variable = { LAND_office_park_income_tax_modifier_var = 0.003 } multiply_variable = { LAND_political_power_factor_var = 0.003 } } apply_farmers_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = farmers_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { FARM_conscription_factor_var = base_modifier } set_variable = { FARM_consumer_goods_factor_var = base_modifier } set_variable = { FARM_monthly_pop_var = base_modifier } set_variable = { FARM_productivity_modifier_var = base_modifier } set_variable = { FARM_production_speed_agricultural_district_factor_var = base_modifier } # Multiplies by the scaled factor - Max values: 10%, -10%, 20%, 10%, 15%, 20% multiply_variable = { FARM_conscription_factor_var = 0.002 } multiply_variable = { FARM_consumer_goods_factor_var = -0.002 } multiply_variable = { FARM_monthly_pop_var = 0.004 } multiply_variable = { FARM_productivity_modifier_var = 0.003 } multiply_variable = { FARM_production_speed_agricultural_district_factor_var = 0.003 } } apply_labour_unions_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = labour_unions_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { LBU_production_start_effiency_factor_var = base_modifier } set_variable = { LBU_production_factory_efficiency_gain_factor_var = base_modifier } set_variable = { LBU_political_power_factor_var = base_modifier } set_variable = { LBU_health_cost_multiplier_modifier_var = base_modifier } set_variable = { LBU_social_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 25% multiply_variable = { LBU_production_start_effiency_factor_var = 0.002 } multiply_variable = { LBU_production_factory_efficiency_gain_factor_var = 0.002 } multiply_variable = { LBU_political_power_factor_var = 0.005 } multiply_variable = { LBU_health_cost_multiplier_modifier_var = -0.003 } multiply_variable = { LBU_social_cost_multiplier_modifier_var = -0.003 } } apply_the_military_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = the_military_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { MILI_army_org_factor_var = base_modifier } set_variable = { MILI_army_morale_factor_var = base_modifier } set_variable = { MILI_training_time_factor_var = base_modifier } set_variable = { MILI_air_base_production_factor_var = base_modifier } set_variable = { MILI_generate_wargoal_tension_var = base_modifier } set_variable = { MILI_personnel_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 5%, 10%, -20%, 25%, -25%, -25% multiply_variable = { MILI_army_org_factor_var = 0.001 } multiply_variable = { MILI_army_morale_factor_var = 0.002 } multiply_variable = { MILI_training_time_factor_var = -0.004 } multiply_variable = { MILI_air_base_production_factor_var = 0.005 } multiply_variable = { MILI_generate_wargoal_tension_var = -0.005 } multiply_variable = { MILI_personnel_cost_multiplier_modifier_var = -0.005 } } apply_intelligence_community_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = intelligence_community_opinion } add_to_temp_variable = { base_modifier = -50 } if = { limit = { NOT = { has_dlc = "La Resistance" } } set_variable = { INTC_decryption_factor_var = base_modifier } set_variable = { INTC_encryption_factor_var = base_modifier } multiply_variable = { INTC_decryption_factor_var = 0.004 } multiply_variable = { INTC_encryption_factor_var = 0.004 } } else = { set_variable = { INTC_civilian_intel_factor_var = base_modifier } set_variable = { INTC_army_intel_factor_var = base_modifier } set_variable = { INTC_navy_intel_factor_var = base_modifier } set_variable = { INTC_airforce_intel_factor_var = base_modifier } multiply_variable = { INTC_civilian_intel_factor_var = 0.003 } multiply_variable = { INTC_army_intel_factor_var = 0.003 } multiply_variable = { INTC_navy_intel_factor_var = 0.003 } multiply_variable = { INTC_airforce_intel_factor_var = 0.003 } } set_variable = { INTC_radar_station_factor_var = base_modifier } set_variable = { INTC_foreign_subversive_activies_upkeep_var = base_modifier } set_variable = { INTC_foreign_subversive_activies_var = base_modifier } set_variable = { INTC_foreign_influence_modifier = base_modifier } # Multiplies by the scaled factor - Max values: 20%, 20%, -25%, -20%, -20% multiply_variable = { INTC_radar_station_factor_var = 0.005 } multiply_variable = { INTC_foreign_subversive_activies_upkeep_var = -0.004 } multiply_variable = { INTC_foreign_subversive_activies_var = -0.004 } multiply_variable = { INTC_foreign_influence_modifier = 0.003 } } apply_communist_cadres_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = communist_cadres_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { COM_army_org_regain_var = base_modifier } set_variable = { COM_consumer_good_factor_var = base_modifier } set_variable = { COM_army_core_defence_factor_var = base_modifier } set_variable = { COM_mobilization_speed_var = base_modifier } set_variable = { COM_bureaucracy_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { COM_army_org_regain_var = 0.004 } multiply_variable = { COM_consumer_good_factor_var = -0.001 } multiply_variable = { COM_army_core_defence_factor_var = 0.002 } multiply_variable = { COM_mobilization_speed_var = 0.005 } multiply_variable = { COM_bureaucracy_cost_multiplier_modifier_var = -0.003 } } apply_the_priesthood_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = the_priesthood_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { PRIEST_stability_factor_var = base_modifier } set_variable = { PRIEST_monthly_population_var = base_modifier } set_variable = { PRIEST_political_power_var = base_modifier } set_variable = { PRIEST_education_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 25%, 30% multiply_variable = { PRIEST_stability_factor_var = 0.003 } multiply_variable = { PRIEST_monthly_population_var = 0.005 } multiply_variable = { PRIEST_political_power_var = 0.006 } multiply_variable = { PRIEST_education_cost_multiplier_modifier_var = -0.002 } } apply_the_ulema_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = the_ulema_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { ULE_stability_factor_var = base_modifier } set_variable = { ULE_monthly_population_var = base_modifier } set_variable = { ULE_political_power_var = base_modifier } set_variable = { ULE_education_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 25%, 30% multiply_variable = { ULE_stability_factor_var = 0.003 } multiply_variable = { ULE_monthly_population_var = 0.005 } multiply_variable = { ULE_political_power_var = 0.006 } multiply_variable = { ULE_education_cost_multiplier_modifier_var = -0.002 } } apply_the_clergy_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = the_clergy_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { CLER_stability_factor_var = base_modifier } set_variable = { CLER_monthly_population_var = base_modifier } set_variable = { CLER_political_power_var = base_modifier } set_variable = { CLER_education_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 25%, 30% multiply_variable = { CLER_stability_factor_var = 0.003 } multiply_variable = { CLER_monthly_population_var = 0.005 } multiply_variable = { CLER_political_power_var = 0.006 } multiply_variable = { CLER_education_cost_multiplier_modifier_var = -0.002 } } apply_wahabi_ulema_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = wahabi_ulema_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { WAHULE_stability_factor_var = base_modifier } set_variable = { WAHULE_monthly_population_var = base_modifier } set_variable = { WAHULE_political_power_var = base_modifier } set_variable = { WAHULE_fascism_drift_var = base_modifier } set_variable = { WAHULE_education_cost_multiplier_modifier_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 25%, 30% multiply_variable = { WAHULE_stability_factor_var = 0.003 } multiply_variable = { WAHULE_monthly_population_var = 0.005 } multiply_variable = { WAHULE_political_power_var = 0.006 } multiply_variable = { WAHULE_fascism_drift_var = 0.005 } multiply_variable = { WAHULE_education_cost_multiplier_modifier_var = -0.002 } } # Country Specific apply_the_donju_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = the_donju_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { DONJU_production_speed_industrial_complex_factor = base_modifier } set_variable = { DONJU_stability_factor = base_modifier } set_variable = { DONJU_consunmer_goods_factor_var = base_modifier } set_variable = { DONJU_infrastructure_production_speed_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { DONJU_production_speed_industrial_complex_factor = 0.003 } multiply_variable = { DONJU_stability_factor = 0.003 } multiply_variable = { DONJU_consunmer_goods_factor_var = -0.001 } multiply_variable = { DONJU_infrastructure_production_speed_var = 0.003 } } apply_saudi_royal_family_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = saudi_royal_family_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { SARF_political_power_factor_var = base_modifier } set_variable = { SARF_ideology_drift_defense_var = base_modifier } set_variable = { SARF_stability_factor_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { SARF_political_power_factor_var = 0.005 } multiply_variable = { SARF_ideology_drift_defense_var = 0.005 } multiply_variable = { SARF_stability_factor_var = 0.003 } } apply_irgc_iranian_quds_force_dynamic_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value if = { limit = { has_idea = iranian_quds_force } set_temp_variable = { base_modifier = iranian_quds_force_opinion } } add_to_temp_variable = { base_modifier = -50 } set_variable = { IRGC_commmunist_drift_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { IRGC_commmunist_drift_var = 0.002 } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% } apply_foreign_jihadis_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = foreign_jihadis_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { JIHAD_fascism_drift_var = base_modifier } set_variable = { JIHAD_non_core_manpower_var = base_modifier } set_variable = { JIHAD_special_forces_cap_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { JIHAD_fascism_drift_var = 0.002 } multiply_variable = { JIHAD_non_core_manpower_var = 0.002 } multiply_variable = { JIHAD_special_forces_cap_var = 0.004 } } apply_wall_street_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = wall_street_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { WALL_local_resources_factor_var = base_modifier } set_variable = { WALL_trade_opinion_factor_var = base_modifier } set_variable = { WALL_psic_factor_var = base_modifier } set_variable = { WALL_office_park_income_tax_modifier_var = base_modifier } set_variable = { WALL_investment_cost_var = base_modifier } set_variable = { WALL_investment_duration_var = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { WALL_local_resources_factor_var = 0.001 } multiply_variable = { WALL_trade_opinion_factor_var = 0.004 } multiply_variable = { WALL_psic_factor_var = 0.002 } multiply_variable = { WALL_office_park_income_tax_modifier_var = 0.003 } multiply_variable = { WALL_investment_cost_var = -0.002 } multiply_variable = { WALL_investment_duration_var = -0.002 } } apply_chaebols_effect_DYNMOD = { # Sets the base to current opinion then subtracts 50 from it to get the modifier value set_temp_variable = { base_modifier = chaebols_opinion } add_to_temp_variable = { base_modifier = -50 } set_variable = { CHAE_psic_factor_var = base_modifier } set_variable = { CHAE_psinfra_factor_avr = base_modifier } set_variable = { CHAE_local_resouces_factor = base_modifier } # Multiplies by the scaled factor - Max values: 15%, 15%, 15% multiply_variable = { CHAE_psic_factor_var = 0.003 } multiply_variable = { CHAE_psinfra_factor_avr = 0.003 } multiply_variable = { CHAE_local_resouces_factor = 0.003 } } autocrats_opinion_change = { #Autocrats get faction effects double if = { limit = { OR = { western_autocrats_are_in_power = yes #Western Autocrats check_variable = { ruling_party = 7 } #Emerging autocrats check_variable = { ruling_party = 13 } #Neutral autocrats check_variable = { ruling_party = 21 } #fascists check_variable = { ruling_party = 22 } #military junta } check_variable = { temp_opinion > 0 } } multiply_temp_variable = { temp_opinion = 2 } } } # Update Opinion # Methods for changing internal faction opinions # HOW TO USE: # effect = { # set_temp_variable = { temp_opinion = -# } for reducing opinion # set_temp_variable = { temp_opinion = # } for raising opinion # change_defense_industry_opinion = yes #Automatically will handle any updates # } change_small_medium_business_owners_opinion = { if = { limit = { has_idea = small_medium_business_owners } autocrats_opinion_change = yes add_to_variable = { small_medium_business_owners_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { small_medium_business_owners_min = min_opinion } set_temp_variable = { small_medium_business_owners_max = max_opinion } # For the Minimum Opinion set_variable = { small_medium_business_owners_opinion_min = 50 } add_to_variable = { small_medium_business_owners_opinion_min = min_opinion } clamp_variable = { var = small_medium_business_owners_opinion min = small_medium_business_owners_min max = small_medium_business_owners_max } custom_effect_tooltip = display_small_medium_business_owners_opinion # Updates the Dynamic Modifiers apply_small_medium_business_owner_effect_DYNMOD = yes } } # Industrial Conglomerates change_industrial_conglomerates_opinion = { if = { limit = { has_idea = industrial_conglomerates } autocrats_opinion_change = yes add_to_variable = { industrial_conglomerates_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { industrial_conglomerates_min = min_opinion } set_temp_variable = { industrial_conglomerates_max = max_opinion } # For the Minimum Opinion set_variable = { industrial_conglomerates_opinion_min = 50 } add_to_variable = { industrial_conglomerates_opinion_min = min_opinion } clamp_variable = { var = industrial_conglomerates_opinion min = industrial_conglomerates_min max = industrial_conglomerates_max } custom_effect_tooltip = display_industrial_conglomerates_opinion # Updates the Dynamic Modifiers apply_industrial_conglomerates_dynamic_effect_DYNMOD = yes } } # Fossil Fuel Industry change_fossil_fuel_industry_opinion = { if = { limit = { has_idea = fossil_fuel_industry } autocrats_opinion_change = yes add_to_variable = { fossil_fuel_industry_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } if = { limit = { has_idea = rentier_state } add_to_temp_variable = { min_opinion = 15 } } if = { limit = { OR = { has_idea = mining_industrialists_ast has_idea = mining_industrialists_ast_1 has_idea = mining_industrialists_ast_2 has_idea = mining_industrialists_ast_3 } } add_to_temp_variable = { min_opinion = -20 } } set_temp_variable = { fossil_fuel_industry_min = min_opinion } set_temp_variable = { fossil_fuel_industry_max = max_opinion } # For the Minimum Opinion set_variable = { fossil_fuel_industry_opinion_min = 50 } add_to_variable = { fossil_fuel_industry_opinion_min = min_opinion } clamp_variable = { var = fossil_fuel_industry_opinion min = fossil_fuel_industry_min max = fossil_fuel_industry_max } custom_effect_tooltip = display_fossil_fuel_industry_opinion apply_fossil_fuel_industry_dynamic_effect_DYNMOD = yes } } # Military-Industrial Complex change_defense_industry_opinion = { if = { limit = { has_idea = defense_industry } autocrats_opinion_change = yes add_to_variable = { defense_industry_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { defense_industry_min = min_opinion } set_temp_variable = { defense_industry_max = max_opinion } # For the Minimum Opinion set_variable = { defense_industry_opinion_min = 50 } add_to_variable = { defense_industry_opinion_min = min_opinion } clamp_variable = { var = defense_industry_opinion min = defense_industry_min max = defense_industry_max } custom_effect_tooltip = display_defense_industry_opinion apply_defense_industry_dynamic_effect_DYNMOD = yes } } # Maritime Industry change_maritime_industry_opinion = { if = { limit = { has_idea = maritime_industry } autocrats_opinion_change = yes add_to_variable = { maritime_industry_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { maritime_industry_min = min_opinion } set_temp_variable = { maritime_industry_max = max_opinion } # For the Minimum Opinion set_variable = { maritime_industry_opinion_min = 50 } add_to_variable = { maritime_industry_opinion_min = min_opinion } clamp_variable = { var = maritime_industry_opinion min = maritime_industry_min max = maritime_industry_max } custom_effect_tooltip = display_maritime_industry_opinion apply_maritime_industry_dynamic_effect_DYNMOD = yes } } # International Bankers change_international_bankers_opinion = { if = { limit = { has_idea = international_bankers } autocrats_opinion_change = yes add_to_variable = { international_bankers_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { international_bankers_min = min_opinion } set_temp_variable = { international_bankers_max = max_opinion } # For the Minimum Opinion set_variable = { international_bankers_opinion_min = 50 } add_to_variable = { international_bankers_opinion_min = min_opinion } clamp_variable = { var = international_bankers_opinion min = international_bankers_min max = international_bankers_max } custom_effect_tooltip = display_international_bankers_opinion apply_international_bankers_dynamic_effect_DYNMOD = yes } } # Oligarchs change_oligarchs_opinion = { if = { limit = { has_idea = oligarchs } autocrats_opinion_change = yes add_to_variable = { oligarchs_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { oligarchs_min = min_opinion } set_temp_variable = { oligarchs_max = max_opinion } # For the Minimum Opinion set_variable = { oligarchs_opinion_min = 50 } add_to_variable = { oligarchs_opinion_min = min_opinion } clamp_variable = { var = oligarchs_opinion min = oligarchs_min max = oligarchs_max } custom_effect_tooltip = display_oligarchs_opinion apply_oligarchs_dynamic_effect_DYNMOD = yes } } # Farmers change_farmers_opinion = { if = { limit = { has_idea = farmers } #Autocrats get faction effects double if = { limit = { OR = { western_autocrats_are_in_power = yes #Western Autocrats check_variable = { ruling_party = 7 } #Emerging autocrats check_variable = { ruling_party = 13 } #Neutral autocrats check_variable = { ruling_party = 21 } #fascists check_variable = { ruling_party = 22 } #military junta has_idea = syria_increased_agricultural_subsidies #increasing agricultural subsidies gets farmers' effects double } check_variable = { temp_opinion > 0 } } multiply_temp_variable = { temp_opinion = 2 } } add_to_variable = { farmers_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } if = { limit = { original_tag = BRA } if = { limit = { has_idea = BRA_idea_pro_farmers } add_to_temp_variable = { min_opinion = 5 } } if = { limit = { has_idea = BRA_idea_pro_farmers_2 } add_to_temp_variable = { min_opinion = 10 } } } if = { limit = { original_tag = COM } if = { limit = { has_idea = COM_pro_farmers_idea } add_to_temp_variable = { farmers_min = 5 } } } set_temp_variable = { farmers_min = min_opinion } set_temp_variable = { farmers_max = max_opinion } # For the Minimum Opinion set_variable = { farmers_opinion_min = 50 } add_to_variable = { farmers_opinion_min = min_opinion } clamp_variable = { var = farmers_opinion min = farmers_min max = farmers_max } custom_effect_tooltip = display_farmers_opinion apply_farmers_dynamic_effect_DYNMOD = yes } } # Landowners change_landowners_opinion = { if = { limit = { has_idea = landowners } autocrats_opinion_change = yes add_to_variable = { landowners_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } # Custom Min/Max Opinion Instructions # if = { # limit = { tag = TAG } # add_to_temp_variable = { min_opinion = x } # } if = { limit = { tag = SPR } if = { limit = { has_idea = SPR_the_hands_of_the_few_idea } add_to_temp_variable = { min_opinion = 15 } } } if = { limit = { tag = SIN } if = { limit = { has_idea = SIN_support_for_the_business } add_to_temp_variable = { min_opinion = 10 } } } set_temp_variable = { landowners_min = min_opinion } set_temp_variable = { landowners_max = max_opinion } # For the Minimum Opinion set_variable = { landowners_opinion_min = 50 } add_to_variable = { landowners_opinion_min = min_opinion } clamp_variable = { var = landowners_opinion min = landowners_min max = landowners_max } custom_effect_tooltip = display_landowners_opinion apply_landowners_dynamic_effect_DYNMOD = yes } } # Labour Unions change_labour_unions_opinion = { if = { limit = { has_idea = labour_unions } autocrats_opinion_change = yes add_to_variable = { labour_unions_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } # Custom Min/Max Opinion Instructions # if = { # limit = { tag = TAG } # add_to_temp_variable = { min_opinion = x } # } if = { limit = { tag = SPR } if = { limit = { has_idea = SPR_unionization_of_faith_idea } add_to_temp_variable = { min_opinion = 15 } } } if = { limit = { tag = SIN } if = { limit = { has_idea = SIN_support_for_the_workers } add_to_temp_variable = { min_opinion = 10 } } } if = { limit = { tag = DEN } if = { limit = { has_idea = DEN_in_need_of_banking_reforms_idea } add_to_temp_variable = { max_opinion = -15 } } if = { limit = { has_idea = DEN_intensify_the_flexicurity_idea } add_to_temp_variable = { min_opinion = 10 } } } if = { limit = { tag = BRA } if = { limit = { has_idea = BRA_idea_pro_unions } add_to_temp_variable = { min_opinion = 15 } } } set_temp_variable = { labour_unions_min = min_opinion } set_temp_variable = { labour_unions_max = max_opinion } # For the Minimum Opinion set_variable = { labour_unions_opinion_min = 50 } add_to_variable = { labour_unions_opinion_min = min_opinion } clamp_variable = { var = labour_unions_opinion min = labour_unions_min max = labour_unions_max } custom_effect_tooltip = display_labour_unions_opinion apply_labour_unions_dynamic_effect_DYNMOD = yes } } # Communist Cadres change_communist_cadres_opinion = { if = { limit = { has_idea = communist_cadres } autocrats_opinion_change = yes add_to_variable = { communist_cadres_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { communist_cadres_min = min_opinion } set_temp_variable = { communist_cadres_max = max_opinion } # For the Minimum Opinion set_variable = { communist_cadres_opinion_min = 50 } add_to_variable = { communist_cadres_opinion_min = min_opinion } clamp_variable = { var = communist_cadres_opinion min = communist_cadres_min max = communist_cadres_max } custom_effect_tooltip = display_communist_cadres_opinion apply_communist_cadres_dynamic_effect_DYNMOD = yes } } # The Clergy change_the_clergy_opinion = { if = { limit = { has_idea = the_clergy } autocrats_opinion_change = yes add_to_variable = { the_clergy_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { the_clergy_min = min_opinion } set_temp_variable = { the_clergy_max = max_opinion } # For the Minimum Opinion set_variable = { the_clergy_opinion_min = 50 } add_to_variable = { the_clergy_opinion_min = min_opinion } clamp_variable = { var = the_clergy_opinion min = the_clergy_min max = the_clergy_max } custom_effect_tooltip = display_the_clergy_opinion apply_the_clergy_dynamic_effect_DYNMOD = yes } } # The Ulema change_the_ulema_opinion = { if = { limit = { has_idea = the_ulema } autocrats_opinion_change = yes add_to_variable = { the_ulema_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { the_ulema_min = min_opinion } set_temp_variable = { the_ulema_max = max_opinion } # For the Minimum Opinion set_variable = { the_ulema_opinion_min = 50 } add_to_variable = { the_ulema_opinion_min = min_opinion } clamp_variable = { var = the_ulema_opinion min = the_ulema_min max = the_ulema_max } custom_effect_tooltip = display_the_ulema_opinion apply_the_ulema_dynamic_effect_DYNMOD = yes } } # The Priesthood change_the_priesthood_opinion = { if = { limit = { has_idea = the_priesthood } autocrats_opinion_change = yes add_to_variable = { the_priesthood_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { the_priesthood_min = min_opinion } set_temp_variable = { the_priesthood_max = max_opinion } # For the Minimum Opinion set_variable = { the_priesthood_opinion_min = 50 } add_to_variable = { the_priesthood_opinion_min = min_opinion } clamp_variable = { var = the_priesthood_opinion min = the_priesthood_min max = the_priesthood_max } custom_effect_tooltip = display_the_priesthood_opinion apply_the_priesthood_dynamic_effect_DYNMOD = yes } } # Wahabi Ulema change_the_wahabi_ulema_opinion = { if = { limit = { has_idea = wahabi_ulema } autocrats_opinion_change = yes add_to_variable = { wahabi_ulema_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { wahabi_ulema_min = min_opinion } set_temp_variable = { wahabi_ulema_max = max_opinion } # For the Minimum Opinion set_variable = { wahabi_ulema_opinion_min = 50 } add_to_variable = { wahabi_ulema_opinion_min = min_opinion } clamp_variable = { var = wahabi_ulema_opinion min = wahabi_ulema_min max = wahabi_ulema_max } custom_effect_tooltip = display_wahabi_ulema_opinion apply_wahabi_ulema_dynamic_effect_DYNMOD = yes } } # The Military change_the_military_opinion = { if = { limit = { has_idea = the_military } autocrats_opinion_change = yes add_to_variable = { the_military_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } if = { limit = { has_idea = defence_03 } add_to_temp_variable = { min_opinion = 5 } } else_if = { limit = { has_idea = defence_04 } add_to_temp_variable = { min_opinion = 10 } } else_if = { limit = { has_idea = defence_05 } add_to_temp_variable = { min_opinion = 15 } } else_if = { limit = { has_idea = defence_06 } add_to_temp_variable = { min_opinion = 20 } } else_if = { limit = { has_idea = defence_07 } add_to_temp_variable = { min_opinion = 25 } } else_if = { limit = { has_idea = defence_08 } add_to_temp_variable = { min_opinion = 30 } } else_if = { limit = { has_idea = defence_09 } add_to_temp_variable = { min_opinion = 35 } } if = { limit = { has_idea = internal_factions_allowed_foreign_nationals_military } add_to_temp_variable = { max_opinion = -5 } } set_temp_variable = { the_military_min = min_opinion } set_temp_variable = { the_military_max = max_opinion } # For the Minimum Opinion set_variable = { the_military_opinion_min = 50 } add_to_variable = { the_military_opinion_min = min_opinion } clamp_variable = { var = the_military_opinion min = the_military_min max = the_military_max } if = { limit = { original_tag = PER NOT = { has_country_flag = PER_turn_off_IR_stuff } } custom_effect_tooltip = display_the_irgc_opinion } else = { custom_effect_tooltip = display_the_military_opinion } apply_the_military_dynamic_effect_DYNMOD = yes } } # Intelligence Community change_intelligence_community_opinion = { if = { limit = { has_idea = intelligence_community } autocrats_opinion_change = yes add_to_variable = { intelligence_community_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { intelligence_community_min = min_opinion } set_temp_variable = { intelligence_community_max = max_opinion } # For the Minimum Opinion set_variable = { intelligence_community_opinion_min = 50 } add_to_variable = { intelligence_community_opinion_min = min_opinion } clamp_variable = { var = intelligence_community_opinion min = intelligence_community_min max = intelligence_community_max } custom_effect_tooltip = display_intelligence_community_opinion apply_intelligence_community_dynamic_effect_DYNMOD = yes } } # The Donju change_the_donju_opinion = { if = { limit = { has_idea = the_donju } autocrats_opinion_change = yes add_to_variable = { the_donju_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { the_donju_min = min_opinion } set_temp_variable = { the_donju_max = max_opinion } # For the Minimum Opinion set_variable = { the_donju_opinion_min = 50 } add_to_variable = { the_donju_opinion_min = min_opinion } clamp_variable = { var = the_donju_opinion min = the_donju_min max = the_donju_max } custom_effect_tooltip = display_the_donju_opinion apply_the_donju_dynamic_effect_DYNMOD = yes } } # Saudi Royal Family change_saudi_royal_family_opinion = { if = { limit = { has_idea = saudi_royal_family } autocrats_opinion_change = yes add_to_variable = { saudi_royal_family_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { saudi_royal_family_min = min_opinion } set_temp_variable = { saudi_royal_family_max = max_opinion } # For the Minimum Opinion set_variable = { saudi_royal_family_opinion_min = 50 } add_to_variable = { saudi_royal_family_opinion_min = min_opinion } clamp_variable = { var = saudi_royal_family_opinion min = saudi_royal_family_min max = saudi_royal_family_max } custom_effect_tooltip = display_saudi_royal_family_opinion apply_saudi_royal_family_dynamic_effect_DYNMOD = yes } } # Foreign Jihadist change_foreign_jihadis_opinion = { if = { limit = { has_idea = foreign_jihadis } autocrats_opinion_change = yes add_to_variable = { foreign_jihadis_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { foreign_jihadis_min = min_opinion } set_temp_variable = { foreign_jihadis_max = max_opinion } # For the Minimum Opinion set_variable = { foreign_jihadis_opinion_min = 50 } add_to_variable = { foreign_jihadis_opinion_min = min_opinion } clamp_variable = { var = foreign_jihadis_opinion min = foreign_jihadis_min max = foreign_jihadis_max } custom_effect_tooltip = display_foreign_jihadis_opinion apply_foreign_jihadis_effect_DYNMOD = yes } } # Iranian Quds Force change_iranian_quds_force_opinion = { if = { limit = { has_idea = iranian_quds_force } autocrats_opinion_change = yes add_to_variable = { iranian_quds_force_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { iranian_quds_force_min = min_opinion } set_temp_variable = { iranian_quds_force_max = max_opinion } # For the Minimum Opinion set_variable = { iranian_quds_force_opinion_min = 50 } add_to_variable = { iranian_quds_force_opinion_min = min_opinion } clamp_variable = { var = iranian_quds_force_opinion min = iranian_quds_force_min max = iranian_quds_force_max } custom_effect_tooltip = display_iranian_quds_force_opinion apply_irgc_iranian_quds_force_dynamic_effect_DYNMOD = yes } } # Chaebols change_chaebols_opinion = { if = { limit = { has_idea = chaebols } autocrats_opinion_change = yes add_to_variable = { chaebols_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { chaebols_min = min_opinion } set_temp_variable = { chaebols_max = max_opinion } # For the Minimum Opinion set_variable = { chaebols_opinion_min = 50 } add_to_variable = { chaebols_opinion_min = min_opinion } clamp_variable = { var = chaebols_opinion min = chaebols_min max = chaebols_max } custom_effect_tooltip = display_chaebols_opinion apply_chaebols_effect_DYNMOD = yes } } # Wall Street change_wall_street_opinion = { if = { limit = { has_idea = wall_street } autocrats_opinion_change = yes add_to_variable = { wall_street_opinion = temp_opinion } set_temp_variable = { min_opinion = 0 } set_temp_variable = { max_opinion = 100 } set_temp_variable = { wall_street_min = min_opinion } set_temp_variable = { wall_street_max = max_opinion } # For the Minimum Opinion set_variable = { wall_street_opinion_min = 50 } add_to_variable = { wall_street_opinion_min = min_opinion } clamp_variable = { var = wall_street_opinion min = wall_street_min max = wall_street_max } custom_effect_tooltip = display_wall_street_opinion apply_wall_street_effect_DYNMOD = yes if = { limit = { check_variable = { temp_opinion > 0 } check_variable = { USA_strength_of_wall_street_var < 50 } } set_temp_variable = { modify_wall_street = 2 } USA_modify_strength_of_wall_street = yes } else_if = { limit = { check_variable = { temp_opinion < 0 } check_variable = { USA_strength_of_wall_street_var > 0 } } set_temp_variable = { modify_wall_street = -2 } USA_modify_strength_of_wall_street = yes } } } # This changes the opinion of all active internal factions # set_temp_variable = { temp_all_opinion = -+ # } change_all_internal_faction_opinion = { set_temp_variable = { temp_opinion = temp_all_opinion } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_fossil_fuel_industry_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes change_international_bankers_opinion = yes change_oligarchs_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_labour_unions_opinion = yes change_communist_cadres_opinion = yes change_the_clergy_opinion = yes change_the_ulema_opinion = yes change_the_priesthood_opinion = yes change_the_wahabi_ulema_opinion = yes change_the_military_opinion = yes change_intelligence_community_opinion = yes change_the_donju_opinion = yes change_saudi_royal_family_opinion = yes change_foreign_jihadis_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes } # Internal Faction Debugging Tools: # The following command sets all of one's Internal Factions to maximum # This is only used for cheating or extensive testing. :shrug: set_to_max_internal_faction_opinions = { custom_effect_tooltip = set_full_internal_faction_opinions if = { limit = { has_idea = small_medium_business_owners } set_variable = { small_medium_business_owners_opinion = 100 } apply_small_medium_business_owner_effect_DYNMOD = yes } if = { limit = { has_idea = foreign_jihadis } set_variable = { foreign_jihadis_opinion = 100 } apply_foreign_jihadis_effect_DYNMOD = yes } if = { limit = { has_idea = saudi_royal_family } set_variable = { saudi_royal_family_opinion = 100 } apply_saudi_royal_family_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = wahabi_ulema } set_variable = { wahabi_ulema_opinion = 100 } apply_wahabi_ulema_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_priesthood } set_variable = { the_priesthood_opinion = 100 } apply_the_priesthood_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_ulema } set_variable = { the_ulema_opinion = 100 } apply_the_ulema_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_clergy } set_variable = { the_clergy_opinion = 100 } apply_the_clergy_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = communist_cadres } set_variable = { communist_cadres_opinion = 100 } apply_communist_cadres_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = farmers } set_variable = { farmers_opinion = 100 } apply_farmers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = landowners } set_variable = { landowners_opinion = 100 } apply_landowners_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = labour_unions } set_variable = { labour_unions_opinion = 100 } apply_labour_unions_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = intelligence_community } set_variable = { intelligence_community_opinion = 100 } apply_intelligence_community_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_military } set_variable = { the_military_opinion = 100 } apply_the_military_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = defense_industry } set_variable = { defense_industry_opinion = 100 } apply_defense_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = maritime_industry } set_variable = { maritime_industry_opinion = 100 } apply_maritime_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = oligarchs } set_variable = { oligarchs_opinion = 100 } apply_oligarchs_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = chaebols } set_variable = { chaebols_opinion = 100 } apply_chaebols_effect_DYNMOD = yes } if = { limit = { has_idea = industrial_conglomerates } set_variable = { industrial_conglomerates_opinion = 100 } apply_industrial_conglomerates_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = fossil_fuel_industry } set_variable = { fossil_fuel_industry_opinion = 100 } apply_fossil_fuel_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = wall_street } set_variable = { wall_street_opinion = 100 } apply_wall_street_effect_DYNMOD = yes } if = { limit = { has_idea = international_bankers } set_variable = { international_bankers_opinion = 100 } apply_international_bankers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_donju } set_variable = { the_donju_opinion = 100 } apply_the_donju_dynamic_effect_DYNMOD = yes } } # The following command sets all of one's Internal Factions to neutral or 50 # Again this is used for testing or debugging. reset_all_internal_faction_opinions = { custom_effect_tooltip = reset_internal_faction_opinion # Economic Factions if = { limit = { has_idea = small_medium_business_owners } set_variable = { small_medium_business_owners_opinion = 50 } } if = { limit = { has_idea = international_bankers } set_variable = { international_bankers_opinion = 50 } } if = { limit = { has_idea = oligarchs } set_variable = { oligarchs_opinion = 50 } } if = { limit = { has_idea = industrial_conglomerates } set_variable = { industrial_conglomerates_opinion = 50 } } if = { limit = { has_idea = fossil_fuel_industry } set_variable = { fossil_fuel_industry_opinion = 50 } } # Militaristic Factions if = { limit = { has_idea = intelligence_community } set_variable = { intelligence_community_opinion = 50 } } if = { limit = { has_idea = the_military } set_variable = { the_military_opinion = 50 } } if = { limit = { has_idea = defense_industry } set_variable = { defense_industry_opinion = 50 } } if = { limit = { has_idea = maritime_industry } set_variable = { maritime_industry_opinion = 50 } } # Special Interest Groups if = { limit = { has_idea = wahabi_ulema } set_variable = { wahabi_ulema_opinion = 50 } } if = { limit = { has_idea = the_priesthood } set_variable = { the_priesthood_opinion = 50 } } if = { limit = { has_idea = the_ulema } set_variable = { the_ulema_opinion = 50 } } if = { limit = { has_idea = the_clergy } set_variable = { the_clergy_opinion = 50 } } if = { limit = { has_idea = communist_cadres } set_variable = { communist_cadres_opinion = 50 } } if = { limit = { has_idea = farmers } set_variable = { farmers_opinion = 50 } } if = { limit = { has_idea = landowners } set_variable = { landowners_opinion = 50 } } if = { limit = { has_idea = labour_unions } set_variable = { labour_unions_opinion = 50 } } if = { limit = { has_idea = foreign_jihadis } set_variable = { foreign_jihadis_opinion = 50 } } if = { limit = { has_idea = iranian_quds_force } set_variable = { iranian_quds_force_opinion = 50 } } if = { limit = { has_idea = saudi_royal_family } set_variable = { saudi_royal_family_opinion = 50 } } if = { limit = { has_idea = chaebols } set_variable = { chaebols_opinion = 50 } } if = { limit = { has_idea = wall_street } set_variable = { wall_street_opinion = 50 } } if = { limit = { has_idea = the_donju } set_variable = { the_donju_opinion = 50 } } } # Effect: monthly_tick_internal_factions_opinion # Purpose: Ticks down the monthly internal factions monthly_tick_internal_factions_opinion = { # Skip entirely when tick rate is 0 (game rule: no decay) if = { limit = { NOT = { check_variable = { global.monthly_internal_faction_tick_rate < 0.01 } } } # Economic Factions if = { limit = { has_idea = small_medium_business_owners check_variable = { small_medium_business_owners_opinion > small_medium_business_owners_opinion_min } } subtract_from_variable = { small_medium_business_owners_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = small_medium_business_owners_opinion min = small_medium_business_owners_opinion_min } apply_small_medium_business_owner_effect_DYNMOD = yes } if = { limit = { has_idea = international_bankers check_variable = { international_bankers_opinion > international_bankers_opinion_min } } subtract_from_variable = { international_bankers_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = international_bankers_opinion min = international_bankers_opinion_min } apply_international_bankers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = oligarchs check_variable = { oligarchs_opinion > oligarchs_opinion_min } } subtract_from_variable = { oligarchs_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = oligarchs_opinion min = oligarchs_opinion_min } apply_oligarchs_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = industrial_conglomerates check_variable = { industrial_conglomerates_opinion > industrial_conglomerates_opinion_min } } subtract_from_variable = { industrial_conglomerates_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = industrial_conglomerates_opinion min = industrial_conglomerates_opinion_min } apply_industrial_conglomerates_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = fossil_fuel_industry check_variable = { fossil_fuel_industry_opinion > fossil_fuel_industry_opinion_min } } subtract_from_variable = { fossil_fuel_industry_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = fossil_fuel_industry_opinion min = fossil_fuel_industry_opinion_min } apply_fossil_fuel_industry_dynamic_effect_DYNMOD = yes } # Militaristic Factions if = { limit = { has_idea = intelligence_community check_variable = { intelligence_community_opinion > intelligence_community_opinion_min } } subtract_from_variable = { intelligence_community_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = intelligence_community_opinion min = intelligence_community_opinion_min } apply_intelligence_community_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_military check_variable = { the_military_opinion > the_military_opinion_min } } subtract_from_variable = { the_military_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = the_military_opinion min = the_military_opinion_min } apply_the_military_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = defense_industry check_variable = { defense_industry_opinion > defense_industry_opinion_min } } subtract_from_variable = { defense_industry_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = defense_industry_opinion min = defense_industry_opinion_min } apply_defense_industry_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = maritime_industry check_variable = { maritime_industry_opinion > maritime_industry_opinion_min } } subtract_from_variable = { maritime_industry_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = maritime_industry_opinion min = maritime_industry_opinion_min } apply_maritime_industry_dynamic_effect_DYNMOD = yes } # Special Interest Groups if = { limit = { has_idea = wahabi_ulema check_variable = { wahabi_ulema_opinion > wahabi_ulema_opinion_min } } if = { limit = { NOT = { has_variable = wahabi_ulema_opinion_min } } set_variable = { wahabi_ulema_opinion_min = 50 } } subtract_from_variable = { wahabi_ulema_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = wahabi_ulema_opinion min = wahabi_ulema_opinion_min } apply_wahabi_ulema_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_priesthood check_variable = { the_priesthood_opinion > the_priesthood_opinion_min } } subtract_from_variable = { the_priesthood_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = the_priesthood_opinion min = the_priesthood_opinion_min } apply_the_priesthood_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_ulema check_variable = { the_ulema_opinion > the_ulema_opinion_min } } subtract_from_variable = { the_ulema_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = the_ulema_opinion min = the_ulema_opinion_min } apply_the_ulema_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = the_clergy check_variable = { the_clergy_opinion > the_clergy_opinion_min } } subtract_from_variable = { the_clergy_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = the_clergy_opinion min = the_clergy_opinion_min } apply_the_clergy_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = communist_cadres check_variable = { communist_cadres_opinion > communist_cadres_opinion_min } } subtract_from_variable = { communist_cadres_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = communist_cadres_opinion min = communist_cadres_opinion_min } apply_communist_cadres_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = farmers check_variable = { farmers_opinion > farmers_opinion_min } } if = { limit = { NOT = { has_variable = farmers_opinion_min } } set_variable = { farmers_opinion_min = 50 } } subtract_from_variable = { farmers_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = farmers_opinion min = farmers_opinion_min } apply_farmers_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = landowners check_variable = { landowners_opinion > landowners_opinion_min } } subtract_from_variable = { landowners_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = landowners_opinion min = landowners_opinion_min } apply_landowners_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = labour_unions check_variable = { labour_unions_opinion > labour_unions_opinion_min } } subtract_from_variable = { labour_unions_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = labour_unions_opinion min = labour_unions_opinion_min } apply_labour_unions_dynamic_effect_DYNMOD = yes } # Nation Specific if = { limit = { has_idea = foreign_jihadis check_variable = { foreign_jihadis_opinion > foreign_jihadis_opinion_min } } if = { limit = { NOT = { has_variable = foreign_jihadis_opinion_min } } set_variable = { foreign_jihadis_opinion_min = 50 } } subtract_from_variable = { foreign_jihadis_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = foreign_jihadis_opinion min = foreign_jihadis_opinion_min } apply_foreign_jihadis_effect_DYNMOD = yes } if = { limit = { has_idea = iranian_quds_force check_variable = { iranian_quds_force_opinion > iranian_quds_force_opinion_min } } subtract_from_variable = { iranian_quds_force_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = iranian_quds_force_opinion min = iranian_quds_force_opinion_min } apply_irgc_iranian_quds_force_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = saudi_royal_family check_variable = { saudi_royal_family_opinion > saudi_royal_family_opinion_min } } subtract_from_variable = { saudi_royal_family_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = saudi_royal_family_opinion min = saudi_royal_family_opinion_min } apply_saudi_royal_family_dynamic_effect_DYNMOD = yes } if = { limit = { has_idea = chaebols check_variable = { chaebols_opinion > chaebols_opinion_min } } subtract_from_variable = { chaebols_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = chaebols_opinion min = chaebols_opinion_min } apply_chaebols_effect_DYNMOD = yes } if = { limit = { has_idea = wall_street check_variable = { wall_street_opinion > wall_street_opinion_min } } subtract_from_variable = { wall_street_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = wall_street_opinion min = wall_street_opinion_min } apply_wall_street_effect_DYNMOD = yes } if = { limit = { has_idea = the_donju check_variable = { the_donju_opinion > the_donju_opinion_min } } subtract_from_variable = { the_donju_opinion = global.monthly_internal_faction_tick_rate } clamp_variable = { var = the_donju_opinion min = the_donju_opinion_min } apply_the_donju_dynamic_effect_DYNMOD = yes } } # end tick rate > 0 guard } # Effect: copy_internal_factions_from # Purpose: Copies internal factions from the selected nation # Parameter: # - nation_to_copy_from - accepts all tags as a variable copy_internal_factions = { var:nation_to_copy_from = { if = { limit = { has_idea = small_medium_business_owners } PREV = { add_ideas = small_medium_business_owners } } if = { limit = { has_idea = international_bankers } PREV = { add_ideas = international_bankers } } if = { limit = { has_idea = fossil_fuel_industry } PREV = { add_ideas = fossil_fuel_industry } } if = { limit = { has_idea = industrial_conglomerates } PREV = { add_ideas = industrial_conglomerates } } if = { limit = { has_idea = oligarchs } PREV = { add_ideas = oligarchs } } if = { limit = { has_idea = maritime_industry } PREV = { add_ideas = maritime_industry } } if = { limit = { has_idea = defense_industry } PREV = { add_ideas = defense_industry } } if = { limit = { has_idea = the_military } PREV = { add_ideas = the_military } } if = { limit = { has_idea = intelligence_community } PREV = { add_ideas = intelligence_community } } if = { limit = { has_idea = labour_unions } PREV = { add_ideas = labour_unions } } if = { limit = { has_idea = landowners } PREV = { add_ideas = landowners } } if = { limit = { has_idea = farmers } PREV = { add_ideas = farmers } } if = { limit = { has_idea = communist_cadres PREV = { OR = { check_variable = { ruling_party = 4 } check_variable = { ruling_party = 19 } } } } PREV = { add_ideas = communist_cadres } } if = { limit = { has_idea = the_priesthood } PREV = { add_ideas = the_priesthood } } if = { limit = { has_idea = the_ulema } PREV = { add_ideas = the_ulema } } if = { limit = { has_idea = the_clergy } PREV = { add_ideas = the_clergy } } if = { limit = { has_idea = wahabi_ulema } PREV = { add_ideas = wahabi_ulema } } if = { limit = { has_idea = the_donju } PREV = { add_ideas = the_donju } } if = { limit = { has_idea = saudi_royal_family PREV = { OR = { check_variable = { ruling_party = 10 } check_variable = { ruling_party = 23 } western_autocrats_are_in_power = yes } } } PREV = { add_ideas = saudi_royal_family } } if = { limit = { has_idea = iranian_quds_force PREV = { NOT = { OR = { has_government = democratic has_government = fascism } } } } PREV = { add_ideas = iranian_quds_force } } if = { limit = { has_idea = foreign_jihadis PREV = { check_variable = { ruling_party = 11 } } } PREV = { add_ideas = foreign_jihadis } } if = { limit = { has_idea = wall_street } PREV = { add_ideas = wall_street } } if = { limit = { has_idea = chaebols } PREV = { add_ideas = chaebols } } } }