Division modding

From Hearts of Iron 4 Wiki
Revision as of 07:47, 13 April 2018 by 82.45.159.116 (talk)
Jump to navigation Jump to search

This tutorial page shows you how to make divisions in HOI4 modding

Using country files to create divisions

You have to put this in to load the oob on start up, without these the country will not build an army and train divisions until it loads an oob file For 1936 start-date:

oob = "TAG_1936" For 1939 start:

oob = "TAG_1939"

Using a country event file to create divisions

If you want to load an oob via events you will need to know how to mod events. First, you will have to create an event file and type:

add_namespace = Tutorial_events

country_event = {

}

This would mean the game will recognize the code as code for events, namespace can be whatever it wants to be Secondly, you will have to type in the id, title and description:

country_event = {

    id = Tutorial_events.1
    title = "This is a title" ### Can be localized via the event file or by the localization file
    desc = "This is a description"

}

Thirdly, you want to put in is_triggered_only = yes and fire_only_once = yes. After that you can put in the options!

    id = Tutorial_events.1
    title = "This is a title" ### Can be localized via the event file or by the localization file
    desc = "This is a description"
    is_triggered_only = yes
    fire_only_once = yes
   
    option = {
         name = "This is a name"
    }    


Then you put:

    option = {
         name = "This is a name"
         load_oob = "TAG_1936" ### Can be TAG_1939 for that start date
    }    
    


How to make an oob file