View Full Version : Choosing 7 out of 11 religions
ripple01 Aug 09, 2007, 09:22 AM Hi,
I have an idea I'd like to implement in my mod, but I don't know if it's even doable. I have added 4 religions to my mod for a total of 11. What I'd like to do is at the beginning of every new game, is have the game randomly select 7 of the 11 religions to be active in that particular game. I have added Shinto, Zoroastrianism, Amun_Ra, and Hellenism to my mod. So for example, one game might have Buddhism, Christianity, Islam, Shinto, Hellenism, Taoism, and Hinduism while the next game might have Amun Ra, Confucinaism, Hinduism, Zoroastrianism, Islam, Buddhism, and Judiasm.
Anyone know if this is possible? Are there any interface issues that would come up?
Thanks,
ripple01
ClassicThunder Aug 09, 2007, 09:27 AM It would be possible but it would require a lot of C++ work, and a pit of python work too.
Impaler[WrG] Aug 09, 2007, 10:30 AM An interesting idea to randomly choose 7 religions out of all those available I'd been thinking of mean by which to do something like that but haden't hit upon random picks. It should work with a combination of C++ moding and Python moding on the Religion screen and Main screen. The random picks would occur at the start of the game and be saved in the game permanently. The screens would then call on new functions exposed to python that return the 'Allowed' Religions and iterate over them for display. This sounds like one of the better ideas I've seen for adding flavorful religions to the game without breaking the 7 religion balance that Firaxis established.
Zebra 9 Aug 09, 2007, 05:22 PM I beleive this is possible with python only. I'll check and let you know tomorrow. :thumbsup:
ClassicThunder Aug 09, 2007, 05:37 PM How would you prevent the Religion from being found via Python?
Zebra 9 Aug 09, 2007, 06:06 PM Easily in the CvGameUtils.py. I seem to remember doing this about 2 months ago for THH.
ClassicThunder Aug 09, 2007, 06:10 PM Just wondering. I prefer to change things in the SDK and haven't ventured out of the event manager much.
Dom Pedro II Aug 09, 2007, 06:21 PM I'd really like to see something like as well. I'm certain it must be doable. It might take some time to work out, but I definitely think it can be done.
I don't remember who first proposed this in another thread (might've been you ripple), but it was definitely a top rate idea!
Optimizer Aug 09, 2007, 06:56 PM I would prefer to see Sikhism rather than Amun Ra. There are Sikhs all over the world.
Dom Pedro II Aug 09, 2007, 07:10 PM I would prefer to see Sikhism rather than Amun Ra. There are Sikhs all over the world.
Well, I think what we'd do with such a mod component and what religions we'd include is really a subject for another thread... right here seems to be more about mechanics than content of any one mod that might benefit.
ClassicThunder Aug 09, 2007, 08:18 PM Zebra 9 is on the mechanics so I think its safe to move on to "what we'd do with such a mod component" phase. ;)
ripple01 Aug 09, 2007, 11:30 PM That's awesome, Zebra 9, thanks for taking a look at this! :)
Cheers,
ripple01
Zebra 9 Aug 10, 2007, 04:39 PM Been very busy today, I'll let ya know monday (maybe tomorrow, depends on hope busy I am).
EmperorFool Aug 10, 2007, 04:41 PM I'll just throw my religion suggestion out there. Add a new tech -- Science Fiction requires Literature and Scientific Method -- and the first to research it founds Scientology. :)
OzzyKP Aug 11, 2007, 06:35 PM It seems to me that with the religion picker option now in BTS if you just had 11 religions and only had 7 tech triggers that the situation would just resolve itself naturally.
After inventing Meditation you can pick any one of the 11 religions.
With polytheism you can pick any one of the remaining 10 religions.
And so on till Divine Right gives you a choice of one out of 5, and then whatever religions are left unchosen just don't emerge in that game.
EmperorFool Aug 11, 2007, 07:08 PM Keep in mind that the API function gc.getNumReligionInfos() is used to drive the interface. You'd need to change the religion and city screens to accommodate the change. There might be other screens as well (Domestic Advisor?). But it does seem that you're on the right track.
AThousandYoung Aug 11, 2007, 08:58 PM I'll just throw my religion suggestion out there. Add a new tech -- Science Fiction requires Literature and Scientific Method -- and the first to research it founds Scientology. :)
Except that Scientology doesn't use the scientific method :sad:
EmperorFool Aug 12, 2007, 12:32 AM Except that Scientology doesn't use the scientific method :sad:
Certainly not, but Science Fiction was born from the new interest in science and the concerns about its effect on the future of mankind, so SciFi should require SciMeth and Literature. Scientology is founded by the first person to discover SciFi, even though in reality it was founded much later by L. Ron Hubbard, a SciFi author. Granted, the "religion" is based more in Fantasy than SciFi.
Oooh, did I just give away my bias? ;)
Zebra 9 Aug 13, 2007, 10:57 AM Well I've got it so that I can block religions, next I have to do era start code and change any screens that display religion info.:thumbsup:
ripple01 Aug 13, 2007, 03:58 PM Awesome, thanks for keeping us updated. :)
Cheers,
ripple01
Zebra 9 Aug 15, 2007, 10:09 AM I have finished it. It is here, enjoy.:thumbsup:
|
|