首页所有页面

法律模组制作


Demesne laws

The demesne law screen

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:法律屏幕按钮上显示的法律简称
  • 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

The crown law screen

De jure法律(或王冠法)是在街区内宣布的 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:法律屏幕按钮上显示的法律简称
  • 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

The succession screen

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.

游戏开始时,每个头衔都会有默认的继承和性别法律,如果历史文件中未明确说明:

  • 继承法的评估顺序如下:土耳其/开放继承、法槌、长子继承、长子继承制、封建选举制、廷尼斯制度、开放选举制、天主教主教任命、贵族选举制、终极继承制、教皇继承、任命(死后头衔回归封建)、选举法槌制、游牧继承制和儒家官僚制(由具有中国文化和高层管理的随机人物替代)。第一个匹配 potential 将会被封锁。 如果没有可用,默认是“槌形”。 默认继承法也可以通过事件实现(例如,让使用长老权的异教徒默认的事件)。
  • 对于性别法律,则由法律定义中的“default_selection”区块决定。

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
相关页面 (54)

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