The game object

From Scenario League Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Back To TOTPP Functions


turnsElapsed (get/set)

civ.game.turnsElapsed -> integer

Returns the number of turns elapsed.


gameYear (get/set)

civ.game.turnsElapsed -> integer

Returns the game year, or for scenarios with monthly increments, the number of months * 12.


humanTribe (get)

civ.game.humanTribe -> tribe

Returns the last active human tribe.


revealMap (get/set)

civ.game.revealMap -> boolean

Returns whether or not the full map is revealed.


difficulty (get/set)

civ.game.difficulty -> integer

Returns the difficulty level.


barbarianActivity (get/set)

civ.game.barbarianActivity -> integer

Returns the level of barbarian activity.


activeTribes (get/set)

civ.game.activeTribes -> integer

Returns the active tribe mask.


humanPlayers (get/set)

civ.game.humanPlayers -> integer

Returns the human players mask.


peaceTurns (get/set)

civ.game.peaceTurns -> integer

Returns the number of turns of peace.