kiwitt
Road to War Modder
Thanks for that. I'll do some experiments on what frequency will suit.
NECROMANCY!!!
In "void CvPlayer::foundReligion(ReligionTypes eReligion, ReligionTypes eSlotReligion, bool bAward)", what do eSlotReligion and bAward do?
Programming is not as easy as some XML editing, but not as hard as you'd think it is. You might get away with learning some Python scripting - otherwise its "real" C++ coding.
<bHero>1</bHero>
<Civilizations>
<Civilization><CIVILIZATION_ENGLAND</Civilization>
</Civilizations>
<Event>EVENT_HEROARTHUR</Event>
def cannotConstruct(self,argsList):
pCity = argsList[0]
eBuilding = argsList[1]
bContinue = argsList[2]
bTestVisible = argsList[3]
bIgnoreCost = argsList[4]
if eBuilding == gc.getInfoTypeForString('BUILDING_BARRACKS'):
if not gc.getPlayer(pCity.getOwner()).hasTrait(gc.getInfoTypeForString('TRAIT_AGGRESSIVE')):
return True
return False
<UniqueBuildings>
<UniqueBuilding>BUILDING_MYBUILDING</UniqueBuilding>
</UniqueBuildings>
Failed Loading XML fule xml\GameInfo/CIV4PlayerOptionInfos.xml.
LoadXML call failed for GameInfo/CIV4PlayerOptionInfos.xml.
Failed Loading XML file xml\GameInfo/CIV4GraphicOptionInfos.xml.
LoadXML call failed for GameInfo/CIV4GraphicOptionInfos.xml.