王国风云2
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问王国风云2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“死亡模组制作”的源代码
←
死亡模组制作
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|2.6}} As of [[patch 2.6]], death reasons and text displayed on [[succession]] screen have become moddable. ==Death reasons== Death reasons are defined in folder <code>common/death/</code>. The format is: <pre> <death_reason> = { long_desc = DEATH_REASON_DESC sound_list = { female = { "female_violent_death_01" } male = { "male_violent_death_01" } } } </pre> All are optionals, except for <code>long_desc</code>: {| class="wikitable sortable" |- !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. <code>death = { death_reason = death_battle killer = FROM}</code>), the variable $KILLER$ will have its name. * <code>death_trait</code> is a bit special, as it will inject variable $TRAIT_DEATH$ in localization, with the <code><trait_name>_death</code> text, defined for traits that reduce heath. |- |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. *For custom death sounds, sound files are placed in the sound folder and referenced by sound.sfx, within the interface folder. |- |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 <code>common/execution_methods</code> folder. They are written in <code>execution_method</code> blocks. Each execution method must contain a [[#Death reasons|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 <code>weight_multiplier</code> and <code>trigger</code> blocks, FROM is the executioner and ROOT is the executed. === Example === <pre>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 } } } } }</pre> ==Succession screen== Some flavor text appears on succession screen with: *an epitaph of deceased ruler *a presentation of the heir This is configured in <code>common/death_text</code> and <code>common/heir_text</code> respectively. <pre> death_text_proud = { weight_multiplier = { factor = 10 modifier = { factor = 0 OR = { NOT = { trait = proud } is_wicked = no } } } } </pre> <pre> heir_text_traits_falconer = { weight_multiplier = { factor = 25 modifier = { factor = 0 is_adult = no } modifier = { factor = 0 NOT = { trait = falconer } } } } </pre> [[Category:模组制作]] {{ModdingNavbox}}
本页使用的模板:
Template:Clear
(
查看源代码
)
Template:ModdingNavbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
死亡模组制作
。
×
登录
密码
记住登录
加入王国风云2百科
忘记密码?
其他方式登录