#Federation Headquarters
iFedHead = CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_FEDHEAD")
iEarth = CvUtil.findInfoTypeNum(gc.getCivilizationInfo, gc.getNumCivilizationInfos(), "CIVILIZATION_TERRAN")
iVulcan = CvUtil.findInfoTypeNum(gc.getCivilizationInfo, gc.getNumCivilizationInfos(), "CIVILIZATION_VULCAN")
iAndoria = CvUtil.findInfoTypeNum(gc.getCivilizationInfo, gc.getNumCivilizationInfos(), "CIVILIZATION_ANDORIA")
iTellar = CvUtil.findInfoTypeNum(gc.getCivilizationInfo, gc.getNumCivilizationInfos(), "CIVILIZATION_TELLAR")
if(iBuildingType == iFedHead) and (iCivilizationType == iEarth):
for iPlayer in range(gc.getMAX_PLAYERS()):
pPlayer = gc.getPlayer(iPlayer)
if(pPlayer.isAlive() and (iCivilizationType == iVulcan):
pVulcan = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iAndoria):
pAndoria = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iTellar):
pTellar = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iEarth):
pEarth = gc.getPlayer(iPlayer).getTeam()
pEarth.addTeam(pVulcan)
pEarth.addTeam(pAndoria)
pEarth.addTeam(pTellar)
if(pPlayer.isAlive() and pPlayer.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_TEXT)
szBody = localText.getText("TXT_KEY_FOUND_FEDERATION", ())
popupInfo.setText(szBody)
popupInfo.addPopup(iPlayer)
if(iBuildingType == iFedHead) and (iCivilizationType == iVulcan):
for iPlayer in range(gc.getMAX_PLAYERS()):
pPlayer = gc.getPlayer(iPlayer)
if(pPlayer.isAlive() and (iCivilizationType == iVulcan):
pVulcan = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iAndoria):
pAndoria = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iTellar):
pTellar = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iEarth):
pEarth = gc.getPlayer(iPlayer).getTeam()
pVulcan.addTeam(pEarth)
pVulcan.addTeam(pAndoria)
pVulcan.addTeam(pTellar)
if(pPlayer.isAlive() and pPlayer.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_TEXT)
szBody = localText.getText("TXT_KEY_FOUND_FEDERATION", ())
popupInfo.setText(szBody)
popupInfo.addPopup(iPlayer)
if(iBuildingType == iFedHead) and (iCivilizationType == iAndoria):
for iPlayer in range(gc.getMAX_PLAYERS()):
pPlayer = gc.getPlayer(iPlayer)
if(pPlayer.isAlive() and (iCivilizationType == iVulcan):
pVulcan = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iAndoria):
pAndoria = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iTellar):
pTellar = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iEarth):
pEarth = gc.getPlayer(iPlayer).getTeam()
pAndoria.addTeam(pVulcan)
pAndoria.addTeam(pEarth)
pAndoria.addTeam(pTellar)
if(pPlayer.isAlive() and pPlayer.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_TEXT)
szBody = localText.getText("TXT_KEY_FOUND_FEDERATION", ())
popupInfo.setText(szBody)
popupInfo.addPopup(iPlayer)
if(iBuildingType == iFedHead) and (iCivilizationType == iTellar):
for iPlayer in range(gc.getMAX_PLAYERS()):
pPlayer = gc.getPlayer(iPlayer)
if(pPlayer.isAlive() and (iCivilizationType == iVulcan):
pVulcan = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iAndoria):
pAndoria = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iTellar):
pTellar = gc.getPlayer(iPlayer).getTeam()
if(pPlayer.isAlive() and (iCivilizationType == iEarth):
pEarth = gc.getPlayer(iPlayer).getTeam()
pTellar.addTeam(pVulcan)
pTellar.addTeam(pAndoria)
pTellar.addTeam(pEarth)
if(pPlayer.isAlive() and pPlayer.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_TEXT)
szBody = localText.getText("TXT_KEY_FOUND_FEDERATION", ())
popupInfo.setText(szBody)
popupInfo.addPopup(iPlayer)