• 📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you build custom picture books for kids in seconds. Let me know what you think here!

Historic religious building pairing required?

planetfall

Emperor
Joined
Jan 18, 2002
Messages
1,520
Location
California
Is the a way or a mod that will force religious building paring?
So if Catholic, must build cathedral
if Islam, must build mosque
etc

Buddhist and meeting house just seems so wrong...
 
Now that you mention it, it would be interesting if the building wasn't a player choice but adapted to the dominant religion (obviously the owner would take that faith cost, so they should avoid many changes or it could also have an extra disloyalty cost).
 
That suggestion would struggle with the "roll your own" abiility, say, when one chooses one of the astrological symbols. I sometimes like to found "Light of the Scorpion" or "WorshipMe", with one of the custom symbols and a variety of beliefs. Yes, the AI players usually take one of the remaining "real" religions for the name. But all of the other choices after that are random. I'm not sure how one could enforce players to take only certain beliefs (resulting in the corresponding building).
 
I'm not sure how one could enforce players to take only certain beliefs (resulting in the corresponding building).
You can do this with Lua. When the player or AI chooses a religion with pre-selected beliefs, it would skip the selection steps and force them to choose the default. If someone chooses a customizable religion, it would crash the game.
 
You can do this with Lua. When the player or AI chooses a religion with pre-selected beliefs, it would skip the selection steps and force them to choose the default. If someone chooses a customizable religion, it would crash the game.
Basically, modding *out* the customizable parts of religion and modding *in* 6, 8, some number of pre-selected, consistent religions. OK, got it.
 
Basically, modding *out* the customizable parts of religion and modding *in* 6, 8, some number of pre-selected, consistent religions. OK, got it.
Some people like chains, we just have to respect their tastes.
 
You need to modify the functions in ReligionScreen.lua, specifically ChooseReligion() and SelectReligionBeliefs()
 
I must be dense tonight. I'm not finding where pre-selected beliefs are located.

I suspect crashes from mods are because there are in GS 3 religionscreen.lua files and they probably don't sync. They are in base...,poland... and vikings....

The pairing I am trying to set is called worship belief and there are 8 distinct entities.
cathedral
dar- mehr
gurdwara
meeting house
pagoda
stupa
synagogue
wat

The worship belief is the label from fandom but used in the lua code but is used in beliefs.xml
BeliefClassType="BELIEF_CLASS_WORSHIP"

What am I missing?
 
I found this function, `PopulateAvailableBeliefs()`, which is what decides which beliefs are available and which aren't. Just modify its logic so that it looks up a table of your preselections for `BELIEF_CLASS_WORSHIP` and only returns an option if a real religion was chosen.
 
Back
Top Bottom