小 (RemixMe移动页面Minor title modding至荣誉头衔模组制作) |
(23:09, 16 June 2018 Rydelfox) |
||
(未显示另一用户的1个中间版本) | |||
第198行: | 第198行: | ||
Note that the code for the description is simply the code for the minor title with '''_desc''' at the end. | Note that the code for the description is simply the code for the minor title with '''_desc''' at the end. | ||
[[Category: | [[Category: 模组制作]] | ||
{{ModdingNavbox}} | {{ModdingNavbox}} | ||
[[en:Minor title modding]] |
2020年12月25日 (五) 21:08的最新版本
Minor titles can be given out for prestige or opinion modifiers. They are defined in the files contained in the /common/minor_titles/
folder.
Note that minor titles are always scoped to the liege's main title, so it's not possible to give a title to a character that resides in a different court.
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/
folder. As long as it does not have the same name as the files in the base game's /common/minor_titles/
folder it will add to the list of 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 } } } }
The example above will add a minor title that can be granted to any adult who is not incapable. It can only be granted in the kingdoms of lalaland and timbuktu, and they must be feudal.
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 | The minor title will be displayed as the holder's main title, overriding other titles such as Count, Duke, etc. | show_as_title = yes
|
realm_in_name | bool | Appends the name of the country after the title (Queen [of Sweden]) | realm_in_name = yes
|
is_voter | bool | Whether the holder has a seat on the council. See Councillor modding. | is_voter = yes
|
dignity | number | Adds the specified amount of dignity to the title holder. | dignity = 0.10
|
attribute | attribute | The optional main attribute that will improve the efficiency of the holder. When opening the UI the candidates will be sorted using this attribute by default. | attribute = martial
|
grant_limit | integer | Maximum number of holders for this title. | grant_limit = 1
|
opinion_effect | integer | Opinion from the holder of title to his liege. 5 would be a +5 opinion. | opinion_effect = 5
|
monthly_salary | number | The amount the holder will earn by holding this minor title in one month. | monthly_salary = 0.1
|
monthly_prestige | number | The amount of prestige accrued each month by the holder of this minor title. | monthly_prestige = 0.15
|
is_unique | bool | Whether this title can be cumulated with another honorary title or not. | is_unique = yes
|
allowed_to_hold | conditions (character scope) | Determines which characters are eligible to hold this minor title. ROOT is the character being checked. FROM is the liege granting the title. | allowed_to_hold = { is_adult = yes NOT = { trait = incapable } } |
allowed_to_grant | conditions (character scope) | Determines who is allowed to grant this title. This might be restricted by religion, culture, traits, or simply limited to one kingdom or duchy. | 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 | Holder of the title counts as born-in-the-purple for Byzantine Empire succession. | counts_as_purple_born = yes
|
<other fields> | character modifiers | Modifiers applied to the holder of the title. |
Localisation
You want the minor title to be named and described properly in the game, so we need to add some localisation. So create a new file in the /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
Note that the code for the description is simply the code for the minor title with _desc at the end.
历史 | 角色 • 家族 • 省份 • 头衔 • 剧本 |
脚本 | 指令 • 条件 • 作用域 • 修正 • 事件 • 决议 |
常规 | 定义 • 游戏规则 • 另类开局 • 宗教 • 文化 • 政体 • 特质 • 血脉 • 科技 • 法律 • 建筑 • 宣战理由 • 朝贡国 • 单位 • 目标 • 疾病 • 死亡 • 荣誉头衔 • 社团 • 宝物 • 地图外政权 • 内阁成员 • 贸易路线 • 继承 • 奇观 • 称号 |
图像/音效/本地化 | 地图 • 图形 • 盾徽 • 肖像 • 界面 • 小地图 • 音乐 • 本地化 |
其他 | 故障排除 • 验证器 • 控制台指令 • 编辑游戏存档 • Steam创意工坊 • EU4转档器模组制作 |