Fit the sleeve over the winding key
08 / THE COMBINATION
1. Create the recipe. Add another GDScript. Use fit_key for Script ID and Fit the Key for Name. Paste this block, validate, apply and save. A count of one is the default for these inventory actions.
func run(): if not HasInventory("brass_sleeve") or not HasInventory("new_item"): return await RemoveInventory({"itemId": "brass_sleeve"}) await RemoveInventory({"itemId": "new_item"}) await AddInventory({"itemId": "long_key"}) await CompleteObjective({"questId": "behind_wall", "objectiveId": "fit_sleeve"}) await ShowMessage({"text": "The sleeve clicks into place. The key now reaches twice as far."})The guard at the top checks for both ingredients before spending either one. Then the script takes the two pieces, gives back one Long Key and checks off fit_sleeve in the journal.
2. Tell PCA which items go together. Open Inventory › Brass Sleeve › Inventory Actions. Click Add Inventory Interaction. In Allowed Targets, select the inventory item Winding Key. The stored selection can read inventory:new_item. Under Result Action — Step 1, choose Run Visual Script / Run Script and select Fit the Key. Apply and save. One rule works in either order.
[1] The target is an item inside inventory. [2] Fit the Key runs when the two items meet.
Try it in inventory. With both pieces collected, click Walk on the game’s bottom bar, then press I. Click Brass Sleeve and then Winding Key. If the panel closes after selection, reopen it to click the other item. You should have one Long Key. Press J to see “Find what is knocking.”
Inside Pip’s inventory, Winding Key [1] and Brass Sleeve [2] are separate items until you combine them.
