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转档器模组制作 |