User Tools

Site Tools


zone

This is an old revision of the document!


Zone


A zone is a box-shaped area/region within a map, defined by a position (using the tile coordinate system) and a size (measured in voxels). Zones can be either passable or impassable. Passable zones allow characters and objects to pass through them freely, with an option to trigger a script whenever a character or object enters or exits the zone. Impassable zones, only applicable to free movement, act as obstacles and prevent characters and objects from passing through them or entering that area, with an option to trigger a script whenever one collides with the zone.

Zones are created and modified from the Map Properties tab in the Map Editor. When assigning scripts to zones, the built-in initiator variable will contain the character or object that triggered the event.

Example Usages

  • Blocking off areas to ensure they're inaccessible to the player
  • Resetting the player when they fall off the edge of a map (see video below)
  • Triggering a cutscene when the player enters a certain area of a map
  • Applying a status effect to the player when they're in a healing zone or toxic zone
  • And so much more!
zone.1743378332.txt.gz · Last modified: 2025/03/30 16:45 by justin