Skip to main content

Condition_HasObjectInCraftingSlot

Description

Checks whether a craft object (carriable or non-carriable) currently occupies any crafting slot identified by S1 on the BaseObject game object.

S1 is first resolved as a SlotName (single-slot path used by KitchenRange, Sink, etc.); if no slot matches, it is reinterpreted as an ObjectSlotId and every slot with that id is evaluated (N-slot path used by auto-generated DiningSlot/HandCraftSlot groups — BL-49864).

When CompareType is Equal, returns true if at least one matched slot is occupied by a valid craft object. When CompareType is NotEqual, returns true if at least one matched slot is empty — allowing crafting to proceed on a 4-seat dining table even when some HandCraftSlots are already in use.

Parameters

ParameterDescription
BaseObjectThe game object that owns the crafting slot(s) to check (Self or Target)
CompareTypeEqual: any matched slot occupied; NotEqual: any matched slot empty
S1SlotName for a specific slot, or ObjectSlotId to match every slot of that class

Examples

DescriptionBaseObjectCommandCompareTypeS1
Is there a craft object in the Oven_Slot?TargetHasObjectInCraftingSlotEqualOven_Slot
Is the Workbench_Input_Slot empty?TargetHasObjectInCraftingSlotNotEqualWorkbench_Input_Slot
Any free HandCraftSlot on a 4-seat dining table?TargetHasObjectInCraftingSlotNotEqualHandCraftSlot