首页所有页面

荣誉头衔模组制作


Minor titles 可以作为声望或好感修正器授予。它们定义在包含于 /common/minor_titles/ folder.

Note that minor titles are always 范围限定在主君的主爵位上,因此无法给居住在不同宫廷的角色授予头衔。

Basic minor title

You can make a basic minor title in a really easy way. Add a .txt file to your mod's /common/minor_titles/ 文件夹。只要它的名字不和基础游戏里的文件同名 /common/minor_titles/ 它会加入到次要标题列表中。

title_houndmaster = {

    dignity = 0.10

    grant_limit = 1

    opinion_effect = 5



    monthly_salary = 0.1

    monthly_prestige = 0.15



    is_unique = yes



    allowed_to_hold = {

        is_adult = yes

        NOT = { trait = incapable }

    }

    allowed_to_grant = {

        AND = {

            is_feudal = yes

            OR = {

                has_landed_title = k_lalaland

                has_landed_title = k_timbuktu

            }

        }

    }

}

上述示例将增加一个未成年称号,任何成年人只要不无行为能力。该职位只能授予拉拉兰和廷巴克图两个王国,且必须是封建的。

Properties

Name Value Effect Example
is_high_prio bool Displays an alert when the title is vacant. is_high_prio = yes
show_as_title bool 次要头衔将作为持有人的主要头衔显示,优先于伯爵、公爵等其他头衔。 show_as_title = yes
realm_in_name bool 在头衔后附上国家名称(瑞典女王) realm_in_name = yes
is_voter bool 持有者是否拥有议会席位。参见 Councillor modding. is_voter = yes
dignity number 为头衔持有人增加指定的尊严。 dignity = 0.10
attribute attribute 可选的主要属性将提升持有者的效率。打开界面时,候选对象默认会用这个属性排序。 attribute = martial
grant_limit integer Maximum number of holders for this title. grant_limit = 1
opinion_effect integer 来自其领主的爵位持有者的意见。5 会是 +5 的意见。 opinion_effect = 5
monthly_salary number 持有者持有此小头衔一个月内将获得的金额。 monthly_salary = 0.1
monthly_prestige number 持有此小头衔者每月获得的声望。 monthly_prestige = 0.15
is_unique bool 这个头衔是否能与另一个荣誉头衔叠加。 is_unique = yes
allowed_to_hold conditions (character scope) 决定哪些角色有资格获得这个小头衔。ROOT 是被检查的字符。FROM是授予该头衔的君主。
allowed_to_hold = {

    is_adult = yes

    NOT = { trait = incapable }

}

allowed_to_grant conditions (character scope) 决定谁有权授予此称号。这可能受宗教、文化、特质限制,或者仅限于一个王国或公国。
allowed_to_grant = {

    has_landed_title = k_lalaland

}

gain_effect commands (character scope) Fires when the title is granted
revoke_trigger conditions (character scope)
revoke_trigger = {

  FROM = {

    primary_title = {

      NOT = { 

        AND = {

          has_law = succession_voting_power_1

          ROOT = { is_powerful_vassal = yes }

        }

      }

    }

  }

}

lose_effect commands (character scope) Fires when a title is lost if allowed_to_hold evaluates to false
lose_effect = {

  opinion = { 

    who = FROM

    modifier = opinion_fired_from_council

  }

}

retire_effect commands (character scope)
death_effect commands (character scope) Fires when a character dies while holding this title
message bool Fires a message to the its owner when set
patrician_heir bool Special title that determines the heir of a Patrician patrician_heir = yes
counts_as_purple_born bool 持有该头衔的人在拜占庭帝国继承中被视为“天生紫衣”。 counts_as_purple_born = yes
<other fields> character modifiers Modifiers applied to the holder of the title.

Localisation

你希望游戏中小标题能被正确命名和描述,所以我们需要添加一些本地化。所以在 /localisation/ folder of your mod. It must be a CSV file, so the name could be something like 00_Minor_titles.csv.

#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x

title_houndmaster;Houndmaster;;;;;;;;;;;;;x

title_houndmaster_desc;An honorary title granted to the finest master of canines in the land.;;;;;;;;;;;;;x

注意,描述的代码就是小标题的代码,其中 _desc at the end.

相关页面 (59)

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