SLIC-Reference : Functions : Terrain & Locations : Information
CTP2 Bureau
The Modding
Apolyton CTP2 forums
Apolyton CTP2 archives
Source Code Project SVN

SLIC-Reference : Functions : Terrain & Locations : Information


- CTP1 - messages only
- CTP2 - can be triggered (events)
- CTP2 Apolyton Edition  
  - tested
- broken, obsolete - working

CellOwner (location) int       Returns the no. of the player who owns the cell, -1 if none does
ExtractLocation (location, locationvar) void   Get a location from built in variable and put it in locationvar
GetNeighbor (locationIn, direction, locationOut) int       Given the location variable locationIn, fill in the location of it's neighbor in the specified direction in locationOut
GetRandomNeighbor (location, newlocation) void       Get a random square adjacent to location and put it in newlocation
HasGood (location) int       Returns -1 if there is no good at the location, otherwise a number from 0-3 for the good type Apolyton-thread
HasPop (owner, location) int    
HasRiver (location) int       Returns true if there's a river at location
IsFortress (int-player, location) int       Returns true if the player has a fort at the location
IsRoad (player, location) int   Returns true if there is a road-like terrain improvement at the given location that belongs to the player
IsWater (location) int   Returns true if the location is a water tile Apolyton-thread
TerrainType (location) int       Returns the indexed terrain type of the location
TileHasImprovement (location, int) int       Returns true if the tile has the improvement specified by TerrainImprovementDB-index

Latest update: 11.11.2022  ( - recently updated)
This site is currently maintained by: BureauBert (Webmaster)  Maquiladora (Manager)  Legal Notice: Legal Notice Statistics: 102498 unique users since 02.05.2004 (» Site Statistics) Hosted by: WebhostOne
Share this page:  VK Facebook Twitter LiveJournal OK MR Google+ LinkedIn tumblr Pinterest Blogger Digg Evernote