Skip to reading
The Inventory Designer

Check the bag after saving and loading

Edition 0.86.3.4

Define carried items, quantities, icon states, pickup rules, combinations and ownership, then connect them to a custom inventory interface.

Download PDFView PDF page

TESTING A PUZZLE

For a puzzle that moves something out of the room and into a bag, the save file has to remember both halves. A correct quantity beside a second copy on the floor is still a bug.

Source table from Check the bag after saving and loading, page 16
Before pickupStart in the intended room. Confirm the world object exists. Confirm the active character owns zero copies.
After pickupUse the room object’s real Take interaction. Read the count and inspect the original location. In the cell example, the count became one and the world object disappeared.
After reloadingSave to a disposable slot, change the live inventory, then reload the slot. In the checked run the cell returned to the bag and the world object stayed absent.
After correct useUse the cell on the relay. Check the puzzle flag and the item count. Trigger the interaction again and confirm the reward or quantity change cannot repeat by accident.

For an exact count in a BASIC script, InventoryCount("cell") reads the active character’s quantity. A second character ID can be supplied when checking someone else. A shared variable called cell is not the inventory quantity.

Repeat the test from a fresh game when you change starting inventory. Loading an existing slot restores earlier progress and can hide the effect of a new starting item.

Page 16 of 17Permalink
Go to page