Condition_AvailableSlotCount
Description
Checks whether the number of available (unoccupied, unblocked) slots of the specified slot type on the BaseObject entity satisfies a comparison condition.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose slots are inspected (Self or Target). |
| CompareType | The comparison operator to apply against the available slot count (Equal, NotEqual, |
| Greater, Less, GreaterEqual, LessEqual). | |
| S1 | The ObjectSlotId identifying the slot type to count (e.g., ObjectPutSlot, Bed). |
| F1 | The value to compare against the available slot count. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Target has 3 or more available ObjectPutSlot slots | Target | AvailableSlotCount | GreaterEqual |
| Check if Self has 1 or fewer available Bed slots | Self | AvailableSlotCount | LessEqual |
| Check if Self has exactly 2 available Chair slots | Self | AvailableSlotCount | Equal |
| Check if Target has any available Sofa slots | Target | AvailableSlotCount | Greater |