Happy to lend a hand, this is a mod I've been wanting to see for a while and just didn't have the time to do by myself. Its great that johny smith is willing to put the time in to pull this together.
For what its worth here is my two cents.
Add a new tag to the ReligionInfo, <Class>. This will be the group tag used to see what religions belong together. Those with the same text in their tag are in the same group. Easy, simple, and efficient.
Add a new tag to the ReligionInfo, <SubReligions>. You would then put <SubReligion></SubReligion> tags under it that would have religions that this relgion could turn into. This is just an idea I got seeing yall talk about religious schisms. At the most basic, if you have religion X, and you are getting a new religion, it will be more likely to be a subreligion of X then any others.
Add two new tags to the LeaderInfo, <FavoriteReligionClass> and <FavoriteReligion>. So say the fav class could be Christianity and the fav religion could be Catholic. And the leader would pick Catholic if possible, but if not would then fall back to another avaliable Christian Class religion.
Add two new tags to the CivilizationInfo, <FavoriteReligionClass> and <FavoriteReligion>. Add these two tags to the Civilization Infos inaddition to the ones added to the Leader Infos. That way if they aren't set for the leader they can default to the Civ.
That is my basic proposal and once those basics, or somthing similar, is in place it will be alot easyer to get the higher systems laid out. I'm going to start by making up a dll with the new ReligionInfo tag <Class>. Ill add the tag, the functions in the cpp files, and exposing them to python. Once johny smith has that as an example, I'm sure he can get the rest going without much trouble.
