Holy Wars and Schisms

Jiska

Warlord
Joined
Apr 23, 2016
Messages
164
Looking for feedback, bug reports, ideas for new mechanics, etc. :)

https://steamcommunity.com/sharedfiles/filedetails/?id=1292154969

A small mod I've wanted since G&K was released:

Whenever a Civilization with a capital that's a Holy City declares war against another Civilization with a capital that's a Holy City, a Holy War is declared and all Civilizations with Religious majorities in their capitals declare war accordingly. Civilizations engaged in Holy Wars gain Faith on killing units of the enemy Religion for the duration of the war. Holy Wars stop being declared once having researched Scientific Theory.

Whenever a with a Civilization declares war on another Civilization whose capital is the Holy City of the war declarer's capital city's Religious majority, a Schism occurs and the war declarer's capital will become the Holy City of a new sect of the defender's religion.

Played a game with newest VP and it seemed to work. Please report otherwise (:
 
Yes, it works well with vp.

Ideas:
- should use player:GetMajorityReligion() instead of player:GetCapitalCity():GetReligiousMajority()
- those who struggle in the holy war can train specific units ( knight templar and ghazi warrior) with promotion ( UnitPromotions_YieldFromKills ---- YIELD_FAITH) and combat bonus near Holy city.
- holy war just in Medieval Era. ( short period ..... but historical truth)
 
Last edited:
There's nothing wrong with the steam version. That specific person's saves were somehow broken (by my small mod? I doubt it. Possibly by something else?) by the update from non Schisms version to the Schisms version. But thanks for uploading a copy here anyway.

Thanks for the ideas!
(1) I'm pretty sure I tried this when I first coded the mod, and calling the function resulted in nil, but I'll check again after posting this.

(2) Granting unique units granted only to players owning a Holy City during a Holy War is a great idea! I'm not sure if I want to bother with making new art, so I'll go check if Firaxis has some scenario art I can reuse. UnitPromotions_YieldFromKills ---- YIELD_FAITH is something I had no idea about! But I feel like that would set faith on kill to a specific amount, and I'd prefer it variable. Somebody on steam suggested capping at the combat strength of the unit killed, and that seems like a good idea that I'll get around to eventually. Combat bonus near the Holy City is good too, and very doable!

(3) I wouldn't say that Holy Wars only occurred during the medieval era. Belief has been a justification for violence since ape first held stone, and while I think you're right in that organized religion only grew large enough to send nations hurtling at each other relatively recently in history, this is reflected in the mod. Holy Wars are still being declared today, which is why I the first iterations of the mod didn't halt Holy Wars with Scientific Theory. Actually, right now I just had an epiphany: I'm going to change the cease requirement to the adoption of the rationalism social policy. That way Holy Wars can still be declared in the modern era, just like irl.
 
1 - I tried player:GetMajorityReligion() in another GameEvents and works. https://forums.civfanatics.com/threads/help-with-lua-getdiplomodifier.632963/

2 - UnitPromotions_YieldFromKills I think it works only in VP
-----------------------------------------------------
<UnitPromotions_YieldFromKills>
<Row>
<PromotionType>PROMOTION_TD_DEUS_VULT</PromotionType>
<YieldType>YIELD_FAITH</YieldType>
<Yield>200</Yield>
</Row>
</UnitPromotions_YieldFromKills>
---------------------------------------------------
For art
you can ask permission to use this
https://steamcommunity.com/sharedfiles/filedetails/?id=262212639&searchtext=templar
or this
https://forums.civfanatics.com/threads/sovereign-magistral-order-of-the-temple-of-solomon.566626/
and this
https://forums.civfanatics.com/threads/civ5-ancient-unit-pack-12-arabia.473267/
 
Last edited:
https://imgur.com/a/SoUiYJM

player:GetMajorityReligion() doesn't seem to work for me. Will look into the art from your first link, the other ones don't have pictures and I'm lazy. Thinking of granting free those units in cities greater than 3 at hw dec, thoughts? mb op?
 
GetMajorityReligion return value 0 for Pantheon and -1 for NO_RELIGION.

Try (if player:GetMajorityReligion () == altplayer:GetMajorityReligion() ) and player:GetMajorityReligion() >0 and altplayer:GetMajorityReligion() >0

REQUIRE VP !


-- you can send me what you've changed to try
 
Last edited:
if player:IsDoF(altplayer)

you can prevent those who have a declaration of friendship to joining the crusade
 
Okay, so I updated it to grant Holy Warriors to all players involved in Holy Wars at the start of each hw using the art in the link you gave me. Also updated it to use VP's majority religion function. Thanks Padre! Will do DoF checks too prevent friendship breakages soon.
 
Back
Top Bottom