deanej
Deity
I keep trying to make a popup, yet each and every game I test it out in it acts as if I never made any changes at all! Here's the code, located at the end of onEndGameTurn (this code is currently the only python change):
I'm getting very frustrated. The form is identical to that used to create the pirates tutorial text in the Final Frontier scenario except that mine doesn't check to see if an option is on, yet mine doesn't work. Why does the game discriminate against me? It's the same code!
Code:
#Ice Age Mod Start
if (iGameTurn == 2):
for iPlayer in range(gc.getMAX_PLAYERS()):
player = gc.getPlayer(iPlayer)
if (player.isAlive() and player.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_TEXT)
szBody = localText("TXT_KEY_ICE_AGE", ())
popupInfo.setText(szBody)
popupInfo.addPopup(iPlayer)
#Ice Age Mod End
I'm getting very frustrated. The form is identical to that used to create the pirates tutorial text in the Final Frontier scenario except that mine doesn't check to see if an option is on, yet mine doesn't work. Why does the game discriminate against me? It's the same code!