獲得榮譽頭銜時會得到威望和其他角色的好感度修正,這定義在 /common/minor_titles/ 文件夾。
注意:榮譽頭銜一頂會領主的主要頭銜所審查。因此,不可能把榮譽頭銜賜給一個居住在不同宮廷的角色。(應該是指內閣的榮譽頭銜)
基礎的榮譽頭銜
製作一個榮譽頭銜的方法很簡單。在你mod文件夾下的 /common/minor_titles/ 文件夾下面創建一個新的txt文件。一旦這個新的榮譽頭銜沒有在遊戲本體中的 /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
}
}
}
}
上面的例子將添加一個榮譽頭銜,可以授予任何沒有能力的成年人。這可以讓你賜予lalaland王爵timbuktu和王爵頭銜,但是被賜予者要是封建類型政府的角色才行。
Properties
| 變數名稱
|
變數類型
|
變數說明
|
代碼示例
|
| is_high_prio
|
bool
|
當標題為空時顯示警報。
|
is_high_prio = yes
|
| show_as_title
|
bool
|
這個榮譽頭銜將會變成持有者的主要頭銜,並且覆蓋其他的伯爵、公國等等頭銜。
|
show_as_title = yes
|
| realm_in_name
|
bool
|
在頭銜後附加國家名稱(Queen [of Sweden])
|
realm_in_name = yes
|
| is_voter
|
bool
|
持有人是否在內閣中擁有席位。詳見Councillor modding.
|
is_voter = yes
|
| dignity
|
number
|
為持有者增加指定的尊嚴。
|
dignity = 0.10
|
| attribute
|
attribute
|
可選的主要屬性,將提高持有人的某個屬性值。打開UI時,默認情況下將使用此屬性對候選人進行排序。
|
attribute = martial
|
| grant_limit
|
integer
|
該頭銜的最大持有者。
|
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
|
|
| 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)
|
當一個頭銜的變數allowed_to_hold值為false時,會Fires
|
lose_effect = {
opinion = {
who = FROM
modifier = opinion_fired_from_council
}
}
|
| retire_effect
|
commands (character scope)
|
|
|
| death_effect
|
commands (character scope)
|
當一個擁有該頭銜的角色死亡時會Fires
|
|
| message
|
bool
|
設置後向其所有者發送消息
|
|
| patrician_heir
|
bool
|
確定貴族繼承人的特殊頭銜
|
patrician_heir = yes
|
| counts_as_purple_born
|
bool
|
擁有這一頭銜的人被視為拜占庭帝國繼承的出生於紫室之人。
|
counts_as_purple_born = yes
|
| <other fields>
|
character modifiers
|
應用於頭銜持有人的修正。
|
|
本地化
如果希望在遊戲中正確顯示和描述榮譽頭銜,我們需要添加一些本地化。在你的mod文件夾下的/localisation/文件夾下面一定要有一個CSV文件,這個文件的名字可以是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的榮譽頭銜的代碼。