platyping
Sleeping Dragon
Code:
while(loopCity):
if loopCity.isCoastal(10):
if bCitychosen == 0:
chosenCity = loopCity
bCitychosen = 1
elif loopCity.getCulture(chosenPlayer.getID()) > chosenCity.getCulture(chosenPlayer.getID()):
chosenCity = loopCity
(loopCity, iter) = chosenPlayer.nextCity(iter, false)
chosenCity.setNumRealBuilding(gc.getInfoTypeForString("BUILDING_CHANNEL_TUNNEL"), 1)
if not gc.getGame().isNetworkMultiPlayer() and chosenCity.getOwner() == gc.getGame().getActivePlayer():
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
popupInfo.setData1(iBuildingType)
popupInfo.setData2(chosenCity.getID())
popupInfo.setData3(0)
popupInfo.setText(u"showWonderMovie")
popupInfo.addPopup(chosenCity.getOwner())
CyInterface().addImmediateMessage(CyTranslator().getText("TXT_CHANNEL_TUNNEL",(chosenCity.getName(),chosenPlayer.getCivilizationDescriptionKey(),)), None)
Try this, the old style with movie codes for the other player as well
Notes:
If you are using Azadi Tower as well in your mod, additional codes have to be added because now it no longer triggers onBuildingBuilt codes for the 2nd CT, so Azadi will not check if that is the first World Wonder of that city.