首页所有页面

政体模组制作


Governments were introduced in patch 2.4 and are associated to characters.

They allow to dissociate the type of the capital holding 来自实际政府,这在2.4补丁之前是个问题。

出于性能考虑,政府只有在获得或取消头衔、封主关系和宗教改变时才会被认可。[1]


Government group

Government groups are hardcoded. There are 5 groups:

  • feudal_governments, for which is_feudal = yes
  • republic_governments, for which is_republic = yes
  • theocracy_governments, for which is_theocracy = yes
  • tribal_governments, for which is_tribal = yes
  • nomadic_governments, for which is_nomadic = yes

Government

Here is the list of flags available for governments:[2]

Name Type Description Example
color rgb Color for the government type on the government map mode
title_prefix string Prefix for title localisation (for instance temple_count). title_prefix = "temple_"
frame_suffix string 角色帧边框的精灵GFX名称后缀。 frame_suffix = "_tribal"
potential character triggers 角色选择此政府类型的条件。游戏开始时,如果多个政府符合资格,第一个符合条件的政府将被选中(注:封建政府似乎先被评估)
potential = {

	NOT = {	religion_group = muslim	}

	is_patrician = no

}

merchant_republic bool Enables merchant republic 机制:生成家族宫殿和贵族。它还将解锁建造沿海贸易站的可能性。 merchant_republic = yes
uses_bride_price bool Enables the bride price merchant republic functionality. uses_bride_price = yes
uses_decadence bool 如果剧本设定在政府和角色的宗教背景下,该角色会使用 decadence mechanics. uses_decadence = yes
uses_jizya_tax bool uses_jizya_tax = yes
uses_piety_for_law_change bool
uses_prestige_for_law_change bool
allows_matrilineal_marriage bool
allow_title_revokation bool
allow_looting bool
can_imprison_without_reason bool
can_revoke_without_reason bool
ignores_de_jure_laws bool
dukes_called_kings bool
barons_need_dynasty bool 如果是的话,男爵们每次被征服都会随机获得一个王朝 barons_need_dynasty = yes
can_create_empires bool 是否有人能在这个政府中建立帝国。默认是可以。 can_create_empires = no
can_create_kingdoms bool 是否有政府的人能建立王国。默认是可以。 can_create_kingdoms = no
can_usurp_kingdoms_and_empires bool
have_gender_laws bool 适用于性别法律脚本中仅允许一项性别法律的政府。影响界面,也影响政府工具提示。 have_gender_laws = no
can_build_holdings bool
can_build_forts bool
can_build_castle bool
can_build_city bool
can_build_temple bool
can_build_tribal bool
can_grant_kingdoms_and_empires_to_other_government bool 是否能将王国和帝国授予不同政府的人。默认是可以。
can_grant_kingdoms_and_empires_to_other_government_group bool 是否有政府的人能把王国和帝国分给不同政府集团的人。默认是“不”。
can_be_granted_kingdoms_and_empires_by_other_government bool 是否能从拥有不同政府的人那里获得王国和帝国。默认是可以。
can_be_granted_kingdoms_and_empires_by_other_government_group bool 拥有这个政府的人是否能从不同政府集团的人那里获得王国和帝国。默认是可以。
free_retract_vassalage bool
free_levies_in_offensive_war bool 如果处于进攻战争中,征召兵员时不激怒附庸 free_levies_in_offensive_war = yes
max_consorts int
max_liege_levy Used instead of crown laws
max_liege_tax Used instead of crown laws
aggression double 每点将愿意宣战的好感门槛提高20点,以及AI宣战的速度。1是默认值,且没有变化。低于1的AI就不太可能宣战。值为0时,AI除了脚本外永远不会宣战。负值被视为无效,不应使用
unit_modifier modifiers Works like in religion modding
unit_home_modifier modifiers Works like in religion modding
character_modifier modifiers Works like in religion modding
preferred_holdings List<holding>
allowed_holdings

allowed_holdings_culture
allowed_holdings_religion
allowed_holdings_culture_and_religion

List<holding> Will not get the wrong government type penalty
 # Will not get the wrong government type penalty for tribes of the same culture

allowed_holdings_culture = {

  TRIBAL​

}

builds_with_prestige List<holding> 无论新定居点是用声望还是黄金来建造。 builds_with_prestige = yes
builds_with_piety List<holding> 无论是用虔诚度还是黄金来建造新定居点。 builds_with_piety = yes
accepts_liege_governments

accepts_liege_governments_culture
accepts_liege_governments_religion
accepts_liege_governments_culture_and_religion

List<government> 列出的政府是合法的君主,不会受到错误的政府舆论惩罚。
# Gets the wrong religion modifier instead

accepts_liege_governments = { 

  muslim_government​

}

free_revoke_on_governments

free_revoke_on_governments_culture
free_revoke_on_governments_religion
free_revoke_on_governments_culture_and_religion

List<government> Liege gets free revocation on vassals with specified governments
# Tribal vassals of other religions can have their titles revoked for free

free_revoke_on_governments_religion = { 

  tribal_government​

}

free_revoke_on_tiers

free_revoke_on_tiers_culture
free_revoke_on_tiers_religion
free_revoke_on_tiers_culture_and_religion

List<tier> 附庸等级,废除头衔不会触发任何负面评价修正
free_revoke_on_tiers = { count duke }

ignore_in_vassal_limit_calculation List<government> 拥有指定政府的附庸不计入附庸上限。
ignore_in_vassal_limit_calculation = {

  tribal_government​

}​

vassal_call_to_arms List<government>
no_vassal_tax List<government>
forced_contract List<government> 拥有指定政府的附庸无论意见如何,都会给予最高税收和最高封臣征兵。对这些附庸的暴政行动可以在其他政府附庸不反对的情况下进行
commander_limit
capital_move_delay
can_change_to_nomad_on_start bool 在游牧领主(同一文化)统治下的部落统治者将成为游牧统治者,除非该角色或其称号有其他规定。它只是为了在游戏开始前评估政府。
gets_religion_opinion_penalties bool 持有者关心的是人们是否属于不同的宗教。默认是可以。
gives_religion_opinion_penalties bool 其他人则关心持有者是否信仰不同宗教。默认是
vassal_government_opinion_penalties bool 因为“有”accepts_liege_governments“等原因,会受到观点惩罚。默认是可以。
offmap_power offmap 使用succ_offmap_succession时,应该用哪些地图外的力量来提升文化和宗教?
can_demand_religious_conversion bool 本届政府的人是否可以使用“要求宗教转换”互动。也必须被允许进入宗教。默认是可以。
can_inherit bool 是否能继承本届政府的人继承头衔。默认是可以。
men_can_take_consorts bool 如果被设定,男性可以选择女性配偶。默认是可以。如果max_consorts为0,则无效。
women_can_take_consorts bool 如果被设定好,女性可以选择男性配偶。默认是“不”。如果max_consorts为0,则无效。
marriage_ignore_religion bool 如果设置为如此,AI在考虑婚姻提议或娶妃时会忽略宗教,默认为否。

Graphics

为了为政府添加自定义图形,需要进行一些界面模组。在接口文件夹里创建一个 .gfx 文件。在内部,你可以为政府图标添加一个精灵类型块,以及五个字符帧图像的精灵。所有六个精灵类型都必须包含在一个精灵类型块内,且所有这些精灵类型的名字都必须以你在政府txt文件中输入的名称结尾frame_suffix。你可以在 \interface\generalstuff.gfx 找到原版代码。

实际的图形文件会放在gfx\interface文件夹里。所有六个文件都会被保存为.dds扩展名。

例如,如果你想为世俗政府添加自定义图形,当 frame_suffix = _secular :

spriteTypes = {

	

	### character stuff

	spriteType = {

		name = "GFX_charframe_150_secular"

		texturefile = "gfx\\interface\\charframe_150_secular.tga"

		noOfFrames = 6

		allwaystransparent = yes

	}

	spriteType = {

		name = "GFX_charframe_100_secular"

		texturefile = "gfx\\interface\\charframe_100_secular.tga"

		noOfFrames = 6

		allwaystransparent = yes

	}

	spriteType = {

		name = "GFX_charframe_75_secular"

		texturefile = "gfx\\interface\\charframe_75_secular.tga"

		noOfFrames = 6

		allwaystransparent = yes

	}

	spriteType = {

		name = "GFX_charframe_50_secular"

		texturefile = "gfx\\interface\\charframe_50_secular.tga"

		noOfFrames = 6

		allwaystransparent = yes

	}

	spriteType = {

		name = "GFX_charframe_34_secular"

		texturefile = "gfx\\interface\\charframe_34_secular.tga"

		noOfFrames = 6

		allwaystransparent = yes

	}

	

	### government icons

	spriteType = {

		name = "GFX_icon_secular_government"

		texturefile = "gfx\\interface\\government_icon_secular.dds"

	}



}

Localisation

别忘了对你的新政府进行本地化。其工作方式与其他本地化类似:

secular_government;Secular;;;;;;;;;;;;;x

secular_government_desc;No religions allowed!;;;;;;;;;;;;;x

请注意,政府的属性列表(例如“可以无惩罚地持有城堡、神庙和堡垒”)是根据你在txt文件中输入的内容自动生成的,并放在你_government_desc下的属性下方。这意味着如果你不想解释政府表格的内容,可以留空_government_desc。


References

相关页面 (62)

DecadenceEU4转档器模组制作GovernmentHoldingMap modeMerchant republicModifiersPatch 2.4Religion moddingSteam创意工坊Triggers事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作