Game

Object

This file is a description of an object. This object is accessible as a global variable. Most of its methods do not expect an implicit “self” argument and should be invoked with a .

Methods

ScriptUIReturns. or :NameArguments
.AddWorldViewText
.GenerateUnitName
.GetActivePlayerCount
.GetArtifactAtPlot
.GetArtifactByIndex
Barbarians.GetBarbarianManager
.GetComponentID
GameCulture.GetCulture
.GetCurrentGameTurn
.GetCurrentTurnPhase
.GetCurrentTurnPhaseName
.GetCurrentTurnPhaseSound
.GetCurrentTurnSegment
.GetCurrentTurnSegmentName
.GetDefeatRequirements
.GetEconomicManager
.GetEmergencyManager
GameEras.GetEras
GameFalloutManager.GetFalloutManager
GameDiplomacy.GetGameDiplomacy
.GetGameEndTurn
.GetGossipManager
GameGreatPeople.GetGreatPeople
.GetGreatWorkDataFromIndex
.GetGreatWorkPlayer
.GetGreatWorkType
.GetGreatWorkTypeFromIndex
.GetHeroesManager
.GetHistoryManager
.GetLocalObserver
.GetLocalPlayer
.GetMaxGameTurns
.GetNationalParks
.GetObjectFromComponentID
.GetPhaseName
.GetPhaseSound
.GetPlayers
:GetProperties
:GetProperty
QuestsManager.GetQuestsManager
RandomInteger [number].GetRandNumMaxInteger [number]
Reason [string]
.GetRandomSeed
GameReligion.GetReligion
GameTechs.GetTechs
TradeManager.GetTradeManager
.GetUnitNamePrefix
.GetUnitNameSuffix
.GetUnits
.GetVictoryProgressForTeam
.GetVictoryRequirements
.GetWinningTeam
CongressManager.GetWorldCongress
.IsAllowStrategicCommands
.IsAllowTacticalCommands
.IsDefeatEnabled
.IsVictoryEnabled
.ObserverCanSeePlayer
.RetirePlayer
.SetCurrentGameTurn
:SetProperty
.SetRandomSeed
.SetWinningTeam
.UnlockAchievement
.WriteHistoryLog