指令

模組製作· 约 198 分钟阅读

此頁面正在翻譯中

這個頁面介紹的是改派用到的指令語句,控制台指令(Console commands)請參閱另一頁面

效果(effects)指令 用於在特定的作用域(scope)中動態地影響遊戲。在早前,這部分被直接稱為Effects,現在則是Commands,從而避免與效果作用域混淆。 指令只能用於特定的作用域上下文(scope contexts),也只能操作特定的值域。否則,就會因「數據類型不一致」而失效。而「數據類型轉換」要通過域的轉換,而不是指令。因此,要特別注意域上下文是條件(Triggers)、效果(Effects)或者其他段落,也要注意指令用於國家(country)、省份(province)或者其他類型。大體上,指令(Commands)主要用於效果(Effects)域內的國家(country)型或省份(province)型子域。

多作用域

v1.24

這些效果指令在國家或省份的作用域中都可以被使用。 參照Scopes#Dual_scopes,觀察可見,這部分指令都有全局性。與作用域的雙重域不同,指令的雙重域仍然只能寫在效果域上下文內,但是它們的操作目標(上下文中的某個子域)可能是雙重的。

語句

參數

例子

描述

備註

版本

set_global_flag


用於標識全局標誌

set_global_flag = my_flag
set_global_flag = my_flag@ROOT
set_global_flag = my_flag@event_target:name

定義一個全局標誌

標誌可以附加作用域或事件目標

1.1

clr_global_flag


用於清除全局標誌

clr_global_flag = my_flag

清除一個全局標誌

1.1

custom_tooltip


以一段文字代替效果顯示

custom_tooltip = my_tooltip_tt

以一段文字代替效果顯示

1.1

log


game.log中的字符串

log = "myVariable: [Root.myVariable.GetValue]"

執行時在game.log中顯示一個字符串。

接受所有本地化命令(即[Root.GetName]等)

1.21

save_event_target_as


用於標識事件目標的獨特字符串。

capital_scope = {
save_event_target_as = my_province
}

將當前範圍另存為關鍵點。一旦執行結束(即事件結束)就清除。

使用event_target:確定範圍。

1.8

save_global_event_target_as


用於標識全局事件目標的獨特字符串。

random_country = {
save_global_event_target_as = my_country
}

將當前範圍另存為關鍵點。執行後持續存在,直到通過效果清除。

使用event_target:確定範圍。

1.8

clear_global_event_target


用於清除全局事件目標的獨特字符串。

clear_global_event_target = my_country

清除特定的全局事件目標。

1.8

clear_global_event_targets

yes
布爾值。

clear_global_event_targets = yes

清除所有全局事件目標。

1.8

show_ambient_object


用於顯示環境對象的獨特字符串。

show_ambient_object = nammi2_hagia_sophia_minarets_entity

顯示map/ambient_objects.txt 文件中隱藏的環境對象。

1.19

hide_ambient_object


用於隱藏環境對象的獨特字符串。

hide_ambient_object = nammi2_hagia_sophia_minarets_entity

在map/ambient_objects.txt 文件中隱藏可見的環境對象。

1.19

作用域:國家

v1.24

這些指令只能在作用域為國家時使用。

一般指令

v1.24

語句

參數

例子

描述

備註

版本

country_event

id =
需要觸發的事件ID
days =
可選。 指定天數後觸發此事件
random =
可選。 加入隨機參數,增加觸發事件的 天數 最大值
tooltip =
可選。 以本地化文字代替 country_event 顯示效果

country_event = { 
id = celestial_empire_events.1
days = 30
random = 15
tooltip = CELESTIAL_EMPIRE_TOOLTIP
}

當前國家觸發一個國家事件

若以事件效果觸發,請注意,不能再觸發此事件本身。

1.1

add_country_modifier

name =
添加一個事件修正
duration =
可選。 事件修正的持續時間
hidden = yes
可選。 此修正是否隱藏,是否可以在政府界面中查看到
desc =
可選。 添加修正額外的文字描述

add_country_modifier = { 
name = the_proper_old_ways
duration = -1  
desc = PROPER_OLD_WAYS_DESC_TOOLTIP
hidden = yes
}

當前國家添加一個事件修正

1.1

remove_country_modifier


移除事件修正

remove_country_modifier = the_proper_old_ways

當前國家移除一個事件修正

1.1

set_country_flag


一個特殊的標識

set_country_flag = my_flag
set_country_flag = my_flag@ROOT
set_country_flag = my_flag@event_target:name

定義一個國家標識

Flags可以作為條件範圍與事件目標

1.1

clr_country_flag


確認一個特殊的標識以清除

clr_country_flag = my_flag

清除一個國家標識

1.1

change_tag


變更控制的TAG

change_tag = FRA
change_tag = ROOT
change_tag = event_target:my_country

變更控制的TAG。控制的國家變身為指定的tag。

1.1

switch_tag


切換控制的TAG

switch_tag = FRA
switch_tag = ROOT
switch_tag = event_target:my_country

切換玩家控制的TAG。原本的國家將變為由AI控制。

1.8

change_graphical_culture


變更的文化配圖

change_graphical_culture = westerngfx

變更指定國家的文化配圖。文化配圖包括兵模、顧問肖像等。

文化配圖可見Europa Universalis IV/common/graphicalculturetype.txt

1.11

add_adm_power


增加或減少的君主力量點數

add_adm_power = 100

增加行政君主力量點數

1.1

add_dip_power


增加或減少的君主力量點數

add_dip_power = 100

增加外交君主力量點數

1.1

add_mil_power


增加或減少的君主力量點數

add_mil_power = 100

增加軍事君主力量點數

1.1

set_saved_name

key =
保留名字的代號。
type = advisor / simple
名稱生成類型。Advisor從名稱列表中提取,簡單地利用name參數。
name =
要保存在代號下的名稱。僅與簡單類型一起使用。
scope =
從中提取名單的國家/地區範圍。僅與advisor 類型一起使用。

Simple:

set_saved_name = {
key = simple_name
type = simple
name = "My Simple Name"
}
define_ruler = {
name = simple_name
}

Advisor:

set_saved_name = {
key = noble_zealot
type = advisor
scope = ROOT
}
spawn_rebels = {
size = 1
leader = noble_zealot
type = religious_rebels
}

將名稱保存到唯一代號下以用於其他效果。

可與 define_admiral, define_explorer, define_conquistador, define_general, define_ruler, define_consort, define_heir, define_advisor, spawn_rebels 一起使用。

1.23

clear_saved_name


要清除的名稱代號。

clear_saved_name = noble_zealot

清除已保存的名稱。

在使用保存名稱後使用此效果。

1.23

add_power_projection


要增加的數值 type
力量投射的來源類型

add_power_projection = { type = mission_rewards_power_projection amount = 10 }

獲得力量投射

常用的type有: mission_rewards_power_projection 任務和事件獎勵 zim_african_great_power 後者是不會隨時間衰減的。 每個類型的力量投射分別計算年度衰減

1.31

change_innovativeness


: 創新度增加的數值

change_innovativeness = 3

為當前作用域增加(減少)創新度

數值範圍[-100.0, 100.0] 創新度的上限與下限[0.0, 100.0]

1.25

complete_mission


:任務的標識符

complete_mission = expand_country_mission

完成一個任務

使用此效果時不給予任務獎勵。 相反,任務被簡單地標記為完成。 它將計入任何需要它的任務,並將在mission_completed 觸發器中計為已完成。

1.25

swap_non_generic_missions

yes 布爾值

swap_non_generic_missions = yes

刷新非通用任務樹

?

adm_power_cost


The amount of power to scale and then subtract.

adm_power_cost = 100

Scales the amount with the power cost modifier, then takes 行政力量點數 from the current scope.

1.27

dip_power_cost


The amount of power to scale and then subtract.

dip_power_cost = 100

Scales the amount with the power cost modifier, then takes 外交力量點數 from the current scope.

1.27

mil_power_cost


The amount of power to scale and then subtract.

mil_power_cost = 100

Scales the amount with the power cost modifier, then takes 軍事力量點數 from the current scope.

1.27

override_country_name


變更為指定作用域的國家本地化名稱

override_country_name = KINGDOM_OF_GOD

變更指定作用域的國家名稱為。

1.30

restore_country_name


布爾值

restore_country_name = yes

恢復指定作用域的國家名稱為最初的名稱。

1.30

經濟

v1.34

語句

參數

例子

描述

備註

版本

add_years_of_income


增加或減少的收入數字

add_years_of_income = 0.5

獲得當前年收入X倍的金幣:即獲得若干年年收入(當前狀況下)的金幣

每1個單位相當於當前1年的收入,年收入多少根據當前國家月收入計算。

1.1

add_treasury


增加或減少的金幣數量

add_treasury = 50

獲得指定數目的金幣

1.1

add_inflation


增加或減少通貨膨脹率

add_inflation = 2

獲得指定的通貨膨脹率

1.1

add_mercantilism


增加或減少重商主義

add_mercantilism = 2

獲得指定的重商主義

1.1

add_tariff_value


增加或減少關稅稅率

add_tariff_value = 0.1

提高的關稅稅率幅度

關稅是殖民地等附庸國向宗主國輸送的財富。

1.4

loan_size


變更的數值

loan_size = 24

貸款規模

貸款規模與月收入相關,當月中貸款的額度都是相近的。

1.1

add_loan

duration = 貸款的月份數 interest_modifier =
活躍的利率修正 fixed_interest =
如果為yes則利率被鎖定(不隨國家利率變化而變化)

add_loan = {
fixed_interest = 1
duration = 60
estate_loan = yes
}

獲得一筆貸款

fixed_interest 鎖定利息利率 這是可選的 duration 確定了貸款自然到期的月份數 estate_loan = yes 規定了是否債權人為階級 *但是不能確定具體的階級 *目前債權人只能為階級或銀行

1.26

change_price

trade_goods =
貿易品價格的變化。
key =
在貿易品價格提示框中顯示的文本。
value =
貿易品價格變化的百分比。
duration =
貿易品價格變化持續的時間。

change_price = {
trade_goods = grain
key = grain_shortage
value = 0.5
duration = 3650
}

變更全球貿易品價格

貿易品價格可以在Europa Universalis IV/common/prices/*.txt搜索到
新價格 = 基礎價格 + (基礎價格 * 價格變化的百分比)
duration = -1 表示永久變更。

1.8

raise_war_taxes

yes:布爾值

raise_war_taxes = yes

可不使用軍事點數徵收戰爭稅

1.26

add_years_of_owned_provinces_production_income

years = :給予相當於多少年生產收入總額的錢 trigger = :計算的範圍(包含的省份) custom_tooltip = :顯示的文本提示

add_years_of_owned_provinces_production_income = {
years = 8
trigger = {
OR = {
trade_goods = cloth
trade_goods = silk
}
}
custom_tooltip = MONOPOLY_INCOME_CLOTH_DESC
}

計算指定的範圍,給予相當於多少年生產收入總額的錢

1.30

set_bankruptcy


使特定國家破產

set_bankruptcy = FRA

使特定國家破產

1.34

native_policy

變更為指定的原住民政策

native_policy = native_policy_coexist

改變原住民政策

1.28

政府

v1.30

語句

參數

例子

描述

備註

版本

add_absolutism


專制度變化的數值

add_absolutism = 10

變化相應數值的專制度

若專制度未被啟用則無效果

1.20

add_legitimacy


正統度變化的數值。

增加或者減少正統度,以達到當前目標的值

add_legitimacy = 10
add_legitimacy = CAS

變化相應數值的正統度

若政體無 monarchy = yes 則無效果

1.1

add_republican_tradition


共和傳統變化的數值

add_republican_tradition = 10

變化相應數值的共和傳統

若政體無 republic = yes 則無效果

1.1

add_scaled_republican_tradition


添加共和傳統

add_scaled_republican_tradition = 10

為當前作用域添加共和傳統

數值與任期有關,任期為4年時添加的共和傳統數值與該值相同

1.7

add_devotion


奉獻度變化的數值

add_devotion = 10

變化相應數值的奉獻度

若非 has_devotion = yes 則無效果

1.12

add_horde_unity


部族統一度變化的數值

add_horde_unity = 10

變化相應數值的部族統一度

若政體無 nomad = yes 則無效果

1.14

add_meritocracy


精英度變化的數值

add_meritocracy = 10

變化相應數值的精英度

若政體無 has_meritocracy = yes 則無效果

1.20

set_meritocracy


設置精英度的數值

set_meritocracy = 10

設置精英度為指定的數值

若政體無 has_meritocracy = yes 則無效果

1.20

add_tribal_allegiance


部族忠誠度變化的數值

add_tribal_allegiance = 10

變化相應數值的部族忠誠度

若政體無 tribal_federation_mechanic = yes 則無效果

1.23

change_statists_vs_orangists


派別傾向的數值變化

change_statists_vs_orangists = 10

議會派與奧蘭治派,變化相應數值的派別傾向

正數傾向奧蘭治派,負數傾向議會派

1.7

change_government


變更為指定的政體

change_government = dictatorship

變更為指定的政體類型

政體類型可以在Europa Universalis IV/common/governments/*.txt搜索到

1.1

set_government_rank


變更政府等級到指定的等級

set_government_rank = 3

政府等級變更為指定的級別

原版默認政府等級為1-3級,分別對應公國級、王國級、帝國級

1.12

add_government_power

government_mechanic =
指定的政府機制
which =
政府力量類型 行政(ADM),外交(DIP) 或者 軍事(MIL)
amount =
獲得的力量點數

add_government_power = {
government_mechanic = russian_mechanic
which = ADM
amount = 10
}

變更政府機制中任意一項力量點數的多少

目前擁有特殊政府機制的政體列表:

  • 俄羅斯政府機制(russian_mechanic)
  • 封建神權政府機制(feudal_theocracy_mechanic)
  • 部族忠誠政府機制(tribal_federation_mechanic)
  • 馬穆魯克政府機制(mamluk_mechanic)
  • 伊克塔政府機制(iqta_mechanic)

1.23

set_government_and_rank

government =
變更為指定的政體
rank =
變更政府等級到指定的級別

set_government_and_rank = { 
government = celestial_empire
rank = 3
}

註:此例僅為舉例,原版中天朝政體(celestial_empire)鎖定帝國級(fix = 3),故而無需特別設置。

變更政體的同時設置政府級別

政體類型可以在Europa Universalis IV/common/governments/*.txt搜索到
註:這項指令無法變更鎖定政府級別和附庸的最大政府級別

1.22

dissolve_parliament

yes
布爾值

dissolve_parliament = yes

去除議會機制

若政體無 has_parliament = yes 則無效果

1.15

reinstate_parliament

yes
布爾值

reinstate_parliament = yes

用於 dissolve_parliament = yes 去除議會機制後,來恢復議會機制

若政體無 has_parliament = yes 則無效果

1.15

change_government_reform_progress


要改變的政府改革點數的數值

change_government_reform_progress = 250

為當前作用域增加(或減少)政府改革點數

正數獲得政府改革點數,負數則失去 無法降低至0以下

1.26

adopt_reform_progress


獲得與目標作用域相同的政府改革進程

adopt_reform_progress = FROM

獲得與目標作用域相同的政府改革進程。

可用於教皇國被釋放的情況下。

set_legacy_government

government =
使政府變為達摩DLC以前的樣子。

set_legacy_government = despotic_monarchy

切換為指定的政府

若達摩 達摩DLC生效則無效。

1.26

add_government_reform


實行指定的政府改革項

add_government_reform = revolutionary_empire_reform

實行指定的政府改革項

若達摩達摩DLC為未用狀態,該語句不生效。(這在1.36.2以前可能是正確的,未測試) 無論達摩達摩DLC是否啟用皆生效(1.36.2編輯,已測試)

1.26

remove_government_reform


移除指定的政府改革項

remove_government_reform = revolutionary_empire_reform

移除指定的政府改革項

若達摩達摩DLC為未用狀態,該語句不生效。(這在1.36.2以前可能是正確的,未測試) 無論達摩達摩DLC是否啟用皆生效(1.36.2編輯,已測試)

1.26

add_revolutionary_zeal


增加革命熱情

add_revolutionary_zeal = 10

增加革命熱情

若當前作用域政府無 革命熱情 機制則無效。

1.30

add_years_of_manpower_scaled_to_seats


從議會省份獲得人力

add_years_of_manpower_scaled_to_seats = 10

從議會省份獲得人力

若當前作用域無 議會省份 則無效。

1.26

add_years_of_sailors_scaled_to_seats


從議會省份獲得水手

add_years_of_sailors_scaled_to_seats = 10

從議會省份獲得水手

若當前作用域無 議會省份 則無效。

1.26

add_years_of_tax_scaled_to_seats


從議會省份獲得稅收

add_years_of_tax_scaled_to_seats = 10

從議會省份獲得稅收

若當前作用域無 議會省份 則無效。

1.26

add_prestige_scaled_to_seats


從議會省份獲得威望

add_prestige_scaled_to_seats = 10

從議會省份獲得威望

若當前作用域無 議會省份 則無效。

1.26

文化

v1.24

語句

參數

例子

描述

備註

版本

add_accepted_culture


添加可接受文化

添加目標的可接受文化

add_accepted_culture = english
add_accepted_culture = ENG
add_accepted_culture = event_target:my_event_target
add_accepted_culture = variable:my_variable

添加目標(文化、國家、變量)為新的可接受文化

文化請參考Europa Universalis IV/common/cultures/*.txt。
另外也可以參考事件範圍變量。

1.1

change_primary_culture


變更主流文化, 文化請參考Europa Universalis IV/common/cultures/。

變更為目標的主流文化

change_primary_culture = english
change_primary_culture = ENG
change_primary_culture = event_target:my_event_target
change_primary_culture = variable:my_variable

添加目標(文化、國家、變量)為新的主流文化

文化請參考Europa Universalis IV/common/cultures/*.txt。
另外也可以參考事件範圍變量。

1.1

remove_accepted_culture


移除可接受文化,文化請參考Europa Universalis IV/common/cultures/

移除目標的可接受文化

remove_accepted_culture = english
remove_accepted_culture = ENG
remove_accepted_culture = event_target:my_event_target
remove_accepted_culture = variable:my_variable

移除目標(文化、國家、變量)的可接受文化

文化請參考Europa Universalis IV/common/cultures/*.txt。
另外也可以參考事件範圍變量。

1.1

宗教

v1.24

語句

參數

例子

描述

備註

版本

change_religion


要改變的宗教

改變宗教的範圍

change_religion = catholic
change_religion = CAS
change_religion = event_target:my_event_target
change_religion = variable:my_variable

在當前範圍內改變宗教

宗教可以在Europa Universalis IV/common/religions/*.txt裡面找到
Can utilise Event Scope Values.

1.1

enable_religion


要啟用的宗教

enable_religion = reformed

啟用一個受條件限制的宗教

宗教可以在Europa Universalis IV/common/religions/*.txt裡面找到

1.1

force_converted

yes
是或者否

force_converted = yes

設定當前作用域是否「被強制轉教」的記錄

1.1

add_authority


增加或減少權威值

add_authority = 10

增加權威值,權威值作用於因蒂崇拜的宗教改革

如果國家沒有因蒂崇拜的宗教改革系統,那麼增加或減少權威值將不會產生任何效果

1.10

add_doom


增加或減少末日值

add_doom = 10

增加末日值,末日值作用於納瓦特爾神話的宗教改革

如果國家沒有納瓦特爾神話的宗教改革系統,那麼增加或減少末日值將不會產生任何效果

1.10

remove_religious_reforms


移除指定宗教改革數量

remove_religious_reforms = 2

移除指定宗教改革數量

如果國家沒有因蒂崇拜的宗教改革系統,將不會產生任何效果

1.10

add_fervor


增加或減少狂熱點

add_fervor = 10

改變指定數額的狂熱點,狂熱點作用於改革宗的狂熱系統

如果國家沒有改革宗的狂熱系統,將不會產生任何效果

1.6

add_karma


增加或減少業力

add_karma = 10

改變指定數額的業力,業力作用於佛教通用的業力系統

如果國家沒有佛教諸教派的業力系統,將不會產生任何效果

1.12

set_karma


設置業力值

set_karma = 10

將業力值設定為指定數額,業力作用於佛教通用的業力系統

如果國家沒有佛教諸教派的業力系統,將不會產生任何效果

1.12

add_church_power


增加或減少教會力量

add_church_power = 10

改變指定數量的教會力量,教會力量作用於新教的教會系統

如果國家沒有新教的教會力量系統,將不會產生任何效果

1.12

add_church_aspect


啟用的信條

add_church_aspect = adult_baptism_aspect

對當前作用域啟用指定的信條。

原版信條可在Europa Universalis IV/common/church_aspects/00_church_aspects.txt找到
如果國家沒有新教的教會力量系統或者指定的教會力量對該國家不可用則無效
對科普特祝福機制無效。

1.12

remove_church_aspect


要移除的信條,可填random而隨機移除一項

remove_church_aspect = adult_baptism_aspect

移除當前作用域國家指定的信條

原版信條可在Europa Universalis IV/common/church_aspects/00_church_aspects.txt找到
如果國家沒有新教的教會力量系統或者指定的教會力量對該國家不可用則無效
對科普特祝福機制無效。

1.12

add_papal_influence


增加或減少教廷影響力

add_papal_influence = 10

改變指定數額的教廷影響力

如果國家沒有天主教的教廷系統,將不會產生任何效果

1.1

add_reform_desire


增加或減少改革呼聲

add_reform_desire = 0.5

改變指定數額改革呼聲

1.1

excommunicate


開除教籍

excommunicate = FRA

將指定國家開除教籍,如果目標國家已經被開除教籍,則恢復教籍

1.12

set_papacy_active

yesno
是或者否

set_papacy_active = yes

啟用或禁用教廷機制

1.1

add_piety


增加或減少虔誠

add_piety = 0.5

改變指定數額的虔誠

如果國家沒有伊斯蘭教的虔誠系統,將不會產生任何效果

1.1

set_school_opinion

who =
目標學派
opinion =
設置為何種關係

set_school_opinion = {
who = TUR
opinion = -1
}

設置當前作用域國家所屬學派對指定作用域國家所屬學派的關係。

-1為負面(敵視), 0為中立(曖昧), 1為正面(友好)。

1.23

set_religious_school

group =
目標宗教組
school =
目標學派

set_religious_school = {
group = muslim
school = hanafi_school
}

變更當前作用域的學派

學派可以在Europa Universalis IV/common/religions/00_religions.txt找到。

1.23

add_patriarch_authority


牧首權威的改變量

add_patriarch_authority = 0.5

增加或者減少當前國家的牧首權威

如果國家沒有牧首權威機制則無效。

1.1

change_personal_deity


要變更的守護神(主神)

change_personal_deity = odin

將當前作用域國家的守護神改為指定主神

主神可以在Europa Universalis IV/common/personal_deities/*.txt找到
對信仰沒有主神信仰機制的宗教的國家無效

1.6

add_harmony


要增加或者減少的和諧值

add_harmony = 10

增加或者修改和諧值

對不信仰使用和諧機制的宗教的國家無效

1.20

add_harmonized_religion


要和諧的宗教

add_harmonized_religion = catholic

為作用域國家增加一個宗教到已和諧宗教列表,注意即使是異教也只能填寫該宗教組的任意一宗教,不能填寫宗教組

對不信仰使用和諧機制的宗教的國家無效

1.20

add_harmonization_progress


要增加或者減少的和諧進度

add_harmonization_progress = 10

增加或者減少當前作用域國家的和諧進度

對不信仰使用和諧機制的宗教的國家無效

1.20

unlock_cult


解鎖崇拜物

unlock_cult = yemoja_cult

為當前作用域國家解鎖指定的崇拜物

崇拜物可以在Europa Universalis IV/common/fetishist_cults/*.txt找到
對不信仰使用崇拜物機制的宗教的國家無效

1.18

add_isolationism


要改變的孤立主義的值

add_isolationism = 1

增加或者減少當前作用域國家的孤立主義

對信仰不使用孤立主義機制的宗教的國家無效

1.20

set_isolationism


要設置的孤立主義狀態

set_isolationism = 2

設置當前作用域國家的孤立主義狀態

對信仰不使用孤立主義機制的宗教的國家無效

1.20

add_incident_variable_value

incident =
要改變變量的事變
value =
要改變的變量值

add_incident_variable_value = {
incident = incident_urbanization
value = -1
}

改變當前作用域國家指定事變的變量

事變可以在Europa Universalis IV/common/isolationism/*.txt找到
對信仰不使用孤立主義機制的宗教的國家無效

1.20

set_incident_variable_value

incident =
要改變變量的事變
value =
要設為的變量值

set_incident_variable_value = {
incident = incident_urbanization
value = 1
}

設置當前作用域國家指定事變的變量

事變可以在Europa Universalis IV/common/isolationism/*.txt找到
對信仰不使用孤立主義機制的宗教的國家無效

1.20

add_curia_treasury


增加或減少教廷金庫的金錢。

add_curia_treasury = 100

增加或減少教廷金庫的金錢。

1.30

change_cult


變更崇拜物

change_cult = yemoja_cult

Changes the current cult for the current scope.

崇拜物可以在Europa Universalis IV/common/fetishist_cults/*.txt找到。
非拜物教則指令無效

1.32

set_defender_of_the_faith

成為信仰守護者who =
目標作用域
religion =
指定宗教

set_defender_of_the_faith = {
who = ROOT  #指定国家
religion = ROOT  #指定宗教
}

設置目標作用域成為指定宗教的信仰守護者。

1.32

transfer_papal_controller


轉移教監到目標作用域。

transfer_papal_controller = FRA

轉移教監,它將更改教廷監護控制者而不殺死當前教皇。

1.36

科技

v1.24

語句

參數

例子

描述

備註

版本

add_idea


獲得一個理念

add_idea = military_traditions

為當前作用域添加」軍事傳統(military_traditions)「理念

理念可以在 Europa Universalis IV/common/ideas/*.txt找到。
若該理念無法在理念組中被找到,則無法起效。

1.6

add_idea_group


獲得一個理念組

add_idea_group = aristocracy_ideas

為當前作用域添加」貴族理念「理念組

理念組可以在 Europa Universalis IV/common/ideas/*.txt找到
若當前國家無可用的理念槽,則無法起效。

1.6

add_active_policy


獲得一個理念政策

add_active_policy = the_statute_of_monopolies

為當前作用域添加」壟斷法令「理念政策

政策可以在Europa Universalis IV/common/policies/*.txt找到。
若當前國家不符合政策的啟用條件,或者無可用地政策槽,則無法起效。

1.21

change_technology_group


轉變科技組

change_technology_group = western

為當前作用域添轉變為西方科技組

科技組可以在 Europa Universalis IV/common/technology.txt找到。
請注意:該指令並不會造成兵種組的改變,改變兵種組請尋找」change_unit_type「指令。

1.1

remove_idea


移除理念

remove_idea = military_traditions

為當前作用域移除」軍事傳統(military_traditions)「理念

理念可以在Europa Universalis IV/common/ideas/*.txt找到。
若未開啟指定的理念,則無法起效。

1.6

remove_idea_group


移除一個理念組

remove_idea_group = military_traditions

為當前作用域移除」貴族理念「理念組

理念組可以在Europa Universalis IV/common/ideas/*.txt找到。
若未開啟指定的理念組,則無法起效。

1.6

set_primitive


布爾值

set_primitive = no

為當前作用域設定是否為原始土著國家

原始土著國家無法建造船隻,只能建造原始建築,還有宗教改革。

1.18

swap_free_idea_group


布爾值

swap_free_idea_group = yes

為當前作用域檢測國家理念是否相符,若不符則重置為正確的國家理念。

用於轉變國家後檢測國家理念的變更。

1.1

add_next_institution_embracement


增加未接納思潮的進程

add_next_institution_embracement = 10

為當前作用域增加未接納思潮的進程10%

思潮可以在Europa Universalis IV/common/institutions/*.txt找到。

1.21

add_adm_tech


提升行政科技等級

add_adm_tech = 1

為當前作用域提升「行政」科技等級。

請注意:該指令無法降低科技。

1.21

add_dip_tech


提升外交科技等級

add_dip_tech = 1

為當前作用域提升「外交」科技等級。

請注意:該指令無法降低科技。

1.21

add_mil_tech


提升軍事科技等級

add_mil_tech = 1

為當前作用域提升「軍事」科技等級。

請注意:該指令無法降低科技。

1.21

宮廷

v1.24

語句

參數

例子

描述

備註

版本

add_prestige


增加或減少威望
可指向作用域,加減數值

add_prestige = 50

增加威望。

1.1

add_prestige_or_monarch_power

增加威望(濫出威望可轉化成君主點數)

add_prestige_or_monarch_power = { amount = 50 }

增加威望。

所有溢出的威望將轉化成三類君主點數

1.34

add_corruption


增加或減少腐敗

add_corruption = 2

增加腐敗。

1.16

add_splendor


增加或減少輝煌值

add_splendor = 2

增加輝煌點數。

輝煌點數可用來獲得時代能力

1.20

create_advisor


生成顧問

create_advisor = philosopher

生成顧問。

該指令生成的顧問默認誕生在首都,文化與宗教默認為當前作用域的國教與主流文化

1.1

kill_advisor


隨機殺死一名本國顧問。

殺死指定類型的顧問。

殺死指定ID的顧問。

kill_advisor = philosopher
kill_advisor = random
kill_advisor = 30

殺死作用域中已僱傭的顧問。

顧問類型可以在Europa Universalis IV/common/advisortypes/*.txt找到。
執行該指令後會顯示已僱傭顧問的死亡提示框。
請注意:該指令僅可作用於已僱傭的顧問。

1.1

remove_advisor


隨機移除一名顧問
移除指定類型的顧問。

移除指定ID的顧問。

remove_advisor = philosopher
remove_advisor = random
remove_advisor = 30

移除作用域中已僱傭的顧問。

顧問類型可以在Europa Universalis IV/common/advisortypes/*.txt找到。
執行該指令後不會顯示已僱傭顧問的死亡提示框。
請注意:該指令僅可作用於已僱傭的顧問。

1.1

remove_advisor_by_category


按指定類型移除顧問,類型劃分: ADM(行政), DIP(外交)或 MIL(軍事).

remove_advisor_by_category = ADM

按指定類型移除當前作用域的顧問

請注意:該指令僅可作用於已僱傭的顧問。

1.20

define_advisor

type =
要生成的顧問類型
skill =
要生成的顧問等級。原版遊戲最高為5級。
name =
可選項。顧問姓名。
location =
可選項。顧問出生地。
discount = yes
可選項。顧問價格是否打折,與cost_multiplier互斥。
cost_multiplier = 0.5
可選項。顧問價格打折比例,與discount互斥。
female = yes
可選項。顧問性別是否為女性
culture = /
可選項。顧問的文化。
religion = /
可選項。顧問的宗教

define_advisor = {
type = treasurer
name = "John Smith"
skill = 3
culture = english
religion = catholic
}
define_advisor = {
type = treasurer
name = rising_star_advisor
skill = 2
culture = event_target:wrong_religion_province
religion = event_target:wrong_religion_province
}
define_advisor = {
type = recruitmaster
skill = 3
discount = yes
culture = variable:new_ruler_culture
}

獲得自定義顧問到當前作用域

顧問類型可以在Europa Universalis IV/common/advisortypes/*.txt找到。
可以使用事件域值設定顧問的文化與宗教。
顧問名稱也可以參考set_saved_name 作為設定。

1.1

change_national_focus

焦點的力量點數

<ADM>
<DIP>
<MIL>
change_national_focus = ADM

變更指定作用域範圍內的國家焦點。

1.32

extend_regency

延長攝政年限

extend_regency = 5

延長指定作用域範圍內的攝政統治年限。

1.31

regency

設置攝政的主導階層

regency = { estate = xxxx }

設置指定作用域範圍內的攝政主導階層。

1.31

set_estate_led_regency_privilege

授予攝政階層指定特權;random為隨機

set_estate_led_regency_privilege = random

授予指定作用域範圍內的攝政階層特權。

1.31

extend_golden_age


延長當前黃金時代(月數)

extend_golden_age = 12

延長當前黃金時代。

1.34

reset_golden_age

布爾值
重置黃金時代

reset_golden_age = yes

重置當前或過往黃金時代,並重新開始。

1.34

穩定

v1.24

語句

參數

例子

描述

備註

版本

add_stability


增加或者減少穩定。

add_stability = 1

增加穩定。

1.1

add_war_exhaustion


增加或者減少厭戰。

add_war_exhaustion = 2

增加厭戰。

1.1

add_liberty_desire


增加或者減少獨立傾向。

add_liberty_desire = 10

增加獨立傾向。

該命令用於增加或者減少附庸國對宗主國的獨立傾向。

1.4

disband_rebels


消滅指定類型的叛軍。

disband_rebels = anti_tax_rebels

為當前作用域中所有省份去除指定類型的叛軍。

叛軍類型可以在Europa Universalis IV/common/rebel_types/*.txt找到。

1.1

collapse_nation

yes
布爾值

collapse_nation = yes

使當前作用域釋放所其有他國家核心的省份,不存在的國家也將獲得獨立,

國家崩潰指令,國家將被削弱至10個省份

1.10

add_disaster_modifier

name =
獲得的事件修正。
disaster =
獲得的災難。
duration =
持續時間。

add_disaster_modifier = {
name = "restrict_serfdom"
duration = -1
disaster = internal_conflicts
}

為當前作用域添加一個事件修正,此修正會在災難讀條完成後或者在災難結束後移除。

災難可以在Europa Universalis IV/common/disasters/*.txt找到。

1.10

add_disaster_progress

disaster = 需要調整的災難


value =
需要調整的災難進程值

add_disaster_progress = {
disaster = internal_conflicts
value = 10
}

為當前作用域中已經觸發的災難調整災難進程。

災難可以在Europa Universalis IV/common/disasters/*.txt找到。

1.16

end_disaster


結束災難

end_disaster = internal_conflicts

使當前作用域中已經觸發的災難結束

災難可以在Europa Universalis IV/common/disasters/*.txt找到。

1.9

軍事

v1.24

語句

參數

例子

描述

備註

版本

add_army_tradition


增加或減少指定數量的陸軍傳統

add_army_tradition = 10

將陸軍傳統添加到當前範圍。

1.1

add_navy_tradition


增加或減少指定數量的海軍傳統

add_navy_tradition = 10

將海軍傳統添加到當前範圍。

1.1

add_army_professionalism


增加或減少指定數量的陸軍職業度

add_army_professionalism = 0.05

將陸軍職業度添加到當前範圍。

1.23

add_manpower


增加或減少指定數量的人力

add_manpower = 1

將人力添加到當前範圍。

1等於1000人力。

1.1

add_sailors


增加或減少指定數量的水手

add_sailors = 1000

將水手添加到當前範圍。

1000等於1000水手。

1.16

add_yearly_manpower


增加或減少指定百分比的全年總人力

add_yearly_manpower = 0.5

以每年總人力的百分比形式,添加人力到當前範圍。

1等於每年總人力的100%。

1.4

add_yearly_sailors


增加或減少指定百分比的全年總水手

add_yearly_sailors = 10

以每年總水手的百分比形式,添加人力到當前範圍。

1等於每年總水手的100%。

1.16

create_admiral

tradition =
創建一個海軍提督

create_admiral = { tradition = 50 add_fire = 1 culture = greek }

為當前國家創建一個指定海軍傳統的提督,可以設置其保底屬性和文化(1.23前語法同探險家)

1.1

create_explorer


創建一個探險家

create_explorer = 50

為當前國家創建一個指定海軍傳統的探險家,注意與提督的語法不同

1.1

create_conquistador


創建一個征服者

create_conquistador = 50

為當前國家創建一個指定陸軍傳統的征服者,注意與將領的語法不同

1.1

create_general

tradition =
創建一個陸軍將領

create_general = { tradition = 50 add_fire = 1 culture = greek }

為當前國家創建一個指定陸軍傳統的將領,可以設置其保底屬性和文化(1.23前語法同征服者)

1.1

change_unit_type


將兵種組改為指定類型

change_unit_type = western

更改當前範圍的兵種組。

兵種組對應於科技組Europa Universalis IV/common/technology.txt.

1.1

kill_leader

type =
殺死某一類的將領,或使用名字來指定殺死某一特定將領。

kill_leader = { type = random }
kill_leader = { type = general }
kill_leader = { type = "John Smith" }

殺死當前範圍內所匹配的將領

類型:

  • general:陸軍將領
  • admiral:海軍提督
  • conquistador:陸軍征服者
  • explorer:海軍探險家
  • random:隨機
  • 指定將領名字

1.32

define_admiral

shock = 海軍提督衝擊屬性。
fire =
海軍提督火力屬性。
manuever =
海軍提督機動屬性。
siege =
海軍提督圍城屬性。
name =
可選的,提督的名字。
female = yes
可選的,使提督成為女性。
trait =
可選的,提督的特質。

define_admiral = {
shock = 2
fire = 2
manuever = 2
siege = 2
}

在當前範圍創建具有已定義屬性的海軍提督。

將領特質可以在Europa Universalis IV/common/leader_personalities/*.txt.
找到。 攻城屬性提高了海軍提督的封鎖效率。
姓名參數接受一個已經保存的預定參數,可見於set_saved_name 欄目。

1.1

define_explorer

shock = 海軍探險家衝擊屬性。
fire =
海軍探險家火力屬性。
manuever =
海軍探險家機動屬性。
siege =
海軍探險家圍城屬性。
name =
可選的,探險家的名字。
female = yes
可選的,使探險家成為女性。
trait =
可選的,探險家的特質。

define_explorer = {
shock = 2
fire = 2
manuever = 2
siege = 2
}

在當前範圍創建具有已定義屬性的海軍探險家。

將領特質可以在Europa Universalis IV/common/leader_personalities/*.txt.
找到。 攻城屬性提高了海軍探險家的封鎖效率。
姓名參數接受一個已經保存的預定參數,可見於set_saved_name 欄目。

1.1

define_conquistador

shock = 陸軍征服者衝擊屬性。
fire =
陸軍征服者火力屬性。
manuever =
陸軍征服者機動屬性。
siege =
陸軍征服者圍城屬性。
name =
可選的,征服者的名字。
female = yes
可選的,使征服者成為女性。
trait =
可選的,征服者的特質。

define_conquistador = {
shock = 2
fire = 2
manuever = 2
siege = 2
}

在當前範圍創建具有已定義屬性的陸軍征服者。

將領特質可以在Europa Universalis IV/common/leader_personalities/*.txt.
找到。
姓名參數接受一個已經保存的預定參數,可見於set_saved_name 欄目。

1.1

define_general

shock = 陸軍將軍衝擊屬性。
fire =
陸軍將軍火力屬性。
manuever =
陸軍將軍機動屬性。
siege =
陸軍將軍圍城屬性。
name =
可選的,將軍的名字。
female = yes
可選的,使將軍成為女性。
trait =
可選的,將軍的特質。

define_general = {
shock = 2
fire = 2
manuever = 2
siege = 2
}

在當前範圍創建具有已定義屬性的陸軍將軍。

將領特質可以在Europa Universalis IV/common/leader_personalities/*.txt.
找到。
姓名參數接受一個已經保存的預定參數,可見於set_saved_name 欄目。

1.1

artillery

炮兵產生的省份及範圍。

capital_scope = {
ROOT = {
artillery = PREV
}
}

在目標省份為當前範圍生成一支炮兵部隊。

使用當前選擇的炮兵單位。

1.1

cavalry


騎兵產生的省份及範圍。

capital_scope = {
ROOT = {
cavalry = PREV
}
}

在目標省份為當前範圍生成一支騎兵部隊。

使用當前選擇的騎兵單位。

1.1

infantry


步兵產生的省份及範圍。

capital_scope = {
ROOT = {
infantry = PREV
}
}

在目標省份為當前範圍生成一支步兵部隊。

使用當前選擇的步兵單位。

1.1

mercenary_infantry


僱傭步兵產生的省份及範圍。

capital_scope = {
ROOT = {
mercenary_infantry = PREV
}
}

在目標省份為當前範圍生成一支僱傭步兵部隊。

使用當前選擇的步兵單位。

1.1

mercenary_cavalry


僱傭騎兵產生的省份及範圍。

capital_scope = {
ROOT = {
mercenary_cavalry = PREV
}
}

在目標省份為當前範圍生成一支僱傭騎兵部隊。

使用當前選擇的騎兵單位。

1.1

heavy_ship

重型船產生的省份及範圍。

random_owned_province = {
limit = { has_port = yes }
ROOT = {
heavy_ship = PREV
}
}

在已定義的省範圍內為當前範圍生成重型戰艦單位。

使用當前範圍的當前重型戰艦單位。

要求省範圍有一個港口。

1.1

light_ship


輕型船產生的省份及範圍。

random_owned_province = {
limit = { has_port = yes }
ROOT = {
light_ship = PREV
}
}

在已定義的省範圍內為當前範圍生成輕型戰艦單位。

使用當前範圍的當前輕型戰艦單位。

要求省範圍有一個港口。

1.1

galley


中型船產生的省份及範圍。

random_owned_province = {
limit = { has_port = yes }
ROOT = {
galley = PREV
}
}

在定義的省範圍內為當前範圍生成一個漿帆戰艦單位。

使用當前範圍的當前漿帆戰艦單位。

要求省範圍有一個港口。

1.1

transport


運輸船產生的省份及範圍。

random_owned_province = {
limit = { has_port = yes }
ROOT = {
transport = PREV
}
}

在定義的省範圍內為當前範圍生成一個運輸船單位。

使用當前範圍的當前運輸船單位。

要求省範圍有一個港口。

1.1


單位產生的省範圍。

random_owned_province = {
limit = { has_port = yes }
ROOT = {
british_redcoat = PREV
}
}

在定義的省範圍內為當前範圍生成一個特定單位。

單位可在 Europa Universalis IV/common/units/*.txt找到

1.1

外交

v1.24

語句

參數

例子

描述

備註

版本

add_historical_friend


為當前國家添加歷史友邦

add_historical_friend = FRA

使指定的作用域成為當前作用域的歷史友邦

1.12

add_rival


為當前國家添加宿敵

add_rival = FRA

使指定的作用域成為當前作用域的宿敵

1.30

remove_rival


移除當前國家的宿敵

remove_rival = FRA

移除的作用域成為當前作用域的宿敵

1.30

add_historical_rival


為當前國家添加歷史宿敵

add_historical_rival = FRA

使指定的作用域成為當前作用域的歷史宿敵

1.12

add_historical_friend


為當前國家添加歷史友邦

add_historical_friend = FRA

使指定的作用域成為當前作用域的歷史友邦

1.12

add_historical_rival


為當前國家添加歷史宿敵

add_historical_rival = FRA

使指定的作用域成為當前作用域的歷史宿敵

1.12

remove_historical_friend


為當前國家移除歷史友邦

remove_historical_friend = FRA

移除指定的作用域與當前作用域的歷史友邦關係

1.12

remove_historical_rival


為當前國家移除歷史宿敵

remove_historical_rival = FRA

移除指定的作用域與當前作用域的歷史宿敵關係

1.12

add_trust

who =
增加信任值的作用域
value =
信任變化的數值
mutual = yes 可選項。是否同時為雙方增加信任值

add_trust = {
who = FRA
value = 25
mutual = yes
}

指定作用域獲得當前作用域的信任值

需要DLC哥薩克 哥薩克

1.20

add_opinion

who =
添加該關係修正的作用域
modifier =
使用何種關係修正
years = 可選項。改關係修正將隨時間(年)衰減

add_opinion = {
who = FRA
modifier = renounced_as_heretics
}

指定作用域獲得對當前作用域的關係修正

關係修正的內容可見: Europa Universalis IV/common/opinion_modifiers/*.txt

1.1

reverse_add_opinion

who =
添加該關係修正的作用域國家
modifier =
使用哪一種關係修正
years = 可選性,關係修正會在多少年後過期

reverse_add_opinion = {
who = FRA
modifier = renounced_as_heretics
}

當前作用域國家獲得對指定作用域國家的關係修正

存在關係修正內容的文件位於文件夾:Europa Universalis IV/common/opinion_modifiers/*.txt

1.30.4

remove_opinion

who =
移除該關係修正的作用域國家
modifier =
移除哪一種關係修正

remove_opinion = {
who = FRA
modifier = renounced_as_heretics
}

指定作用域國家失去對當前作用域國家的關係修正

存在關係修正內容的文件位於文件夾:Europa Universalis IV/common/opinion_modifiers/*.txt

1.30.4

reverse_remove_opinion

who =
移除該關係修正的作用域國家
modifier =
移除哪一種關係修正

reverse_remove_opinion = {
who = FRA
modifier = renounced_as_heretics
}

當前作用域國家失去對指定作用域國家的關係修正。

存在關係修正內容的文件位於文件夾:Europa Universalis IV/common/opinion_modifiers/*.txt

1.30.4

create_alliance


與指定國家同盟

create_alliance = FRA

當前作用域國家與指定作用域國家達成同盟

1.1

create_guarantee


給予保障獨立的國家

create_guarantee = FRA

當前作用域國家給予指定作用域國家保障獨立

1.30.4

create_marriage


與指定國家聯姻

create_marriage = FRA

建立對當前作用域國家的王室聯姻

1.1

create_union


對指定國家進行聯合統治

create_union = FRA

建立對當前作用域國家的聯合統治

1.1

create_vassal


將指定國家設置為附庸國

create_vassal = FRA

創建指定作用域的國家,設置為當前作用域國家的附庸國

附屬國類型為:附庸國

1.22

create_march


將指定國家設置為衛戍國

create_march = FRA

創建指定作用域的國家,設置為當前作用域國家的衛戍國

附屬國類型為:衛戍國

1.12

vassalize


使當前國家成為附庸國

vassalize = FRA

將指定作用域的國家設置為當前作用域國家的附庸國

附屬國類型為:附屬國。
請注意:該語句的效果與create_vassal一致

1.1

create_subject

subject_type =
附屬國類型
subject =
指定的範圍(國家)

create_subject = {
subject_type = tributary_state
subject = FRA
}

tributary_state是朝貢國;

將指定作用域的國家設置為當前作用域國家的附屬國

附屬國類型請參照文件 Europa Universalis IV/common/subject_types/*.txt

1.20

break_marriage


與指定國家取消王室聯姻

break_marriage = FRA

取消與當前作用域國家的王室聯姻

1.11

break_union


與指定國家取消聯合統治

break_union = FRA

取消與當前作用域國家的聯合統治

1.1

inherit


繼承指定的國家

inherit = FRA

繼承指定作用域的全部省份

1.1

release


釋放指定國家

release = FRA

將當前作用域所擁有的指定作用域國家的核心全部釋放

1.1

release_all_subjects

yes
布爾值

release_all_subjects = yes

將當前作用域所擁有的他國核心全部釋放

1.10

grant_independence

yes
布爾值

grant_independence = yes

使當前作用域獨立於他的宗主國

1.22

declare_war


對指定國家宣戰

declare_war = FRA

使當前作用域對指定作用域發起一場無理由戰爭

若發動無理由宣戰,國家將受到 +30 侵略擴張 侵略擴張和 −2 穩定度 穩定度的懲罰

1.1

declare_war_with_cb

who =
對指定國家宣戰
casus_belli = 使用的戰爭藉口(CB)
war_goal_province =
戰爭藉口的目標省份

declare_war_with_cb = {
who = FRA
casus_belli = cb_annex
}

對指定的國家使用指定的戰爭藉口宣戰。若是戰爭藉口需要目標省份的,則需添加「war_goal_province = 」

戰爭理由可以在Europa Universalis IV/common/cb_types/*.txt中找到。

1.1

add_truce_with


與指定國家簽訂一個和平條約

add_truce_with = FRA

當前作用域與指定作用域之間添加一個和平條約

休戰時間默認為達成無條件和平的停戰時間

1.1

white_peace


需達成和平的作用域

white_peace = FRA

與指定作用域強制達成無條件和平

1.30.4

form_coalition_against


在指定作用域國家創建或加入一個包圍網聯盟

form_coalition_against = FRA

當前作用域國家加入一個對抗指定作用域國家的包圍網聯盟

包圍網相關

1.30.4

add_casus_belli

target =
戰爭藉口的目標作用域
type =
戰爭藉口
months =
戰爭藉口的有效期,以月份計

add_casus_belli = {
target = FRA
type = cb_annex
month = 60
}

為當前作用域的國家增加對目標國家的戰爭藉口(CB)

戰爭理由(藉口)可以在 Europa Universalis IV/common/cb_types/*.txt中找到

1.1

reverse_add_casus_belli

target =
擁有戰爭藉口的作用域
type =
戰爭藉口
months =
戰爭藉口的有效期,以月份計

reverse_add_casus_belli = {
target = FRA
type = cb_annex
month = 60
}

為目標國家增加以當前作用域國家為目標的戰爭藉口(CB)

戰爭理由(藉口)可以在 Europa Universalis IV/common/cb_types/*.txt中找到

1.1

remove_casus_belli

target =
移除戰爭藉口的目標作用域
type =
戰爭藉口

remove_casus_belli = {
target = FRA
type = cb_annex
}

為當前作用域的國家移除對目標國家的戰爭藉口(CB)

戰爭理由(藉口)可以在 Europa Universalis IV/common/cb_types/*.txt中找到

1.1

reverse_remove_casus_belli

target =
擁有戰爭藉口的作用域
type =
戰爭藉口

reverse_remove_casus_belli = {
target = FRA
type = cb_annex
}

為目標域國家移除以當前作用域國家為目標的戰爭藉口(CB)

戰爭理由(藉口)可以在 Europa Universalis IV/common/cb_types/*.txt中找到

1.1

remove_fow


移除多久的戰爭迷霧

random_rival_country = {
limit = { war_with = ROOT }
remove_fow = 3
}

為作用域範圍內的省份移除戰爭迷霧

1.1

add_spy_network_from

who =
目標作用域
value =
間諜網進度變化

add_spy_network_from = {
who = FRA
value = 10
}

改變指定作用域在當前作用域的間諜網進程

1.16

add_spy_network_in

who =
目標作用域
value =
間諜網進度變化

add_spy_network_in = {
who = FRA
value = 10
}

改變當前作用域在指定作用域的間諜網進程

1.16

join_all_offensive_wars_of

加入目標作用域的進攻戰爭

join_all_offensive_wars_of = TUR

使當前作用域加入指定作用域的所有進攻戰爭。

1.30

join_all_defensive_wars_of

加入目標作用域的防禦戰爭

join_all_defensive_wars_of = BYZ

使當前作用域加入指定作用域的所有防禦戰爭。

1.30

transfer_trade_power

轉移貿易競爭力給目標作用域

transfer_trade_power = BYZ

使當前作用域轉移貿易競爭力給指定作用域。

1.30

join_trade_league

加入目標作用域的貿易聯盟

join_trade_league = BYZ

使當前作用域加入指定作用域的貿易聯盟。

1.30

support_independence_of

支持目標作用域的獨立

support_independence_of = BYZ

使當前作用域支持指定作用域獨立。

1.30

add_favors

who =
目標作用域
amount =
虧欠人情變化

add_favors = {
who = FRA
amount = 10
}

改變當前作用域在目標作用域的虧欠人情

1.32

remove_hegemon

yes
失去霸權

remove_hegemon = yes

使當前作用域失去霸權

1.34

break_alliance


斷盟的作用域

break_alliance = FRA

使指定作用域強制斷盟

1.34

add_aggressive_expansion

對指定國家獲得侵略擴張who =
目標作用域
value =
侵略擴張變化
apply_calc =
計算文化和宗教的修正影響

add_aggressive_expansion = {
who = FRA
value = 50
apply_calc = yes
}

增加當前作用域對目標作用域的侵略擴張

1.34

reverse_add_aggressive_expansion

對指定國家獲得失去擴張who =
目標作用域
value =
侵略擴張變化
apply_calc =
計算文化和宗教的修正影響

reverse_add_aggressive_expansion = {
who = FRA
value = -50
apply_calc = yes
}

減少當前作用域對目標作用域的侵略擴張

1.34

階級及派系

v1.24

語句

參數

例子

描述

備註

版本

create_independent_estate


成立獨立國家的階層

create_independent_estate = { estate = estate_cossacks #阶层

government = republic #政体

government_reform = cossacks_reform #政府改革

custom_national_ideas = cossack_ideas #采用的理念

play_as = no #是否扮演该国家

}

當前作用域擁有的省份中,在該階層所擁有(由階層文件中所定義的「省份獨立權重」來決定)的省份上創建獨立國家. 新生國家的宗教與這些省份中絕大多數省份的宗教一致(不知指的是省份數量還是總發展度)

階層文件位於 Europa Universalis IV/common/estates/*.txt

1.14

add_estate_influence_modifier

estate =
目標階層
desc =
在遊戲中顯示的此影響力變化的名稱
influence =
增加或減少的影響力值(1%)
duration =
持續時長

add_estate_influence_modifier = {
estate = estate_nobles
desc = EST_VAL_FURTHERED_SPOUSES_FAMILY_NOBLES
influence = 10
duration = 7300
}

對指定階層增加指定數值的影響力,influence為增加值,duration為時間長度(-1為永久)

階層文件位於 Europa Universalis IV/common/estates/*.txt

1.14

add_estate_loyalty

estate =
目標階層
loyalty =
增加或減少的忠誠度值(1%)

add_estate_loyalty = {
estate = estate_nobles
loyalty = 10
}

對指定階層增加指定數值的忠誠度

階層文件位於 Europa Universalis IV/common/estates/*.txt

1.14

add_estate_loyalty_modifier

estate =
目標階層
desc =
在遊戲中顯示的此忠誠度均衡值變化的名稱
loyalty =
增加或減少的忠誠度均衡值(1%)
duration =
持續時長

add_estate_loyalty_modifier = {
estate = estate_nobles
desc = EST_VAL_EXAMPLE
loyalty = 10
duration = 7300
}

對指定階層增加指定數值的忠誠度均衡值 例如:

原始均衡值為50,增加10後變為60,忠誠值會緩慢從50向60變化

階層文件位於 Europa Universalis IV/common/estates/*.txt

1.14

add_faction


要添加的派系

add_faction = temples

Adds a faction to the current scope. 添加一個派繫到當前作用域

派系文件位於 Europa Universalis IV/common/factions/.

1.1

remove_faction


要刪除的派系

remove_faction = temples

Removes a faction from the current scope. 刪除當前作用域的一個派系

派系文件位於 Europa Universalis IV/common/factions/.

1.1

add_faction_influence

faction =
要增加影響力的派系
influence =

派系影響力增加的數值

add_faction_influence = {
faction = temples
influence = 10
}

Adds influence for the defined faction. 為定義的派系增加派系影響力

Mimics the influence boost from pressing the button in the faction window.

1.1

change_estate_land_share

estate =
要增加領地的階層
share =

階層領地增加的數值

change_estate_land_share = {
estate = estate_burghers
share = 5
}

Adds percentage of land share to defined estate. 對指定階層增加指定數值的領地

階層文件位於 Europa Universalis IV/common/estates/*.txt

remove_estate_privilege

移除階級特權

remove_estate_privilege = estate_church_land_rights

移除指定的階級特權

階層特權文件位於 Europa Universalis IV/common/estate_privileges/*.txt

set_estate_privilege

添加階級特權

set_estate_privilege = estate_church_land_rights

添加指定的階級特權

階層特權文件位於 Europa Universalis IV/common/estate_privileges/*.txt

統治者

v1.24

語句

參數

例子

描述

備註

版本

change_adm


The amount to add or subtract from the ruler's ADM skill.

change_adm = 1

為當前統治者提高行政能力

1.1

change_dip


The amount to add or subtract from the ruler's DIP skill.

change_dip = 1

為當前統治者提高外交能力

1.1

change_mil


The amount to add or subtract from the ruler's MIL skill.

change_mil = 1

為當前統治者提高軍事能力

1.1

add_ruler_personality


需要增加的統治者特質。

add_ruler_personality = righteous_personality

為當前統治者添加特定特質

統治者特質文件位於 Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

remove_ruler_personality


remove_ruler_personality = righteous_personality

為當前統治者移除特定特質

統治者特質文件位於Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

set_ruler_flag


An unique string to identify the ruler flag with.

set_ruler_flag = my_flag
set_ruler_flag = my_flag@ROOT
set_ruler_flag = my_flag@event_target:name

為當前作用域的統治者定義一個屬於統治者的標誌

Flags can be appended with scopes or event targets

1.7

clr_ruler_flag

特定標誌的字符串

clr_ruler_flag = my_flag

為當前作用域的統治者移除一個屬於統治者的標誌

1.7

set_dynasty

/ / original_dynasty 王朝名

set_dynasty = "Smith"
set_dynasty = FRA
set_dynasty = original_dynasty

改變當前統治者的王朝

1.1

set_ruler_culture


統治者將被改為的文化

set_ruler_culture = english
set_ruler_culture = CAS
set_ruler_culture = event_target:my_event_target
set_ruler_culture = variable:my_variable

改變當前作用域的統治者的文化

Cultures are found in Europa Universalis IV/common/cultures/*.txt
Can utilise Event Scope Values.

1.23

set_ruler_religion


統治者將被改為的宗教

set_ruler_religion = catholic
set_ruler_religion = CAS
set_ruler_religion = event_target:my_event_target
set_ruler_religion = variable:my_variable

改變當前作用域的統治者的宗教

Religions are found in Europa Universalis IV/common/religions/*.txt
Can utilise Event Scope Values.

1.23

exile_ruler_as


The unique string to identify the exiled ruler with.

exile_ruler_as = my_exiled_ruler

將當前作用域目前的統治者流放,並將其保存為一個獨特的字符串。

1.12

set_ruler


屬於被流放統治者的獨特字符串

set_ruler = my_exiled_ruler

讓一個被流放的統治者成為當前作用域的統治者

1.12

kill_ruler

yes 布爾值

kill_ruler = yes

殺死當前作用域的統治者

1.1

convert_female_ruler_to_general

yes
布爾值

convert_female_ruler_to_general = yes

將女統治者變為將軍

1.15

convert_ruler_to_general

yes
布爾值

convert_ruler_to_general = yes

將統治者變為將軍

1.8

add_ruler_modifier

name =

duration =
Optional. The number of days to add the ruler modifier for.
hidden = yes
Optional. Whether the ruler modifier is hidden in the government view.
desc =
Optional. The string used to override the automatic duration string.

add_ruler_modifier = { 
name = mad_and_bad
duration = -1  
desc = MAD_AND_BAD_DESC
hidden = yes
}

為當前統治者添加一個統治者修正

統治者死亡後,屬於他的統治者修正會被清除。

1.1

define_ruler_to_general

shock =
將軍的衝擊能力
fire =
將軍的火力能力


manuever =
將軍的機動能力


siege =
將軍的圍城能力


name =
(可選)

define_ruler_to_general = {
fire = 3
shock = 3
manuever = 3
siege = 3
}

將當前統治者變成一位將軍

1.8

define_leader_to_ruler

type = general / conquistador / admiral / explorer
被選取的將領的種類(將軍/征服者/提督/探險家)
name =
被選取的將領的姓名

可以替代type參數


claim =
(可選)統治者的宣稱


adm =
(可選)統治者的最低行政能力


dip =
(可選)統治者的最低外交能力


mil =
(可選)統治者的最低軍事能力


fixed = yes
(可選)是否使統治者的君主能力固定不變

define_leader_to_ruler = {
type = general
adm = 3
dip = 3
mil = 3
fixed = yes
claim = 100
}
define_leader_to_ruler = {
name = "John Smith"
}

在當前作用域內將一位將領變成統治者

1.12

define_ruler

name =
(可選)統治者的名字
dynasty = / / original_dynasty

(可選)統治者的王朝


age =
(可選)統治者的年齡


claim =
(可選)統治者的起始正統性


adm =
(可選)統治者的最低行政能力


dip =
(可選)統治者的最低外交能力


mil =
(可選)統治者的最低軍事能力


fixed = yes
(可選)統治者的君主能力是否固定不變


max_random_adm =
(可選)統治者的最高行政能力


max_random_dip =
(可選)統治者的最高外交能力


max_random_mil =
(可選)統治者的最高軍事能力


hide_skills = yes
(可選)統治者的君主能力是否隱藏

regency = yes
(可選)該統治者是否是攝政王

attach_leader =
(可選)統治者產生的將領的名字


female = yes
(可選)強制統治者為女性


male = yes
(可選)強制統治者為男性


culture = /
(可選)統治者的文化


religion = /
(可選)統治者的宗教信仰

define_ruler = {
name = "Ntare I Kivimira"
dynasty = "Cambarantama"
adm = 5
dip = 4
mil = 4
age = 20
claim = 95
}
define_ruler = {
culture = event_target:first_ruler_alternative_province
hide_skills = yes
age = 30
}
define_ruler = {
dynasty = ROOT
culture = ROOT
religion = ROOT
}
define_ruler = {
dip = 4
adm = 1
mil = 1                 
fixed = yes
}

為當前作用域創建一個統治者

文化和宗教信仰的屬性可以使用Event Scope Values.
name參數允許使用一個保存的變量,你可以在set_saved_name里看到具體信息

1.1

配偶

v1.24

語句

參數

例子

描述

備註

版本

change_consort_adm

增加或減少的配偶的行政能力的值

change_consort_adm = 1

為當前配偶提高行政能力

1.18

change_consort_dip

增加或減少的配偶的外交能力的值

change_consort_dip = 1

為當前配偶提高外交能力

1.18

change_consort_mil


增加或減少的配偶的軍事能力的值

change_consort_mil = 1

為當前配偶提高軍事能力

1.18

add_queen_personality


需要添加的特質

add_queen_personality = righteous_personality

為當前作用域的配偶添加一個特質

統治者特質文件位於Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

remove_queen_personality


需要移除的特質

remove_queen_personality = righteous_personality

為當前作用域的配偶移除一個特質

統治者特質文件位於Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

set_consort_flag


標誌的名字

set_consort_flag = my_flag
set_consort_flag = my_flag@ROOT
set_consort_flag = my_flag@event_target:name

為當前作用域的配偶定義一個配偶的標誌

Flags can be appended with scopes or event targets

1.18

clr_consort_flag

標誌的名字

clr_consort_flag = my_flag

為當前作用域的配偶移除一個配偶的標誌

1.18

set_consort_culture


將要改變成的文化

set_consort_culture = english
set_consort_culture = CAS
set_consort_culture = event_target:my_event_target
set_consort_culture = variable:my_variable

改變當前作用域配偶的文化

Cultures are found in Europa Universalis IV/common/cultures/*.txt
Can utilise Event Scope Values.

1.23

set_consort_religion


將要改變成的宗教

set_consort_religion = catholic
set_consort_religion = CAS
set_consort_religion = event_target:my_event_target
set_consort_religion = variable:my_variable

改變當前作用域配偶的宗教信仰

Religions are found in Europa Universalis IV/common/religions/*.txt
Can utilise Event Scope Values.

1.23

change_consort_regent_to_ruler

yes
布爾值

change_consort_regent_to_ruler = yes

Makes a consort regent into the current ruler for the current scope.

1.18

kill_consort

yes
布爾值

kill_consort = yes

殺死當前作用域的配偶

1.18

remove_consort

yes
布爾值

remove_consort = yes

移除當前作用域的配偶

1.18

define_consort

name =
Optional. The name of the consort.
country_of_origin =
Optional. The origin country of the consort.
dynasty = / / original_dynasty
Optional. The dynasty of the consort.
age =
Optional. The age of the consort.
adm =
Optional. The ADM skill for the consort.
dip =
Optional. The DIP skill for the consort.
mil =
Optional. The MIL skill for the consort.
hide_skills = yes
Optional. Hides the skill values for this consort. female = yes
Optional. Forces the consort to be female.
male = yes
Optional. Forces the consort to be male.
culture = /
Optional. The culture of the consort.
religion = /
Optional. The religion of the consort.

define_consort = {
country_of_origin = ROOT
religion = ROOT
culture = ROOT
}
define_consort = {
name = "Kösem Sultan"
culture = greek
adm = 5
dip = 4
mil = 5
female = yes
}

為當前作用域創建一個配偶

The skill values are not rolled for consorts, meaning the values set are the exact values a consort gets.
The culture and religion attributes can utilise Event Scope Values.
The name parameter can accept a saved name variable, see set_saved_name for more context.

1.18

exile_consort_as


exile_consort_as = my_exiled_consort

將當前作用域目前的配偶流放,並將其保存為一個獨特的字符串。

1.33

set_consort


屬於被流放配偶的獨特字符串

set_consort = my_exiled_consort

讓一個被流放的配偶成為當前作用域的配偶

1.33

繼承人

v1.24

語句

參數

例子

描述

備註

版本

change_heir_adm

增加或減少的繼承人的行政能力的值

change_heir_adm = 1

為當前繼承人提高行政能力

1.14

change_heir_dip

增加或減少的繼承人的外交能力的值

change_heir_dip = 1

為當前繼承人提高外交能力

1.14

change_heir_mil


增加或減少的繼承人的軍事能力的值

change_heir_mil = 1

為當前繼承人提高軍事能力

1.14

add_heir_personality


需要添加的特質

add_heir_personality = righteous_personality

為當前繼承人添加特定特質

統治者特質文件位於Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

remove_heir_personality


需要移除的特質

remove_heir_personality = righteous_personality

為當前繼承人移除特定特質

統治者特質文件位於Europa Universalis IV/common/ruler_personalities/00_core.txt

1.18

set_heir_flag

An unique string to identify the heir flag with.

set_heir_flag = my_flag
set_heir_flag = my_flag@ROOT
set_heir_flag = my_flag@event_target:name

為當前作用域的繼承人定義一個屬於統治者的標誌

Flags can be appended with scopes or event targets

1.1

clr_heir_flag

特定標誌的字符串

clr_heir_flag = my_flag

為當前作用域的繼承人移除定義一個屬於統治者的標誌

1.1

add_heir_claim

增加或減少繼承人的宣稱

add_heir_claim = 10

增加當前作用域繼承人的宣稱

1.1

add_heir_support

增加或減少繼承人的支持度

add_heir_support = 10

增加當前作用域繼承人的選舉支持度

選舉支持度是波蘭的選舉君主制特有的

1.7

set_heir_culture


需要轉變的文化。

set_heir_culture = english
set_heir_culture = CAS
set_heir_culture = event_target:my_event_target
set_heir_culture = variable:my_variable

為當前作用域的繼承人轉變文化。

Cultures are found in Europa Universalis IV/common/cultures/*.txt
Can utilise Event Scope Values.

1.23

set_heir_religion


需要轉變的宗教信仰

set_heir_religion = catholic
set_heir_religion = CAS
set_heir_religion = event_target:my_event_target
set_heir_religion = variable:my_variable

Changes the heir religion of the current scope.

Religions are found in Europa Universalis IV/common/religions/*.txt
Can utilise Event Scope Values.

1.23

exile_heir_as


The unique string to identify the exiled heir with.

exile_heir_as = my_exiled_heir

Removes the current heir of the current scope, saving them to the unique string.

1.12

set_heir


The unique string of an exiled heir.

set_heir = my_exiled_heir

Makes the exiled heir the ruler of the current scope.

1.12

kill_heir

allow_new_heir = no
kill_heir ={}

kill_heir = { allow_new_heir = no }
kill_heir = { }

殺死當前作用域的繼承人。

顯示繼承人的死亡信息。
1.32 取消布爾值 變更寫法

1.1

remove_heir

無

remove_heir = {}

移除當前作用域的繼承者。

不顯示繼承人死亡信息。
1.32 取消布爾值

1.32

convert_female_heir_to_general

yes
布爾值

convert_female_heir_to_general = yes

Converts a female heir into a general.

1.15

convert_heir_to_general

yes
布爾值

convert_heir_to_general = yes

Converts a male heir into a general.

1.8

define_heir_to_general

shock =
將軍的衝擊點數
fire =
將軍的火力點數
manuever =
將軍的機動點數
siege =
將軍的圍城點數

define_heir_to_general = {
fire = 3
shock = 3
manuever = 3
siege = 3
}

Creates a general from the heir of the current scope.

1.8

define_heir

name =
Optional. The name of the heir.
dynasty = / / original_dynasty
Optional. The dynasty of the heir.
age =
Optional. The age of the heir.
birth_date =
Optional. The birth date of the heir. Can be used instead of the age parameter.
claim =
Optional. The starting legitimacy of the heir.
adm =
Optional. The minimum ADM skill roll for the heir.
dip =
Optional. The minimum DIP skill roll for the heir.
mil =
Optional. The minimum MIL skill roll for the heir.
fixed = yes
Optional. Makes the heir skill roll fixed to the defined minimums.
max_random_adm =
Optional. The maximum ADM skill roll for the heir.
max_random_dip =
Optional. The maximum DIP skill roll for the heir.
max_random_mil =
Optional. The maximum MIL skill roll for the heir.
hide_skills = yes
Optional. Hides the skill values for this heir. hidden = yes
Optional. Hides the skill values for this heir. Legacy version of hide_skills. no_consort_with_heir = yes
Optional. Makes the heir a child not of the consort, i.e. a bastard female = yes
Optional. Forces the heir to be female.
male = yes
Optional. Forces the heir to be male.
culture = /
Optional. The culture of the heir.
religion = /
Optional. The religion of the heir.

define_heir = {
dynasty = "Kamegere"
claim = 100     
}
define_heir = {
male = yes
dynasty = ROOT
name = "Viracocha"
claim = 100
adm = 6
}
define_heir = {
dynasty = ROOT
age = 13
adm = 3
dip = 3
mil = 3
claim = 50
female = yes
no_consort_with_heir = yes
}

為當前作用域創建一個繼承人

The culture and religion attributes can utilise Event Scope Values.
The name parameter can accept a saved name variable, see set_saved_name for more context.

1.1

神羅、天朝和革命

v1.24

語句

參數

例子

描述

備註

版本

add_imperial_influence


增加或減少的帝國權威值

add_imperial_influence = 10

改變當前的帝國威望

請注意:帝國威望只有神羅皇帝能用

1.1

add_scaled_imperial_influence


增加或減少的帝國權威值

add_scaled_imperial_influence = 10

改變當前的帝國威望

請注意:帝國威望只有神羅皇帝能用

1.1

elector


授予或取消選帝侯地位

elector = yes

當前作用域獲得或失去神羅選帝侯地位

1.1

revoke_reform


要移除的帝國改革項目

revoke_reform = reichsreform

移除一項帝國改革

帝國改革可以在Europa Universalis IV/common/imperial_reforms/00_hre.txt中找到

1.1

set_in_empire

yes
布爾值

set_in_empire = yes

使當前作用域的全部省份加入帝國領土

1.12

hre_inheritable

yes
布爾值

hre_inheritable = yes

允許神羅皇帝可以世襲

1.1

imperial_ban_allowed

yes
布爾值

imperial_ban_allowed = yes

允許「奪回帝國領土」成為戰爭藉口

1.1

internal_hre_cb

no
布爾值

internal_hre_cb = no

帝國成員之間不允許創建新的戰爭藉口

1.1

set_allow_female_emperor

yes
布爾值

set_allow_female_emperor = yes

允許女性君主成為神聖羅馬帝國皇帝

1.1

dismantle_hre

yes
布爾值

dismantle_hre = yes

解散神聖羅馬帝國

1.30

enable_hre_leagues

yes
布爾值

enable_hre_leagues = yes

允許組建的宗教戰爭同盟.

1.30

set_hre_religion


選擇一個宗教

set_hre_religion = catholic

指定一個宗教成為神聖羅馬帝國的官方宗教

1.8

set_hre_heretic_religion


選擇一個宗教

set_hre_religion = catholic

指定一個宗教成為神聖羅馬帝國的異端宗教

1.8

set_hre_religion_locked

yes
布爾值

set_hre_religion_locked = yes

鎖定神聖羅馬帝國的官方宗教,並取締異教,結束宗教戰爭

1.8

set_hre_religion_treaty

yes
布爾值

set_hre_religion_treaty = yes

結束宗教戰爭,但不設置官方宗教

1.8

join_league


加入指定的宗教聯盟

join_league = FRA

使得當前作用域加入指定的宗教聯盟

1.8

leave_league


離開指定的宗教聯盟

leave_league = FRA

使得當前作用域離開指定的宗教聯盟

1.8

dismantle_empire_of_china

/
布爾值

dismantle_empire_of_china = yes

關閉天命系統,移除中國皇帝地位

1.20

set_emperor_of_china


獲得中國皇帝地位的國家

set_emperor_of_china = MNG

開啟天命系統,確立中國皇帝地位

1.20

set_emperor


獲得神羅皇帝地位

set_emperor = yes

獲得神羅皇帝地位

1.32

add_mandate


變更天命的數值

add_mandate = 10

獲得或減少天命值

請注意:天命值只有中國皇帝可以使用

1.20

set_mandate


變更天命的數值

set_mandate = 10

設定當前天命的數值

請注意:天命值只有中國皇帝可以使用

1.20

set_revolution_target


獲得革命標記的國家

set_revolution_target = FRA

使得當前作用域成為革命目標

革命目標消失後不會重新出現

1.1

AI

v1.24

語句

參數

例子

描述

備註

版本

set_ai_personality

personality =
使用的特質
locked = /
特質是否能被改變

set_ai_personality = {
personality = ai_capitalist
locked = yes
}

改變當前作用域的特質(如果是AI)

AI的特質位於 Europa Universalis IV/common/ai_personalities/00_ai_personalities.txt.

這個特質指的是AI的個性,而不是統治者、繼承人和配偶的特性

1.1

set_ai_attitude

attitude =
使用的態度
who =
改變對誰的態度
locked = /
態度是否可以被改變

set_ai_attitude = {
attitude = attitude_friendly
who = FRA
locked = yes
}

轉變當前作用域對目標作用域的態度

AI的態度位於 Europa Universalis IV/common/ai_attitudes/00_ai_attitudes.txt.

1.1

作用域:省份

v1.24

這些指令只能在作用域為省份時使用。

普適

v1.24

語句

參數

例子

描述

備註

版本

province_event

id =
The event id to fire.
days =
Optional. The number of days to wait after the effect is executed to fire the event.
random =
Optional. The max number of additional days that can be added to the days parameter for randomness.
tooltip =
Optional. The tooltip to display in the effect tooltip country_event is used in.

province_event = { 
id = uprising.1
days = 30
random = 15
tooltip = UPRISING_TOOLTIP
}

Fire a province event for the current province scope. Appears for the owner of the province scope.

You cannot fire the same event within itself.

1.1

add_province_modifier

name =
要添加的省份修正
duration =
可選的,修正持續天數,該值為-1或留空則持續到遊戲結束。
hidden = yes
可選的,該修正是否隱藏。
desc =
可選的,對該修正的描述。

add_province_modifier = { 
name = annoyed_people
duration = -1  
desc = annoyed_people_tooltip
hidden = yes
}

為當前作用域添加省份修正

當省份擁有者變更時,該省份修正將會消失。

省份修正位於根目錄下的common\event_modifiers\*.txt中

1.1

add_permanent_province_modifier

name =
要添加的省份修正
duration =
可選的,修正持續天數,該值為-1或留空則持續到遊戲結束。
hidden = yes
可選的,該修正是否隱藏。
desc =
可選的,對該修正的描述。

add_permanent_province_modifier = { 
name = annoyed_people
duration = -1  
desc = annoyed_people_tooltip
hidden = yes
}

為當前作用域添加省份修正

與add_province_modifier不同,當省份擁有者變更時,該省份修正不會消失.

省份修正位於根目錄下的common\event_modifiers\*.txt中

1.1

add_province_triggered_modifier


添加省份觸發修正

add_province_triggered_modifier = test_modifier

給當前作用域添加一個省份觸發修正

這個指令不會顯示在效果中,建議使用指令custom_tooltip來對效果進行描述。

省份觸發修正位於根目錄下的common\province_triggered_modifiers\*.txt中

1.24

extend_province_modifier

name =
被延長時間的省份修正名
duration =
需要延長的時間(天)

extend_province_modifier = { 
name = annoyed_people
duration = 365
}

為當前作用域內存在的省份修正延長一段時間

Modifiers added with this effect persist through ownership changes.

1.1

remove_province_modifier


需要移除的省份修正名

remove_province_modifier = annoyed_people

從當前省份範圍內移除一個存在的省份修正

1.1

set_province_flag


需要添加的省份標誌

set_province_flag = my_flag
set_province_flag = my_flag@ROOT
set_province_flag = my_flag@event_target:name

為當前省份範圍添加一個省份標誌

標誌可以作為條件使用

1.1

clr_province_flag


需要移除的省份標誌

clr_province_flag = my_flag

為當前省份範圍移除一個已存在的省份標誌

1.1

change_province_name


要更改的名稱

change_province_name = "Paris"

更改當前作用域的省份名稱

省份名稱為省份界面左上角的第一個名稱

1.1

rename_capital


要更改的名稱

rename_capital = "Paris"

更改當前作用域的省會名稱

省會名稱為省份界面左上角的第二個名稱

1.1

move_capital_effect

省份ID

151 = {move_capital_effect = yes}

遷都,改變某省份為首都

1.26

發展度

v1.24

語句

參數

例子

描述

備註

版本

add_base_tax


增加或減少基礎稅收的數值。

add_base_tax = 1

當前的省份增加稅收。

1.1

add_base_production


增加或減少基礎生產的數值。

add_base_production = 1

當前的省份增加生產。

1.1

add_base_manpower


增加或減少基礎人力的數值。

add_base_manpower = 1

當前的省份增加人力。

1.1

set_base_tax


更改基礎稅收為目標數值。

set_base_tax = 1

更改當前省份稅收。

1.27

set_base_production


更改基礎生產為目標數值。

set_base_production = 1

更改當前省份生產。

1.27

set_base_manpower


更改基礎人力為目標數值。

set_base_manpower = 1

更改當前省份人力。

1.27

add_prosperity


增加或減少繁榮的數值。

add_prosperity = 1

當前的省份增加繁榮。

1.20

add_devastation


增加或減少荒廢度的數值。

add_devastation = 1

當前省份增加荒廢度。

1.20

add_local_autonomy


增加或減少當地自治度的數值。

add_local_autonomy = 10

當前省份增加自治度。

1.8

set_local_autonomy


更改當地自治度為目標數值。

set_local_autonomy = 50

更改當前省份自治度。

1.12

change_trade_goods


更改商品。

change_trade_goods = grain

更改當前省份的商品。

可以在這裡找到商品 Europa Universalis IV/common/tradegoods/*.txt.

1.1

add_scaled_local_adm_power


獲得行政點數

add_scaled_local_adm_power = 10

添加數值為該值與當前作用域省份基礎稅收的乘積的行政點數。

1.12

add_scaled_local_dip_power


獲得外交點數

add_scaled_local_dip_power = 10

添加數值為該值與當前作用域省份基礎生產的乘積的外交點數。

1.12

add_scaled_local_mil_power


獲得軍事點數

add_scaled_local_mil_power = 10

添加數值為該值與當前作用域省份基礎人力的乘積的軍事點數。

1.12

cancel_construction

yes
布爾值.

cancel_construction = yes

取消省份正在進行的活動。

包括造核,傳教,轉文化,建築和運河工程。

1.6

add_great_project_tier

分句
開始修建指定偉大工程。

add_great_project = { type = kiel_canal instant = no }

當前省份開始修建指定偉大工程。

偉大工程在這裡 Europa Universalis IV/common/great_projects/*.txt.

1.32

add_great_project_tier

分句
建造偉大工程。

add_great_project_tier = { type = temple_of_confucius tier = 1 }

當前省份建造指定偉大工程。

偉大工程在這裡 Europa Universalis IV/common/great_projects/*.txt.

1.31

move_great_project

分句
搬遷指定偉大工程。

move_great_project = { type = alhambra province = 370 instant = yes }

搬遷指定偉大工程。

偉大工程在這裡 Europa Universalis IV/common/great_projects/*.txt.

1.32

destroy_great_project

分句
摧毀指定偉大工程。

destroy_great_project = { type = chichen_itza }

摧毀指定偉大工程。

偉大工程在這裡 Europa Universalis IV/common/great_projects/*.txt.

1.32

add_construction_progress


增加或減少省份活動進度數值。

add_construction_progress = 0.05

改變省份活動和運河工程進度。

1.6

add_building


添加建築

add_building = temple

當前省份添加一個造好的建築。

建築在這裡 Europa Universalis IV/common/buildings/*.txt.

1.1

remove_building


移除建築。

remove_building = temple

當前省份移除一個建築。

建築在這裡Europa Universalis IV/common/buildings/*.txt.

1.1

add_building_construction

building = 建築種類


speed =
基礎速度的百分比。


cost =
基礎花費的百分比。

add_building_construction = {
building = temple
speed = 0.5
cost = 0.5
}

當前省份開始建造建築。

花費(cost)和速度(speed)的值是基礎值的百分比,也就是說0.5是基礎值的一半。

1.11

add_center_of_trade_level

要更改的貿易中心的等級數值

add_center_of_trade_level = 1

增加(或減少)貿易中心的等級

數值為正則增加、為負則減少

1.27

center_of_trade

要創建的貿易公司的等級數

center_of_trade = 2

在該省份創造一個貿易中心節點

似乎只有在該省份不是貿易中心時此語句有效,不能在原有基礎上增加。 若版本允許推薦使用下方的語句:

create_or_add_center_of_trade_level

1.27

create_or_add_center_of_trade_level

要更改的貿易中心的等級數值

create_or_add_center_of_trade_level = 1

建立或增加一個貿易中心等級

?

add_to_trade_company

添加省份貿易公司區域

add_to_trade_company = ROOT

添加省份貿易公司區域

1.26

add_trade_company_investment

進行貿易公司建築投資

add_trade_company_investment = { investor = ROOT investment = company_warehouse }

1.26

社會

v1.24

語句

參數

例子

描述

備註

版本

create_advisor


顧問種類

create_advisor = treasurer

添加顧問。

顧問在這裡 Europa Universalis IV/common/advisors/*.txt.

1.1

set_seat_in_parliament

yes / no
布爾值

set_seat_in_parliament = yes

添加議席。

如果該省份所屬國家沒有 國會則無效。

1.12

back_current_issue

yes / no
布爾值

back_current_issue = yes

如果省份有議席,支持或反對議案。

No effect if the owner of the province does not have a government using has_parliament.

1.12

change_culture

將要變成的文化

change_culture = english
change_culture = ENG
change_culture = event_target:my_event_target
change_culture = variable:my_variable

改變省份文化。

Cultures are found in Europa Universalis IV/common/cultures/*.txt.
Can utilise Event Scope Values.

1.1

add_culture_construction

yes
布爾值

add_culture_construction = yes

開始轉文化。

1.12

change_religion


將要變成的宗教

變成目標作用域的宗教

change_religion = catholic
change_religion = CAS
change_religion = event_target:my_event_target
change_religion = variable:my_variable

改變省份宗教。

文件存在於Europa Universalis IV/common/religions/*.txt
可以y事件範圍值

1.1

change_to_secondary_religion

yes
布爾值

change_to_secondary_religion = yes

改變成副宗教。

1.14

send_missionary

yes
布爾值

send_missionary = yes

開始傳教。

1.12

add_cardinal

yes
布爾值

add_cardinal = yes

添加樞機主教。

1.8

remove_cardinal

yes 布爾值

remove_cardinal = yes

移除樞機主教。

1.8

add_reform_center

宗教名

add_reform_center = reformed

添加一個宗教改革中心。

1.8

remove_reform_center

宗教名

remove_reform_center = reformed

移除宗教改革中心。

1.8

set_estate

階層名

set_estate = estate_nobles

把省份封給階級。

會覆蓋原來的階級。

1.1

remove_estate

階層名

remove_estate = estate_nobles

拔掉階級。

Does not produce a tooltip.

1.1

set_in_empire

yes / no 布爾值

set_in_empire = yes

把省份加進神羅。

1.1

add_institution_embracement

which = 要添加的思潮。


value =
增加或減少的數值。

add_institution_embracement = {
which = feudalism
value = 10
}

添加思潮進度。

The defined institution must be enabled for the owner of the province first.

1.18

動盪

v1.24

語句

參數

例子

描述

備註

版本

add_nationalism

增加或減少的值

add_nationalism = 10

增加當前省份的分離主義。

1.1

add_unrest

增加或減少的值

add_unrest = 10

增加當前省份的叛亂。

將會顯示在基本上。

1.8

create_native

叛亂的規模

create_native = 1

在當前省份產生原住民叛亂

只能對沒有被殖民完成的省份產生效果

1.1

create_pirate

海盜的規模

create_pirate = 1

在當前省份產生海盜

只能對海上省份和有港口的省份產生效果

1.1

create_revolt

叛亂的規模

create_revolt = 1

在當前省份激發最可能的叛亂

1.1

叛軍種類

叛亂的規模

anti_tax_rebels = 1

在當前省份激發一定規模特定叛亂

叛軍種類在這裡Europa Universalis IV/common/rebel_types/*.txt.

1.1

spawn_rebels

type =
The size type to use.
size =
The size to use.
culture = /
Optional. The culture the rebels belong to.
religion = /
Optional. The religion the rebels belong to.
unrest =
Optional. Adds this amount of unrest to the province the rebels spawn in.
win = yes
Optional. Changes control of the province the rebels spawn in to the rebels.
friend =
Optional. Associate a country with the rebels.
leader =
Optional. Assigns the rebel leader a specific name. Can use set_saved_name.
female = yes
Optional. Makes the rebel leader female.
use_monarch_as_leader = yes
Optional. Makes the owner's monarch the rebel leader. Removes monarch.
use_heir_as_leader = yes
Optional. Makes the owner's heir the rebel leader. Removes heir.
use_consort_as_leader = yes
Optional. Makes the owner's consort the rebel leader. Removes consort.

spawn_rebels = {
type = noble_rebels
size = 1
}
spawn_rebels = {
type = pretender_rebels
size = 2
leader = rebel_preacher
}
spawn_rebels = {
type = catholic_rebels
size = 2
friend = FROM
}

Spawns the defined rebels in the current province scope.

Rebel types found in Europa Universalis IV/common/rebel_types/*.txt.

1.1

Note: the size of revolts follows this formulae:

number of regiments=round[(4+0.3⋅total development)⋅(1+0.03⋅technology level)⋅rebellion size]{ \text{number of regiments} = round \left[\left( 4 + 0.3 \cdot \text{total development} \right) \cdot (1 + 0.03 \cdot \text{technology level}) \cdot \text{rebellion size} \right] }

殖民

v1.24

語句

參數

例子

描述

備註

版本

create_colony


The initial size of the colony.

random_empty_neighbor_province = {
create_colony = 200
}

在當前省份建立殖民地,歸屬於ROOT省份作用域的擁有者。

1.1

add_colonysize


增加定居者的數量

add_colonysize = 10

在當前被殖民省份增加一定數量的定居者。

1.1

multiply_colonysize


The multiplier to use.

multiply_colonysize = 2

在當前被殖民省份將定居者數量乘以一定倍率。

1.1

add_siberian_construction


The initial size of the colony.

add_siberian_construction = 400

在當前省份建立一個西伯利亞拓荒區。

1.22

change_native_ferocity


The amount to add or subtract.

change_native_ferocity = 5

在一個未殖民省份增加土著野蠻度。

1.1

change_native_hostileness


The amount to add or subtract.

change_native_hostileness = 5

在一個未殖民省份增加土著侵略性。

1.1

change_native_size


The amount to add or subtract.

change_native_size = 50

在一個未殖民省份增加土著數量。

1.1

discover_country


The country that gains vision.

upper_peru_region = {
discover_country = FRA
}

指定作用域(國家)獲得當前省份的視野。

最好對區域、地區等作用域使用該指令。

1.1

undiscover_country


The country that loses vision.

upper_peru_region = {
undiscover_country = FRA
}

指定作用域(國家)失去當前省份的視野。

最好對區域、地區等作用域使用該指令。

1.1

外交

v1.24

語句

參數

例子

描述

備註

版本

add_claim


獲得宣稱的國家。

capital_scope = {
add_claim = FRA
}

定義的範圍對當前省獲得宣稱。

1.1

add_core


獲得核心的國家。

capital_scope = {
add_core = FRA
}

定義的範圍對當前省獲得核心。

1.1

add_core_construction

yes
Boolean.

add_core_construction = yes

為當前所有者在當前省範圍內開始核心建設。

1.11

add_permanent_claim


獲得永久性宣稱的國家。

capital_scope = {
add_permanent_claim = FRA
}

對定義的範圍獲得永久宣稱。

1.14

add_territorial_core


獲得領土核心的國家。

capital_scope = {
add_territorial_core = FRA
}

定義的範圍獲得自治領地核心。

1.18

cede_province


獲得所有權的國家。

capital_scope = {
cede_province = FRA
}

定義範圍獲得當前省範圍的所有權。 也就是割讓土地給定義範圍。如果定義範圍本身不存在,那麼割讓的土地獨立建國。

先前的所有者可以用來將所有權讓給某個省份的最後一個先前的所有者。

1.1

change_controller


獲得控制的國家。

capital_scope = {
change_controller = FRA
}

定義的範圍將獲得對當前省範圍的控制。

這裡的控制意味著占有,而不是所有權。

1.1

change_tribal_land


獲得所有權的國家。

any_tribal_land = {
change_tribal_land = FRA
}

定義範圍獲得當前部落領地省範圍的所有權。

1.31

remove_claim


失去宣稱的國家。

capital_scope = {
remove_claim = FRA
}

定義的範圍將失去對當前範圍的宣稱。

適用於這兩種類型的宣稱。

1.1

remove_core


失去核心的國家。

capital_scope = {
remove_core = FRA
}

定義的範圍在當前省份範圍上失去其核心。

1.1

remove_territorial_core


失去領土核心的國家。

capital_scope = {
remove_territorial_core = FRA
}

定義的範圍在當前省份範圍上失去了其領土核心。

1.18

軍事

v1.24

語句

參數

例子

描述

備註

版本

artillery


炮兵所屬國家

capital_scope = {
artillery = FRA
}

在當前省份範圍生成一隊指定國家的炮兵。

使用當前選定的炮兵單位。

1.1

cavalry


騎兵所屬國家

capital_scope = {
cavalry = FRA
}

在當前省份範圍生成一隊指定國家的騎兵。

使用當前選定的騎兵單位。

1.1

infantry


步兵所屬國家

capital_scope = {
infantry = FRA
}

在當前省份範圍生成一隊指定國家的步兵。

使用當前選定的步兵單位。

1.1

mercenary_infantry


步兵(僱傭兵)所屬國家

capital_scope = {
mercenary_infantry = FRA
}

在當前省份範圍生成一隊指定國家的步兵(僱傭兵)。

使用當前選定的步兵單位。

1.11

mercenary_cavalry


騎兵(僱傭兵)所屬國家

capital_scope = {
mercenary_cavalry = FRA
}

在當前省份範圍生成一隊指定國家的騎兵(僱傭兵)。

使用當前選定的騎兵單位。

1.11

streltsy_infantry


射擊軍所屬國家

capital_scope = {
streltsy_infantry = FRA
}

在當前省份範圍生成一隊指定國家的射擊軍。

使用當前選定的步兵單位。

1.22

cossack_cavalry


哥薩克所屬國家

capital_scope = {
cossack_cavalry = FRA
}

在當前省份範圍生成一隊指定國家的哥薩克。

使用當前選定的騎兵單位。

1.22

heavy_ship


重型戰艦

random_owned_province = {
limit = { has_port = yes }
heavy_ship = FRA
}

在當前省份範圍生成一隊指定國家的重型戰艦。

使用當前選定的海軍單位。
當前省份要有港口

1.1

light_ship


小型戰艦所屬國家

random_owned_province = {
limit = { has_port = yes }
light_ship = FRA
}

在當前省份範圍生成一隊指定國家的小型戰艦。

使用當前選定的海軍單位。
當前省份要有港口

1.1

galley


槳帆所屬國家

random_owned_province = {
limit = { has_port = yes }
galley = FRA
}

在當前省份範圍生成一隊指定國家的槳帆戰艦。

使用當前選定的海軍單位。
當前省份要有港口

1.1

transport


運輸船所屬國家

random_owned_province = {
limit = { has_port = yes }
transport = FRA
}

在當前省份範圍生成一隊指定國家的運輸船。

使用當前選定的海軍單位。
當前省份要有港口

1.1


The country scope the unit belongs to

capital_scope = {
british_redcoat = FRA
}

在當前省份生成一支隸屬於指定國家的特定單位。

單位名稱可參考Europa Universalis IV/common/units/*.txt.

1.1

kill_leader

type =
殺死某一類的將領,或使用名字來指定殺死某一特定將領。

kill_leader = { type = random }
kill_leader = { type = general }
kill_leader = { type = "John Smith" }

殺死當前範圍內所匹配的將領

類型:

  • general:陸軍將領
  • admiral:海軍提督
  • conquistador:陸軍征服者
  • explorer:海軍探險家
  • random:隨機
  • 指定將領名字

1.32

kill_units

who =
Optional. Which country scopes should be affected.
type =
Optional. Which type of units that should be affected.
amount =
Optional. The specific amount to kill.

kill_units = {
who = enemy
}
kill_units = {
who = owner
type = infantry
}
kill_units = {
who = controller
type = artillery
amount = 5
}

殺死當前省份符合設定參數的單位

你可以用敵人(enemy), 擁有者(owner)和控制者(controller)作為who的參數
當沒有who參數時,該指令會殺死當前省份作用域內的所有單位。
類型(type)的可用參數:

  • infantry:步兵
  • cavalry:騎兵
  • artillery:炮兵
  • heavy_ship:重型戰艦
  • light_ship:輕型戰艦
  • galley:漿帆戰艦
  • transport:運輸船
  • :該單位的名字

1.12

add_unit_construction

type =
Which type of unit to build.
amount =
The amount to build.
speed =
The speed percentage of the base unit construction speed to use.
cost =
The cost percentage of the base unit construction cost to use.
mercenary = yes
Optional. Makes the constructed units mercenaries.

add_unit_construction = {
type = light_ship
amount = 20
speed = 0.1
cost = 0
}

在當前省份開始招募(建造)指定的單位。

類型(type)的可用參數:

  • infantry:步兵
  • cavalry:騎兵
  • artillery:炮兵
  • heavy_ship:重型戰艦
  • light_ship:輕型戰艦
  • galley:漿帆戰艦
  • transport:運輸船
  • :該單位的名字

1.1

build_to_forcelimit

=
The type is any of the base unit types. The value is the percentage of forcelimit.

build_to_forcelimit = {
heavy_ship = 0.3
light_ship = 0.3
transport = 0.2
}

在當前省份按指定百分比建造指定的單位直到達到該省份擁有者的陸軍或海軍規模上限

1相當於100%的陸軍或海軍規模上限
類型(type)的可用參數:

  • infantry:步兵
  • cavalry:騎兵
  • artillery:炮兵
  • heavy_ship:重型戰艦
  • light_ship:輕型戰艦
  • galley:漿帆戰艦
  • transport:運輸船
  • :該單位的名字

1.1

remove_loot

who =
The country scope that receives the loot.
amount =
The amount of loot to take.

remove_loot = {
who = ROOT
amount = 5
}

Removes loot from the current province scope and grants it to the defined country scope.

The who parameter accepts enemy, which distributes the loot to all current enemies of the province owner.

1.15

change_siege


The process adjustment to add or subtract.

change_siege = 5

在當前省份改變圍城進程

1.1

clear_rebels

yes 布爾值

clear_rebels = yes

清除當前作用域省份的所有叛軍

1.29

貿易

v1.24

語句

參數

例子

描述

備註

版本

recall_merchant


國家作用域

recall_merchant = FRA

召回當前貿易節點本埠省份內屬於某國家的商人

只有當前省份作用域是一個貿易節點本埠時才有效果

1.1

add_trade_node_income


增加或減少數量

add_trade_node_income = 10

將收入加入到當前交易節點

僅噹噹前省範圍是貿易節點本埠的位置時有效。

1.1

add_trade_modifier

who =
接受修正的國家作用域
duration =
修正的持續時間
power =
要增加或減少的貿易力量
key =
在提示中顯示文字對應的鍵值(需要本地化)

add_trade_modifier = {
who = ROOT
duration = 5475
power = 15
key = STRONG_MERCHANTS
}

在當前貿易點省份作用域內,對制定的國家作用域增加一個貿易修正。

可以在貿易點中任何一個省份增加。

1.1

remove_trade_modifier

who =
擁有該貿易修正的國家作用域。
name =
應被去除的修正的鍵值。

remove_trade_modifier = {
who = ROOT
key = STRONG_MERCHANTS
}

Removes a trade modifier for the defined country scope in the current tradenode province scope.

1.1

流程控制

v1.24

有些效果域(effect scopes)用某種方式改變執行流程。強調,這些都是效果域中的流程控制,不能用於觸發器條件。

隱藏效果

v1.24

隱藏效果是指可以隱藏遊戲中指令的提示文本,特別是如果你希望對玩家隱藏相關指令的效果。

你可以在需要的指令外層使用hidden_effect 語句來達到隱藏指令的效果。用法如下:

hidden_effect = {
<指令效果>
}

文本提示

v1.24

提示文本是指可以在指令未生效的情況下以文本形式查看到當前指令的效果。

你可以在需要的指令外層使用 tooltip 語句來達到文本提示指令的效果。用法如下:

tooltip = {
<指令效果>
}

如果, 否則和另外(IF語句)

v1.24

The if, else_if and else scopes are used to introduce effects within an effect scope that hidge on a set of trigger values.

從1.1 版本開始支持if的使用,格式如下:

if = {
limit = {
<triggers>
}

<effects>
}

從1.23 版本開始支持else_if和else的使用,格式如下:

if = {
limit = {
<triggers>
}

<effects>
}

# optional - executed when the trigger values return false, and the else_if trigger values return true
else_if = {
limit = {
<triggers>
}
<effects>
}

# optional - executed when the trigger values return false
else = {
<effects>
}

Note that you can nest if scopes, allowing for multiple layers of triggers and effects.

當…的時(WHILE語句)

v1.24

while語句被用作當一系列條件被滿足時重複執行一系列效果。

從1.18版本開始支持while的使用,格式如下:

while = {
limit = {
<triggers>
}

<effects>
}

Note:

  • 一個永遠滿足條件的while語句會進行100,000輪循環,之後便會終止。
  • A while scope will produce no tooltip.

Due to the nature of execution flow in game, you ideally need to add effects within the while scope effect section that make the trigger values false. There is no way to reduce the execution rate, so the effects will be triggered multiple times a second otherwise.

觸發開關

v1.24

The trigger_switch scope is used in conjuction with triggers that return discrete values. You list each trigger value you wish to act on, and add the effects within.

The format is as follows:

trigger_switch = {
on_trigger = <trigger>
<trigger value> = { <effect> }
<trigger value> = { <effect> }
}

As an example, let's say you want to add 1 stability for western countries, and remove 1 stability for eastern countries. You can do this with an if scope, but it will be more verbose compared to a trigger_switch:

trigger_switch = {
on_trigger = technology_group
western = { add_stability = 1 }
eastern = { add_stability = -1 }
}

隨機 和 隨機列表(random的用法)

v1.24

使用random和random_list語句可以隨機產生效果。

The random scope is used to add a single random roll to a set of effects. The format is as follows:

random = { 
chance = 50 

<effects>
}

The chance is out of 100, and only displays integer values in game, although it does accept decimal values.

The random_list scope is used to add different sets of effects to a single random roll. The format is as follows:

random_list = {
<chance> = {
<effects>
}
<chance> = {
<effects>
}
}

Note that the chance total will be out of 100. If the chance values used do not add up to 100, they will be scaled to maintain the same ratio.

The random_list accepts parameters as chance values when in a file in a scripted_effect. For example:

random_list = {
$chance_of_secondary$ = { set_country_flag = jewish_advisor }
$chance_of_primary$ = { set_country_flag = state_religion_advisor }
$chance_of_secondary$ = { set_country_flag = protestant_or_coptic_advisor }
$chance_of_secondary$ = { set_country_flag = reformed_or_orthodox_advisor }
$chance_of_tertiary$ = { set_country_flag = heathen_advisor }
}

Note: It is important to understand that both of these scopes may not always return a random result. This occurs when they are used in a non-seeded script location. An example of this (from the past), was in the estate interaction effect scopes, which meant using a random scope there returned the same result everytime.

腳本效果

v1.24

主條目:scripted_effects

腳本效果(Scripted effects)本質上是指令宏,能被用於事件、決議等以便改善代碼可讀性。通過將混亂的代碼保持在腳本效果中,可以更容易地保持可讀性。

腳本效果能在這裡找到:Europa Universalis IV/common/scripted_effects/*.txt。

這是一個腳本效果,把7行減少到一行:

clear_religious_scholar_modifiers_effect = {
remove_country_modifier = hanafi_scholar_modifier
remove_country_modifier = hanbali_scholar_modifier
remove_country_modifier = maliki_scholar_modifier
remove_country_modifier = shafii_scholar_modifier
remove_country_modifier = ismaili_scholar_modifier
remove_country_modifier = jafari_scholar_modifier
remove_country_modifier = zaidi_scholar_modifier
}

在事件中添加如下代碼來執行腳本效果:

clear_religious_scholar_modifiers_effect = yes

腳本效果現在接受參數,在1.23 版本中。這意味著你能把數據傳遞進腳本效果,從而用於更廣泛的用途。

要在腳本效果內部定義參數,只需簡單地用$符號包圍關鍵字。例如:$DURATION$。

這裡有一個腳本效果增加或擴展了 any 傳遞給它修正的省份:

add_or_extend_province_modifier_effect = {
if = {
limit = {
has_province_modifier = $MODIFIER$
}
extend_province_modifier = { name = $MODIFIER$ duration = $DURATION$ }
}
else = {
add_province_modifier = { name = $MODIFIER$ duration = $DURATION$ }
}
}

在事件中添加如下代碼來執行腳本效果:

add_or_extend_province_modifier_effect = { MODIFIER = pasha_removed_modifier DURATION = 3650 }

已被移除的效果指令

v1.24

指令

示例

移除版本

add_province_manpower

add_province_manpower = 1

1.12

add_revolt_risk

add_revolt_risk = 5

1.8

culture_group_union

culture_group_union = ROOT

1.14

create_protectorate

create_protectorate = ROOT

1.20

set_estate

set_estate = estate_nobles

1.30

remove_estate

remove_estate = estate_nobles

1.30