Civciv5
Grand Emperor
The discussion in the Quick Modding Thread seems to have ended without any clear solution, so I'm reposting it here.
Someone posted this code, which I need adjusted so that the city name changes depending on the civilization itself and not the artstyle.
Would this code work?
Also could I just paste this anywhere in the CvEventManager?
Someone posted this code, which I need adjusted so that the city name changes depending on the civilization itself and not the artstyle.
Code:
if pCity.getName() == "Indraprastha":
if pNewOwner.getArtStyleType() == gc.getDefineInt("ARTSTYLE_A"):
pCity.setName("Delhi");
Code:
if pCity.getName() == "Indraprastha":
if pNewOwner.getCivilizationType() == gc.getDefineInt("CIVILIZATION_DELHI_SULTANATE"):
pCity.setName("Delhi");