時代修改
時代是遊戲中可用於激活特定機制(宗教衝突/專制度)和消耗輝煌點數以獲得一些時代能力的一些動態時間段。
時代
時代文件的位置在 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
參考資料
時代的代碼關鍵字:
