• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Deshiba

Colonel
41 Badges
Feb 21, 2020
899
1.311
  • Stellaris: Lithoids
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Apocalypse
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Empire of Sin
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
When playing as Yugoslavia the focus Protect Bosnia states that it creates 3 militia units.
1605696723659.png


Upon actually completing the focus no units are spawned in.
hoi4_1.png
For reference the full focus tree taken up to this point. Protect Bosnia was the last focus completed.
1605696927008.png
 
  • 2Like
  • 1
Reactions:

Bunnytob

Not promoted on merit
14 Badges
Sep 17, 2017
3.056
1.052
  • Crusader Kings II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
Code:
    focus = {
        id = YUG_safeguard_bosnia
        icon = GFX_focus_YUG_safeguard_bosnia
        prerequisite = { focus = YUG_united_autonomous_croatia focus = YUG_devolved_croatia }
        mutually_exclusive = { focus = YUG_divide_bosnia }
        x = 0
        y = 1
        relative_position_id = YUG_devolved_croatia

        cost = 10

        ai_will_do = {
            factor = 40
        }

        available = {
            controls_state = 104
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no
        search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
        completion_reward = {
        
            #tooltip
            effect_tooltip ={
                release_puppet = BOS
                BOS = {
                    custom_effect_tooltip = create_three_units_tt
                }
            }
            
            hidden_effect = {
                if = {
                    limit = { BOS = { exists = no } }
                    release_puppet = BOS
                    set_autonomy = { target = BOS autonomy_state = autonomy_integrated_puppet }
                    BOS = { save_event_target_as = released_nation_target }
                }
                else = {
                    create_dynamic_country = {
                        original_tag = BOS
                        
                        save_event_target_as = released_nation_target
                        PREV = {
                            every_owned_state = {
                                limit = { is_core_of = BOS }
                                PREV.PREV = { transfer_state = PREV }
                            }
                        }
                        PREV = {
                            puppet = PREV
                            set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
                        }
                    }
                }
                event_target:released_nation_target = {
                    division_template = {
                        name = "Bosnian Division"
                        priority = 1
                        division_names_group = YUG_INF_01
                        regiments = {
                            infantry = { x = 0 y = 0 }
                            infantry = { x = 0 y = 1 }
                            infantry = { x = 0 y = 2 }
                
                            infantry = { x = 1 y = 0 }
                            infantry = { x = 1 y = 1 }
                            infantry = { x = 1 y = 2 }
                
                            infantry = { x = 2 y = 0 }
                            infantry = { x = 2 y = 1 }
                        }
                        support = {
                            engineer = { x = 0 y = 0 }
                        }
                    }
                    random_owned_controlled_state = {
                        limit = { PREV = { has_full_control_of_state = PREV } }
                        create_unit = {
                            division = "name = \"Bosnian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
                            owner = PREV
                        }
                    }
                    random_owned_controlled_state = {
                        limit = { PREV = { has_full_control_of_state = PREV } }
                        create_unit = {
                            division = "name = \"Bosnian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
                            owner = PREV
                        }
                    }
                    random_owned_controlled_state = {
                        limit = { PREV = { has_full_control_of_state = PREV } }
                        create_unit = {
                            division = "name = \"Bosnian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
                            owner = PREV
                        }
                    }
                }
            }
        }
    }
Not quite sure what doesn't fire here, but here you go.
 
  • 1
Reactions: