Question: Stopping techs from founding religions

Me101

Chieftain
Joined
Dec 11, 2007
Messages
7
My question is simple. Some friends and I are trying to design a mod for BtS, and we want religions to be founded using buildings instead of techs. We've already got the buildings so they found the religions, but the problem is, the techs still found the religions as well.

We've tried two options:

1. Making the tech prereq for the religion "NONE". This results in the game randomly giving the religion to a player. Not what we wanted.

2. Setting the religions's prereq to "Future Tech". This is only a short-term solution and we would very much prefer something else that is more permanent.

I was hoping for something similar to what you find in Gods of Old. Is there anyone that can help me with this?
 
Well, there is one easy solution I can think of. It's a little rough ... but it should work just fine.

Just set up a dummy tech, disable it, make it unavailable from goody huts, and assign all the religions' prereq techs to the dummy tech.

These tags:

<iFirstFreeTechs>0</iFirstFreeTechs>
<bTrade>0</bTrade>
<bDisable>1</bDisable>
<bGoodyTech>0</bGoodyTech>
 
If you disable a tech, make sure you set the era to future otherwise you'll get it for free if you start in any era later than the era defined for the tech. There's a bug in the DLL, it doesn't check for the disabled setting on techs when giving free techs for later era starts.
 
Any chance you could post what you did to get this to work? Did you end up using the dummy tech path?
 
I've done a similar mod, religions being founded as random events rather than by techs.
At the moment I've assigned the religions to future_tech.
I thought of the dummy tech idea but it's a bit sloppy really.
If anyone comes up with a more elegant solution that would be awesome.
 
But I'd like to have it where prophets ahve a "found religion" buton and when you press it it gives the popup for rreligion choices (or the AI just picks it favorite religion)

That's definitely doable.
I can't remember where but I came across a discussion thread detailing how to add mission buttons for units
The code for founding the religion itself would be pretty easy to include.
I considered the whole prophet founding religion thing but I thought it better that the player should have less control over religions
 
Back
Top Bottom