| CanBuySurplus
(???player???)
|
|
|
Mysterious and undocumented function of CTP2 that could not be (re-)implemented in CTP2 AE
|
|
| Cities
(player)
|
int
|
|
Returns the number of cities the player has
|
|
| CitiesRank
(player)
|
int
|
|
Returns the ranking of the player by number of cities (1 being the highest)
|
|
| CivilizationIndex
(civname)
|
int
|
|
Return the database index for the named civilization.
|
|
| GeographicRank
(player)
|
int
|
|
The rank of the player according to how much land they own, 1 being the most
|
|
| GetAdvanceLevelPercent
(player, foreigner)
|
int
|
|
Returns player's advance level (number of advances he's researched) as a percentage of foreigner's
|
|
| GetCurrentPollutionLevel
|
int
|
|
Returns the current global pollution level
|
|
| GetGoldSurplusPercent
(player)
|
int
|
|
Returns player's current savings as a percentage of what he spends (so >100)
|
|
| GetNextAdvance
(player)
|
int
|
|
Returns the AdvanceDB index of the first advance from the player's AdvanceList_XXX that the player has not yet researched
|
|
| GetProjectedScience
(player|city)
|
int
|
|
???
|
|
| GetTotalValue
(player)
|
int
|
|
Returns the total value (whatever that is) of the player's cities
|
|
| GoldRank
(player)
|
int
|
|
Get the rank of the player in terms of how much gold they have. 1 being the highest rank
|
|
| HasAdvance
(player, advance_name)
|
int
|
|
Returns true if the player has the advance
|
|
| IsHumanPlayer
(player)
|
int
|
|
True if player is not an AI player
|
|
| IsPlayerAlive
(player)
|
int
|
|
True if player is still in the game
|
|
| KnowledgeRank
(player)
|
int
|
|
Rank of the player in terms of number of advances
|
|
| MilitaryRank
(player)
|
int
|
|
The rank for the given player in terms of strength of military units
|
|
| PlayerCityCount
(player)
|
int
|
|
Returns how many cities the player has
|
|
| PlayerCivilization
(player)
|
int
|
|
Return the database index of the player's civilization (the same number returned by CivilizationIndex)
|
|
| PlayerGold
(player)
|
int
|
|
Returns the amount of the player's current gold reserve
|
|
| PlayerHasWonder
(player, int)
|
int
|
|
Returns true if the player owns the wonder int (index from wonders.txt)
|
|
| PlayerRationsExp
(player)
|
int
|
|
Returns the player's rations expectations according to current government
|
|
| PlayerRationsLevel
(player)
|
int
|
|
Returns the player's actual rations level
|
|
| PlayerWagesExp
(player)
|
int
|
|
Returns the player's wages expectations according to current government
|
|
| PlayerWagesLevel
(player)
|
int
|
|
Returns the player's actual wages level
|
|
| PlayerWorkdayExp
(player)
|
int
|
|
Returns the player's workday expectations according to current government
|
|
| PlayerWorkdayLevel
(player)
|
int
|
|
Returns the player's actual workday level
|
|
| PopulationRank
(player)
|
int
|
|
Rank of the player in terms of total population
|
|
| SpaceRank
(player)
|
int
|
|
The rank of this player in terms of space ownership
NOTE: No space in CTP2
|
|
| TradePoints
(player)
|
int
|
|
Return how many caravans the player has
|
|
| TradePointsInUse
(player)
|
int
|
|
Gets the number of trade points ('caravans') being used by player
|
|
| TradeRank
(player)
|
int
|
|
The player's rank in terms of number of trade routes
|
|
| TradeRoutes
(player)
|
int
|
|
Return how many trade routes the player has
|
|
| UnderseaRank
(player)
|
int
|
|
The player's rank in terms of undersea cities
|
|
| UnitCount
(player, type)
|
int
|
|
Return a count of how many units of a given type the player has
|
|