文化模组制作:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.1
无编辑摘要
(错误修正)
 
(未显示1个用户的3个中间版本)
第1行: 第1行:
{{version|1.1}}
{{version|1.1}}
{{Expand‎}}
{{Expand‎}}
{{需要翻译}}
 得益于游戏的高度模块化设计,可以轻松地将新文化,革新和时代添加到游戏中。
 得益于游戏的高度模块化设计,可以轻松地将新文化,革新和时代添加到游戏中。
 本文涵盖''common/culture'' 路径下的每个子文件夹。
 本文涵盖''common/culture'' 路径下的每个子文件夹。


__TOC__
__TOC__
== 文化组 ==
==文化组==
 每个文化都隶属于一个文化组。
 每个文化都隶属于一个文化组。


第40行: 第39行:
|name
|name
|List<culturegfx>
|List<culturegfx>
|List of graphical cultures used for coat of arms, buildings, clothings and units. It's possible to give more than one from each type, then all of them will be used.
| 用于文化的盾徽、建筑、服饰和单位图像列表。每种类型可以给出不止一个图像,所有图像都将被使用。
|graphical_cultures = { steppe_coa_gfx }
|graphical_cultures = { steppe_coa_gfx }
|-
|-
|mercenary_names
|mercenary_names
|List<complex>
|List<complex>
|List of names and CoAs that can be used by mercenaries of this culture group.
| 此文化组的雇佣兵可以使用的名称和盾徽列表。
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|name || localization key || Localization key for the name of the mercenary.
|name||localization key|| 雇佣兵名称的本地化键值。
|-
|-
|coat_of_arms || coat of arm || Optional. Coat of Arm for the name of the mercenary.
|coat_of_arms||coat of arm|| 可选。此名称的雇佣兵的盾徽。
|-
|-
|}
|}
第63行: 第62行:


==文化==
==文化==
Each culture belongs to a culture group.
每种文化属于一个文化组。


<pre>
<pre>
第72行: 第71行:
# graphical_cultures = { ... }
# graphical_cultures = { ... }
mercenary_names = { # Names and CoAs that can be used by mercenaries of this culture
mercenary_names = { # 此文化的雇佣兵可以使用的名称和盾徽
{ name = "mercenary_company_name1" coat_of_arms = "mercenary_company_coa1" }
{ name = "mercenary_company_name1" coat_of_arms = "mercenary_company_coa1" }
{ name = "mercenary_company_name2" coat_of_arms = "mercenary_company_coa2" }
{ name = "mercenary_company_name2" coat_of_arms = "mercenary_company_coa2" }
第78行: 第77行:
}
}
color = { 1 0.5 0.2 } # The color of the culture, used e.g. on the map
color = { 1 0.5 0.2 } # 文化的颜色,例如在地图上使用


character_modifier = { # Modifier effects on all characters of the culture
character_modifier = { # 作用于此文化所有角色的修正
diplomacy = 1
diplomacy = 1
}
}


male_names = {
male_names = {
10 = { // The weight for this group of names, the higher, the more common the name is
10 = { // 此组名字的权重。权重越高,名字越常见。
commonNameA commonNameB_baseA commonNameC commonNameD_baseA // A list of names, nameX_baseY means that nameX is a variant of a base name baseY (e.g. John_John Jan_John Ian_John)
commonNameA commonNameB_baseA commonNameC commonNameD_baseA // 名字列表,nameX_baseY是指nameX是基础名称baseY的变体(例如 John_John Jan_John Ian_John
}
}
1 = {
1 = {
第93行: 第92行:
}
}
female_names = { // Names can also be defined as a single list with no weights
female_names = { // 名字也可以定义为没有权重的单一列表
nameA_baseB nameB nameC_baseB
nameA_baseB nameB nameC_baseB
}
}


dynasty_names = { // Dynasty name list, similar to male_names/female_names, just without weights
dynasty_names = { // 宗族名(姓)列表,类似于male_names/female_names ,只是没有权重
{ dynnp_von dynn_Pommern } // but it supports defining prefixes in addition to base names. The {} are required then
{ dynnp_von dynn_Pommern } // 但它支持在基础名前定义前缀。因此需要{}
{ dynn_Orsini } // prefixes are optional
{ dynn_Orsini } // 前缀是可选的
dynn_Fournier // and so are the {} when not using a prefix
dynn_Fournier // 不使用前缀的{} 也是如此
}
}
dynasty_of_location_prefix = "dynnp_von" // when generating a dynasty name based on a title, add this prefix
dynasty_of_location_prefix = "dynnp_von" // 基于头衔生成宗族名时,添加此前缀


# Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100.
# 男孩以(外)祖父或父亲的名字命名的概率。总和不得超过100。
pat_grf_name_chance = 50
pat_grf_name_chance = 50
mat_grf_name_chance = 5
mat_grf_name_chance = 5
father_name_chance = 10
father_name_chance = 10
# Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100.
# 女孩以(外)祖母或母亲的名字命名的概率。总和不得超过100。
pat_grm_name_chance = 10
pat_grm_name_chance = 10
mat_grm_name_chance = 50
mat_grm_name_chance = 50
mother_name_chance = 5
mother_name_chance = 5
# Patronyms. Names after the primary parent. Can use both prefix and suffix together ("McDavidson"). _vowel is used for when the parent's name starts with a vowel.
# 父名(Patronyms)。因父亲/母亲的名字得名。可以同时使用前缀和后缀(“McDavidson”麦克大卫逊)。 _vowel 用于父名的名字以元音开头时。
patronym_prefix_male = "dynnpat_pre_mac"
patronym_prefix_male = "dynnpat_pre_mac"
patronym_prefix_male_vowel = "dynnpat_pre_vow_mag"
patronym_prefix_male_vowel = "dynnpat_pre_vow_mag"
第123行: 第122行:
patronym_suffix_female = "dynnpat_suf_sdaughter"
patronym_suffix_female = "dynnpat_suf_sdaughter"
# Patronyms will display in names if:
# 父名(Patronyms)会在名字中显示,如果:
# - the Character's culture has "always_use_patronym = yes", or
# - 角色的文化有“always_use_patronym = yes ”,或
# - the Character's government has "always_use_patronym = yes", or
# - 角色的政体有“always_use_patronym = yes ”,或
# - the Character's Liege's government has "always_use_patronym = yes"
# - 角色领主的政体有“always_use_patronym = yes
# Default is no.
# 默认是否(no)
always_use_patronym = yes
always_use_patronym = yes
ethnicities = {
ethnicities = {
10 = german // The weight says how common the ethnicity is within the culture
10 = german // 此权重表明该文化内此种族(ethnicity)有多常见
10 = caucasian
10 = caucasian
}
}
第141行: 第140行:
}
}
</pre>
</pre>
Below is a list of all parameters that can be set for cultures.
下表列出了可用于设置文化的所有参数。


{| class="wikitable sortable"
{| class="wikitable sortable"
!Attribute
! 属性
!Type
! 类型
!Description
! 描述
!Example
! 举例
|-
|-
|mercenary_names
|mercenary_names
|List<complex>
|List<complex>
|List of names and CoAs that can be used by mercenaries of this culture.
| 此文化的雇佣兵可以使用的名称和盾徽列表
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|name || localization key || Localization key for the name of the mercenary.
|name||localization key|| 雇佣兵名称的本地化键值。
|-
|-
|coat_of_arms || coat of arm || Optional. Coat of Arm for the name of the mercenary.
|coat_of_arms||coat of arm|| 可选。此名称的雇佣兵的盾徽。
|-
|-
|}
|}
第168行: 第167行:
|graphical_cultures
|graphical_cultures
|List<culturegfx>
|List<culturegfx>
|List of graphical cultures used for coat of arms, buildings, clothings and units. It's possible to give more than one from each type, then all of them will be used.
| 用于文化的盾徽、建筑、服饰和单位图像列表。每种类型可以给出不止一个图像,所有图像都将被使用。
|graphical_cultures = { english_coa_gfx }
|graphical_cultures = { english_coa_gfx }
|-
|-
|Color
|Color
|Decimal RGB Values
|Decimal RGB Values
|Color of the culture.
| 文化的颜色。
|color = { 0.1 0.75 0.1 }
|color = { 0.1 0.75 0.1 }
|-
|-
|character_modifier
|character_modifier
|List<character_modifiers>
|List<character_modifiers>
|Modifier effects on all characters of the culture.
| 作用于此文化所有角色的修正。
|<pre>
|<pre>
character_modifier = {
character_modifier = {
第187行: 第186行:
|cadet_dynasty_names
|cadet_dynasty_names
|List<localization>
|List<localization>
|List of names for cadet dynasties.
| 宗族支系的名称列表。
|<pre>
|<pre>
cadet_dynasty_names = {
cadet_dynasty_names = {
第197行: 第196行:
|dynasty_names
|dynasty_names
|List<localization>
|List<localization>
|List of names for dynasties.
| 宗族名称列表。
|<pre>
|<pre>
dynasty_names = {
dynasty_names = {
第207行: 第206行:
|male_names
|male_names
|List<localization>
|List<localization>
|List of cultural names for male characters. Names with spaces need enclosing quotation marks. ("Name name2")
| 男性角色的文化名称列表。带空格的名称需要用引号括起来。(" 名称 名称2"
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|#|| name group weight || The weight for this group of names, the higher, the more common the name is.
|#||name group weight|| 此组名称的权重,越高,名称越常见。
|-
|-
|}
|}
第222行: 第221行:
|female_names
|female_names
|List<localization>
|List<localization>
|List of cultural names for male characters. Names with spaces need enclosing quotation marks. ("Name name2")
| 女性角色的文化名称列表。带空格的名称需要用引号括起来。(" 名称 名称2"
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|#|| name group weight || The weight for this group of names, the higher, the more common the name is.
|#||name group weight|| 此组名称的权重,越高,名称越常见。
|-
|-
|}
|}
第237行: 第236行:
|dynasty_of_location_prefix
|dynasty_of_location_prefix
|Localization
|Localization
|Cultural equivalent of 'of', e.g - Joan of Arc/Joan D'Arc
| 等同于'of' ('的' )的文化变体,例如 Joan of Arc Joan D'Arc
|dynasty_of_location_prefix = "prefix"
|dynasty_of_location_prefix = "prefix"
|-
|-
|bastard_dynasty_prefix 
|bastard_dynasty_prefix
|Localization
|Localization
|Optional, Prefix for bastard dynasties
| 可选,私生子宗族的前缀
|bastard_dynasty_prefix = "snow"
|bastard_dynasty_prefix = "snow"
|-
|-
|Male Ancestor Name Chance
|Male Ancestor Name Chance
|Integer
|Integer
|Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100.
| 男孩以(外)祖父或父亲的名字命名的概率。总和不得超过100。
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|pat_grf_name_chance || integer || Chance of male being named after Paternal Grandfather.
|pat_grf_name_chance||integer|| 男孩以祖父的名字命名的概率。
|-
|-
|mat_grf_name_chance || integer || Chance of male being named after Maternal Grandfather.
|mat_grf_name_chance||integer|| 男孩以外祖父的名字命名的概率。
|-
|-
|father_name_chance || integer || Chance of male being named after their father.
|father_name_chance||integer|| 男孩以父亲的名字命名的概率。
|-
|-
|}
|}
|<pre>
|<pre>
pat_grf_name_chance = 50 #50% chance of being named after Paternal Grandfather
pat_grf_name_chance = 50 #50% 概率以祖父的名字命名
mat_grf_name_chance = 5  #5% chance of being named after Maternal Grandfather
mat_grf_name_chance = 5  #5% 概率以外祖父的名字命名
father_name_chance = 10  #10% chance of being named after Father
father_name_chance = 10  #10% 概率以父亲的名字命名
</pre>
</pre>
|-
|-
|Female Ancestor Name Chance
|Female Ancestor Name Chance
|Integer
|Integer
|Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100.
| 女孩以(外)祖母或母亲的名字命名的概率。总和不得超过100。
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
!Parameter!!Type!!Description
|-
|-
|pat_grm_name_chance || integer || Chance of male being named after Paternal Grandmother.
|pat_grm_name_chance||integer|| 女孩以祖母的名字命名的概率。
|-
|-
|mat_grm_name_chance || integer || Chance of male being named after Maternal Grandmother.
|mat_grm_name_chance||integer|| 女孩以外祖母的名字命名的概率。
|-
|-
|mother_name_chance || integer || Chance of female being named after their mother.
|mother_name_chance||integer|| 女孩以母亲的名字命名的概率。
|-
|-
|}
|}
|<pre>
|<pre>
pat_grm_name_chance = 10 #10% chance of being named after Paternal Grandmother
pat_grm_name_chance = 10 #10% 概率以祖母的名字命名
mat_grm_name_chance = 50 #50% chance of being named after Maternal Grandmother
mat_grm_name_chance = 50 #50% 概率以外祖母的名字命名
mother_name_chance = 5  #5% chance of being named after Mother
mother_name_chance = 5  #5% 概率以母亲的名字命名
</pre>
</pre>
|-
|-
|patronym_prefix_male
|patronym_prefix_male
|Localization
|Localization
|Names after the primary male parent
| 来自父亲名字的父名(Patronym)
|patronym_prefix_male= "patronym"
|patronym_prefix_male= "patronym"
|-
|-
|patronym_prefix_male_vowel 
|patronym_prefix_male_vowel
|Localization
|Localization
|Names after the primary male parent whose name starts with a vowel
| 来自父亲名字的父名(Patronym),父亲的名字以元音开头
|patronym_prefix_male_vowel = "v_patronym"
|patronym_prefix_male_vowel = "v_patronym"
|-
|-
|patronym_suffix_male 
|patronym_suffix_male
|Localization
|Localization
|Names after the primary male parent but adds a suffix, e.g- Erik''son''
| 来自父亲名字的父名(Patronym),增加后缀,例如Erik''son'' (埃里克''逊'')
|patronym_suffix_male = "patronym_s"
|patronym_suffix_male = "patronym_s"
|-
|-
|patronym_prefix_female
|patronym_prefix_female
|Localization
|Localization
|Names after the primary female parent
| 来自母亲的母名(matronym)
|patronym_prefix_female = "f_patronym"
|patronym_prefix_female = "f_patronym"
|-
|-
|patronym_prefix_female_vowel 
|patronym_prefix_female_vowel
|Localization
|Localization
|Names after the primary female parent whose name starts with a vowel
| 来自母亲名字的母名(matronym),母亲的名字以元音开头
|patronym_prefix_female_vowel = "fv_patronym"
|patronym_prefix_female_vowel = "fv_patronym"
|-
|-
|patronym_suffix_female
|patronym_suffix_female
|Localization
|Localization
|Names after the primary female parent but adds a suffix, e.g- Ayla''sdaughter''
| 来自母亲名字的母名(matronym),增加后缀,例如 Ayla''sdaughter'' (艾拉''斯多特'')
|patronym_suffix_female = "f_patronym_s"
|patronym_suffix_female = "f_patronym_s"
|-
|-
|always_use_patronym 
|always_use_patronym
|Boolean
|Boolean
|Optional (default is no), whether or not a culture always displays Patronyms. (Patronyms can also be turned on from government/liege's government)
| 可选(默认为no),该文化是否总是显示父/ 母名。(父/母名还可以通过政体/领主的政体来控制是否显示。)
|always_use_patronym = yes
|always_use_patronym = yes
|-
|-
|ethnicities
|ethnicities
|List<ethnicities>
|List<ethnicities>
|List of ethnicities common within the culture
| 文化中常见的种族(ethnicities)列表
{|class="wikitable"
{| class="wikitable"
!Parameter !! Type !! Description
! 参数!! 类型!! 描述
|-
|-
|#|| ethnicity weight || The weight says how common the ethnicity is within the culture.
|#||ethnicity weight|| 此权重表明该文化内此种族(ethnicity)有多常见
|-
|-
|}
|}
第330行: 第329行:
ethnicities = {
ethnicities = {
    10 = ethnicity_1
    10 = ethnicity_1
     5 = ethnicity_2 #Half as common as ethnicity 1
     5 = ethnicity_2 # 是ethnicity_1的一半
}
}
</pre>
</pre>
第336行: 第335行:
|dynasty_title_names
|dynasty_title_names
|Boolean
|Boolean
|Optional (default is no), uses dynasty name rather than title name when appropriate
| 可选(默认为no),在适当的时候使用宗族名称而不是头衔名称
|dynasty_title_names = yes
|dynasty_title_names = yes
|-
|-
|founder_named_dynasties
|founder_named_dynasties
|Boolean
|Boolean
|Optional (default is no), uses dynasty name rather than title name when appropriate
| 可选(默认为no),在适当的时候使用宗族名称而不是头衔名称
|founder_named_dynasties = yes
|founder_named_dynasties = yes
|-
|-
|dynasty_name_first
|dynasty_name_first
|Boolean
|Boolean
|Optional (default is no), dynasty name comes before given name (Far-East Style)
| 可选(默认为no),宗族名称显示在名字前(远东习俗)
|founder_named_dynasties = yes
|dynasty_name_first = yes
|}
|}


== 文化组ID ==
==文化组ID==
Culture groups have an internal ID used within the game files. To get a culture group's ID from its in-game name:
文化组在游戏文件中有一个内部ID。通过文化组在游戏内的名称来获得其ID:
# Turn all letters into lowercase (<code>A...Z->a...z</code>).
 
# Replace spaces (<code> </code>) and hyphens (<code>-</code>) with underscores (<code>_</code>).
# 所有字母转变为小写(<code>A...Z->a...z</code> )。
# Add <code>_group</code> to the end.
# 将空格(<code> </code> )和连接符(<code>-</code> )替换为下划线(<code>_</code> )。
# 在末尾添加<code>_group</code>
#不遵循上述模式的文化组列于下表:


Groups that do not follow the convention above have been listed in this table:
{| class="wikitable"
{| class="wikitable"
! Culture group
! 文化组
! Internal ID
! 内部 ID
|-
|-
| Horn African
| 非洲之角
| somalian_group
|somalian_group
|-
|-
| Guinean Uplander
| 几内亚高地
| west_african_group
|west_african_group
|}
|}


== 文化ID ==
==文化ID==
Similar to the above, each culture has an internal ID. To get a culture's ID from its in-game name:
类似于上文的文化组,每个文化拥有一个内部ID。通过文化在游戏内的名称来获得其ID:
# Turn all letters into lowercase (<code>A...Z->a...z</code>).
# Remove any diacritics from letters, including accents (<code>á->a</code>) and umlauts/diaereses (<code>ü->u</code>).


Cultures that do not fit this pattern have been listed below:
#所有字母转变为小写(<code>A...Z->a...z</code>)。
#移除所有变音符,包括重音(<code>á->a</code>)和元音变音/分音符(<code>ü->u</code>)。
 
不遵循上述模式的文化列于下表:
{| class="wikitable"
{| class="wikitable"
! Culture group
! 文化
! Internal ID
! 内部 ID
|-
|彼尔姆
|komi
|-
|奥斯恰克
|khanty
|-
|-
| Permian
| 比亚尔米亚
| komi
|samoyed
|-
|-
| Ostyak
| 苏格兰
| khanty
|scottish
|-
|-
| Bjarmian
| 卡夫
| samoyed
|gaw
|-
|-
| Scots
| 波美拉尼亚
| scottish
|pommeranian
|-
|-
| Pomeranian
| 乌古斯
| pommeranian
|turkish
|-
|-
| Oghuz
| 马什里克
| turkish
|levantine
|}
|}
{{Modding navbox}}
{{Modding navbox}}
[[Category:模组制作]]
[[Category:模组制作]]
[[en:Culture modding]]
[[en:Culture modding]]

2022年4月12日 (二) 17:22的最新版本

得益于游戏的高度模块化设计,可以轻松地将新文化,革新和时代添加到游戏中。 本文涵盖common/culture 路径下的每个子文件夹。

文化组[编辑 | 编辑源代码]

每个文化都隶属于一个文化组。

name_of_culture_group = {
	graphical_cultures = {
		first_culture_group_coa_gfx
		second_culture_group_coa_gfx
		culture_group_building_gfx
		culture_group_clothing_gfx
		culture_group_unit_gfx
	}
	mercenary_names = {
		{ name = "mercenary_company_name1" coat_of_arms = "mercenary_company_coa1" }
		{ name = "mercenary_company_name2" coat_of_arms = "mercenary_company_coa2" }
		...
	}
	first_culture = {
		...
	}
	second_culture = {
		...
	}
}

以下就是文化组可以设置的所有参数。

属性 类型 说明 举例
name List<culturegfx> 用于文化的盾徽、建筑、服饰和单位图像列表。每种类型可以给出不止一个图像,所有图像都将被使用。 graphical_cultures = { steppe_coa_gfx }
mercenary_names List<complex> 此文化组的雇佣兵可以使用的名称和盾徽列表。
参数 类型 描述
name localization key 雇佣兵名称的本地化键值。
coat_of_arms coat of arm 可选。此名称的雇佣兵的盾徽。
mercenary_names = {
	{ name = "mercenary_company_ghilman" coat_of_arms = "mc_ghilman" }
}

文化[编辑 | 编辑源代码]

每种文化属于一个文化组。

name_of_culture_group = {
		...

	first_culture = {
		# graphical_cultures = { ... }
		
		mercenary_names = {			# 此文化的雇佣兵可以使用的名称和盾徽
			{ name = "mercenary_company_name1" coat_of_arms = "mercenary_company_coa1" }
			{ name = "mercenary_company_name2" coat_of_arms = "mercenary_company_coa2" }
			...
		}
		
		color = { 1 0.5 0.2 }	# 文化的颜色,例如在地图上使用

		character_modifier = {	# 作用于此文化所有角色的修正
			diplomacy = 1
		}

		male_names = {
			10 = {	// 此组名字的权重。权重越高,名字越常见。 
				commonNameA commonNameB_baseA commonNameC commonNameD_baseA	// 名字列表,nameX_baseY是指nameX是基础名称baseY的变体(例如 John_John Jan_John Ian_John)
			}
			1 = {
				rareNameA rareNameB
			}
		}
		
		female_names = {	// 名字也可以定义为没有权重的单一列表
			nameA_baseB nameB nameC_baseB
		}

		dynasty_names = {	// 宗族名(姓)列表,类似于male_names/female_names,只是没有权重
			{ dynnp_von dynn_Pommern }	// 但它支持在基础名前定义前缀。因此需要{}
			{			dynn_Orsini }	// 前缀是可选的
						dynn_Fournier	// 不使用前缀的{}也是如此
		}
		dynasty_of_location_prefix = "dynnp_von" // 基于头衔生成宗族名时,添加此前缀

		# 男孩以(外)祖父或父亲的名字命名的概率。总和不得超过100。
		pat_grf_name_chance = 50
		mat_grf_name_chance = 5
		father_name_chance = 10
		
		# 女孩以(外)祖母或母亲的名字命名的概率。总和不得超过100。
		pat_grm_name_chance = 10
		mat_grm_name_chance = 50
		mother_name_chance = 5
		
		# 父名(Patronyms)。因父亲/母亲的名字得名。可以同时使用前缀和后缀(“McDavidson”麦克大卫逊)。 _vowel用于父名的名字以元音开头时。
		patronym_prefix_male = "dynnpat_pre_mac"
		patronym_prefix_male_vowel = "dynnpat_pre_vow_mag"
		patronym_prefix_female = "dynnpat_pre_nic"
		patronym_prefix_female_vowel = "dynnpat_pre_vow_nig"
		
		patronym_suffix_male = "dynnpat_suf_son"
		patronym_suffix_female = "dynnpat_suf_sdaughter"
		
		# 父名(Patronyms)会在名字中显示,如果:
		# - 角色的文化有“always_use_patronym = yes”,或
		# - 角色的政体有“always_use_patronym = yes”,或
		# - 角色领主的政体有“always_use_patronym = yes”
		# 默认是否(no)
		always_use_patronym = yes	
		
		ethnicities = {
			10 = german		// 此权重表明该文化内此种族(ethnicity)有多常见
			10 = caucasian
		}
	}
	
	second_culture = {
		...
	}
}

下表列出了可用于设置文化的所有参数。

属性 类型 描述 举例
mercenary_names List<complex> 此文化的雇佣兵可以使用的名称和盾徽列表
参数 类型 描述
name localization key 雇佣兵名称的本地化键值。
coat_of_arms coat of arm 可选。此名称的雇佣兵的盾徽。
mercenary_names = {
	{ name = "mercenary_company_1" coat_of_arms = "coa_1" }
}
graphical_cultures List<culturegfx> 用于文化的盾徽、建筑、服饰和单位图像列表。每种类型可以给出不止一个图像,所有图像都将被使用。 graphical_cultures = { english_coa_gfx }
Color Decimal RGB Values 文化的颜色。 color = { 0.1 0.75 0.1 }
character_modifier List<character_modifiers> 作用于此文化所有角色的修正。
character_modifier = {
     diplomacy = 1
}
cadet_dynasty_names List<localization> 宗族支系的名称列表。
cadet_dynasty_names = {
     "dynasty_loc"
     "dynasty2_loc"
}
dynasty_names List<localization> 宗族名称列表。
dynasty_names = {
     "dynasty_loc"
     "dynasty2_loc"
}
male_names List<localization> 男性角色的文化名称列表。带空格的名称需要用引号括起来。("名称 名称2")
参数 类型 描述
# name group weight 此组名称的权重,越高,名称越常见。
male_names = {
     male_name_1 male-name-2 maleName3 "Male Name 4"
}
female_names List<localization> 女性角色的文化名称列表。带空格的名称需要用引号括起来。("名称 名称2")
参数 类型 描述
# name group weight 此组名称的权重,越高,名称越常见。
female_names = {
     female_name_1 female-name-2 femaleName3 "Female Name 4"
}
dynasty_of_location_prefix Localization 等同于'of'('的')的文化变体,例如 Joan of Arc 和 Joan D'Arc dynasty_of_location_prefix = "prefix"
bastard_dynasty_prefix Localization 可选,私生子宗族的前缀 bastard_dynasty_prefix = "snow"
Male Ancestor Name Chance Integer 男孩以(外)祖父或父亲的名字命名的概率。总和不得超过100。
参数 类型 描述
pat_grf_name_chance integer 男孩以祖父的名字命名的概率。
mat_grf_name_chance integer 男孩以外祖父的名字命名的概率。
father_name_chance integer 男孩以父亲的名字命名的概率。
pat_grf_name_chance = 50 #50%概率以祖父的名字命名
mat_grf_name_chance = 5  #5%概率以外祖父的名字命名
father_name_chance = 10  #10%概率以父亲的名字命名
Female Ancestor Name Chance Integer 女孩以(外)祖母或母亲的名字命名的概率。总和不得超过100。
Parameter Type Description
pat_grm_name_chance integer 女孩以祖母的名字命名的概率。
mat_grm_name_chance integer 女孩以外祖母的名字命名的概率。
mother_name_chance integer 女孩以母亲的名字命名的概率。
pat_grm_name_chance = 10 #10%概率以祖母的名字命名
mat_grm_name_chance = 50 #50%概率以外祖母的名字命名
mother_name_chance = 5   #5%概率以母亲的名字命名
patronym_prefix_male Localization 来自父亲名字的父名(Patronym) patronym_prefix_male= "patronym"
patronym_prefix_male_vowel Localization 来自父亲名字的父名(Patronym),父亲的名字以元音开头 patronym_prefix_male_vowel = "v_patronym"
patronym_suffix_male Localization 来自父亲名字的父名(Patronym),增加后缀,例如Erikson(埃里克 patronym_suffix_male = "patronym_s"
patronym_prefix_female Localization 来自母亲的母名(matronym) patronym_prefix_female = "f_patronym"
patronym_prefix_female_vowel Localization 来自母亲名字的母名(matronym),母亲的名字以元音开头 patronym_prefix_female_vowel = "fv_patronym"
patronym_suffix_female Localization 来自母亲名字的母名(matronym),增加后缀,例如 Aylasdaughter(艾拉斯多特 patronym_suffix_female = "f_patronym_s"
always_use_patronym Boolean 可选(默认为no),该文化是否总是显示父/母名。(父/母名还可以通过政体/领主的政体来控制是否显示。) always_use_patronym = yes
ethnicities List<ethnicities> 文化中常见的种族(ethnicities)列表
参数 类型 描述
# ethnicity weight 此权重表明该文化内此种族(ethnicity)有多常见
ethnicities = {
     10 = ethnicity_1
      5 = ethnicity_2 #是ethnicity_1的一半
}
dynasty_title_names Boolean 可选(默认为no),在适当的时候使用宗族名称而不是头衔名称 dynasty_title_names = yes
founder_named_dynasties Boolean 可选(默认为no),在适当的时候使用宗族名称而不是头衔名称 founder_named_dynasties = yes
dynasty_name_first Boolean 可选(默认为no),宗族名称显示在名字前(远东习俗) dynasty_name_first = yes

文化组ID[编辑 | 编辑源代码]

文化组在游戏文件中有一个内部ID。通过文化组在游戏内的名称来获得其ID:

  1. 所有字母转变为小写(A...Z->a...z)。
  2. 将空格( )和连接符(-)替换为下划线(_)。
  3. 在末尾添加_group
  4. 不遵循上述模式的文化组列于下表:
文化组 内部 ID
非洲之角 somalian_group
几内亚高地 west_african_group

文化ID[编辑 | 编辑源代码]

类似于上文的文化组,每个文化拥有一个内部ID。通过文化在游戏内的名称来获得其ID:

  1. 所有字母转变为小写(A...Z->a...z)。
  2. 移除所有变音符,包括重音(á->a)和元音变音/分音符(ü->u)。

不遵循上述模式的文化列于下表:

文化 内部 ID
彼尔姆 komi
奥斯恰克 khanty
比亚尔米亚 samoyed
苏格兰 scottish
卡夫 gaw
波美拉尼亚 pommeranian
乌古斯 turkish
马什里克 levantine