ASSS Region

From ASSS Wiki
Revision as of 18:53, 10 January 2005 by 24.195.232.161 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

An ASSS Region is a region defined inside a map file. These can be arbitrary sets of tiles. Regions can have warpto coordinates, that will warp a player to a certain coordinate and/or arena when they enter the region. They are understood internally using the mapdata interface. Regions are encoded in Extended Lvl files, and can be made using a python script from the ASSS site or Continuum Level / Ini Tool.

One can check if a tile is in a set or regions using this code:

Region *myRgn = mapdata->FindRegionByName(arena,"myRegion");
int x = 512;
int y = 512;

if (myRgn && md->Contains(myRgn,x,y))
{ // your point is in the region

}
else
{ // your point is not in the region

}