Skip to reading
The Inventory Designer

Set quantities and first-found behavior

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 illustrations

GENERAL

A unique key and a handful of coins should behave differently when the player finds a second one. Decide what one inventory slot represents before you build the pickup.

Brass token has Stackable turned on. Its maximum is three. Turning Stackable off hides the maximum field.

Source table from Set quantities and first-found behavior, page 5
A unique itemLeave Stackable off for something like a particular key. The current runtime caps a nonstackable item at one.
Multiple copiesEnable Stackable and enter Maximum Quantity. With a cap of three, adding four tokens to an empty bag produced three. A full stack does not start a second stack of that item.
Script When First FoundChoose a script if acquiring the first copy should reveal a clue or play a line. In the active-player test, going from zero to two ran it once. Going from two to three added quantity without running it again.

After all tokens were removed, acquiring one again ran the first-found script a second time. For a once-per-story clue, guard it with a saved game flag such as token_clue_seen. A stack limit also means a pickup can add fewer items than requested.

Page 5 of 17Permalink
Go to page