User Tools

Site Tools


add_item_to_tile

This is an old revision of the document!


Add Item To Tile


(WIP)

Signature:

add_item_to_tile(tile, item, count)
ArgumentDescriptionTypeRequired
tileTile where the item will be placed.EntityYes
itemStringYes
countNumberNo

The Add Item To Tile function…

Example:

add_character("purple_slime", "dungeon_door_01", "slime_01");

Results: A purple slime will be added to the map on the tile having ID “dungeon_door_01” and will be assigned an ID of “slime_01”.

Use the Add Character function to introduce new NPCs into the scene. After being added, you can use the Set Dialogue function to assign a dialogue to the character or the Set Character Name function to change their name.


Editor Node:

Visual Demo:

add_item_to_tile.1706558956.txt.gz · Last modified: 2024/01/29 12:09 by justin