The game object: Difference between revisions

From Scenario League Wiki
Jump to navigationJump to search
(Created Page)
 
m (Added to category lua resources)
 
Line 1: Line 1:
[[Category: Resources]]
[[Category:Lua Resources]]
Back To [[TOTPP Functions]]
Back To [[TOTPP Functions]]



Latest revision as of 20:14, 26 January 2019

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.