I'm am extremely new to Python, and just tonight decided to (attempt) to make a small mod that, after a city is renamed, displays a thank you message. I put this code in:
But nothing seems to happen after I rename a city, any ideas or suggestions?
Code:
def onCityRename(self, argsList):
'City is renamed'
pCity = argsList[0]
if (pCity.getOwner() == CyGame().getActivePlayer()):
self.__eventEditCityNameBegin(pCity, True)
#START
return
addImmediateMessage("Thanks for renaming a city!","")
#END
But nothing seems to happen after I rename a city, any ideas or suggestions?