Making unique religious combat units

Craig_Sutter

Deity
Joined
Aug 13, 2002
Messages
2,773
Location
Calgary, Canada
In my northern Europe scenario, I want to make combat units unique to certain religions.

For example, I wish to make berserkers into combat units available to civilizations following a nordic type religion; and crusaders to those following certain Christian religions. These would be purchasable with faith. To keep numbers down, I may have some building or other, Berserker Hall or Order Chapterhouse, that would put out a unique strategic resource so no more units than buildings of that type could be constructed.

I'm trying to figure out how this might be done.

Maybe the unique buildings could be linked to a religion.

Another way, I'm thinking, would to have these be unique civilization units replacing inquisitors, keeping some of the inquisitor abilities while also having access to combat ai. Not certain how mixing roles will work, and also could forsee, for example, a Christian Denmark pushing out berserkers... depending upon how I can get the units to work.

Does anyone have any idea how this might be done... or can you at least point me the way with some ideas of what might be possible.

Keep in mind, I am likely only to be able to do it with xml.
 
Take a look at Horems Mod on the workshop, Ive tied units to beliefs. From my experience you cant tie Units to religions or beliefs directly through xml yet(or I have missed somthing in the database). Not sure about lua.
 
Not sure about lua.

Pretty much anything is possible with Lua. The CityCanConstruct/CityCanTrain events can be used to constrain any units you want; as long as it's possible to detect a certain religion in Lua, it'd be easy to limit certain units to certain religions.
 
Back
Top Bottom