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
| Parameter | Description |
|---|---|
| BaseObject | The game object that owns the crafting slot(s) to check (Self or Target) |
| CompareType | Equal: any matched slot occupied; NotEqual: any matched slot empty |
| S1 | SlotName for a specific slot, or ObjectSlotId to match every slot of that class |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Is there a craft object in the Oven_Slot? | Target | HasObjectInCraftingSlot | Equal | Oven_Slot |
| Is the Workbench_Input_Slot empty? | Target | HasObjectInCraftingSlot | NotEqual | Workbench_Input_Slot |
| Any free HandCraftSlot on a 4-seat dining table? | Target | HasObjectInCraftingSlot | NotEqual | HandCraftSlot |
Back to Command FinderSearch and filter all 491 Script Condition documents