Skip to content

AddItemsToInteractableAction ​

Inherits: EventAction < Resource

Action to add items to a container's inventory

Properties ​

intinteractable_unique_id0
intitem_id0
intquantity1
intitem_level0

Variables ​

InteractableObjecttarget_containernull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_container()
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int interactable_unique_id = 0 ​

ID of the container to add items to

int item_id = 0 ​

Item ID to add

int quantity = 1 ​

Quantity to add

int item_level = 0 ​

For an item that is generated (it rolls or scales): its item level. 0 = the level of the party

Variable descriptions ​

InteractableObject target_container = null ​

Reference to the target container

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

InteractableObject find_target_container() ​

Find the target container by ID

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary