SLIC-Reference : Functions : Terrain & Locations : Map
CTP2 Bureau
The Modding
Knowledgebase
WePlayCiv: CtP2 Downloads
WePlayCiv: Call To Power forum
Apolyton Call To Power forums
Civilization Fanatics: Call To Power

SLIC-Reference : Functions : Terrain & Locations : Map

Entries:

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

CaptureRegion (player, region) void     Unimplemented according to the original documentation - seems to be supposed to increase the player's strategic preference toward capturing the specified region, whatever a region might be
ControlsRegion (player, ID-region) int   Returns true if the given player is the only player who owns tiles in the region (not necessarily all the tiles in the region) Apolyton-thread
Apolyton-thread
Distance (location1, location2) int       Returns the distance between location1 and location2
GetContinent (location) int   Returns the continent ID of the location Apolyton-thread
GetContinentSize (location) int   Returns the size of the location's continent, the size of the ocean if it's a water tile
GetMapHeight int       Returns the map height (no. of tiles)
GetMapWidth int       Returns the map width (no. of tiles)
GetNearestWater (location, locationvar) void     Get the location of the nearest ocean square to location, putting the result in locationvar Apolyton-thread
IsContinentBiggerThan (location, size) int   True if the continent (or ocean) containing location is bigger than size squares
IsInRegion (location, ID-region) int   Returns true if location is within the given region Apolyton-thread
Apolyton-thread
IsInZOC (player, location) int   True if the location is in the zone of control of player
IsOnSameContinent (location1, location2) int   Returns true if location1 and location2 are on the same continent
LeaveRegion (player, region) void     Unimplemented according to the original documentation - seems to be supposed to increase the player's strategic preference toward leaving the specified region, whatever a region might be
SquaredDistance (location1, location2) int       Returns the squared distance between location1 and location2

Latest update: 24.11.2010  ( - recently updated)
  Administration
This site is currently maintained by: BureauBert (Webmaster)  Maquiladora (Manager)  Legal Notice: Legal Notice Statistics: 71266 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