首页所有页面

宗教模组制作


宗教与宗教组被定义于/common/religions文件夹。

宗教组

每个宗教都属于一个宗教组,例如:

  • Catholic.pngOrthodox.png 属于基督教组。
  • Sunni.pngShiite.png 属于伊斯兰教组。

请注意,有些行为是基于原版宗教团体硬编码的:

  • pagan_group: unreformed Pagans cannot demand religious conversion

宗教团体被定义为带有字母数字ID的团体标签。宗教团体必须拥有 graphical_culture defined, and one or more religion.

宗教群体定义的一个例子(涉及宗教)如下:

zoroastrian_group = {

	has_coa_on_barony_only =yes

	graphical_culture = muslimgfx

	

	#religions go here

}

以下是所有可设定的宗教团体参数列表。

Attribute Type Description Example
color color 联盟颜色——按宗教团体——地图模式 color = { 0.25 0.5 0.75 }
graphical_culture ID 仅用于地图上显示CoA框架。 graphical_culture = norsegfx
has_coa_on_barony_only boolean 这条线决定了该宗教是否会在男爵级以上的COA中使用随机图形:
  • has_coa_on_barony_only = yes:为男爵领地随机生成CoA,但高阶用gfx/flags/。
  • has_coa_on_barony_only = no:为所有等级生成随机的CoA,完全忽略gfx/flags。
has_coa_on_barony_only = yes
hostile_within_group bool 决定圣职团体是否会与同一群体内的其他宗教进行冲突,同时也禁止群体内的跨信仰婚姻。
crusade_cb ID 定义一个宗教群体是否可以有crusades/jihads。在原版CKII中,这只适用于基督教、穆斯林和以色列宗教团体。 crusade_cb = crusade
playable boolean 定义该宗教角色是否可操作。不适用于“穆斯林”群体,因为它只能通过 Sword of Islam playable = yes
ai_peaceful boolean 会让部落在皈依这个宗教后失去他们的超级攻击性 ai_peaceful = yes
ai_fabricate_claims boolean ai_fabricate_claims = no
merge_republic_interface boolean 决定宗教是否会尝试将其界面与共和国界面合并。如果是的话,当共和国寻找宗教界面的纹理时,他们会寻找<texture_name>_republic并使用该版本的纹理,而不是宗教的正常纹理。默认是“不”。 merge_republic_interface = yes

Religion

以下是所有可以设定的宗教参数列表。注意,从赋能到以下的内容都是可选的。

Attribute Type Description Example
ai_convert_same_group int 确定AI是否派遣宫廷牧师传教于同一宗教群体的宗教:
  • 0: never try to convert
  • 1: try to convert if ai_zeal is high
  • 2: always try to convert
ai_convert_same_group = 2
ai_convert_other_group int 确定AI是否派遣宫廷牧师去传教其他宗教群体:
  • 0: never try to convert
  • 1: try to convert if ai_zeal is high
  • 2: always try to convert
ai_convert_other_group = 1
graphical_culture ID 仅用于地图上显示CoA框架。 graphical_culture = norsegfx
icon int 它定义了游戏中宗教将使用的图标。对于异端来说,这个价值被忽略(除非异端成为主流宗教),而母教的教heresy_icon则会被使用。 icon = 1
color color The color used when drawing the religion map mode
RGB 格式范围为0.0–1.0。要从RGB中求得数值,只需除以255,例如180÷255 = 0.7
color = { 0.25 0.5 0.75 }
crusade_name key 定义了宗教crusade名称的本地化密钥。仅适用于宗教群体 crusade_cb = crusade defined. crusade_name = "CRUSADE"
scripture_name key Defines a localization key for the religion's holy text. scripture_name = THE_BIBLE
god_names list<key> 定义宗教神祇的定位键,括号内并用空格分隔。 god_names = { GOD_GOD GOD_THE_LORD }
high_god_name key Localization key for high god high_god_name = GOD_GOD
evil_god_names list<key> 定义宗教邪恶神祇的本地化键,括号内并用空格分隔。 evil_god_names = { SATAN LUCIFER THE_DEVIL }
piety_name key Defines localization keys for the religion's piety. piety_name = KARMA
priest_title key Defines localization key for temple holders priest_title = PRIEST
investiture bool 决定是否可以任命主教。被修改为 Investiture 法律。只适用于基督教团体,不能与自治团体结合使用 investiture = yes
can_demand_religious_conversion bool 决定该宗教的角色是否可以要求其他角色皈依该宗教。政府也必须允许。 can_demand_religious_conversion = yes
can_excommunicate bool Determines if the religious head can excommunicate members of the religion can_excommunicate = yes
can_grant_divorce bool Determines if the religious head can grant divorces to members of the religion can_grant_divorce = yes
can_grant_invasion_cb cb Determines if the religious head can grant the invasion Casus Belli can_grant_invasion_cb = invasion
can_grant_claim bool Determines if the religious head can grant claims (actually not working) can_grant_claim = yes
can_call_crusade bool Determines if the religious head can call crusades can_call_crusade = yes
can_have_antipopes bool Activates Antipope can_have_antipopes = yes
can_retire_to_monastery bool Activates order to take the vows diplomatic action can_retire_to_monastery = yes
parent religion 使宗教成为其母教的异端。必须先明确其母宗教。注意:改革宗异教徒可以有异端,但这些异端需要在改革宗和非改革宗之后定义。 parent = catholic
priests_can_marry bool Determines if the clergy can get married priests_can_marry = yes
priests_can_inherit bool Whether priests are excluded from succession priests_can_inherit = no
feminist bool 这会抵消封臣通常会因统治者是女性或有女性继承人而获得的负面评价修正 feminist = yes
pacifist bool 表示攻击性降低且领域稳定的宗教。只有在玩家没有拥有印度拉贾时,才对耆那教有效。 pacifist = yes
bs_marriage bool Allows brother-sister marriages bs_marriage = yes
pc_marriage bool Allows parent-child marriages pc_marriage = yes
psc_marriage bool Disallow uncle-niece and aunt-nephew marriages psc_marriage = no
cousin_marriage bool Disallow cousin marriages cousin_marriage = no
matrilineal_marriages bool Disallow matrilineal marriages matrilineal_marriages = no
intermarry religion 说明成员是否倾向于与其他宗教/宗教群体的成员结婚 intermarry = norse_pagan_reformed
max_wives int 决定该宗教成员最多可拥有多少妻子。以及自动为法院生成的潜在妻子数量。 max_wives = 4
allow_viking_invasion bool Allows the "Prepare Invasion" diplo action allow_viking_invasion = yes
allow_looting bool Allows looting allow_looting = yes
seafarer bool A.I. will prefer coastal provinces when raiding. seafarer = yes
allow_rivermovement bool Allows river navigation allow_rivermovement = yes
female_temple_holders bool Allows female temple vassals female_temple_holders = yes
male_temple_holders bool Allows male temple vassals. Defaults to yes. male_temple_holders = no
short_reign_opinion_year_mult integer 观点惩罚倍增对短统治年。覆盖定义SHORT_REIGN_OPINION_MULT = 2。 short_reign_opinion_year_mult = 3
aggression double AI aggression factor aggression = 1.5
max_consorts int Max number of consorts / concubines max_consorts = 3
religious_clothing_head int 用于宗教头巾和头饰的框架索引。参见 portrait modding. religious_clothing_head = 3
religious_clothing_priest int 用于祭司服装和头饰的框架索引。参见 portrait modding. religious_clothing_priest = 3
secondary_event_pictures [{{{1}}}] secondary_event_pictures = norse_pagan
autocephaly bool Autocephaly behavior autocephaly = yes
pentarchy bool Pentarchy behavior. Implies autocephaly = yes. pentarchy = yes
divine_blood bool Sacred Xwedodah close-kin marriage mechanics divine_blood = yes
has_heir_designation bool Allows to designate heir has_heir_designation = yes
defensive_attrition bool Defensive attrition in provinces defensive_attrition = yes
ignores_defensive_attrition bool 用于没有防御性消耗但不会受到此类宗教惩罚的宗教。 ignores_defensive_attrition = yes
heresy_icon int 异端图标。注意这必须设定在母宗教中,而不是异端级别。 heresy_icon = 7
independence_war_score_bonus int Overrides define CONTESTED_TITLE_OCCUPIED_WARSCORE_BONUS_INDEP independence_war_score_bonus = 30
peace_prestige_loss bool Lose Prestige while at peace peace_prestige_loss = yes
peace_piety_gain double Gain piety while at peace (piety per month) peace_piety_gain = 1.0
raised_vassal_opinion_loss bool 决定增兵附庸是否会随着时间推移引发对封主的负面评价。 raised_vassal_opinion_loss = no
reformed religion 注意:文件中改革宗教必须排在未改革宗教之前。 reformed = aztec_reformed
reformer_head_of_religion bool 让改革该宗教的角色成为新改革宗教的领袖。必须选择归正宗教。
  • 改革宗教(d_)的称谓<religion_reformed>不得有 primary = yes, otherwise it will cause game over. landless = yes may not be an issue [?]
  • You also need to do some government modding otherwise character will get nogovernment. In government potentials replace NOT = { religion = norse_pagan_reformed } into the more generic NOT = { primary_title = { is_landless_type_title = no } }
reformer_head_of_religion = yes
pre_reformed bool 这使得异教宗教处于改革前。请注意,这些宗教不会出现在账簿中。 pre_reformed = yes
unit_modifier unit modifiers Modifiers for units
unit_home_modifier unit modifiers Modifiers for units on home territory
character_modifier character modifiers Modifier for all characters of this religion character_modifier = { learning = 4 }
expel_modifier modifiers [{{{1}}}] expel_modifier = expelled_jewish
landed_kin_prestige_bonus bool Gives a prestige bonus for having landed 'kings as vassal. landed_kin_prestige_bonus = yes
allow_in_ruler_designer bool Prevents the religion from appearing in Ruler Designer, typically pagan reformed religions. allow_in_ruler_designer = no
dislike_tribal_organization bool 如果领主加强部落组织,这个宗教的附庸会反对并组建派系。通常用于未改革的异教徒,他们应先皈依一神教,再尝试封建。 dislike_tribal_organization = yes
uses_decadence bool Decadence 如果角色的宗教和政府都被设定成使用颓废,才会被使用。 uses_decadence = yes
uses_jizya_tax bool uses_jizya_tax = yes
attacking_same_religion_piety_loss bool attacking_same_religion_piety_loss = yes
hard_to_convert bool Checked via is_hard_to_convert character/province trigger. hard_to_convert = yes
men_can_take_consorts bool 如果被设定,男性可以选择女性配偶。默认是可以。如果max_consorts为0,则无效。 men_can_take_consorts = yes
women_can_take_consorts bool 如果被设定好,女性可以选择男性配偶。默认是“不”。如果max_consorts为0,则无效。 women_can_take_consorts = yes
interface_skin interface The Interface this religion provides interface_skin = { pagan_interface }
castes bool Whether the religion uses a caste system. castes = yes
caste_opinions bool Whether the religion uses the caste opinion modifiers. caste_opinions = yes
has_coa_on_barony_only bool 它的工作原理和同名的宗教团体参数一样。如果设置,会覆盖该宗教团体的设定。 has_coa_on_barony_only = yes
join_crusade_if_bordering_hostile bool 如果设置为“是”,AI不会因为crusade邻近异教/异端领域而拒绝加入。 join_crusade_if_bordering_hostile = yes
merge_republic_interface boolean 决定宗教是否会尝试将其界面与共和国界面合并。如果是的话,当共和国寻找宗教界面的纹理时,他们会寻找<texture_name>_republic并使用该版本的纹理,而不是宗教的正常纹理。默认是“不”。如果设定,会覆盖宗教团体的价值。 merge_republic_interface = yes
rel_head_defense boolean 如果设为“是”,该宗教的人在被其他宗教攻击时很可能会加入保卫自己宗教领袖的行列。 rel_head_defense = yes

Example

christian = {

    has_coa_on_barony_only = yes

    graphical_culture = westerngfx

    crusade_cb = crusade

    playable = yes

    ai_peaceful = yes # Will make Hordes lose their super aggressiveness

         

    catholic = {

         graphical_culture = westerngfx

         

         icon = 1

         color = { 0.8 0.8 0.6 }

         	

         crusade_name = "CRUSADE"

         scripture_name = THE_BIBLE

         god_names = {

              GOD_GOD GOD_THE_LORD GOD_JESUS GOD_THE_BLESSED_VIRGIN

         }

         

         investiture = yes

         can_excommunicate = yes

         can_grant_divorce = yes

         can_grant_invasion_cb = invasion

         can_grant_claim = yes

         can_call_crusade = yes

         }

    }

}

Localization

  • <religion_name>: short name of the religion. Used with [Religion.GetName]
  • <religion_name>_DESC: description in religion tooltip
  • <religion_name>_full:更长的名称,显示在地图和大多数界面上,以及 [Religion.GetFullName]

Adding icons

添加新的宗教图标是一个相当简单的过程。首先你需要修改文件 religion_icon_strip.dds and religion_icon_strip_small.dds within CKII\gfx\interface. In religion_icon_strip.dds, 将图像画布向右扩展32像素,每个新图标,然后在 religion_icon_strip_small 每增加一个图标,扩展20像素。添加新图标后,你需要编辑 CKII\interface 文件夹中的“generalstuff.gfx”文件(.将 noOfFrames = 行数增加到你添加的图标数量。完成后,你可以在宗教中使用新的图标,从左到右是1到X。

	spriteType = {

		name = "GFX_religion_icon_strip"

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

		noOfFrames = 10

	}



	spriteType = {

		name = "GFX_religion_icon_strip_small"

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

		noOfFrames = 10

	}

Religious head

Religious heads can be established via the landed titles 条目。你必须先创建一个任意军衔的头衔,并添加变量 controls_religion = X into that title's entry. For example;

k_coptic = {

   color={RGB}

   color2={RGB}

   capital = 1

   religion = monophysite

   controls_religion = monophysite

}

因此,上述头衔的持有者将作为一性论宗教/异端的宗教领袖出现。该 religion = monophysite 还建议确保该标题生成的任何/所有随机角色都属于同一宗教,如果所属省份 capital = 如果变量设定为天主教,你可能会得到一位天主教宗教领袖,属于一性论信仰。

Holy sites

Holy sites are flagged at county level via the landed titles entries.

c_koln = {

  holy_site = catholic

}

维护时,最好只覆盖县,并通过 /common/landed_titles/ 下的单独文件标记圣地,避免重复landed_titles.txt

也可以定义异端的圣地,尽管如果不使用,游戏会退回到母宗教的设定。

Crusade target weights

Crusade target weights are set inside common/landed_titles/landed_titles.txt entries.

k_lotharingia = {

  catholic = 5000

}

注意,如果没有该宗教的目标权重,人工智能永远不会启动crusade。

Papal succession

Adding a religion to succ_papal_succession 继承法和某些宗教头衔的定义会导致打开宗教标签页时游戏崩溃。

A bit of interface modding is required so that it works.

Reformation

如果一个宗教的法典中有改革版本,它将继承宗教改革的行动权。

如果你想更改Reformation的界面,可以在“religion_features”文件夹里编辑文件,搜索“buttons”来更改。然后你需要在“religion_reformation.gui”文件中更改ui,该文件设置在“\common\religion_features'中。

For example, you can edit the

religion_doctrine = {

	buttons = { doctrine1 doctrine2 }

and change it to:

religion_doctrine = {

	buttons = { doctrine1 doctrine2 doctrine3 }

in the "00_feature.txt" and then add:

windowType = {

			name = "doctrine3"

			position = { x=487 y=190 }

			moveable = 0

			fullScreen = no

			Orientation = "UPPER_LEFT"

			

			guiButtonType = {

				name = "picture"

				position = { x=0 y=15}

				quadTextureSprite ="GFX_religion_feature_primitive"

				clicksound = bookmark_click

				pdx_tooltip = "REFORMATION_SELECT_FEATURE"

			}

			instantTextBoxType = {

				name = "feature_label"

				position = { x = 10 y = 150 }

				font = "vic_22_black"

				text = "feature_uncertain"

				maxWidth = 173

				maxHeight = 20

				fixedsize = yes

				format = centre

			}

		}

在“religion_reformation.gui”中,以确立宗教改革中的第三教义。

Interface

在3.0补丁中,可以通过添加变量来修改对应特定信仰的接口 interface_skin = { x }.X 表示 gfx/interface 中接口文件夹的名称。 可以混合更多界面,原版中琐罗亚斯德教、印度(2个界面)、尊教、非洲和道教(3个界面)以及苯教(4个界面)都会发生这种情况。

See also

相关页面 (81)

AntipopeAutocephalyCasus BelliCasus Belli moddingCatholicClaimsClergyCrusadesCrusades, jihads and great holy warsDecadenceDiplomatic actionsDivorcesEU4转档器模组制作ExcommunicateGovernment moddingInterface moddingInvestitureLootingModifiersOrthodoxPortrait moddingReligionReligious headRuler DesignerShiiteSteam创意工坊SunniSword of IslamTitle modding事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作