王国风云2
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问王国风云2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“法律模组制作”的源代码
←
法律模组制作
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|3.1}} ==Demesne laws== [[File:Demesne Law.jpg|right|frame|The demesne law screen]] Demesne laws are declared inside a block <code>laws = { }</code> and shown in the Laws view. ===Structure=== <pre> law_name = { group = feudal_contract default = yes #If default, used on game start potential = { #Conditions for the law to appear } allow = { #Conditions for the law to be enabled } effect = { #Commands executed when law is enacted } pass_effect = { #Commands executed when law is enacted, takes place before effect = { } and is only triggered when the law is passed in game (not via history or event) } ai_will_do = { #Factors for an AI character to enable the law (1 = 100% chance) } ai_will_revoke = { factor = 0 } # Character modifiers: demesne_size, vassal_limit, castle_vassal_tax_modifier, city_vassal_max_levy, ... } </pre> ===Localization=== *''law_name'': name of the law *''law_name''_option: short name of the law displayed on laws screen buttons *''law_name''_desc: tooltip for law selection button *''group_name'': label for the laws group *''group_name''_desc: tooltip for the laws group ==De jure laws== [[File:Crown laws.jpg|right|frame|The crown law screen]] De jure laws (or crown laws) are declared inside a block <code>de_jure_laws = { }</code> and shown in the Laws view. ===Structure=== <pre> law_name = { show_as_title = yes group = group_name default = yes #If default, used on game start potential = { #Conditions for the law to appear } allow = { #Conditions for the law to be enabled } effect = { #Commands executed when law is enacted } pass_effect = { #Commands executed when law is enacted, takes place before effect = { } and is only triggered when the law is passed in game (not via history or event) } revoke_allowed = { always = no } ai_will_do = { #Factors for an AI character to enable the law (1 = 100% chance) } ai_will_revoke = { factor = 0 } # Character modifiers: feudal_opinion, castle_vassal_min_levy, ... } </pre> ===Localization=== *''law_name'': name of the law *''law_name''_option: short name of the law displayed on laws screen buttons *''law_name''_desc: tooltip for law selection button *''group_name'': label for the laws group *''group_name''_desc: tooltip for the laws group ==Succession laws== [[File:Succession.jpg|right|frame|The succession screen]] Succession laws are declared inside a block <code>succession_laws = { }</code> or <code>gender_laws = { }</code>, and are shown in the Laws view. The actual succession mechanics are hardcoded inside the ''succession'' and ''gender_succ'' commands, and are not moddable beyond weights exported to [[Defines]]. On game start, each title will get a default succession and gender law, if not specified in history files: *For succession laws, they are evaluated in the following order: Turkish/Open Succession, Gavelkind, Seniority, Primogeniture, Feudal Elective, Tanistry, Open Elective, Catholic Bishopric Investiture, Patrician Elective, Ultimogeniture, Papal Succession, Appointment (titles revert to liege on death), Elective Gavelkind, Nomad Succession, and Confucian Bureaucracy (replaced by a random character with China's culture and high stewardship). The first one to match the ''potential'' block will apply. If none of them are available, the default will be Gavelkind. Default succession law can also be implemented by events (for example, the events to make Eldership default for the pagans that use it). *For gender laws, it is determined by the "default_selection" block within the law definition. ===Structure=== <pre> succession_name = { # Character modifiers: child_opinion, dynasty_opinion, ... potential = { #Conditions for the law to appear } allow = { #Conditions for the law to be enabled } effect = { #Commands executed when law is enacted } revoke_allowed = { always = no } } </pre> ===Localization=== *''succession_name'': name of the succession law *''succession_name''_desc: tooltip [[Category:模组制作]] {{ModdingNavbox}} [[en:Law modding]]
本页使用的模板:
Template:Clear
(
查看源代码
)
Template:ModdingNavbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
法律模组制作
。
×
登录
密码
记住登录
加入王国风云2百科
忘记密码?
其他方式登录