该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
{{Version|1.0}}{{需要翻译}} | {{Version|1.0}}{{需要翻译}} | ||
New religions can easily be added into the game using the highly modular design which the game offers. | |||
== | ==Religion family== | ||
Each religion belongs to a family. The three vanilla families are Abrahamic, Eastern and Pagan. For instance: | |||
* | * Christianity and Islam are part of the Abrahamic Family | ||
* | * Slavism and Tengrism are part of the Pagan Family | ||
Religion families are located in ''/common/religion/religion_families''. The religion family is defined as a tag with an alphanumerical ID. For example, the Abrahamic family is defined as follows: | |||
<pre> | <pre> | ||
第16行: | 第16行: | ||
} | } | ||
</pre> | </pre> | ||
Below is a list of all parameters that can be set for religion families. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | !Attribute | ||
! | !Type | ||
! | !Description | ||
! | !Example | ||
|- | |- | ||
|name | |name | ||
|localization key | |localization key | ||
| | |If not set will use the object key as localization key | ||
|name = name_of_the_family | |name = name_of_the_family | ||
|- | |- | ||
|is_pagan | |is_pagan | ||
|boolean | |boolean | ||
| | |Specifies if the group is pagan or not (default value is yes) | ||
|is_pagan = no | |is_pagan = no | ||
|- | |- | ||
|graphical_faith | |graphical_faith | ||
|gfx | |gfx | ||
| | |All religions in this family default to this 3D model (currently used for temple assets). Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|graphical_faith = catholic_gfx | |graphical_faith = catholic_gfx | ||
|- | |- | ||
|piety_icon_group | |piety_icon_group | ||
|gfx | |gfx | ||
| | |All religions in this family default to this set of piety icons. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|piety_icon_group = christian | |piety_icon_group = christian | ||
|- | |- | ||
|doctrine_background_icon | |doctrine_background_icon | ||
|gfx | |gfx | ||
| | |All religions in this family default to this doctrine background icon. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|doctrine_background_icon = core_tenet_banner_christian.dds | |doctrine_background_icon = core_tenet_banner_christian.dds | ||
|- | |- | ||
|hostility_doctrine | |hostility_doctrine | ||
|doctrine | |doctrine | ||
|INTERFACE ONLY | |INTERFACE ONLY: Use this doctrine when displaying hostility information for the whole religious family (if not scripted, then show no information) | ||
|hostility_doctrine = christian_hostility_doctrine | |hostility_doctrine = christian_hostility_doctrine | ||
|- | |- | ||
|} | |} | ||
== | ==Religion structure== | ||
Religions are located in the ''/common/religion/religions'' folder. Each religion is defined within a file, and the faiths that belong to it are defined within that definition. The religion family is defined as a tag with an alphanumerical ID. Here is an example of a fictional religion (localization and faiths are addressed below): | |||
<pre> | <pre> | ||
sea_cults = { | sea_cults = { | ||
第123行: | 第123行: | ||
</pre> | </pre> | ||
Below is a list of all parameters that can be set for religion families. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | !Attribute | ||
! | !Type | ||
! | !Description | ||
! | !Example | ||
|- | |- | ||
|family | |family | ||
|religion family | |religion family | ||
| | |What religion family the religion belongs to | ||
|family = family_name | |family = family_name | ||
|- | |- | ||
|graphical_faith | |graphical_faith | ||
|gfx | |gfx | ||
| | |All faiths in this religion default to this 3D model (currently used for temple assets). Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|graphical_faith = catholic_gfx | |graphical_faith = catholic_gfx | ||
|- | |- | ||
|piety_icon_group | |piety_icon_group | ||
|gfx | |gfx | ||
| | |All faiths in this religion default to this set of piety icons. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|piety_icon_group = christian | |piety_icon_group = christian | ||
|- | |- | ||
|doctrine_background_icon | |doctrine_background_icon | ||
|image file | |image file | ||
| | |All faiths in this religion default to this doctrine background icon. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|doctrine_background_icon = core_tenet_banner_christian.dds | |doctrine_background_icon = core_tenet_banner_christian.dds | ||
|- | |- | ||
第158行: | 第158行: | ||
|doctrine | |doctrine | ||
|doctrine | |doctrine | ||
| | |Doctrines defined in a religion will be applied to all faiths within it. This is only at game start; it is purely for script convenience, and would be equivalent to putting the doctrine in all the faiths. It can be overridden by putting a different doctrine in the group in the specific faith. Note that doctrines that allow more than one pick can '''not''' be defined on a religion level, as there's no obvious override system that would work then. Doctrines cannot be defined after the faiths section. | ||
|doctrine = doctrine_spiritual_head | |doctrine = doctrine_spiritual_head | ||
|- | |- | ||
|traits | |traits | ||
|clause | |clause | ||
| | |Defines which traits are considered virtues and sins by the religion. Notes on virtues and sins: List traits that are virtues for all followers. Trait groups also work. If more than one trait in a group is defined (or the group itself), only the first will be shown in the UI | ||
sins = { ... } # (sins) | sins = { ... } # (sins) | ||
# Virtues and sins give an opinion bonus/penalty (see VIRTUOUS_TRAIT and SINFUL_TRAIT defines). For that it is the "viewer's" faith that matters. | # Virtues and sins give an opinion bonus/penalty (see VIRTUOUS_TRAIT and SINFUL_TRAIT defines). For that it is the "viewer's" faith that matters. | ||
第178行: | 第178行: | ||
|reserved_male_names | |reserved_male_names | ||
|list<string> | |list<string> | ||
| | |Names listed here will be applied to all faiths that don't define reserved_male_names themselves. These names can be applied to newborn males when selecting a religion-based name. | ||
|reserved_male_names = { Rodrigo Johan Paradoxus } | |reserved_male_names = { Rodrigo Johan Paradoxus } | ||
|- | |- | ||
|reserved_female_names | |reserved_female_names | ||
|list<string> | |list<string> | ||
| | |Same as reserved_male_names, but applied to female characters instead. | ||
| | | | ||
|- | |- | ||
|custom_faith_icons | |custom_faith_icons | ||
|list<gfx> | |list<gfx> | ||
| | |When creating a custom faith, these will be the available icons. Path is "gfx/interface/icons/religion/%s.dds", where %s is the name. Also needs a text icon | ||
|custom_faith_icons = { custom_faith_1 custom_faith_2 custom_faith_3 } | |custom_faith_icons = { custom_faith_1 custom_faith_2 custom_faith_3 } | ||
|- | |- | ||
第198行: | 第198行: | ||
|holy_order_names | |holy_order_names | ||
|list<clause> | |list<clause> | ||
| | |Names and CoAs that can be used by holy orders of this religion. These are used if there are none available for the faith. If there are none left here, it uses "holy_order_default" as name and a randomly generated CoA instead. | ||
|<pre>holy_order_names = { | |<pre>holy_order_names = { | ||
{ name = "holy_order_name1" coat_of_arms = "holy_order_coa1" } | { name = "holy_order_name1" coat_of_arms = "holy_order_coa1" } | ||
第213行: | 第213行: | ||
|faiths | |faiths | ||
|list<Faiths> | |list<Faiths> | ||
| | |See below | ||
| | | | ||
|- | |- | ||
|} | |} | ||
== | ==Faiths== | ||
Faiths are defined within the faith clause of a religion. They can overwrite default doctrines and graphics set for the whole religion. Here is an example of a fictional faith within the religion defined above. | Faiths are defined within the faith clause of a religion. They can overwrite default doctrines and graphics set for the whole religion. Here is an example of a fictional faith within the religion defined above. | ||
第256行: | 第256行: | ||
|icon | |icon | ||
|gfx | |gfx | ||
| | |If you want to use another faith's icon | ||
|icon = bosnian_church | |icon = bosnian_church | ||
|- | |- | ||
|graphical_faith | |graphical_faith | ||
|gfx | |gfx | ||
| | |This faith (and custom faiths based on this faith) use this 3D model (currently used for temple assets). Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|graphical_faith = catholic_gfx | |graphical_faith = catholic_gfx | ||
|- | |- | ||
|piety_icon_group | |piety_icon_group | ||
|gfx | |gfx | ||
| | |This faith (and custom faiths based on this faith) use this set of piety icons. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
|piety_icon_group = christian | |piety_icon_group = christian | ||
|- | |- | ||
|doctrine_background_icon | |doctrine_background_icon | ||
|gfx | |gfx | ||
| | |This faith (and custom faiths based on this faith) use this doctrine background icon. Order of precedence is the lowest level scripted in: faith > religion > family. | ||
| | | | ||
|- | |- | ||
|religious_head | |religious_head | ||
|title | |title | ||
| | |What title should be this faith's religious head. If not set, will not have a religious head (unless created elsewhere in script) | ||
|religious_head = d_coptic_papacy | |religious_head = d_coptic_papacy | ||
|- | |- | ||
|holy_site | |holy_site | ||
|holy site | |holy site | ||
| | |Holy site, as defined in the holy_site folder. You can add any number of these | ||
|holy_site = jerusalem | |holy_site = jerusalem | ||
|- | |- | ||
第301行: | 第301行: | ||
|} | |} | ||
== | ==Localization== | ||
The localization clause in both faiths and religions provides key-value pairs for localization. However, this clause does not include object localization for the religion/faith itself and its basic properties. The following localization keys also need defining: | The localization clause in both faiths and religions provides key-value pairs for localization. However, this clause does not include object localization for the religion/faith itself and its basic properties. The following localization keys also need defining: | ||
* <religion/faith_name> | * <religion/faith_name> | ||
第421行: | 第421行: | ||
* GHWNamePlural | * GHWNamePlural | ||
== | ==Graphics== | ||
No graphical modding is required to create a religion or faith, since there is an abundance of icons in the vanilla game, either in use by other religions or reserved for custom faiths. However, adding a new icon is very simple, if you feel that none of the vanilla icons are fitting for your religion. In the path ''/gfx/interface/icons/religion'', create a new 100x100 dds file. The name of the file is how the icon is referred to in the religion file. (e.g. icon = lobbist will refer to /gfx/interface/icons/religion/lobbist.dds). | |||
==圣地== | ==圣地== | ||
{{see also| | {{see also|Holy site ID}} | ||
Custom holy sites can be added in a text document in the | Custom holy sites can be added in a text document in the ''/common/religion/holy_sites'' folder. Each site is identified by a name, and contains information on the location of the site and the benefits (or potentially negatives) it brings. | ||
<pre> | <pre> | ||
jerusalem = { | jerusalem = { | ||
第437行: | 第437行: | ||
} | } | ||
</pre> | </pre> | ||
Below are the attributes which can be assigned to a holy site. Only the county is necessary. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! | !Attribute | ||
! | !Type | ||
! | !Description | ||
! | !Example | ||
|- | |- | ||
|county | |county | ||
|title | |title | ||
| | |The county in which the holy site is located | ||
|county = c_jerusalem | |county = c_jerusalem | ||
|- | |- | ||
|barony | |barony | ||
|title | |title | ||
| | |The barony in which the holy site is located | ||
|barony = b_vaticano | |barony = b_vaticano | ||
|- | |- | ||
|character modifier | |character modifier | ||
|modifier | |modifier | ||
| | |Applied to all characters of any faith with this holy site when the holder of the barony is of their faith | ||
|character_modifier = { | |character_modifier = { | ||
monthly_piety_gain_mult = 0.2 | monthly_piety_gain_mult = 0.2 | ||
第469行: | 第469行: | ||
|} | |} | ||
Holy sites also require the following keys in localization: | |||
* holy_site_<name>_name | * holy_site_<name>_name | ||
* holy_site_<name>_effect_name | * holy_site_<name>_effect_name | ||
第480行: | 第480行: | ||
<br> | <br> | ||
== | == Tenet ID == | ||
{{see also|Religions modding}} | |||
Each tenet has an internal ID used to reference it within the game files. In general, to get the tenet ID from its name: | |||
# | # Take the non-variant name (i.e. non-faith specific) | ||
# | # Turn all upper case letters into lower case (<code>A...Z->a...z</code>) | ||
# | # Replace all spaces (<code> </code>) with underscores (<code>_</code>) | ||
# | # Add <code>tenet_</code> to the beginning | ||
Tenets that do not fit the pattern above have been listed below: | |||
{| class="mildtable sortable" | {| class="mildtable sortable" | ||
|- | |- | ||
! | ! Name | ||
! | ! Tenet ID | ||
|- | |- | ||
| [[ | | [[#Auspicious Birthright|Auspicious Birthright]] | ||
| tenet_mystical_birthright | | tenet_mystical_birthright | ||
|- | |- | ||
| [[ | | [[#Ritual Suicide|Ritual Suicide]] | ||
| tenet_consolamentum | | tenet_consolamentum | ||
|- | |- | ||
| [[ | | [[#Ecclesiarchy|Ecclesiarchy]] | ||
| tenet_pentarchy | | tenet_pentarchy | ||
|- | |- | ||
| [[ | | [[#Religious Law|Religious Law]] | ||
| tenet_religious_legal_pronouncements | | tenet_religious_legal_pronouncements | ||
|- | |- | ||
| [[ | | [[#Sacred Lies|Sacred Lies]] | ||
| tenet_sacred_shadows | | tenet_sacred_shadows | ||
|- | |- | ||
| [[ | | [[#Sanctioned False Conversions|Sanctioned False Conversions]] | ||
| tenet_false_conversion_sanction | | tenet_false_conversion_sanction | ||
|- | |- | ||
| [[ | | [[#Struggle and Submission|Struggle and Submission]] | ||
| tenet_struggle_submission | | tenet_struggle_submission | ||
|- | |- | ||
| [[ | | [[#Syncretic Folk Traditions|Syncretic Folk Traditions]] | ||
| tenet_unreformed_syncretism | | tenet_unreformed_syncretism | ||
|} | |} |