Skip to reading
Save Games & Inventory

First-found scripts and world pickups

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

On Found Script is useful for a response when an item enters an empty carried entry: a journal update, a remark or a sound. It can run again if the item is lost completely and later acquired again. It is not, by itself, an “only once in the entire story” flag.

For a once-only reward, create a Boolean variable such as key_reward_given. Check it in the script, perform the reward when false, and set it true. That variable becomes part of the saved game state.

Scene Pickup / acquisition-removal settings can link an inventory item to a specific scene object. The acquisition path can then remove that world pickup and persist the removal state. Use the exact scene and entity references.

1. Make the scene pickup visible and interactive at the start.

2. Give the inventory item only after the Take conditions succeed.

3. Hide or remove the scene pickup through your chosen action/removal setup.

4. Leave the room and return. Confirm it does not appear again.

5. Save after pickup, restart and load. Confirm the bag and world agree.

Starting with a linked item in Initial Inventory can also trigger acquisition behavior. Do not place the same supposedly unique key on the floor unless your opening state accounts for it.

Page 31 of 96Permalink
Go to page