小 (RemixMe移动页面Tributary type modding至朝贡国类型模组制作) |
小 (文本替换 - 替换“Category:Modding”为“Category:模组制作”) |
||
第130行: | 第130行: | ||
|} | |} | ||
[[Category: | [[Category: 模组制作]] | ||
{{ModdingNavbox}} | {{ModdingNavbox}} |
2020年5月24日 (日) 02:47的版本
Definition
Each tributary type must be defined in a file in /common/tributary_types/
. A tributary type named "default" should always exist. If not, the game should automatically create one. Calling a tributary type "none" is an error.
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.)
The following data should be defined for each tributary type (though all of it is optional and can be left out)
Variable | Type | Description | Default |
---|---|---|---|
tributary_name | string | Localization string used for tributaries of this type when referring to just one (eg. "Tributary", "Imperial Tributary") | |
tributary_plural | string | Localization string used for tributaries of that type when referring to multiple (eg. "Tributaries", "Imperial Tributaries") | |
suzerain_name | string | Localization used for suzerain of the tributary type (eg. "Suzerain", "Imperial Suzerain") | |
tribute_name | string | Localization string used for whatever is paid (paying $TRIBUTE$, eg. "paying tribute") for this tributary type | (unknown) |
breaks_at_suzerain_death | bool | If yes, the tributary relationship breaks when the suzerain dies. If no, it persists. | yes |
breaks_at_tributary_death | bool | If yes, the tributary relationship breaks when the tributary dies. If no, it persists. | no |
tributary_can_be_summoned | bool | If yes, the suzerain can call their tributaries to war. The tributary might be able to decline, depending on tributary_must_defend .
|
yes |
tributary_must_defend | 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 |
suzerain_can_be_called | 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 suzerain_must_defend
|
yes |
suzerain_must_defend | 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. | no |
tributaries_can_infight | 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. | yes |
suzerain_can_join_infighting | bool | If yes, the suzerain can join one tributary in their war against another of the same type. | yes |
tributaries_can_unite | 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. | (unknown) |
breaks_on_realm_change | bool | If yes, the tributary relationship ends when the tributary's titles change realms | no |
icon | 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) |
cbs_against_suzerain | list (of CBs) | The tributary will not be able to use any CBs not in the list against their suzerain. | {} |
income_tribute_percentage | 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. | { value = 1 } |
reinforce_tribute_percentage | 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.
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) |
{ value = 1 } |
prestige_to_suzerain | MTTH | How much prestige the suzerain gains (or loses) per month by having the tributary. | { value = 0 } |
prestige_to_tributary | MTTH | How much prestige the tributary gains (or loses) per month by being a tributary. | { value = 0 } |
piety_to_suzerain | MTTH | How much piety the suzerain gains (or loses) per month by having the tributary. | { value = 0 } |
piety_to_tributary | MTTH | How much piety the tributary gains (or loses) per month by being a tributary. | { value = 0 } |
modifier | modifier | A character modifier applied to the tributary. Uses tributary_name as the name of the modifier.
|
(no modifier) |
历史 | 角色 • 家族 • 省份 • 头衔 • 剧本 |
脚本 | 指令 • 条件 • 作用域 • 修正 • 事件 • 决议 |
常规 | 定义 • 游戏规则 • 另类开局 • 宗教 • 文化 • 政体 • 特质 • 血脉 • 科技 • 法律 • 建筑 • 宣战理由 • 朝贡国 • 单位 • 目标 • 疾病 • 死亡 • 荣誉头衔 • 社团 • 宝物 • 地图外政权 • 内阁成员 • 贸易路线 • 继承 • 奇观 • 称号 |
图像/音效/本地化 | 地图 • 图形 • 盾徽 • 肖像 • 界面 • 小地图 • 音乐 • 本地化 |
其他 | 故障排除 • 验证器 • 控制台指令 • 编辑游戏存档 • Steam创意工坊 • EU4转档器模组制作 |