小 (文本替换 - 替换“[[Category:”为“[[分类:”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{Version|1. | {{Version|1.10}} | ||
[[Strategic_Region| | {{需要翻译|译者=霜泽图书馆}} | ||
[[Strategic_Region|Strategic regions]] are defined in {{path|map/strategicregions/*.txt}}. | |||
Each strategic region is typically stored in it's own file, although you can store multiple strategic region definitions within the same file, as the ID is defined within the strategic region definition, rather than the file title. | |||
Here is a generic example of a strategic region: | |||
<pre> | <pre> | ||
strategic_region = { | |||
id = <int> | id = <int> | ||
name = <localization key> | name = <localization key> | ||
第18行: | 第19行: | ||
between = { <min> <max> } | between = { <min> <max> } | ||
temperature = { <min> <max> } | temperature = { <min> <max> } | ||
no_phenomenon = <weight> | no_phenomenon = <weight> | ||
rain_light = <weight> | rain_light = <weight> | ||
第32行: | 第32行: | ||
</pre> | </pre> | ||
* '''id''' | * '''id''' defines the numerical id used by the strategic region. The strategic region IDs must be added sequentially, skipping numbers will cause crashes. | ||
* '''name''' | * '''name''' defines the localization key the strategic region uses. You can use a non-localized string (i.e. "Paris"), but it is best practice to use localized strings. | ||
* '''provinces''' | * '''provinces''' scope defines which provinces the strategic region is composed over. | ||
* '''weather''' | * '''weather''' scope determines the weather within the provinces covered by the strategic region. | ||
== | == Weather == | ||
{{SVersion|1. | {{SVersion|1.10}} | ||
Each strategic region has a '''weather''' scope that determines how the weather changes for provinces within it. | Each strategic region has a '''weather''' scope that determines how the weather changes for provinces within it. | ||
第51行: | 第51行: | ||
* '''temperature''' scope determines the minimum and maximum temperature for the weather system. | * '''temperature''' scope determines the minimum and maximum temperature for the weather system. | ||
* '''temperature_day_night''' scope determines the minimum and maximum temperature variability during day and night for the weather system. | * <s>'''temperature_day_night''' scope determines the minimum and maximum temperature variability during day and night for the weather system.</s> (This is no longer used since version 1.11, set all temperature ranges via temperature) | ||
* '''min_snow_level''' scope determines the minimum amount of snow that is always present in the weather system. Typically only used for areas with year-round snow. | * '''min_snow_level''' scope determines the minimum amount of snow that is always present in the weather system. Typically only used for areas with year-round snow. | ||
第57行: | 第57行: | ||
Each of the weather states are given a weight, determining how likely the state will occur within the weather system. The weather states can be found in {{path|common/weather.txt}}. | Each of the weather states are given a weight, determining how likely the state will occur within the weather system. The weather states can be found in {{path|common/weather.txt}}. | ||
== | == Tips == | ||
{{SVersion|1. | {{SVersion|1.10}} | ||
* | * When placing strategic regions, the provinces they are compose of should be contiguous. This means islands are normally part of a ''sea'' strategic region. | ||
{{Modding navbox}} | {{Modding navbox}} | ||
[[分类:Modding]] | [[分类:Modding]] |
2024年9月15日 (日) 22:27的最新版本
此页面正在由 霜泽图书馆 翻译中
Strategic regions are defined in /Hearts of Iron IV/map/strategicregions/*.txt.
Each strategic region is typically stored in it's own file, although you can store multiple strategic region definitions within the same file, as the ID is defined within the strategic region definition, rather than the file title.
Here is a generic example of a strategic region:
strategic_region = { id = <int> name = <localization key> provinces = { <province ids> } weather = { period = { between = { <min> <max> } temperature = { <min> <max> } no_phenomenon = <weight> rain_light = <weight> rain_heavy = <weight> snow = <weight> blizzard = <weight> mud = <weight> sandstorm = <weight> min_snow_level = <amount> } } }
- id defines the numerical id used by the strategic region. The strategic region IDs must be added sequentially, skipping numbers will cause crashes.
- name defines the localization key the strategic region uses. You can use a non-localized string (i.e. "Paris"), but it is best practice to use localized strings.
- provinces scope defines which provinces the strategic region is composed over.
- weather scope determines the weather within the provinces covered by the strategic region.
Weather
File:Ambox outdated info.png | 这部分内容可能已不适合当前版本,最后更新于1.10。 |
Each strategic region has a weather scope that determines how the weather changes for provinces within it.
Each weather system is defined within a period scope within the weather scope.
- between scope determines when the weather system occurs, the notation is
day.month day.month
, i.e.0.0 30.0
means the weather system occurs between the 1st of January and the 31st, including these days. Note that the first day and the first month are marked as 0, not as 1.
- temperature scope determines the minimum and maximum temperature for the weather system.
temperature_day_night scope determines the minimum and maximum temperature variability during day and night for the weather system.(This is no longer used since version 1.11, set all temperature ranges via temperature)
- min_snow_level scope determines the minimum amount of snow that is always present in the weather system. Typically only used for areas with year-round snow.
Each of the weather states are given a weight, determining how likely the state will occur within the weather system. The weather states can be found in /Hearts of Iron IV/common/weather.txt.
Tips
File:Ambox outdated info.png | 这部分内容可能已不适合当前版本,最后更新于1.10。 |
- When placing strategic regions, the provinces they are compose of should be contiguous. This means islands are normally part of a sea strategic region.
模组制作
文件 | 效果 • 条件 • 定义 • 修正 • 修正列表 • 作用域 • 本地化 • on action • 数据结构 (标记, 临时标记, 国家别名, 变量, 数组) |
脚本 | 成就修改 • AI修改 • AI focuses • 自治领修改 • 权力平衡修改 • 剧本/标签 (游戏规则)• 建筑修改 • 人物修改 • 修饰性TAG修改 • 国家创建 • 军队修改 • 决议制作 • 装备修改 • 事件修改 • Idea修改 • 意识形态修改 • 军工商修改 • 国策制作 • 资源修改 • Scripted GUI • 科技制作 • 单位修改 |
地图 | 地图 • 省份 • 补给区域 • 战略区域 |
图形图像 | 界面 • 图形资产 • 实体模型 • 后期特效 • 离子效果 • 字体 |
装饰性 | 肖像 • 命名列表 • 音乐 • 音效 |
其他 | 控制台指令 • 故障排除 • 模组结构 • 成就代码分析 • Mod相关 • Nudger修改 |