OrionVeteran
Deity
I have yet another interesting problem to work through. In the Inquisition Mod is a generic Inquisitor Unit that comes from Gods of Old. My goal is to make the state religion temple the Prerequisite building before a city is allowed to build the Inquisitor Unit.
There is an XML tag <PrereqBuilding>NONE</PrereqBuilding> in the Civ4UnitInfos.XML file. There are 7 different temples in the game. Python can easily determine the correct temple based upon the state religion. I can code a funtion that returns the correct temple name.
My question: Is there a way to place a variant value in XML that would retrieve the temple value from my python function? ...or is there a beter way to refer to the state religion temple in XML?
Orion Veteran
There is an XML tag <PrereqBuilding>NONE</PrereqBuilding> in the Civ4UnitInfos.XML file. There are 7 different temples in the game. Python can easily determine the correct temple based upon the state religion. I can code a funtion that returns the correct temple name.
My question: Is there a way to place a variant value in XML that would retrieve the temple value from my python function? ...or is there a beter way to refer to the state religion temple in XML?
Orion Veteran