Skip to main content

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

ParameterDescription
BaseObjectThe entity whose slots are inspected (Self or Target).
CompareTypeThe comparison operator to apply against the available slot count (Equal, NotEqual,
Greater, Less, GreaterEqual, LessEqual).
S1The ObjectSlotId identifying the slot type to count (e.g., ObjectPutSlot, Bed).
F1The value to compare against the available slot count.

Examples

DescriptionBaseObjectCommandCompareType
Check if Target has 3 or more available ObjectPutSlot slotsTargetAvailableSlotCountGreaterEqual
Check if Self has 1 or fewer available Bed slotsSelfAvailableSlotCountLessEqual
Check if Self has exactly 2 available Chair slotsSelfAvailableSlotCountEqual
Check if Target has any available Sofa slotsTargetAvailableSlotCountGreater