补给区域模改:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.11
无编辑摘要
无编辑摘要
 
第1行: 第1行:
{{Version|1.11}}
{{Version|1.11}}
{{需要翻译|译者=霜泽图书馆}}
'''NOTE: Supply areas are deprecated as of patch 1.11 Barbarossa/No Step Back. The following only applies to version 1.10 and before.'''
'''NOTE: Supply areas are deprecated as of patch 1.11 Barbarossa/No Step Back. The following only applies to version 1.10 and before.'''


第33行: 第34行:


{{Modding navbox}}
{{Modding navbox}}
[[Category:Modding]]
[[ 分类:Modding]]

2024年9月15日 (日) 22:21的最新版本

NOTE: Supply areas are deprecated as of patch 1.11 Barbarossa/No Step Back. The following only applies to version 1.10 and before.

Supply areas 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.