Is there a way to change the way techs obsolete buildings?

Question

King
Joined
Mar 12, 2008
Messages
950
For example, monasteries lose their research bonus later on, but i want the player to be able to build monasteries, just without the research bonus. Is it possible to remove only certain bonuses from a building with a tech? Also what is the simplest way of changing a tech so it does not obsolete something?
 
For example, monasteries lose their research bonus later on, but i want the player to be able to build monasteries, just without the research bonus.
Unfortunately this is not doable in XML. So I can't help you here.

Is it possible to remove only certain bonuses from a building with a tech? Also what is the simplest way of changing a tech so it does not obsolete something?
Strange, now I"m confused.
For most buildings you find this in the CIVBuildingInfos
The tag for obsoleting a building is this:
<ObsoleteTech>TECH_ECONOMICS</ObsoleteTech>
The econ tech is there because I've cut this from the Castle. Now here's the weird thing. This is the same tag for all of the monasteries:
<ObsoleteTech>NONE</ObsoleteTech>
<PrereqTech>NONE</PrereqTech>
So according to my knowledge, an previous modding of CIV (I've added my own buildings, they work fine. They obsolete and become available when I've designed them to) the monestaries should be always available, and should never go obsolete.
So, I'm confused. Can anyone tell me what's up with the monestaries, and where their obsolete and available tags are?
 
What about changing a tech so it obsoletes monasteries, but at the same time enables players to build a different kind of monastery without the research bonus? This would involve having to add a new building as well though....
 
This should be possible. I am not sure however, if you can make it so Missionaries can be built in both Early and Late manasteries.
 
While there doesn't appear to be a way with straight XML to have both buildings enable missionaries, it can be done with Python (though that isn't nearly as elegant/maintainable a solution).
 
Back
Top Bottom