补给区域模改

本页面所适用的版本可能已经过时,最后更新于1.5
Hstar讨论 | 贡献2020年8月15日 (六) 17:21的版本 (merge from offical wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Supply area are defined in /Hearts of Iron IV/map/supplyareas/*.txt.

Each supply area is typically stored in it's own file, although you can store multiple supply area definitions within the same file, as the ID is defined within the supply area definition, rather than the file title.

Here is a generic example of a supply area:

supply_area = {
    id = <int>
    name = <localization key>
    value = <amount>
    states = {
        <state id>
    }
}
  • id defines the numerical id used by the supply area. The supply area IDs must be added sequentially, skipping numbers will cause crashes.
  • name defines the localization key the supply area uses. You can use a non-localized string (i.e. "Paris"), but it is best practice to use localized strings.
  • value defines the amount of base supply the supply area grants. In vanilla, the supply varies from 0 to 16.
  • states scope defines which states the supply area covers. Note that supply areas should normally cover more than one state.

Tips

  • When placing supply areas, the states they are compose of should be contiguous. This means islands should have their own supply areas.
  • The average supply value in vanilla is 10.