Skip to main content

Warzone 3

Based on game build 714014 | Last updated: 2026-03-02

Overview

warzone_3.lua defines a static map layout used for the Warzone 3 scene in DST. It specifies tile layer data (BG_TILES) and an object group (FG_OBJECTS) containing entity placements (e.g., pigmen, merm, mermhouse) at specific grid-aligned coordinates. This is not an ECS component, but a data structure consumed by the world generation system to instantiate room contents.

Usage example

This file is loaded as a static map definition and not used directly in mod code. The engine uses it during room placement in events or scenarios. Typical usage is internal to DST's worldgen tools:

-- Not used directly by modders. Engine consumes this file via Tiled map loader.
-- Example of how such layouts are referenced internally:
-- local room = require("map/static_layouts/warzone_3")
-- world:LoadStaticRoom(room, x, y)

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version
luaversionstring"5.1"Target Lua version
orientationstring"orthogonal"Map orientation type
widthnumber16Map width in tiles
heightnumber16Map height in tiles
tilewidthnumber16Width per tile (in pixels)
tileheightnumber16Height per tile (in pixels)
tilesetstableList of tileset definitions
layerstableArray of map layers (tile and object layers)
propertiestable{}Map-level properties (empty)

Main functions

This file is a pure data return table; it contains no executable functions.

Events & listeners

Not applicable.