首页所有页面

死亡模组制作


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).
  • In case a killer is specified(e.g. death = { death_reason = death_battle killer = FROM}), the variable $KILLER$ will have its name.
  • death_trait 有点特殊,因为它会在局部化中注入变量 $TRAIT_DEATH$,其中 <trait_name>_death text, defined for traits that reduce heath.
can_nokiller bool
murder_unknown bool
sound bool 如果设置为“否”,因此杀死某人不会发出死亡音。
sound_list list<sfx> Female and male lists of death sounds.
  • 对于自定义死亡音效,音频文件会放在音频文件夹中,并由sound.sfx在接口文件夹中引用。
execution bool
death_date_desc key 鼠标悬停在某人年龄上时显示的文字会被更改。对于像“去中国”这样并非直接死亡的死亡原因非常有用。

Execution methods

执行某人时,执行方法是从定义的执行方法中随机确定的 common/execution_methods folder. They are written in execution_method blocks. Each execution method must contain a death reason 定义死亡的声音和描述。它们还包含权重倍数,用以确定使用哪些死亡原因。 最后,它们包含触发器。如果触发器判定为假,则该执行方法不可用。

Within the weight_multiplier and trigger FROM是执行方块,ROOT是被执行方块。

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

			}

		}

	}

}

相关页面 (55)

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