このページはまだ完全には、翻訳されません。翻訳の完了を支援して下さい。
(翻訳が完了したらこの段落を削除して下さい)
Adds a tile at the specified coordinate within the map (if a tile does not already exist at that coordinate). The entity ID is optional and will be assigned to the new tile if supplied.
add_tile(model_name, coordinate, entity_id)
Argument | Description | Type | Required |
---|---|---|---|
model_name | Model to use for the new tile. | String | Yes |
coordinate | Position of the new tile. | Coordinate | Yes |
entity_id | Unique entity ID that will be assigned. | String | No |
After adding a new tile, you can use the Modify Navigation function to make the tile walkable from any adjacent tiles. For example, if you add a bridge tile on top of a river, you'll need to update the navigation to allow the characters to walk across it.
add_tile("wooden_floor_02", coord[10, 0, -1], "bridge")
Results: A new tile, using model “wooden_floor_02”, will be added to the map at coordinate (10, 0, -1) and given an ID of “bridge”.
Use the Add Tile function to place a bridge across a river or chasm after the player performs a certain action, opening up a new area for them to explore.