首页所有页面

文化模组制作


文化和文化组(自1.06起)在/common/cultures/文件夹中的文件中定义。

Definition

文化文件中包含一个或多个文化组定义,在定义中设置一个图形文化,并定义一个或多个文化。

Culture group

文化组定义为带有字母数字ID的组标签。一个文化群体必须拥有 graphical_cultures 定义,以及一种或多种文化。文化群定义的一个例子(带有文化)如下:

north_germanic = {

    graphical_cultures = { westerngfx }

    

    #cultures go here

}

Culture

文化定义是一个包含以下标签的组标签:

Attribute Type Description Example
graphical_cultures List<culturegfx> 绘制肖像和地图物品时使用的图形文化顺序列表。第一个culturegfx是首选,其他则是备份类型,以防没有匹配的gfx条目。 graphical_cultures = { italiangfx southerngfx }
unit_graphical_cultures List<culturegfx> 用于设置地图上单位绘制所需的图形集合 unit_graphical_cultures = { saxongfx englishgfx }
secondary_event_pictures culture
color color The color used when drawing the culture map mode
RGB format with a range of 0-1
color = { 0.25 0.5 0.75 }
horde bool Whether characters of this culture are treated as a Horde. Optional. horde = yes
used_for_random bool 防止使用命令时文化被随机选择 create_character = { culture = random}. used_for_random = no
allow_in_ruler_designer bool Prevent selecting the culture in the Ruler designer. Often used with used_for_random = no. allow_in_ruler_designer = no
dukes_called_kings bool Independent dukes are called petty kings dukes_called_kings = yes
baron_titles_hidden bool baron_titles_hidden = yes
count_titles_hidden bool count_titles_hidden = yes
parent culture Makes parent and child cultures not suffer foreigner opinion. swedish = { parent = norse }
modifier static modifiers Modifiers for [provinces ?] of that culture modifier = default_culture_modifier
character_modifier modifiers Character modifiers, similar to religions.
character_modifier = {

	learning = 4

}

founder_named_dynasties bool 使得拥有这种文化的王朝以创始人命名。可选。 founder_named_dynasties = yes
dynasty_title_names bool 这使得这种文化统治者的主要头衔会以王朝为基础。可选 dynasty_title_names = yes
disinherit_from_blinding bool Blinded.png characters cannot inherit disinherit_from_blinding = yes
allow_looting bool Enables looting. allow_looting = yes
seafarer bool Will prefer looting coastal provinces, cheaper fleet levies seafarer = yes
dynasty_name_first bool Puts dynasty name before personal name. Optional. dynasty_name_first = yes
feminist bool 它抵消了附庸通常在统治者是女性或有女性继承人时会获得的负面好感修正。可选。 feminist = yes

All optional tags default to no.


Names

除了上述标签外,游戏在命名角色时还有很多选项。除了 male_names/female_names are optional.

male_names/female_names

这些标签是游戏创建新角色时可以使用的名称列表。它们以空间分离名称列表的形式呈现,位于 male_name or female_name group.

同名的变体可以通过加下划线连接来定义: Johan_John.这使得在文化变化时,统治编号保持一致,因此胡安三世不会被伊凡一世继承。双重名字也可以通过双引号包住来定义。例如, "Sarah Ann". These will be treated as a single name.

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

}

Names can also be weighted using the syntax Name:Weight, default weight being 100 if omitted[1] 零意味着新角色生成时名字永远不会被选中。

male_names = {

  Lars_Laurence:50

}

注意,这个功能自2.5版本起就坏了,2.6版本依然存在,因为游戏完全忽略了重量值。

Patronyms

父名前缀或后缀可以与父亲的名字结合,并加上角色名字。例如,如果男性父名是“son”,David的儿子Mike将使用全名Mike Davidson。

Attribute Type Description Example
male_patronym string The male prefix/suffix added to the father's name. male_patronym = "sson"
female_patronym string The female prefix/suffix added to the father's name. female_patronym = "sdotter"
prefix bool 父名是后缀还是前缀。可选,默认为否。 prefix = no
grammar_transform string 对父亲的名字进行一定变换以生成父名(例如,西班牙语“Rodrigo” + “ez” => “Rodriguez”)。可能的数值有:法语或西班牙语。 grammar_transform = spanish

Dynasty prefix

这些标签用于设置在角色名称后添加王朝时使用的前缀。例如,如果前缀设置为 "of "那么大卫,作为克劳福德王朝的一员,将拥有“克劳福德的大卫”这个名字。

Attribute Type Description Example
from_dynasty_prefix string 设定在名称中添加王朝时使用的前缀 from_dynasty_prefix = "of "
from_dynasty_suffix string
bastard_dynasty_prefix string Used instead of from_dynasty_prefix if the character is a bastard bastard_dynasty_prefix = "Fitz"

Naming chances

这设定了角色以父母或祖父母命名的概率。每个性别的总和不得超过100。

Attribute Type Description Example
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

Example

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

    }

}

Modding tools

对于想要进行姓名列表交叉链接的人,有一个名为 CK2-Cultures-Parser.该工具可以将cultures.txt文件中的男性和女性姓名列表转换为电子表格(可通过OpenOffice或Excel编辑),并将修改后的姓名列表写回cultures.txt文件。

该模组工具的详细描述和下载页面链接可通过 "List of Mods/Guides/Utilities" in the "Crusader Kings II - User Modifications" subforum on the Paradox Interactive forums.

See also

References

相关页面 (60)

BlindedCultureEU4转档器模组制作HordeLootingModifiersRuler designerStatic modifiersSteam创意工坊事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作音乐模组制作验证器