HasItemCondition ​
Inherits: EntityCondition < Condition < Resource
Check if entity has specific items in their inventory Evaluates whether the entity has the required items and quantities
Properties ​
int | item_id | 0 |
int | required_quantity | 1 |
bool | at_least_quantity | true |
bool | include_equipped_items | false |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
String | get_entity_function_description() |
Property descriptions ​
Item Checks
int item_id = 0 ​
Item ID to check for in the entity's inventory
int required_quantity = 1 ​
Required quantity of the item (minimum)
bool at_least_quantity = true ​
Whether the entity must have at least the required quantity (true) or exactly the quantity (false)
Equipment Checks
bool include_equipped_items = false ​
Whether to also check equipped items (if item is equipment)
Method descriptions ​
bool evaluate_entity( entity: Entity ) ​
Is the condition met for this entity?
String get_entity_description() ​
A short text about what the condition checks on the entity.
String get_entity_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.