turingmachine
Emperor
- Joined
- May 4, 2008
- Messages
- 1,438
Okay, I'm wondering if you guys can help me out with something.
In Civ IV with python I could do something like:
My lua isn't as good as my python. Can something similar be done in Civ V (and if so, any advice as to how to write it in lua)?
In Civ IV with python I could do something like:
Code:
civtype = pPlayer.getCivilizationType()
for iBuilding in range(gc.getNumBuildingClassInfos()):
iUniqueBuilding = gc.getCivilizationInfo(civtype).getCivilizationBuildings(iBuilding);
iDefaultBuilding = gc.getBuildingClassInfo(iBuilding).getDefaultBuildingIndex();
My lua isn't as good as my python. Can something similar be done in Civ V (and if so, any advice as to how to write it in lua)?