RogerBacon
Jan 01, 2006, 04:20 PM
I have
if pCity.hasBuilding(5):# 5 is barracks
*****CyInterface().addImmediateMessage(message2,"")
*****CvUtil.pyPrint(message2)
I would like to replace the '5' above with something a little more dynamic. Is there anyway to find out if a particular building exists in a city other than using its numeric index?
Roger Bacon
PS. Happy New Year
if pCity.hasBuilding(5):# 5 is barracks
*****CyInterface().addImmediateMessage(message2,"")
*****CvUtil.pyPrint(message2)
I would like to replace the '5' above with something a little more dynamic. Is there anyway to find out if a particular building exists in a city other than using its numeric index?
Roger Bacon
PS. Happy New Year