on_actions = { on_daily_ENG = { effect = { if = { limit = { is_ai = no has_country_flag = open_devolution_screen } update_eng_devolution_dirty_variable = yes } } } on_monthly_ENG = { effect = { #-----------# "Good Friday" #-----------# if = { limit = { ENG = { has_idea = ENG_the_dissident_campaign check_variable = { total_unemployed_percentage_display > 0.10 } } } set_temp_variable = { ENG_agitation_change = 0.15 } ENG_change_north_irish_agitation = yes set_temp_variable = { ENG_nationalists_change = 1 } ENG_change_north_irish_nationalists = yes if = { limit = { NOT = { has_idea = ENG_the_dissident_campaign_hidden_idea } } add_ideas = ENG_the_dissident_campaign_hidden_idea } } if = { limit = { ENG = { has_idea = ENG_the_dissident_campaign check_variable = { total_unemployed_percentage_display < 0.10 } } } if = { limit = { has_idea = ENG_the_dissident_campaign_hidden_idea } remove_ideas = ENG_the_dissident_campaign_hidden_idea } set_temp_variable = { ENG_agitation_change = 0.15 } ENG_change_north_irish_agitation = yes } #-----------# "Good Friday End" #-----------# if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } check_variable = { ENG_election_var > 0 } } add_to_variable = { var = ENG_election_var value = -1 } clamp_variable = { var = ENG_election_var min = 0 max = 24 } } if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } check_variable = { ENG_election_var = 0 } } add_to_variable = { var = ENG_election_var value = 24 } clamp_variable = { var = ENG_election_var min = 0 max = 24 } country_event = { id = devolution.10 days = 30 } } if = { limit = { has_completed_focus = ENG_a_more_united_kingdom } # Pulling GDP's set_variable = { commonwealth_total_gdp = 0 } add_to_variable = { var = commonwealth_total_gdp value = NZL.gdp_per_capita } add_to_variable = { var = commonwealth_total_gdp value = CAN.gdp_per_capita } add_to_variable = { var = commonwealth_total_gdp value = AST.gdp_per_capita } # Pulling army size set_variable = { commonwealth_total_army = 0 } add_to_variable = { var = commonwealth_total_army value = NZL.deployed_army_manpower_k } add_to_variable = { var = commonwealth_total_army value = CAN.deployed_army_manpower_k } add_to_variable = { var = commonwealth_total_army value = AST.deployed_army_manpower_k } } # Devolution if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } NOT = { has_country_flag = ENG_devolution_event_cooldown } OR = { # Economic reasons has_idea = depression has_idea = recession has_idea = stagnation check_variable = { interest_rate > 9.000 } check_variable = { inflation_rate_var > 7.000 } # Political Reasons — fires when none of the stabilising conditions apply NOT = { OR = { has_government = democratic has_government = neutrality # Welfare has_idea = social_05 has_idea = social_06 has_idea = health_05 has_idea = health_06 has_idea = edu_04 has_idea = edu_05 has_idea = EU_member # Leaving EU angers some constituents } } has_war = yes has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 # Military has_idea = partial_draft_army has_idea = draft_army has_idea = drafted_women } } # Event country_event = { id = devolution.1 random_days = 15 } } else = { random = { chance = 30 country_event = { id = devolution.1 random_days = 15 } } } # A constituent that leans on Westminster calms down; one that no longer needs it does not if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } NOT = { has_country_flag = ENG_scottish_integrated } NOT = { country_exists = SCO } } if = { limit = { check_variable = { ENG_scottish_dependency > 79 } } set_temp_variable = { ENG_agitation_change = -0.25 } ENG_change_scottish_agitation = yes } else_if = { limit = { check_variable = { ENG_scottish_dependency > 39 } } set_temp_variable = { ENG_agitation_change = -0.1 } ENG_change_scottish_agitation = yes } else_if = { limit = { check_variable = { ENG_scottish_dependency < 20 } } set_temp_variable = { ENG_agitation_change = 0.25 } ENG_change_scottish_agitation = yes } } if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } NOT = { has_country_flag = ENG_north_irish_integrated } NOT = { country_exists = NIR } } if = { limit = { check_variable = { ENG_north_irish_dependency > 79 } } set_temp_variable = { ENG_agitation_change = -0.25 } ENG_change_north_irish_agitation = yes } else_if = { limit = { check_variable = { ENG_north_irish_dependency > 39 } } set_temp_variable = { ENG_agitation_change = -0.1 } ENG_change_north_irish_agitation = yes } else_if = { limit = { check_variable = { ENG_north_irish_dependency < 20 } } set_temp_variable = { ENG_agitation_change = 0.25 } ENG_change_north_irish_agitation = yes } } if = { limit = { NOT = { has_country_flag = ENG_devolution_purged } NOT = { has_country_flag = ENG_welsh_integrated } NOT = { country_exists = WAS } } if = { limit = { check_variable = { ENG_wales_dependency > 79 } } set_temp_variable = { ENG_agitation_change = -0.25 } ENG_change_wales_agitation = yes } else_if = { limit = { check_variable = { ENG_wales_dependency > 39 } } set_temp_variable = { ENG_agitation_change = -0.1 } ENG_change_wales_agitation = yes } else_if = { limit = { check_variable = { ENG_wales_dependency < 20 } } set_temp_variable = { ENG_agitation_change = 0.25 } ENG_change_wales_agitation = yes } } # A live ballot drifts with the region's pressure, so a campaign that is never fought is lost if = { limit = { check_variable = { ENG_referendum_target > 0 } ENG_referendum_campaign_running = yes } if = { limit = { check_variable = { ENG_referendum_target = 1 } } set_temp_variable = { ENG_referendum_drift_pressure = ENG_scottish_pressure } } else_if = { limit = { check_variable = { ENG_referendum_target = 2 } } set_temp_variable = { ENG_referendum_drift_pressure = ENG_north_irish_pressure } } else_if = { limit = { check_variable = { ENG_referendum_target = 3 } } set_temp_variable = { ENG_referendum_drift_pressure = ENG_wales_pressure } } if = { limit = { check_variable = { ENG_referendum_drift_pressure > 74 } } set_temp_variable = { temp_change = 2 } ENG_referendum_campaign_shift = yes } else_if = { limit = { check_variable = { ENG_referendum_drift_pressure > 59 } } set_temp_variable = { temp_change = 1 } ENG_referendum_campaign_shift = yes } else_if = { limit = { check_variable = { ENG_referendum_drift_pressure < 40 } } set_temp_variable = { temp_change = -1 } ENG_referendum_campaign_shift = yes } } else_if = { limit = { check_variable = { ENG_referendum_target > 0 } } ENG_clear_referendum_campaign = yes } # Standing subsidies: re-arm anything whose own timeout did not renew it if = { limit = { has_country_flag = ENG_auto_subsidy_SCO NOT = { country_exists = SCO } NOT = { has_decision = ENG_appease_scotland } check_variable = { ENG_scottish_agitation > 9 } } activate_decision = ENG_appease_scotland } if = { limit = { has_country_flag = ENG_auto_subsidy_NIR NOT = { country_exists = NIR } NOT = { has_decision = ENG_appease_nireland } check_variable = { ENG_north_irish_agitation > 9 } } activate_decision = ENG_appease_nireland } if = { limit = { has_country_flag = ENG_auto_subsidy_WAS NOT = { country_exists = WAS } NOT = { has_decision = ENG_appease_wales } check_variable = { ENG_wales_agitation > 9 } } activate_decision = ENG_appease_wales } if = { limit = { has_completed_focus = ENG_royal_visits_abroad } every_other_country = { limit = { has_idea = ENG_crown_realm_status } set_temp_variable = { percent_change = 4 } set_temp_variable = { tag_index = ENG } change_influence_percentage = yes } } } } on_weekly_ENG = { # INNER CIRCLE - Make sure AI doesn't get stuck with focuses paused due to focus triggers (focuses need to be paused when events are pending) effect = { if = { limit = { is_ai = yes } if = { limit = { has_country_flag = { flag = ENG_charles_ascension_flag days > 20 } } unlock_national_focus = ENG_the_prince_trust uncomplete_national_focus = { focus = ENG_the_prince_trust refund_political_power = yes } clr_country_flag = ENG_charles_ascension_flag } else_if = { limit = { has_country_flag = { flag = ENG_andrew_ascension_flag days > 20 } } unlock_national_focus = ENG_naval_prince uncomplete_national_focus = { focus = ENG_naval_prince refund_political_power = yes } clr_country_flag = ENG_andrew_ascension_flag } else_if = { limit = { has_country_flag = { flag = ENG_anne_ascension_flag days > 20 } } unlock_national_focus = ENG_workhorse_of_the_crown uncomplete_national_focus = { focus = ENG_workhorse_of_the_crown refund_political_power = yes } clr_country_flag = ENG_anne_ascension_flag } else_if = { limit = { has_country_flag = { flag = ENG_edward_ascension_flag days > 20 } } unlock_national_focus = ENG_chairman_international_award uncomplete_national_focus = { focus = ENG_chairman_international_award refund_political_power = yes } clr_country_flag = ENG_edward_ascension_flag } else_if = { limit = { has_country_flag = { flag = ENG_philip_ascension_flag days > 20 } } unlock_national_focus = ENG_duke_charities uncomplete_national_focus = { focus = ENG_duke_charities refund_political_power = yes } clr_country_flag = ENG_philip_ascension_flag } else_if = { limit = { has_country_flag = { flag = ENG_william_ascension_flag days > 20 } } unlock_national_focus = ENG_from_sandhurst_to_service uncomplete_national_focus = { focus = ENG_from_sandhurst_to_service refund_political_power = yes } clr_country_flag = ENG_william_ascension_flag } } } } }