Are Victory conditions considered "options"?

jkp1187

Unindicted Co-Conspirator
Joined
Aug 29, 2004
Messages
2,496
Location
Pittsburgh, Pennsylvania
I want to do a check to see if the Space Race victory condition has been enabled from the Custom Game menu. Are these considered game options?

In other words, could I just do a check like this?

Code:
    if gc.getGame().isOption(GameOptionTypes.VICTORY_SPACE_RACE):
        return True



Thanks.
 
Ignore that last -- better testing revealed that it does NOT work. Is there no way to check which victory conditions were enabled via Python?
 
You can try :

Code:
    if gc.getGame().isVictoryValid(gc.getInfoTypeForString("VICTORY_SPACE_RACE")):
        return True

Tcho !
 
Back
Top Bottom