Bad Player
Deity
I liked a previous post idea that suggested lots of different religion possibilities but only certain ones get founded based on who gets the relevant technology first.
Quetz said:Although as I said the other time it came up, I dont think a mana node appearing because a city got burned would fit at all..
QES said:Eh, Instead of making "Multiple religion" strategies worthless, why not give a boon to "1 religion" strategies.
def onCityRazed(self, argsList):
'City Razed'
city, iPlayer = argsList
owner = PyPlayer(city.getOwner())
razor = PyPlayer(iPlayer)
pPlayer = gc.getPlayer(iPlayer)
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_CODE_OF_JUNIL')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Code of Junil goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Order.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_KHAZAD')):
CyInterface().addMessage(iPlayer,True,25,'The Code of Junil goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Order.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_COMMANDER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Code of Junil goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Order.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_TABLETS_OF_BAMBUR')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Tablets of Bambur have been broken forever.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Runes.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Tablets of Bambur have been broken forever.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Runes.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_SONG_OF_AUTUMN')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Song of Autumn will never be heard again.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Fellowship.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_KHAZAD')):
CyInterface().addMessage(iPlayer,True,25,'The Song of Autumn will never be heard again.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Fellowship.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_COMMANDER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The Song of Autumn will never be heard again.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Fellowship.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_WYRMHOLD')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The hated Wyrmhold goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Dragon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_KHAZAD')):
CyInterface().addMessage(iPlayer,True,25,'The hated Wyrmhold goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Dragon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_COMMANDER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The hated Wyrmhold goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Dragon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_THE_NECRONOMICON')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The hated Necronomicon goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Necronomicon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_KHAZAD')):
CyInterface().addMessage(iPlayer,True,25,'The hated Necronomicon goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Necronomicon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_COMMANDER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The hated Necronomicon goes up in flames.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Necronomicon.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if city.isHasRealBuilding(gc.getInfoTypeForString('BUILDING_STIGMATA_ON_THE_UNBORN')):
if (pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_KHAZAD') and pPlayer.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The unborn have been saved.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Ashen.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_KHAZAD')):
CyInterface().addMessage(iPlayer,True,25,'The unborn have been saved.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Ashen.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_PROPHET'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_COMMANDER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
if (pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_GRIGORI')):
CyInterface().addMessage(iPlayer,True,25,'The unborn have been saved.','AS2D_CITYRAZE',1,'Art/Interface/Buttons/Religions/Ashen.dds',ColorTypes(8),city.getX(),city.getY(),True,True)
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ADVENTURER'), city.getX(), city.getY(), UnitAITypes.NO_UNITAI)
city.plot().setBonusType(gc.getInfoTypeForString('BONUS_MANA'))