时代修改

(重定向自Age modding)
模组制作· 约 6 分钟阅读

本页面讲述的内容长期有效。

时代是游戏中可用于激活特定机制(宗教冲突/专制度)和消耗辉煌点数以获得一些时代能力的一些动态时间段。

时代[编辑]

时代文件的位置在 Europa Universalis IV/common/ages/*.txt。数目不限,可以只有一个,也可以编写很多。 文件格式如下:

= { #时代名称

#这一年之后,can_start条件开始判定

start =

#时代开始的条件

can_start = { }

#添加以允许宗教冲突

religious_conflicts = yes

#添加以允许专制度机制

absolutism = {

#以下条目定义进行某些操作时,专制度的得失

}

# 时代目标

objectives = { = {

# 目标的前置条件,满足才可以见到。

allow = { }

# 目标的达成条件

} }

# 能力

abilities = { = {

# 能力的前置条件,满足才可以见到。

allow = { }

#定义效果型能力

effect = { }

#定义修正型能力

modifier = { }

#定义特殊能力

rule = { }

#AI的选择概率

ai_will_do = { factor = } } } }

专制度语句[编辑]

这一区域定义进行特定操作时,专制度的得失。

harsh_treatment = <float>  #严酷镇压
stability = <float>  #提升稳定
decrease_autonomy_command = <float> #降低自治度
strengthen_government = <float> #强化政府
increase_autonomy_command = <float> #提高自治度
debase_currency = <float> #贬值货币
execute_rebel_acceptance_command = <float> #执行叛军的要求
seat_in_parliament = <float> #在议会安排席位
war_exhaustion = <float> #降低厌战

特殊能力[编辑]

这些时代独有的能力应当在时代语句的 rule = { }部分使用。

can_transfer_vassal_wargoal = yes #转让附庸 
can_chain_claim = yes #宣称临近土地
can_colony_boost_development = yes #殖民地建成后提高发展度
attack_bonus_in_capital_terrain = yes #首都地形作战加成
force_march_free = yes #强行军免费
ignore_coring_distance = yes #无视造核距离

界面[编辑]

新时代必须被添加进 ages_view.gui ,在 ages_view 窗口内作为一个新的 WindowType。

例如:

WindowType = {
name = "<age name>"
    # ...
}

能力和目标[编辑]

能力和目标用的图标必须被定义在一个 .gfx 文件。例如:

spriteType = {
name = "GFX_obj_discover_america"
texturefile = "gfx/interface/ages/obj_discover_america.dds"
}

spriteType = {
name = "GFX_ab_allow_feudal_de_jure_law"
texturefile = "gfx/interface/ages/ab_allow_feudal_de_jure_law.dds"
}

顶栏[编辑]

一定要注意,当进入黄金时代时,时代会编辑顶栏(Topbar)背景。 没有下列的 spriteTypes,游戏将会在进入黄金时代时崩溃:

GFX_topbar_liberty_overlay_golden
GFX_age_frame_addon_golden
GFX_age_button_golden
GFX_topbar_bg_golden
GFX_topbar_portrait_value_bg_golden

参考资料[编辑]

时代的代码关键字:

  1. 地理大发现时代 - age_of_discovery
  2. 宗教改革时代 - age_of_reformation
  3. 专制主义时代 - age_of_absolutism
  4. 大革命时代 - age_of_revolutions