ChestContainsItemCondition ​
Inherits: Condition < Resource
Check if a container contains specific items Evaluates whether a chest/container has the required items and quantities
Properties ​
int | interactable_unique_id | 0 |
int | item_id | 0 |
int | required_quantity | 1 |
bool | at_least_quantity | true |
bool | must_be_accessible | true |
Methods ​
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_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.