As of patch 2.6, death reasons and text displayed on succession screen have become moddable.
Death reasons
Death reasons are defined in folder common/death/
.
The format is:
<death_reason> = { long_desc = DEATH_REASON_DESC sound_list = { female = { "female_violent_death_01" } male = { "male_violent_death_01" } } }
All are optionals, except for long_desc
:
Configuration key | Type | Description |
---|---|---|
violent | bool | |
long_desc | key | Localization key. Ex: DEATH_BY_MURDER_UNKNOWN (died under suspicious circumstances).
|
can_nokiller | bool | |
murder_unknown | bool | |
sound | bool | If set to no, killing someone with that reason will not cause a death sound. |
sound_list | list<sfx> | Female and male lists of death sounds.
|
execution | bool | |
death_date_desc | key | Changes the text shown when hovering over someone's age. Useful for death reasons like "Went to China" that aren't really outright dying. |
Execution methods
When executing someone, an execution method is randomly determined from the execution methods defined in the common/execution_methods
folder.
They are written in execution_method
blocks. Each execution method must contain a death reason defining the sound and description of the death. They also contain a weight multiplier to determine which of the available death reasons are used.
Finally, they contain a trigger. If the trigger evaluates to false, the execution method is not available.
Within the weight_multiplier
and trigger
blocks, FROM is the executioner and ROOT is the executed.
Example
execution_method = { death = death_execution_bear weight_multiplier = { factor = 50 modifier = { factor = 8 FROM = { trait = hunter } } modifier = { factor = 3 FROM = { trait = cruel } } trigger = { FROM = { capital_scope = { NOR = { region = world_india region = world_africa } } } } }
Succession screen
Some flavor text appears on succession screen with:
- an epitaph of deceased ruler
- a presentation of the heir
This is configured in common/death_text
and common/heir_text
respectively.
death_text_proud = { weight_multiplier = { factor = 10 modifier = { factor = 0 OR = { NOT = { trait = proud } is_wicked = no } } } }
heir_text_traits_falconer = { weight_multiplier = { factor = 25 modifier = { factor = 0 is_adult = no } modifier = { factor = 0 NOT = { trait = falconer } } } }
歷史 | 角色 • 家族 • 省份 • 頭銜 • 劇本 |
腳本 | 指令 • 條件 • 作用域 • 修正 • 事件 • 決議 |
常規 | 定義 • 遊戲規則 • 另類開局 • 宗教 • 文化 • 政體 • 特質 • 血脈 • 科技 • 法律 • 建築 • 宣戰理由 • 朝貢國 • 單位 • 目標 • 疾病 • 死亡 • 榮譽頭銜 • 社團 • 寶物 • 地圖外政權 • 內閣成員 • 貿易路線 • 繼承 • 奇觀 • 稱號 |
圖像/音效/本地化 | 地圖 • 圖形 • 盾徽 • 肖像 • 介面 • 小地圖 • 音樂 • 本地化 |
其他 | 故障排除 • 驗證器 • 控制台指令 • 編輯遊戲存檔 • Steam創意工坊 • EU4轉檔器模組製作 |