Maniac
Apolyton Sage
I thought perhaps a thread for FfH modding issues would be useful. Threads in Civ4 Creation & Customization are usually quickly drowned in the mass of other threads.
I'm wondering about something myself.
If the Barbarians or a player with the Barbarian trait razes a city, I'd like the barbarians spawning Ruins terrain improvement (instead of City Ruins) to be created on the city tile. However my attempts so far doesn't work. There still appear City Ruins. Does anyone have an idea what could be the problem?
I'm wondering about something myself.

Code:
def onCityRazed(self, argsList):
'City Razed'
city, iPlayer = argsList
owner = PyPlayer(city.getOwner())
razor = PyPlayer(iPlayer)
pPlayer = gc.getPlayer(iPlayer)
if (pPlayer.hasTrait(gc.getInfoTypeForString('TRAIT_BARBARIAN')) or pPlayer == gc.getBARBARIAN_PLAYER()):
city.plot().setImprovementType(-1) ; I tried with and without this line
city.plot().setImprovementType(gc.getInfoTypeForString('IMPROVEMENT_RUINS'))