m (文本替换 - 替换“[[Category:”为“[[分类:”) |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Version|Timeless}} | {{Version|Timeless}} | ||
{{需要翻译|译者=霜泽图书馆}} | |||
陆军和海军单位的名称都来自于一组预设的名称列表。 | |||
== 师的名称 == | |||
师的名称定义在 {{path|common/units/names_divisions}}的国家特定文本文件中。文件名无关紧要,但通常遵循以下格式: ''TAG_names_divisions.txt''. | |||
进入文件后,您需要从 {{path|history/units}}中 OOB 设置的名称列表开始,例如 NEP_MTN_01。您将需要遵循以下格式 | |||
<pre>NEP_MTN_01 = { # DIVISIONS_NAME_GROUP, set in your units folder | |||
name = "Mountain Divisions" # The name you want for your name list, can either be a string or in quotes. | |||
for_countries = { NEP } # Sets what countries can use this name list, change NEP to your countries tag | |||
can_use = { always = yes } # A country scope trigger that can lock or unlock a division name group given certain triggers | |||
division_types = { "mountaineers" } # Sets what types of units can use this name list, replace mountaineers with whatever type of unit you are using | |||
fallback_name = "%d Nepali Dibhijana" # This will be used if you run out of numbered divisions. Always use either %d for decimal numbers or %s for Roman numerals but you can change the rest | |||
link_numbering_with = { NEP_INF_01 } # Alternative to fallback name, if you run out of numbers in this group you can use another list after it. | |||
ordered = { | |||
1 = { "%d Nepali Dibhijana" } # The first division. | |||
2 = { "%d Nepali Dibhijana" } # Numbers must always start from 1 and go up | |||
4 = { "%d Nepali Dibhijana" } # The numbers do not need to be sequential | |||
} | |||
}</pre> | |||
== 海军单位名称 == | |||
海军单位名称定义在{{path|common/units/names_ships}} 的国家特定文本文件中。文件名无关紧要,但通常遵循以下格式: ''TAG_ship_names.txt''. | |||
在这个文件中,它不像师名称那样依赖于 OOB 文件中的预设名称,而是适用于任何船只。你需要遵循以下格式 | |||
<pre>PAK_DD_HISTORICAL = { # Any name you want | |||
name = NAME_THEME_HISTORICAL_DESTROYERS # The name you want to appear in the naval designer, can either be a string or in quotes. | |||
for_countries = { PAK } # Sets what countries can use this name list, change PAK to your countries tag | |||
type = ship # Do not change | |||
ship_types = { ship_hull_light destroyer } # First one is MTG technology, second is non-MTG technology. Set it to the technology you are using | |||
prefix = "PNS " # The name that comes before your ships | |||
fallback_Name = "Destroyer %d" # This will be used if you run out of numbered divisions. Always use either %d for decimal numbers or %s for Roman numerals but you can change the rest | |||
unique = { | |||
"Shamsher" "Tippu Sultan" "Tariq" # List all of the custom ship names they could use, do not use commas | |||
} | |||
}</pre> | |||
== 通用名称 == | |||
定义在 {{path|common/units/names/*.txt}}中,适用于缺乏特定装备名称的国家,尤其是那些并非每个国家都会使用的自定义装备。 | |||
<pre>generic = { # Makes it apply to all countries | |||
submarine = { # Name of the equipment | |||
prefix = "" # The name that comes before equipment | |||
generic = { "Submarine" } # Sets the equipments name | |||
unique = { } # For generic equipment, do not put anything here | |||
} | |||
}</pre> | |||
== 特工代号 == | |||
这些代号存储在 {{path|common/units/codenames_operatives}}中,将被随机分配给指定国家的特工。示例定义如下所示 | |||
<pre>codename_list_id = { # ID of the namelist | |||
name = codename_list_name # Name of the namelist, can match ID | |||
for_countries = { TAG1 TAG2 } # Countries using it | |||
type = codename # To notify to the game that it's a codename list | |||
fallback_name = "Agent %d" # In case uniques run out. | |||
unique = { # Unique codenames, only 1 operative at a time can use them | |||
"Codename 1" | |||
"Codename 2" | |||
} | |||
}</pre> | |||
{{Modding navbox}} | {{Modding navbox}} | ||
[[分类:Modding]] | [[分类:Modding]] | ||
Latest revision as of 20:13, 4 February 2025
此页面正在由 霜泽图书馆 翻译中
陆军和海军单位的名称都来自于一组预设的名称列表。
师的名称
师的名称定义在 /Hearts of Iron IV/common/units/names_divisions的国家特定文本文件中。文件名无关紧要,但通常遵循以下格式: TAG_names_divisions.txt.
进入文件后,您需要从 /Hearts of Iron IV/history/units中 OOB 设置的名称列表开始,例如 NEP_MTN_01。您将需要遵循以下格式
NEP_MTN_01 = { # DIVISIONS_NAME_GROUP, set in your units folder
name = "Mountain Divisions" # The name you want for your name list, can either be a string or in quotes.
for_countries = { NEP } # Sets what countries can use this name list, change NEP to your countries tag
can_use = { always = yes } # A country scope trigger that can lock or unlock a division name group given certain triggers
division_types = { "mountaineers" } # Sets what types of units can use this name list, replace mountaineers with whatever type of unit you are using
fallback_name = "%d Nepali Dibhijana" # This will be used if you run out of numbered divisions. Always use either %d for decimal numbers or %s for Roman numerals but you can change the rest
link_numbering_with = { NEP_INF_01 } # Alternative to fallback name, if you run out of numbers in this group you can use another list after it.
ordered = {
1 = { "%d Nepali Dibhijana" } # The first division.
2 = { "%d Nepali Dibhijana" } # Numbers must always start from 1 and go up
4 = { "%d Nepali Dibhijana" } # The numbers do not need to be sequential
}
}
海军单位名称
海军单位名称定义在/Hearts of Iron IV/common/units/names_ships 的国家特定文本文件中。文件名无关紧要,但通常遵循以下格式: TAG_ship_names.txt.
在这个文件中,它不像师名称那样依赖于 OOB 文件中的预设名称,而是适用于任何船只。你需要遵循以下格式
PAK_DD_HISTORICAL = { # Any name you want
name = NAME_THEME_HISTORICAL_DESTROYERS # The name you want to appear in the naval designer, can either be a string or in quotes.
for_countries = { PAK } # Sets what countries can use this name list, change PAK to your countries tag
type = ship # Do not change
ship_types = { ship_hull_light destroyer } # First one is MTG technology, second is non-MTG technology. Set it to the technology you are using
prefix = "PNS " # The name that comes before your ships
fallback_Name = "Destroyer %d" # This will be used if you run out of numbered divisions. Always use either %d for decimal numbers or %s for Roman numerals but you can change the rest
unique = {
"Shamsher" "Tippu Sultan" "Tariq" # List all of the custom ship names they could use, do not use commas
}
}
通用名称
定义在 /Hearts of Iron IV/common/units/names/*.txt中,适用于缺乏特定装备名称的国家,尤其是那些并非每个国家都会使用的自定义装备。
generic = { # Makes it apply to all countries
submarine = { # Name of the equipment
prefix = "" # The name that comes before equipment
generic = { "Submarine" } # Sets the equipments name
unique = { } # For generic equipment, do not put anything here
}
}
特工代号
这些代号存储在 /Hearts of Iron IV/common/units/codenames_operatives中,将被随机分配给指定国家的特工。示例定义如下所示
codename_list_id = { # ID of the namelist
name = codename_list_name # Name of the namelist, can match ID
for_countries = { TAG1 TAG2 } # Countries using it
type = codename # To notify to the game that it's a codename list
fallback_name = "Agent %d" # In case uniques run out.
unique = { # Unique codenames, only 1 operative at a time can use them
"Codename 1"
"Codename 2"
}
}
模组制作
| 文件 | 效果 • 条件 • 定义 • 修正 • 修正列表 • 作用域 • 本地化 • on action • 数据结构 (标记, 临时标记, 国家别名, 变量, 数组) |
| 脚本 | 成就修改 • AI修改 • AI focuses • 自治领修改 • 权力平衡修改 • 剧本/标签 (游戏规则)• 建筑修改 • 人物修改 • 修饰性TAG修改 • 国家创建 • 军队修改 • 决议制作 • 装备修改 • 事件修改 • Idea修改 • 意识形态修改 • 军工商修改 • 国策制作 • 资源修改 • Scripted GUI • 科技制作 • 单位修改 |
| 地图 | 地图 • 省份 • 补给区域 • 战略区域 |
| 图形图像 | 界面 • 图形资产 • 实体模型 • 后期特效 • 粒子效果 • 字体 |
| 装饰性 | 肖像 • 命名列表 • 音乐包制作 • 音效 |
| 其他 | 控制台指令 • 故障排除 • 模组结构 • 成就代码分析 • Mod相关 • Nudger修改 |