附屬國類型修改

模組製作· 约 38 分钟阅读

本頁面講述的內容長期有效。

附屬國類型能在 Europa Universalis IV/common/subject_types/ 找到。

在歐陸風雲4中,附屬國是臣屬於宗主國的半獨立國家。通常而言,宗主國的國力要強於其附屬國。宗主國和附屬國可以通過一系列交互行為來模擬宗藩關係。

自定義附屬國

v1.29

目前遊戲中共有八類附屬國,它們均定義在 Europa Universalis IV/common/subject_types/ 中。

你可以仿照預設的附屬國類型來添加新的附屬國。

如仿照附屬國vassal = { },你可以來命名建立新的附屬國my_vassal = { }

默認類型(default)代碼:

default = {
    # Graphics:
sprite = GFX_icon_vassal
diplomacy_overlord_sprite = GFX_diplomacy_leadvassal # The one that the overlord sees
diplomacy_subject_sprite = GFX_diplomacy_amvassal   # The one that the subject sees

    # Triggers:
is_potential_overlord = { always = no }             # This part is not copied in copy_from. Actual default is equivalent to always = yes
can_be_established = { always = no }                # Ditto

    # Properties:
has_overlords_ruler = no
can_fight_independence_war = yes
is_voluntary = no                                   # Whether they can leave the relationship whenever they want
transfer_trade_power = no
transfer_trade_if_merchant_republic = no
joins_overlords_wars = yes
joins_colonial_wars = no
can_be_integrated = no
can_release_and_play = no                           # "Release Colony" in SubjectView
uses_tariffs = no
dynamically_created_during_history = no             # If the country is automatically created. ( Makes for special checks during history )
eats_overlords_colonies = no                        # Wheter subject assumes control of overlord's colonies in same colonial region.
has_colonial_parent = no                            # Regulates most rules that should hold only for colonies
overlord_can_attack = yes
overlord_can_be_subject = no
can_have_subjects_of_other_types = no
can_be_annexed = no
takes_diplo_slot = yes
has_power_projection = yes
can_release_in_peace = yes
uses_military_focus = yes
overlord_protects_external = no                     # Whether overlord always gets called (declinable) against countries without the same overlord. When this is 'no' overlord will only join if the defender would have been blocked (by its subject type) from attacking the attacker.
counts_for_borders = yes                            # Whether distance between borders counts this subject type as part of its overlord's borders.
overlord_enforce_peace_attacking = no               # Whether the overlord can enforce peace on the subject's enemy even when the subject is the attacker
can_use_claims = yes                                # Whether the overlord can use the subject's claims and cores for declaring war
gives_daimyo_bonuses = no
gets_help_with_rebels = no                          # Only for AI. Bidirectional.
share_rebel_popup = yes                             # Whether the Overlord gets popups about Subject's rebels and sees them in Stability View.
separatists_become_subjects = no                    # Whether separatist rebels enforcing demands will become subjects of the overlord.
allows_taking_land_without_independence = no
can_transfer_in_peace = yes                         # Whether this subject type can be made into a vassal with the "Transfer Subject" Age Ability.
can_set_mil_focus = yes
can_send_missionary_to_subject = yes                # Requires Cradle of Civilization
can_union_break = no                                # Only works together with has_overlords_ruler
overlord_can_fabricate_for = yes
does_overlord_size_count_for_warscore_cost = yes
is_colony_subtype = no
is_march = no
forms_trade_companies = yes
can_concentrate_development = yes

max_government_rank = 0                             # 0 means no limit
cities_required_for_bonuses = 0                     # How many cities the subject needs before giving bonuses to overlord
trust_on_start = 35                                 # Overlord and subject will each get this much extra trust with each other at game start

base_liberty_desire = 0.0
liberty_desire_negative_prestige = 0.0
liberty_desire_development_ratio = 0.0
liberty_desire_same_dynasty = 0.0
liberty_desire_revolution = 30.0                    # Liberty desire at 100% revolution spread in country
pays_overlord = 0.0                                 # 1.0 represents the amount payed by vassals
forcelimit_bonus = 0.0                              # 1.0 represents bonus from having a vassal
forcelimit_to_overlord = 0.0                        # Percent of subject FL to use as base for modifiers
naval_forcelimit_bonus = 0.0                        # 1.0 represents bonus from having a vassal
naval_forcelimit_to_overlord = 0.0                  # Percent of subject FL to use as base for modifiers
manpower_bonus = 0.0                                # 1.0 represents bonus from having a vassal
manpower_to_overlord = 0.0                          # Percent of subject FL to use as base for modifiers
sailors_bonus = 0.0                                 # 1.0 represents bonus from having a vassal
sailors_to_overlord = 0.0                           # Percent of subject FL to use as base for modifiers
military_focus = 1.0                                # How much the AI subject should spend etc. on army and forts. 0 should make them spend nothing. Very high values will probably not make a big difference since there will be sanity checks.

relative_power_class = 1                            # See description above
should_quit_wars_on_activation = yes
diplomacy_view_class = 1                            # See description above
can_fight = {
}
can_rival = {
}
can_ally = {
}
can_marry = {
}

    # Subject Interactions:
    # (continuous)
embargo_rivals = yes
support_loyalists = no
subsidize_armies = no
scutage = no
send_officers = no
divert_trade= no
    # (immediate)
placate_rulers = yes
place_relative_on_throne = no
enforce_religion = yes
customize_subject = no
replace_governor = no
grant_province = yes
enforce_culture = no
siphon_income = no
fortify_march = no
seize_territory = no
start_colonial_war = no
grant_core_claim = yes
sacrifice_ruler = no
sacrifice_heir = no
increase_tariffs = no
decrease_tariffs = no
takeondebt = yes
bestow_gifts = no
send_additional_troops = no
demand_artifacts = no
demand_additional_tribute = no
force_seppuku = no
press_sailors = no
contribute_to_capital = no
force_isolation = no
return_land = no
conscript_general = no
knowledge_sharing = yes
block_settlement_growth = yes
allow_settlement_growth = yes
change_colonial_type = no
upgrade_subject_type = no

    # (special)
sword_hunt = no
sankin_kotai = no
expel_ronin = no

    # Modifiers:
modifier_subject = clear # Use this to clear after copy_from.
modifier_subject = { # Otherwise, this only adds modifiers, and doesn't remove previously added.
modifier = subject_nation
}
modifier_overlord = clear

overlord_opinion_modifier = null # If not "null" it will look for a modifier with that name in 00_opinion_modifiers.txt and other files in that directory.
subject_opinion_modifier = null
}

參照如下格式:

vassal = {
copy_from = default

    # Graphics:                                                
sprite = GFX_icon_vassal
diplomacy_overlord_sprite = GFX_diplomacy_leadvassal
diplomacy_subject_sprite = GFX_diplomacy_amvassal

    # Properties:                                              
transfer_trade_if_merchant_republic = yes
can_be_annexed = yes
has_power_projection = no
gets_help_with_rebels = yes

max_government_rank = 1

liberty_desire_development_ratio = 0.25
liberty_desire_same_dynasty = -5.0
pays_overlord = 1.0
forcelimit_bonus = 1.0
forcelimit_to_overlord = 0.1

relative_power_class = 2

restoration_cb = cb_disloyal_vassal

    # Subject Interactions:                                    
scutage = yes
place_relative_on_throne = yes
sacrifice_ruler = yes
sacrifice_heir = yes
divert_trade = yes
seize_territory = yes

    # Modifiers:                                               
modifier_subject = {
modifier = vassal_nation
}
modifier_overlord = {
modifier = vassal_subject
}

overlord_opinion_modifier = is_vassal
subject_opinion_modifier = is_vassal
}

copy_from = default用於定義附屬國預設屬性。

Graphics中三項內容用於定義附屬國的圖標,圖標可以在Europa Universalis IV/interface/*.gfx中進行自定義。

sprite用於定義附屬國圖標。

diplomacy_overlord_sprite用於定義宗主視角下的圖標。

diplomacy_subject_sprite用於定義附屬國視角下的圖標。

Properties下內容用於定義附屬國的基本屬性,具體可參考下列表格內容。

Subject Interactions下內容用於定義附屬國的交互方式,具體可參考下列表格內容。

Modifiers下內容用於定義附屬國的國家修正。

官方說明翻譯

1.請仔細閱讀!不支持完全修改附屬國類型。刪除/重命名原始附屬國類型仍然需要特定代碼支持。

2.自定義的交互方式可以通過可編寫腳本的方式(參見 Europa Universalis IV/common/subject_types/底部的「dummy」)來創建,請注意!該功能目前並不完善。

3.如果使用預設內容(default)的話,copy應該放在最上面(上面的內容會作為預設內容應用到將要修改的附屬國內容中)

4.trigger將在附屬國的功能範圍內進行判斷,宗主作為其From的範圍。

例外情況:潛在宗主(is_potential_overlord)將在潛在宗主的範圍內進行判斷,而無需考慮任何特定的附屬國主體。

5.count = x is used (means it "counts as" x in some triggers).

6.運用copy將複製除 count, is_potential_overlord 和 can_be_established以外的所有內容。

7.在先前的trigger中還將判斷以下內容

是殖民地或前殖民地(is_colonial_nation & is_former_colonial_nation)將決定是否設置「has_colonial_parent = yes」這一標誌(用於成立美國等國家)。

是(is_lesser_in_union, junior_union_with, senior_union_with & years_in_union_under)將決定是否設置checks the 'has_overlords_ruler = yes'這一標誌。

附屬國功能代碼

通過複製下列附庸類型,可以在不同的trigger中相互引用。

vassal = {}
march = {}
daimyo_vassal = {}
personal_union = {}
client_vassal = {}
client_march = {}
colony = {}
tributary_state = {}
{{red|my_vassal = { }}}

default = { }為預設內容,它包括了附屬國的一些基本屬性和交互功能。

default = { }可以通過copy_from = default的方式被其他附屬國引用。

請注意!以下兩項內容不會被Copy複製,這意味著如果你需要加入相關功能,那麼就必須對具體的附屬國逐一修改。

is_potential_overlord = { always = no } 附屬國類型由宗主決定

can_be_established = { always = no }附屬國可以被成立

附屬國基本屬性:

代碼

使用方法

效果

備註

has_overlords_ruler

has_overlords_ruler = yes

附屬國和宗主是否有相同統治者

聯統國擁有該條目

can_fight_independence_war

can_fight_independence_war = yes

附屬國是否可以發動獨立戰爭

is_voluntary

is_voluntary = no

附屬國是否可以主動取消和宗主的關係

transfer_trade_power

transfer_trade_power = no

附屬國是否可以向宗主轉移貿易競爭力

transfer_trade_if_merchant_republic

transfer_trade_if_merchant_republic = no

如果宗主是商業共和國,附屬國是否可以向宗主轉移貿易競爭力

適用於商業共和國

joins_overlords_wars

joins_overlords_wars = yes

附屬國是否參與宗主戰爭

joins_colonial_wars

joins_colonial_wars = no

附屬國是否參與殖民地戰爭

與上一條相似,啟用時宗主宣戰會有一個「宣布殖民戰爭」的選項,勾選後將不能召喚啟用了上一條的附屬國,但是會召喚啟用了本條的附屬國

can_be_integrated

can_be_integrated = no

附屬國是否可以被合併

與吞併機制相同,但條件略有不同

can_release_and_play

can_release_and_play = no

附屬國是否可以被釋放並被遊玩

殖民地國家的釋放在殖民地國家的視圖中

uses_tariffs

uses_tariffs = no

附屬國可以使用關稅系統

建議與增加、減少關稅的互動方式一同使用

dynamically_created_during_history

dynamically_created_during_history = no

如果附屬國是自定義建立的則是否考慮動態歷史關係

如後期劇本殖民地國家歸屬宗主的問題

eats_overlords_colonies

eats_overlords_colonies = no

附屬國是否可以接收宗主的海外殖民地

僅限於殖民地範圍內地區(西伯利亞拓荒站不受此限制)

has_colonial_parent

has_colonial_parent = no

附屬國是否擁有殖民宗主國

如果擁有殖民宗主國則不可以建立殖民地同時將被染成宗主國的顏色。

overlord_can_attack

overlord_can_attack = yes

附屬國是否可以被宗主宣戰

overlord_can_be_subject

overlord_can_be_subject = no

宗主國是否也可以是一個附屬國

can_have_subjects_of_other_types

can_have_subjects_of_other_types = no

附屬國可以擁有其他類型的附屬國

can_be_annexed

can_be_annexed = no

附屬國可以被吞併

與合併機制相同,但條件略有不同

takes_diplo_slot

takes_diplo_slot = yes

附屬國是否占用外交關係

has_power_projection

has_power_projection = yes

附屬國是否可以擁有力量投射

can_release_in_peace

can_release_in_peace = yes

附屬國是否可以被和平釋放

與CB有關

uses_military_focus

uses_military_focus = yes

附屬國是否應用軍事焦點

  • 建議與改變附屬國軍事焦點的互動方式一同使用;
  • 由於界面覆蓋問題,不可與朝貢機制一同使用。

overlord_protects_external

overlord_protects_external = no

附屬國是否受到宗主國額外保護

  • 附屬國遭到另一個不能被該附屬國宣戰(在can_fight = { }中定義)的國家宣戰時,宗主始終會自動加入防禦方,且充當戰爭領袖;例:對一個附庸宣戰,宗主國會自動捲入。
  • 如果該項為「是」,則附屬國遭到另一個能被該附屬國宣戰的國家宣戰時,宗主國會收到戰爭召喚,但不充當戰爭領袖;若該項為「否」,則沒有此效果。例:對一個朝貢國宣戰,宗主可能加入也可能拒絕。

counts_for_borders

counts_for_borders = yes

在計算邊界距離時,是否將該附屬國的邊界視作宗主的邊界

朝貢國一般使用該機制

overlord_enforce_peace_attacking

overlord_enforce_peace_attacking = no

當附屬國對另一國家宣戰時,宗主是否可以強制白和

can_use_claims

can_use_claims = yes

宗主是否可以憑藉附屬國的核心或宣稱宣戰

gives_daimyo_bonuses

gives_daimyo_bonuses = no

附屬國是否獲得大名加成

大名附庸一般使用該機制

gets_help_with_rebels

gets_help_with_rebels = no

附屬國是否會幫助宗主剿滅叛軍

share_rebel_popup

share_rebel_popup = yes

宗主是否會彈出關於附屬國叛軍的消息,並在穩定度界面看到內容

朝貢國一般使用該機制

separatists_become_subjects

separatists_become_subjects = no

附屬國爆出來的分離主義者叛軍成立的國家是否會成為領主的附屬國

allows_taking_land_without_independence

allows_taking_land_without_independence = no

附屬國對宗主宣戰時,允許在沒有獲得獨立的情況下獲得土地

can_transfer_in_peace

can_transfer_in_peace = yes

附屬國是否可以成為時代能力「轉移附屬國」的主體

can_set_mil_focus

can_set_mil_focus = yes

附屬國是否可以被宗主改變軍事焦點

  • 建議與應用附屬國軍事焦點的互動方式一同使用
  • 由於界面覆蓋問題,不可與朝貢機制一同使用

can_send_tribute

can_send_tribute = yes

朝貢系統開關

可以要求附屬國朝貢,如果這項是關閉,系統將不會認為是附屬國是朝貢國,不會按朝貢國數量增加天命。

can_send_missionary_to_subject

can_send_missionary_to_subject = yes

宗主可以對附屬國進行傳教

  • 需要文明的搖籃文明的搖籃
  • 傳教力量為宗主的傳教力量,目標宗教為附屬國的宗教。

can_union_break

can_union_break = no

宗主可以強制解除附屬關係

只有在has_overlords_ruler = yes時才有效

overlord_can_fabricate_for

overlord_can_fabricate_for = yes

宗主可以幫助附屬國建造建築物

max_government_rank

max_government_rank = 0

附屬國最大政府等級

0意味著不受限制

cities_required_for_bonuses

cities_required_for_bonuses = 0

附屬國擁有多少塊土地時,宗主可以得到獎勵

殖民地一般適用該機制

trust_on_start

trust_on_start = 35

當遊戲開始時,附屬國和宗主可以相互之間得到多少基礎信任

base_liberty_desire

base_liberty_desire = 0.0

附屬國的基礎獨立傾向

加法

liberty_desire_negative_prestige

liberty_desire_negative_prestige = 0.0

附屬國的因為領主負聲望而獲得的獨立傾向加成

乘法

liberty_desire_development_ratio

liberty_desire_development_ratio = 0.0

附屬國因為自身發展度而得到的獨立傾向加成

乘法

liberty_desire_same_dynasty

liberty_desire_same_dynasty = 0.0

附屬國因為與領主的同王朝關係而得到的獨立傾向變化

加法

pays_overlord

pays_overlord = 0.0

附屬國向領主繳納的稅收獎勵係數

乘法

forcelimit_bonus

forcelimit_bonus = 0.0

附屬國的軍隊上限獎勵係數

乘法

forcelimit_to_overlord

forcelimit_to_overlord = 0.0

附屬國增加宗主的軍隊上限獎勵係數

乘法

military_focus

military_focus = 1.0

附屬國在軍隊和要塞上花多少錢的係數

乘法

relative_power_class

relative_power_class = 1

相對實力等級決定了當考慮到對宗主的發展度數及國家實力時,附屬國獨立傾向如何計算

  • 0表示他們不會考慮與宗主的相對實力;
  • 1表示只會考慮自己和支持自己獨立的所有國家的實力總和與宗主的相對實力;
  • 否則,他們將考慮自己、自己的盟國、支持自己獨立的所有國家、所有具有相同的relative_power_class值的附庸、他們的盟國、支持他們獨立的所有國家的實力總和與其宗主的相對實力

diplomacy_view_class

diplomacy_view_class = 1

外交視角等級決定了在外交視角地圖和國家外交關係上是否顯示附屬國

0表示不會列出#1表示與其他附庸一起列出

can_fight = { }

can_fight = { same_overlord = daimyo_vassal }

附屬國可以向誰宣戰

can_rival = { }

can_rival = { same_overlord = daimyo_vassal }

附屬國可以對誰宿敵

can_ally = { }

can_ally = { same_overlord = daimyo_vassal }

附屬國可以與誰同盟

can_marry = { }

can_marry = { same_overlord = daimyo_vassal }

附屬國可以與誰聯姻

附屬國基本交互方式:

代碼

使用方法

效果

備註

embargo_rivals

embargo_rivals = yes

禁運宿敵

持續效果

support_loyalists

support_loyalists = no

資助效忠派

持續效果

subsidize_armies

subsidize_armies = no

補貼軍隊

持續效果

scutage

scutage = no

徵收兵役稅

持續效果

send_officers

send_officers = no

派遣軍官

持續效果

divert_trade

divert_trade= no

轉移貿易

持續效果

placate_rulers

placate_rulers = yes

安撫統治者

即時效果

place_relative_on_throne

place_relative_on_throne = no

扶持宗室上位

即時效果

enforce_religion

enforce_religion = yes

強迫改變宗教

即時效果

customize_subject

customize_subject = no

僕從國名稱

即時效果;只對動態tag有效,對常規tag無效(主要是C序列殖民地和K序列自建附庸國)

replace_governor

replace_governor = no

更換統治者

即時效果

grant_province

grant_province = yes

授予省份

即時效果

enforce_culture

enforce_culture = no

強迫轉變文化

即時效果

siphon_income

siphon_income = no

榨取收入

即時效果

fortify_march

fortify_march = no

為衛戍建設要塞

即時效果

seize_territory

seize_territory = no

強占領土

即時效果

start_colonial_war

start_colonial_war = no

發動殖民戰爭

即時效果

grant_core_claim

grant_core_claim = yes

授予核心

即時效果

sacrifice_ruler

sacrifice_ruler = no

獻祭統治者

即時效果;納瓦特爾宗教、末日值相關

sacrifice_heir

sacrifice_heir = no

獻祭繼承人

即時效果;納瓦特爾宗教、末日值相關

increase_tariffs

increase_tariffs = no

增加關稅

即時效果;必須與uses_tariffs搭配使用。

decrease_tariffs

decrease_tariffs = no

降低關稅

即時效果;必須與uses_tariffs搭配使用。

takeondebt

takeondebt = yes

承擔債務

即時效果

bestow_gifts

bestow_gifts = no

贈送禮物

即時效果

send_additional_troops

send_additional_troops = no

派遣額外部隊

即時效果

demand_artifacts

demand_artifacts = no

要求威望

即時效果

demand_additional_tribute

demand_additional_tribute = no

要求額外貢品

即時效果

force_seppuku

force_seppuku = no

強迫切腹

即時效果

press_sailors

press_sailors = no

徵用水手

即時效果

contribute_to_capital

contribute_to_capital = no

要求貢獻給首都

即時效果

force_isolation

force_isolation = no

強迫改變孤立傾向

即時效果;神道教相關

return_land

return_land = no

歸還土地

即時效果

conscript_general

conscript_general = no

徵召陸軍將領

即時效果

knowledge_sharing

knowledge_sharing = yes

分享思潮

即時效果

sword_hunt

sword_hunt = no

刀狩令

即時效果;確定幕府政體能力影響對象

sankin_kotai

sankin_kotai = no

參覲交代

即時效果;確定幕府政體能力影響對象

expel_ronin

expel_ronin = no

驅逐浪人

即時效果;確定幕府政體能力影響對象

allow_settlement_growth

allow_settlement_growth = no

允許墾殖

即時效果

block_settlement_growth

block_settlement_growth = no

阻止墾殖

即時效果

modifier_subject = clear消除附屬國的修正。

modifier_subject = { modifier = subject_nation }必須與前款搭配使用,否則只會添加附屬國的修正,而不會刪除以前添加的附屬國的修正。

modifier_overlord = clear消除附屬國所屬宗主的修正

overlord_opinion_modifier = null如果這裡不是「null」,它將在00_opinion_modifiers.txt和該目錄中的其他文件中對應具體的修正。

subject_opinion_modifier = null如果這裡不是「null」,它將在00_opinion_modifiers.txt和該目錄中的其他文件中對應具體的修正。

本地化

附屬國本地化文件路徑為Europa Universalis IV/localisation/subject_type_l_english.yml/,前面是原版路徑,不過在任意本地化路徑中進行本地化也可(有測試過)

翻譯附屬國類型,應按照如下格式:

<string>: ""
<string>_title: ""
<string>_title_plural: ""
<string>_long_desc: ""
<string>_is_our: ""