小 (文本替换 - 替换“[[Category:”为“[[分类:”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{Version|1. | {{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.''' | |||
Supply areas are defined in {{path|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: | |||
<pre> | <pre> | ||
supply_area = { | supply_area = { | ||
第16行: | 第18行: | ||
</pre> | </pre> | ||
*'''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''' | * '''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''' | * '''value''' defines the amount of base supply the supply area grants. In vanilla, the supply varies from 0 to 16. | ||
*'''states''' | * '''states''' scope defines which states the supply area covers. Note that supply areas should normally cover more than one state. | ||
== | == Tips == | ||
{{SVersion|1.5}} | {{SVersion|1.5}} | ||
* | * 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. | ||
{{Modding navbox}} | {{Modding navbox}} | ||
[[ | [[Category:Modding]] |
2024年8月5日 (一) 23:55的版本
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
File:Ambox outdated info.png | 这部分内容可能已不适合当前版本,最后更新于1.5。 |
- 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.
模组制作
文件 | 效果 • 条件 • 定义 • 修正 • 修正列表 • 作用域 • 本地化 • on action • 数据结构 (标记, 临时标记, 国家别名, 变量, 数组) |
脚本 | 成就修改 • AI修改 • AI focuses • 自治领修改 • 权力平衡修改 • 剧本/标签 (游戏规则)• 建筑修改 • 人物修改 • 修饰性TAG修改 • 国家创建 • 军队修改 • 决议制作 • 装备修改 • 事件修改 • Idea修改 • 意识形态修改 • 军工商修改 • 国策制作 • 资源修改 • Scripted GUI • 科技制作 • 单位修改 |
地图 | 地图 • 省份 • 补给区域 • 战略区域 |
图形图像 | 界面 • 图形资产 • 实体模型 • 后期特效 • 离子效果 • 字体 |
装饰性 | 肖像 • 命名列表 • 音乐 • 音效 |
其他 | 控制台指令 • 故障排除 • 模组结构 • 成就代码分析 • Mod相关 • Nudger修改 |