The game object

From Scenario League Wiki
Revision as of 20:14, 26 January 2019 by Prof. Garfield (talk | contribs) (Added to category lua resources)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.