Skip to content

ChestContainsItemCondition ​

Inherits: Condition < Resource

Check if a container contains specific items Evaluates whether a chest/container has the required items and quantities

Properties ​

intinteractable_unique_id0
intitem_id0
intrequired_quantity1
boolat_least_quantitytrue
boolmust_be_accessibletrue

Methods ​

boolevaluate( argument: Variant = null )
Stringget_description()
Stringget_function_description()

Property descriptions ​

Target

int interactable_unique_id = 0 ​

The unique ID of the container to check

Item Checks

int item_id = 0 ​

Item ID to check for in the container

int required_quantity = 1 ​

Required quantity of the item (minimum)

bool at_least_quantity = true ​

Whether the container must have at least the required quantity (true) or exactly the quantity (false)

Container Checks

bool must_be_accessible = true ​

Whether the container must be accessible (not destroyed, interactable)

Method descriptions ​

bool evaluate( argument: Variant = null ) ​

Is the condition met?

String get_description() ​

A short text about what the condition checks.

String get_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.