Is there a overlord variable hoi4 for on_startup?

I am making a mod for hoi4 and I created an occupation_zone autonomy zone. In my mod, in the on_action folder, I was wondering if I could do something like this:

on_startup = {
    effect = {
        every_country = {
            limit = {
                is_subject = yes
                has_autonomy_level = autonomy_occupied_zone
            }
            subject = {
                set_cosmetic_tag = overlord
            }
        }
    }
}

Any information or alternatives would be appreciated.

reddit.com
u/EpicNerd823 — 2 days ago

Is it possible to change a country's cosmetic tag upon becoming a certain autonomy level?

I am creating a mod, and I have created a new autonomy level, occupation zones. I was wondering if there was a function, that upon a country becoming one, would adopt it's overlord's flag. Or a string of code would work too. I have spent too many hours working on this.

For reference, here is my code for the autonomy level:

autonomy_state = {
    id = autonomy_occupation_zone
    
    is_puppet = yes
    use_overlord_color = yes
    min_freedom_level = 0.2
    manpower_influence = 0.2    
    rule = {
        desc = "RULE_DESC_IS_A_SUBJECT"
        
        can_not_declare_war = yes
        can_decline_call_to_war = no
        units_deployed_to_overlord = yes
        can_be_spymaster = no
        contributes_operatives = no
        can_create_collaboration_government = no
    }
        allowed_levels_filter = {
        autonomy_occupation_zone
    }


    modifier = {
        autonomy_manpower_share = 0.2
        can_master_build_for_us = 1
        conscription_factor = -0.8
        extra_trade_to_overlord_factor = 1.0
        overlord_trade_cost_factor = -0.9
        cic_to_overlord_factor = 0.3
        mic_to_overlord_factor = 0.3
        license_subject_master_purchase_cost = -1
        autonomy_gain_global_factor = 0
        peace_score_ratio_transferred_to_overlord = 1
        lend_lease_tension_with_overlord = -1
    }
    
    ai_subject_wants_higher = {
        factor = 0.0
    }
    
    ai_overlord_wants_lower = {
        factor = 0.0
    }


    ai_overlord_wants_garrison = {
        always = yes
    }


    allowed = {
        OR = {
            is_subject = no
            has_autonomy_state = autonomy_occupation_zone
        }
    }


    
    can_take_level = {
        always = no
    }


    can_lose_level = {
        always = no
    }
}
reddit.com
u/EpicNerd823 — 3 days ago

Framework or Mac?

So I was looking to buy a laptop, but I don’t know which one I should get. I care most about repairability and performance, and would prefer Linux or Windows. I would like to keep my budget below $1,750. Which one should I get? If I decide to get the Framework, should I get Windows or Linux?

I will be using this laptop for games such as HOI4, Enlisted, abs War Thunder, as well as programming and school work.

View Poll

reddit.com
u/EpicNerd823 — 6 days ago

Framework or Mac?

So I was looking to buy a laptop, but I don’t know which one I should get. I care most about repairability and performance, and would prefer Linux or Windows. I would like to keep my budget below $1,750. Which one should I get? If I decide to get the Framework, should I get Windows or Linux?

I will be using this laptop for games such as HOI4, Enlisted, and War Thunder, as well as programming and school work.

View Poll

reddit.com
u/EpicNerd823 — 6 days ago