(22:16, 9 June 2019 185.113.99.254) |
Zhengfan01(讨论 | 贡献) (将英文界面进行翻译) |
||
| 第1行: | 第1行: | ||
{{version|2.6}} | {{version|2.6}} | ||
文化和文化组在1.06 版本时被定义,放在/common/cultures/ 文件夹中。 | |||
== | == 定义== | ||
The culture files have within them one or more culture group definitions, within which a graphical culture is set, and one or more cultures are defined. | The culture files have within them one or more culture group definitions, within which a graphical culture is set, and one or more cultures are defined. | ||
== | == 文化组== | ||
文化组用一个字母ID来定义它们的tag,一个文化组必须有一个或多个''graphical_cultures'' 来定义。一个定义文化组及其下面各个的代码范例如下: | |||
<nowiki>north_germanic = { | <nowiki>north_germanic = { | ||
graphical_cultures = { westerngfx } | |||
#cultures go here | |||
}</nowiki> | }</nowiki> | ||
== | == 文化特征== | ||
文化的定义可以有以下变量组中的变量: | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | ! 变量名 | ||
! | ! 变量类型 | ||
! | ! 变量描述 | ||
! | ! 代码范例 | ||
|- | |- | ||
|graphical_cultures | |graphical_cultures | ||
|List<culturegfx> | |List<culturegfx> | ||
| | | 绘制肖像和地图项目时使用的文化图形接口的顺序列表。第一个culturefx是首选的,其他是在没有匹配的gfx条目的情况下的返回值。 | ||
|graphical_cultures = { italiangfx southerngfx } | |graphical_cultures = { italiangfx southerngfx } | ||
|- | |- | ||
|unit_graphical_cultures | |unit_graphical_cultures | ||
|List<culturegfx> | |List<culturegfx> | ||
| | | 用于设置使用哪组图形在地图上绘制单位 | ||
|unit_graphical_cultures = { saxongfx englishgfx } | |unit_graphical_cultures = { saxongfx englishgfx } | ||
|- | |- | ||
|secondary_event_pictures | | secondary_event_pictures | ||
|culture | | culture | ||
| | | | ||
| | | | ||
| 第41行: | 第41行: | ||
|color | |color | ||
|color | |color | ||
| | | 地图模式下使用该颜色,<br />[[Wikipedia:Rgb|RGB]] 值的范围是0-1 | ||
|color = { 0.25 0.5 0.75 } | |color = { 0.25 0.5 0.75 } | ||
|- | |- | ||
|horde | |horde | ||
|bool | | bool | ||
| | | 该角色是否按照游牧部落[[Horde]] 角色来看待,可选。 | ||
|horde = yes | | horde = yes | ||
|- | |- | ||
|used_for_random | |used_for_random | ||
|bool | |bool | ||
| | | 防止文化被随机选择,如果你使用以下代码的话。<code>create_character = { culture = random}</code>. | ||
|used_for_random = no | |used_for_random = no | ||
|- | |- | ||
|allow_in_ruler_designer | |allow_in_ruler_designer | ||
|bool | |bool | ||
| | | 防止在角色编辑器[[Ruler designer]] 中选择该文化。在以下代码生效时经常使用。<code>used_for_random = no</code>. | ||
|<code>allow_in_ruler_designer = no</code> | |<code>allow_in_ruler_designer = no</code> | ||
|- | |- | ||
|dukes_called_kings | |dukes_called_kings | ||
|bool | |bool | ||
| | | 独立的公爵领被叫做小型王国。 | ||
|dukes_called_kings = yes | |dukes_called_kings = yes | ||
|- | |- | ||
|baron_titles_hidden | |baron_titles_hidden | ||
|bool | |bool | ||
| | | 字面意思:隐藏男爵头衔 | ||
|baron_titles_hidden = yes | |baron_titles_hidden = yes | ||
|- | |- | ||
|count_titles_hidden | |count_titles_hidden | ||
|bool | |bool | ||
| | | 字面意思:隐藏伯爵头衔 | ||
|count_titles_hidden = yes | |count_titles_hidden = yes | ||
|- | |- | ||
|parent | |parent | ||
|culture | |culture | ||
| | | 令父母和孩子的好感度不受外国人的意见负面减益。 | ||
|swedish = { parent = norse } | |swedish = { parent = norse } | ||
|- | |- | ||
|modifier | |modifier | ||
|[[static modifiers]] | |[[static modifiers]] | ||
| | | 用于该文化的{{sup|provinces ?}} 修正 | ||
|<code>modifier = default_culture_modifier</code> | |<code>modifier = default_culture_modifier</code> | ||
|- | |- | ||
|character_modifier | |character_modifier | ||
|[[modifiers]] | |[[modifiers]] | ||
| | | 角色修正,类似宗教模组制作中该变量的等同物。 | ||
|<pre> | |<pre> | ||
character_modifier = { | character_modifier = { | ||
| 第93行: | 第93行: | ||
</pre> | </pre> | ||
|- | |- | ||
|founder_named_dynasties | |founder_named_dynasties | ||
|bool | |bool | ||
| | | 令家族创始人成为家族名称,可选。 | ||
|founder_named_dynasties = yes | |founder_named_dynasties = yes | ||
|- | |- | ||
|dynasty_title_names | | dynasty_title_names | ||
|bool | |bool | ||
| | | 用统治者的家族名称作为主要头衔的名称,可选的。 | ||
|dynasty_title_names = yes | |dynasty_title_names = yes | ||
|- | |- | ||
|disinherit_from_blinding | |disinherit_from_blinding | ||
|bool | |bool | ||
|{{iconify|Blinded}} | |{{iconify|Blinded}} 盲人角色没有继承权。 | ||
|disinherit_from_blinding = yes | |disinherit_from_blinding = yes | ||
|- | |- | ||
|allow_looting | |allow_looting | ||
|bool | |bool | ||
| | | 允许劫掠[[looting]]. | ||
|allow_looting = yes | |allow_looting = yes | ||
|- | |- | ||
|seafarer | |seafarer | ||
|bool | |bool | ||
| | | 会更喜欢劫掠沿海省份,cheaper fleet levies | ||
|seafarer = yes | | seafarer = yes | ||
|- | |- | ||
|dynasty_name_first | |dynasty_name_first | ||
|bool | |bool | ||
| | | 姓在前,名在后。可选。 | ||
|dynasty_name_first = yes | |dynasty_name_first = yes | ||
|- | |- | ||
|feminist | |feminist | ||
|bool | |bool | ||
| | | 如果统治者是女性或其拥有女性继承人,则取消封臣的负面意见修正。可选。 | ||
|feminist = yes | |feminist = yes | ||
|- | |- | ||
|} | |} | ||
所有在描述中“可选的”变量默认值为no。 | |||
=== | === 名字=== | ||
除了上述标签外,游戏在命名角色时还有很多选择。 除了''male_names''/''female_names'' 都是可选的。 | |||
==== male_names/female_names ==== | ==== male_names/female_names==== | ||
这些标签是游戏在创建新角色时可以使用的名字列表。它们以空格分隔的字符串数组的形式给出, 放在''male_name'' or ''female_name'' 数组里。 | |||
同一名字的变体可以通过用下划线连接来定义: <tt>Johan_John</tt>. This allows regnal numbering to be consistent if culture changes, so Juan III won't be succeeded by Ivan I. 两个单词以上的名字可以用双引号括起来,比如 <tt>"Sarah Ann"</tt>. 以下代码给出来一个简单的名字组成的数组。 | |||
<nowiki>male_names = { | <nowiki>male_names = { | ||
Albrikt_Albert Alf_Alf Algot Anders_Andrew Anund Arnbjörn Arne Arnfast | |||
Asbjörn Astrad Azur Bagge Bengt Bertil Birger Björn_Beorn Bo Borkvard | |||
Botulf Bror Brynjolf Dag Dan Dyre | |||
}</nowiki> | }</nowiki> | ||
名称也可以使用以下语法进行加权''Name:Weight'', 如果省略,默认权重为100<ref>[[Forum:774248]]</ref> | |||
0表示Ai的新生儿或者事件生成新的人永远不会选择该名称. | |||
<pre>male_names = { | <pre>male_names = { | ||
| 第155行: | 第155行: | ||
</pre> | </pre> | ||
但请注意,该特色在2.5 版本开始被破坏,并且2.6 保留了该破坏。因此,游戏会忽略起名权重。 | |||
==== | ==== 父名==== | ||
父姓前缀或后缀可以与父亲的名字组合在一起,然后添加到角色的名字中。例如,如果一个男性父名为"son", David 的儿子Mike的全名就是Mike Davidson 。 | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | ! 变量名称 | ||
! | ! 变量类型 | ||
! | ! 变量描述 | ||
! | ! 代码示例 | ||
|- | |- | ||
|male_patronym | |male_patronym | ||
|string | | string | ||
| | | 男性的前缀或者后缀加入到父名 | ||
|male_patronym = "sson" | |male_patronym = "sson" | ||
|- | |- | ||
|female_patronym | |female_patronym | ||
|string | |string | ||
| | | 女性的前缀或者后缀加入到父名 | ||
|female_patronym = "sdotter" | |female_patronym = "sdotter" | ||
|- | |- | ||
|prefix | |prefix | ||
|bool | |bool | ||
| | | 决定父名是作为前缀还是后缀使用。可选,no. | ||
|prefix = no | |prefix = no | ||
|- | |- | ||
|grammar_transform | |grammar_transform | ||
|string | |string | ||
| | | 对父亲的名字进行某些转换,以生成父姓 ( 例如,西班牙语"Rodrigo" + "ez" => "Rodriguez"). 可能的值french或spanish. | ||
|grammar_transform = spanish | |grammar_transform = spanish | ||
|} | |} | ||
==== | ==== 家族前缀==== | ||
以下tag用来设置家族名称的前缀并添加进人名中。例如,假设家族前缀是 <tt>"of "</tt>, 那么来自Crawford家族的David全名叫"David of Crawford" 。 | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | ! 变量名称 | ||
! | ! 变量类型 | ||
! | ! 变量描述 | ||
! | ! 代码示例 | ||
|- | |- | ||
|from_dynasty_prefix | |from_dynasty_prefix | ||
|string | | string | ||
| | | 设定前缀加入到家族名称中 | ||
|from_dynasty_prefix = "of " | |from_dynasty_prefix = "of " | ||
|- | |- | ||
| 第208行: | 第208行: | ||
|bastard_dynasty_prefix | |bastard_dynasty_prefix | ||
|string | |string | ||
| | | 如果角色是私生子,则用于代替变量''from_dynasty_prefix'' | ||
|bastard_dynasty_prefix = "Fitz" | |bastard_dynasty_prefix = "Fitz" | ||
|} | |} | ||
==== | ==== 命名权重==== | ||
这设置了角色以父母或祖父母的名字命名的机会。每个性别的权重总值不能超过100。 | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | ! 变量名称 | ||
! | ! 变量类型 | ||
! | ! 变量描述 | ||
! | ! 代码示例 | ||
|- | |- | ||
|pat_grf_name_chance | | pat_grf_name_chance | ||
|int | |||
| | |int | ||
| 男孩使用爷爷名字的权重 | |||
|pat_grf_name_chance = 55 | |pat_grf_name_chance = 55 | ||
|- | |- | ||
|mat_grf_name_chance | | mat_grf_name_chance | ||
|int | |int | ||
| | | 男孩使用外公名字的权重 | ||
|mat_grf_name_chance = 5 | |mat_grf_name_chance = 5 | ||
|- | |- | ||
|father_name_chance | |father_name_chance | ||
|int | |int | ||
| | | 男孩使用父亲名字的权重 | ||
|father_name_chance = 30 | |father_name_chance = 30 | ||
|- | |- | ||
|pat_grm_name_chance | |pat_grm_name_chance | ||
|int | |int | ||
| | | 女孩使用奶奶名字的权重 | ||
|pat_grm_name_chance = 60 | |pat_grm_name_chance = 60 | ||
|- | |- | ||
|mat_grm_name_chance | |mat_grm_name_chance | ||
|int | |int | ||
| | | 女孩使用外婆名字的权重 | ||
|mat_grm_name_chance = 15 | |mat_grm_name_chance = 15 | ||
|- | |- | ||
|mother_name_chance | |mother_name_chance | ||
|int | |int | ||
| | | 女孩使用母亲名字的权重 | ||
|mother_name_chance = 15 | |mother_name_chance = 15 | ||
|} | |} | ||
== | == 总的文化模组代码范例 == | ||
<nowiki>west_germanic = { | <nowiki>west_germanic = { | ||
graphical_culture = westerngfx | |||
english = { | |||
graphical_culture = englishgfx | |||
color = { 0.8 0.2 0.2 } | |||
# Does not exist in 1066 - is the result of cultural amalgamation between Saxon and Norman through events | |||
male_names = { | |||
Adam_Adam Alan_Alan Albert_Albert Alexander_Alexander Alfred Andrew_Andrew Anselm Arnold_Arnold Arthur_Arthur Aubrey Christopher_Christopher | |||
} | |||
female_names = { | |||
Adela_Adela Adelaide_Adelaide Alice_Alice Amice Anne_Anna Aveline_Avelina Beatrice_Beatrice Blanche_Blanche Catherine_Catherine Cecilia_Cecilia | |||
} | |||
from_dynasty_prefix = "of " | |||
bastard_dynasty_prefix = "Fitz" | |||
modifier = default_culture_modifier | |||
# Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. | |||
pat_grf_name_chance = 30 | |||
mat_grf_name_chance = 10 | |||
father_name_chance = 25 | |||
# Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100. | |||
pat_grm_name_chance = 20 | |||
mat_grm_name_chance = 40 | |||
mother_name_chance = 5 | |||
} | } | ||
}</nowiki> | |||
}</nowiki> | |||
== | == 模组工具== | ||
对于希望在cross-linking name lists 工作的人们,有一个叫'''CK2-Cultures-Parser''' 的工具。此工具可以将cultures.txt 文件中的男性和女性名单转换为电子表格( 可以用OpenOffice或者Excel编辑) 然后把电子表格中修改后的姓名列表写回cultures.txt 文件中。 | |||
若要找到此修改工具的详细说明和下载页面的链接,访问'''Crusader Kings II - User Modifications'''上的'''List of Mods/Guides/Utilities''' | |||
== | == 另见== | ||
*[[Culture]] | *[[Culture]] | ||
== | == 参考文献== | ||
<references/> | <references /> | ||
[[Category:模组制作]] | [[Category:模组制作]] | ||
{{ModdingNavbox}} | {{ModdingNavbox}} | ||
[[en:Culture modding]] | [[en:Culture modding]] | ||
2025年5月10日 (六) 15:14的最新版本
文化和文化组在1.06版本时被定义,放在/common/cultures/文件夹中。
定义
The culture files have within them one or more culture group definitions, within which a graphical culture is set, and one or more cultures are defined.
文化组
文化组用一个字母ID来定义它们的tag,一个文化组必须有一个或多个graphical_cultures来定义。一个定义文化组及其下面各个的代码范例如下:
north_germanic = {
graphical_cultures = { westerngfx }
#cultures go here
}
文化特征
文化的定义可以有以下变量组中的变量:
| 变量名 | 变量类型 | 变量描述 | 代码范例 |
|---|---|---|---|
| graphical_cultures | List<culturegfx> | 绘制肖像和地图项目时使用的文化图形接口的顺序列表。第一个culturefx是首选的,其他是在没有匹配的gfx条目的情况下的返回值。 | graphical_cultures = { italiangfx southerngfx } |
| unit_graphical_cultures | List<culturegfx> | 用于设置使用哪组图形在地图上绘制单位 | unit_graphical_cultures = { saxongfx englishgfx } |
| secondary_event_pictures | culture | ||
| color | color | 地图模式下使用该颜色, RGB值的范围是0-1 |
color = { 0.25 0.5 0.75 } |
| horde | bool | 该角色是否按照游牧部落Horde角色来看待,可选。 | horde = yes |
| used_for_random | bool | 防止文化被随机选择,如果你使用以下代码的话。create_character = { culture = random}.
|
used_for_random = no |
| allow_in_ruler_designer | bool | 防止在角色编辑器Ruler designer中选择该文化。在以下代码生效时经常使用。used_for_random = no.
|
allow_in_ruler_designer = no
|
| dukes_called_kings | bool | 独立的公爵领被叫做小型王国。 | dukes_called_kings = yes |
| baron_titles_hidden | bool | 字面意思:隐藏男爵头衔 | baron_titles_hidden = yes |
| count_titles_hidden | bool | 字面意思:隐藏伯爵头衔 | count_titles_hidden = yes |
| parent | culture | 令父母和孩子的好感度不受外国人的意见负面减益。 | swedish = { parent = norse } |
| modifier | static modifiers | 用于该文化的[provinces ?] 修正 | modifier = default_culture_modifier
|
| character_modifier | modifiers | 角色修正,类似宗教模组制作中该变量的等同物。 | character_modifier = {
learning = 4
}
|
| founder_named_dynasties | bool | 令家族创始人成为家族名称,可选。 | founder_named_dynasties = yes |
| dynasty_title_names | bool | 用统治者的家族名称作为主要头衔的名称,可选的。 | dynasty_title_names = yes |
| disinherit_from_blinding | bool | disinherit_from_blinding = yes | |
| allow_looting | bool | 允许劫掠looting. | allow_looting = yes |
| seafarer | bool | 会更喜欢劫掠沿海省份,cheaper fleet levies | seafarer = yes |
| dynasty_name_first | bool | 姓在前,名在后。可选。 | dynasty_name_first = yes |
| feminist | bool | 如果统治者是女性或其拥有女性继承人,则取消封臣的负面意见修正。可选。 | feminist = yes |
所有在描述中“可选的”变量默认值为no。
名字
除了上述标签外,游戏在命名角色时还有很多选择。 除了male_names/female_names都是可选的。
male_names/female_names
这些标签是游戏在创建新角色时可以使用的名字列表。它们以空格分隔的字符串数组的形式给出, 放在male_name or female_name数组里。
同一名字的变体可以通过用下划线连接来定义: Johan_John. This allows regnal numbering to be consistent if culture changes, so Juan III won't be succeeded by Ivan I. 两个单词以上的名字可以用双引号括起来,比如 "Sarah Ann". 以下代码给出来一个简单的名字组成的数组。
male_names = {
Albrikt_Albert Alf_Alf Algot Anders_Andrew Anund Arnbjörn Arne Arnfast
Asbjörn Astrad Azur Bagge Bengt Bertil Birger Björn_Beorn Bo Borkvard
Botulf Bror Brynjolf Dag Dan Dyre
}
名称也可以使用以下语法进行加权Name:Weight, 如果省略,默认权重为100[1] 0表示Ai的新生儿或者事件生成新的人永远不会选择该名称.
male_names = {
Lars_Laurence:50
}
但请注意,该特色在2.5版本开始被破坏,并且2.6保留了该破坏。因此,游戏会忽略起名权重。
父名
父姓前缀或后缀可以与父亲的名字组合在一起,然后添加到角色的名字中。例如,如果一个男性父名为"son", David的儿子Mike的全名就是Mike Davidson。
| 变量名称 | 变量类型 | 变量描述 | 代码示例 |
|---|---|---|---|
| male_patronym | string | 男性的前缀或者后缀加入到父名 | male_patronym = "sson" |
| female_patronym | string | 女性的前缀或者后缀加入到父名 | female_patronym = "sdotter" |
| prefix | bool | 决定父名是作为前缀还是后缀使用。可选,no. | prefix = no |
| grammar_transform | string | 对父亲的名字进行某些转换,以生成父姓 (例如,西班牙语"Rodrigo" + "ez" => "Rodriguez").可能的值french或spanish. | grammar_transform = spanish |
家族前缀
以下tag用来设置家族名称的前缀并添加进人名中。例如,假设家族前缀是 "of ", 那么来自Crawford家族的David全名叫"David of Crawford"。
| 变量名称 | 变量类型 | 变量描述 | 代码示例 |
|---|---|---|---|
| from_dynasty_prefix | string | 设定前缀加入到家族名称中 | from_dynasty_prefix = "of " |
| from_dynasty_suffix | string | ||
| bastard_dynasty_prefix | string | 如果角色是私生子,则用于代替变量from_dynasty_prefix | bastard_dynasty_prefix = "Fitz" |
命名权重
这设置了角色以父母或祖父母的名字命名的机会。每个性别的权重总值不能超过100。
| 变量名称 | 变量类型 | 变量描述 | 代码示例 |
|---|---|---|---|
| pat_grf_name_chance | int | 男孩使用爷爷名字的权重 | pat_grf_name_chance = 55 |
| mat_grf_name_chance | int | 男孩使用外公名字的权重 | mat_grf_name_chance = 5 |
| father_name_chance | int | 男孩使用父亲名字的权重 | father_name_chance = 30 |
| pat_grm_name_chance | int | 女孩使用奶奶名字的权重 | pat_grm_name_chance = 60 |
| mat_grm_name_chance | int | 女孩使用外婆名字的权重 | mat_grm_name_chance = 15 |
| mother_name_chance | int | 女孩使用母亲名字的权重 | mother_name_chance = 15 |
总的文化模组代码范例
west_germanic = {
graphical_culture = westerngfx
english = {
graphical_culture = englishgfx
color = { 0.8 0.2 0.2 }
# Does not exist in 1066 - is the result of cultural amalgamation between Saxon and Norman through events
male_names = {
Adam_Adam Alan_Alan Albert_Albert Alexander_Alexander Alfred Andrew_Andrew Anselm Arnold_Arnold Arthur_Arthur Aubrey Christopher_Christopher
}
female_names = {
Adela_Adela Adelaide_Adelaide Alice_Alice Amice Anne_Anna Aveline_Avelina Beatrice_Beatrice Blanche_Blanche Catherine_Catherine Cecilia_Cecilia
}
from_dynasty_prefix = "of "
bastard_dynasty_prefix = "Fitz"
modifier = default_culture_modifier
# Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100.
pat_grf_name_chance = 30
mat_grf_name_chance = 10
father_name_chance = 25
# Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100.
pat_grm_name_chance = 20
mat_grm_name_chance = 40
mother_name_chance = 5
}
}
模组工具
对于希望在cross-linking name lists工作的人们,有一个叫CK2-Cultures-Parser的工具。此工具可以将cultures.txt文件中的男性和女性名单转换为电子表格(可以用OpenOffice或者Excel编辑) 然后把电子表格中修改后的姓名列表写回cultures.txt文件中。
若要找到此修改工具的详细说明和下载页面的链接,访问Crusader Kings II - User Modifications上的List of Mods/Guides/Utilities
另见
参考文献
| 历史 | 角色 • 家族 • 省份 • 头衔 • 剧本 |
| 脚本 | 指令 • 条件 • 作用域 • 修正 • 事件 • 决议 |
| 常规 | 定义 • 游戏规则 • 另类开局 • 宗教 • 文化 • 政体 • 特质 • 血脉 • 科技 • 法律 • 建筑 • 宣战理由 • 朝贡国 • 单位 • 目标 • 疾病 • 死亡 • 荣誉头衔 • 社团 • 宝物 • 地图外政权 • 内阁成员 • 贸易路线 • 继承 • 奇观 • 称号 |
| 图像/音效/本地化 | 地图 • 图形 • 盾徽 • 肖像 • 界面 • 小地图 • 音乐 • 本地化 |
| 其他 | 故障排除 • 验证器 • 控制台指令 • 编辑游戏存档 • Steam创意工坊 • EU4转档器模组制作 |