User Tools

Site Tools


tile

This is an old revision of the document!


Tile


A tile is the primary building block of a map in RPG in a Box. Tiles are typically used to construct the ground, buildings, and other structures/architecture, and can be independently placed at any XYZ coordinate within the map. A tile's coordinate is unique among other tiles in the same map, as only one tile is permitted per XYZ coordinate. As the player character and NPCs move around the map, any tiles they step onto will act as terrain and determine the vertical positioning of the characters.

Scripting

(Ways to references tiles, e.g. tile[x, y, z], entity[“my_tile”], self, etc.) (Ways to add tiles, remove tiles, change a tile's model, change its default animation, etc.)

PropertyDescription
<tile>.idEntity ID of the tile as set in the Map Editor from the Entity Properties panel. This can be used to either retrieve or change the ID of the tile.
<tile>.coordCoordinate of the tile.
<tile>.directionCardinal direction (NORTH, SOUTH, WEST, EAST) in which the tile is rotated. The default direction of an entity is SOUTH.
<tile>.charactersAn array of characters currently occupying the tile, or null if there are none.
<tile>.groupsAn array of groups to which the tile is assigned.
<tile>.tags
<tile>.interact_cursor
tile.1619673301.txt.gz · Last modified: 2021/04/28 22:15 by justin