朝贡国类型模组制作:修订间差异

本页面所适用的版本可能已经过时,最后更新于2.8
(19:52, 16 September 2018‎ Dauth)
(将英文界面进行翻译)
 
第1行: 第1行:
{{version|2.8}}
{{version|2.8}}


==Definition==
== 定义==
Each tributary type must be defined in a file in <code>/common/tributary_types/</code>. A tributary type named "default" should always exist. If not, the game should automatically create one. Calling a tributary type "none" is an error.
每种朝贡国的类型必须被定义在 <code>/common/tributary_types/</code>. “默认”类型的朝贡国必须一直存在。如果不是这样,游戏会自动创造一个。 但是,设定朝贡类型变量为"none" 会发生错误。
If Horse Lords is enabled, all different-culture characters of nomads become tributaries with the "nomadic" tributary type - this is hardcoded. (The docs don't specify what happens when no "nomadic" tributary type exists, so one should probably always exist.)
如果启用马上诸王DLC,游牧民族的所有不同文化特征都会成为“游牧”朝贡类型的朝贡——此为硬编码。 ( 文档没有指定当不存在“游牧”朝贡类型时会发生什么,因此可能应该始终存在一种朝贡类型。)


The following data should be defined for each tributary type (though all of it is optional and can be left out)
The following data should be defined for each tributary type (though all of it is optional and can be left out)


{|class="wikitable sortable"
{| class="wikitable sortable"
!Variable
! 变量名称
!Type
! 变量类型
!Description
! 变量说明
!Default
! 默认变量值
|-
|-
|tributary_name
|tributary_name
|string
|string
|Localization string used for tributaries of this type when referring to just one (eg. "Tributary", "Imperial Tributary")
| 仅引用一个时,用于此类型朝贡国的本地化字符串(eg. "Tributary", "Imperial Tributary")
|
|
|-
|-
|tributary_plural
|tributary_plural
|string
|string
|Localization string used for tributaries of that type when referring to multiple (eg. "Tributaries", "Imperial Tributaries")
| 引用多个时,用于此类型朝贡国的本地化字符串(eg. "Tributaries", "Imperial Tributaries")
|
|
|-
|-
|suzerain_name
|suzerain_name
|string
|string
|Localization used for suzerain of the tributary type (eg. "Suzerain", "Imperial Suzerain")
| 宗主国名称的本地化字符串(eg. "Suzerain", "Imperial Suzerain")
|
|
|-
|-
|tribute_name
|tribute_name
|string
|string
|Localization string used for whatever is paid (paying $TRIBUTE$, eg. "paying tribute") for this tributary type
| 无论上供什么都显示该朝贡国类型本地化字符串(paying $TRIBUTE$, eg. "paying tribute") 
|(unknown)
|(unknown)
|-
|-
|breaks_at_suzerain_death
|breaks_at_suzerain_death
|bool
|bool
|If yes, the tributary relationship breaks when the suzerain dies. If no, it persists.
| 如果变量值为yes,宗主国统治者死亡则结束朝贡关系。该变量持续存在。
|yes
| yes
|-
|-
|breaks_at_tributary_death
|breaks_at_tributary_death
|bool
|bool
|If yes, the tributary relationship breaks when the tributary dies. If no, it persists.
| 如果变量值为yes,朝贡国统治者死亡则结束朝贡关系。该变量持续存在。
|no
|no
|-
|-
|tributary_can_be_summoned
|tributary_can_be_summoned
|bool
|bool
|If yes, the suzerain can call their tributaries to war. The tributary might be able to decline, depending on <code>tributary_must_defend</code>.
| 如果变量值为yes,宗主国可以召唤朝贡国加入战争。朝贡国可能会下降关系。这取决于变量<code>tributary_must_defend</code>.
|yes
|yes
|-
|-
|tributary_must_defend
|tributary_must_defend
|bool
|bool
|If yes, the tributary can't reject a defensive call to arms from the suzerain. If no, the tributary can reject calls to arms from their suzerain.
| 如果变量值为yes,宗主国在防御性质战争中召唤朝贡国时,朝贡国不能拒绝。如果变量值为no,则可以拒绝。
|yes
|yes
|-
|-
|suzerain_can_be_called
|suzerain_can_be_called
|bool
|bool
|If yes, tributaries can call their suzerain to arms, even if they aren't otherwise allied. The suzerain mgiht be able to decline, depending on <code>suzerain_must_defend</code>
| 如果变量值为yes,即使没有结盟,朝贡国还是可以在战争中要求宗主国加入战争。宗主国可能会下降关系。这取决于变量<code>suzerain_must_defend</code>
|yes
|yes
|-
|-
|suzerain_must_defend
|suzerain_must_defend
|bool
|bool 
|If yes, the suzerain can't reject a defensive call to arms from the tributary. If no, the suzerain can reject calls to arms from their tributaries.
| 如果变量值为yes,朝贡国在防御性质战争中召唤宗主国时,宗主国不能拒绝。如果变量值为no,则可以拒绝。
|no
|no
|-
|-
|tributaries_can_infight
|tributaries_can_infight
|bool
|bool
|Tributaries of the same type with the same suzerain will not be able to declare war on eachothers if this is set to no. If it is set to yes, they can. Tributaries of different types will always be able to declare war on eachothers, as will tributaries with different suzerains.
| 如果变量值为no,同一个宗主国下同一个类型的朝贡国不可以互相宣战。如果变量值为yes,那么他们就可以。不同类型的朝贡国之间一直可以互相宣战,就像不同的宗主国之间一样。
|yes
|-
|-
|suzerain_can_join_infighting
|suzerain_can_join_infighting
|bool
|bool
|If yes, the suzerain can join one tributary in their war against another of the same type.
| 如果变量值为yes,宗主国可以加入其中一个朝贡国对抗另一类型朝贡国的战争。
|yes
|yes
|-
|-
|tributaries_can_unite
|tributaries_can_unite
|bool
|bool
|If yes, when trying to break free, tributaries will be able to band together against their suzerain. They also will never help their suzerain in wars against another tributary of the same type.
| 如果变量值为yes,其中一个朝贡国想要独立时,所有朝贡国会联合起来对抗宗主国。他们也不会帮助宗主国对抗同一类型朝贡国的战争。
|(unknown)
|(unknown)
|-
|-
|breaks_on_realm_change
| breaks_on_realm_change
|bool
|bool
|If yes, the tributary relationship ends when the tributary's titles change realms
| 如果变量值为yes,朝贡国头衔在改变范围时则朝贡关系结束。
|no
|no
|-
|-
|icon
|icon
|integer
| integer
|Which frame of the icon strip to use. Note that using an index already used for another relation type (E.G. alliances) will break the tooltip - this includes leaving it blank.
| 要使用图标条的哪块。请注意,使用已用于另一种朝贡类型(例如联盟)的目录将破坏工具提示,这会将其留空。
|(whichever is used to mean "at war", likely 1 or 0)
|( 以“战争中”为准,可能是1或0)
|-
|-
|cbs_against_suzerain
|cbs_against_suzerain
|list (of CBs)
|list (of CBs)
|The tributary will not be able to use any CBs not in the list against their suzerain.
| 朝贡国将不会使用宣战理由(表)中的理由来对抗他们的宗主国。
|{}
|{}
|-
|-
|income_tribute_percentage
| income_tribute_percentage
|MTTH
|MTTH
|Percentage of monthly income paid by the tributary to the suzerain. Only evaluated when relationship is formed, can't be changed afterwards. Should evaluate to between 0 and 1, will be clamped to between those values if not. ROOT is tributary, FROM is suzerain.
| 每个月上供宗主国的收入百分比。只有在朝贡关系确定时才会评估,之后无法更改。值应该在0到1之间。若设定值不在该区间内则会被改正到该区间。ROOT是朝贡国,FROM是宗主国。
|{ value = 1 }
| { value = 1 }
|-
|-
|reinforce_tribute_percentage
|reinforce_tribute_percentage 
|MTTH
| MTTH
|Percentage of troop reinforcements given by the tributary to the suzerain. Only evaluated when relationship is formed, can't be changed afterwards. Should evaluate to between 0 and 1, will be clamped to between those values if not. ROOT is tributary, FROM is suzerain.
| 朝贡国上工宗主国的军队百分比。只有在朝贡关系确定时才会评估,之后无法更改。值应该在0到1之间。若设定值不在该区间内则会被改正到该区间。ROOT是朝贡国,FROM是宗主国。
Is applied as is to the tributary's reinforcement rate (eg. 0.1 means tributary's reinforcements reduced by 10%) and in a scaled manner to the suzerain's (eg. 0.1 means suzerain's reinforcements increased by (10% * tributary's demesne size / suzerain's demesne size)
这也会按原样减少朝贡国拥有的军队。( 比如0.1 表示朝贡军队减少10% ,宗主国的军队增加10%* 宗主国征召兵规模/ 宗主国征召兵规模)
|{ value = 1 }
| { value = 1 }
|-
|-
|prestige_to_suzerain
|prestige_to_suzerain 
|MTTH
|MTTH
|How much prestige the suzerain gains (or loses) per month by having the tributary.
| 宗主国每月因朝贡而获得(或失去)多少威望。
|{ value = 0 }
|{ value = 0 }
|-
|-
|prestige_to_tributary
|prestige_to_tributary
|MTTH
|MTTH 
|How much prestige the tributary gains (or loses) per month by being a tributary.
| 朝贡国每月因朝贡而获得(或失去)多少威望。
|{ value = 0 }
|{ value = 0 }
|-
|-
|piety_to_suzerain
|piety_to_suzerain
|MTTH
|MTTH 
|How much piety the suzerain gains (or loses) per month by having the tributary.
| 宗主国每月因朝贡而获得(或失去)多少虔诚。
|{ value = 0 }
|{ value = 0 }
|-
|-
|piety_to_tributary
|piety_to_tributary
|MTTH
|MTTH
|How much piety the tributary gains (or loses) per month by being a tributary.
| 朝贡国每月因朝贡而获得(或失去)多少虔诚。
|{ value = 0 }
|{ value = 0 }
|-
|-
|modifier
|modifier
|modifier
|modifier 
|A character modifier applied to the tributary. Uses <code>tributary_name</code> as the name of the modifier.
| 用于朝贡国的角色修正,详见<code>tributary_name</code>
|(no modifier)
|(no modifier)
|}
|}

2025年5月15日 (四) 16:43的最新版本


定义

每种朝贡国的类型必须被定义在 /common/tributary_types/. “默认”类型的朝贡国必须一直存在。如果不是这样,游戏会自动创造一个。 但是,设定朝贡类型变量为"none"会发生错误。 如果启用马上诸王DLC,游牧民族的所有不同文化特征都会成为“游牧”朝贡类型的朝贡——此为硬编码。 (文档没有指定当不存在“游牧”朝贡类型时会发生什么,因此可能应该始终存在一种朝贡类型。)

The following data should be defined for each tributary type (though all of it is optional and can be left out)

变量名称 变量类型 变量说明 默认变量值
tributary_name string 仅引用一个时,用于此类型朝贡国的本地化字符串(eg. "Tributary", "Imperial Tributary")
tributary_plural string 引用多个时,用于此类型朝贡国的本地化字符串(eg. "Tributaries", "Imperial Tributaries")
suzerain_name string 宗主国名称的本地化字符串(eg. "Suzerain", "Imperial Suzerain")
tribute_name string 无论上供什么都显示该朝贡国类型本地化字符串(paying $TRIBUTE$, eg. "paying tribute") (unknown)
breaks_at_suzerain_death bool 如果变量值为yes,宗主国统治者死亡则结束朝贡关系。该变量持续存在。 yes
breaks_at_tributary_death bool 如果变量值为yes,朝贡国统治者死亡则结束朝贡关系。该变量持续存在。 no
tributary_can_be_summoned bool 如果变量值为yes,宗主国可以召唤朝贡国加入战争。朝贡国可能会下降关系。这取决于变量tributary_must_defend. yes
tributary_must_defend bool 如果变量值为yes,宗主国在防御性质战争中召唤朝贡国时,朝贡国不能拒绝。如果变量值为no,则可以拒绝。 yes
suzerain_can_be_called bool 如果变量值为yes,即使没有结盟,朝贡国还是可以在战争中要求宗主国加入战争。宗主国可能会下降关系。这取决于变量suzerain_must_defend yes
suzerain_must_defend bool 如果变量值为yes,朝贡国在防御性质战争中召唤宗主国时,宗主国不能拒绝。如果变量值为no,则可以拒绝。 no
tributaries_can_infight bool 如果变量值为no,同一个宗主国下同一个类型的朝贡国不可以互相宣战。如果变量值为yes,那么他们就可以。不同类型的朝贡国之间一直可以互相宣战,就像不同的宗主国之间一样。
suzerain_can_join_infighting bool 如果变量值为yes,宗主国可以加入其中一个朝贡国对抗另一类型朝贡国的战争。 yes
tributaries_can_unite bool 如果变量值为yes,其中一个朝贡国想要独立时,所有朝贡国会联合起来对抗宗主国。他们也不会帮助宗主国对抗同一类型朝贡国的战争。 (unknown)
breaks_on_realm_change bool 如果变量值为yes,朝贡国头衔在改变范围时则朝贡关系结束。 no
icon integer 要使用图标条的哪块。请注意,使用已用于另一种朝贡类型(例如联盟)的目录将破坏工具提示,这会将其留空。 (以“战争中”为准,可能是1或0)
cbs_against_suzerain list (of CBs) 朝贡国将不会使用宣战理由(表)中的理由来对抗他们的宗主国。 {}
income_tribute_percentage MTTH 每个月上供宗主国的收入百分比。只有在朝贡关系确定时才会评估,之后无法更改。值应该在0到1之间。若设定值不在该区间内则会被改正到该区间。ROOT是朝贡国,FROM是宗主国。 { value = 1 }
reinforce_tribute_percentage MTTH 朝贡国上工宗主国的军队百分比。只有在朝贡关系确定时才会评估,之后无法更改。值应该在0到1之间。若设定值不在该区间内则会被改正到该区间。ROOT是朝贡国,FROM是宗主国。

这也会按原样减少朝贡国拥有的军队。(比如0.1表示朝贡军队减少10%,宗主国的军队增加10%*宗主国征召兵规模/宗主国征召兵规模)

{ value = 1 }
prestige_to_suzerain MTTH 宗主国每月因朝贡而获得(或失去)多少威望。 { value = 0 }
prestige_to_tributary MTTH 朝贡国每月因朝贡而获得(或失去)多少威望。 { value = 0 }
piety_to_suzerain MTTH 宗主国每月因朝贡而获得(或失去)多少虔诚。 { value = 0 }
piety_to_tributary MTTH 朝贡国每月因朝贡而获得(或失去)多少虔诚。 { value = 0 }
modifier modifier 用于朝贡国的角色修正,详见tributary_name (no modifier)