"victory/loss is coming" popup?

davidlallen

Deity
Joined
Apr 28, 2008
Messages
4,743
Location
California
Any victory condition can have an optional iVictoryDelayTurns, which means that you must hold the victory condition for that number of turns before you win. I have a rare victory condition (religious victory) which new players may not see coming. I would like a popup that comes on the turn when any player hits the victory condition and the countdown timer starts. Even for the owning player, they may not have realized they were right at the threshold. I have seen this in lots of realtime games, such as Dawn Of War.

Are there any existing mods which do this? Is there any trigger visible to python when this happens? I thought a little about the logic, and it "should" be a little complicated -- if player 1 sneaks up over the threshold for a turn, then slips below it, then gets above it again a few turns later, is that two popups? Maybe a better implementation is a little red light in the HUD, indicating some player is about to win, and then the player can go to the victory conditions screen to get more details.
 
Back
Top Bottom