小 (RemixMe移动页面Law modding至法律模组制作) |
小 (文本替换 - 替换“Category:Modding”为“Category:模组制作”) |
||
第125行: | 第125行: | ||
*''succession_name''_desc: tooltip | *''succession_name''_desc: tooltip | ||
[[Category: | [[Category: 模组制作]] | ||
{{ModdingNavbox}} | {{ModdingNavbox}} |
2020年5月24日 (日) 02:52的版本
Demesne laws
Demesne laws are declared inside a block laws = { }
and shown in the Laws view.
Structure
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, ... }
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
De jure laws (or crown laws) are declared inside a block de_jure_laws = { }
and shown in the Laws view.
Structure
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, ... }
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
Succession laws are declared inside a block succession_laws = { }
or gender_laws = { }
, 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
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 } }
Localization
- succession_name: name of the succession law
- succession_name_desc: tooltip
模组制作
历史 | 角色 • 家族 • 省份 • 头衔 • 剧本 |
脚本 | 指令 • 条件 • 作用域 • 修正 • 事件 • 决议 |
常规 | 定义 • 游戏规则 • 另类开局 • 宗教 • 文化 • 政体 • 特质 • 血脉 • 科技 • 法律 • 建筑 • 宣战理由 • 朝贡国 • 单位 • 目标 • 疾病 • 死亡 • 荣誉头衔 • 社团 • 宝物 • 地图外政权 • 内阁成员 • 贸易路线 • 继承 • 奇观 • 称号 |
图像/音效/本地化 | 地图 • 图形 • 盾徽 • 肖像 • 界面 • 小地图 • 音乐 • 本地化 |
其他 | 故障排除 • 验证器 • 控制台指令 • 编辑游戏存档 • Steam创意工坊 • EU4转档器模组制作 |