Skip to content

Inventory ​

Inventory panel with selected item, properties and usages

The list's + offers the Wizard: complete item, which creates the complete item in three steps:

Step-by-step wizard to create a new inventory item

  1. What it is: name, article (“the”, “a”…), icon and what the protagonist says when looking at it.
  2. Where it is obtained: picked up in a scene (placed as a scene object with Pick up), already carried at the start or given by a script. Optionally, a line when picking it up.
  3. What it is for: what it is used with, what the protagonist says and whether it is used up; it creates the “Use… with…” script.

Each inventory item has:

  • A translatable name and description; the description is said when you Look at the item.
  • An icon and its own cursor when selected (if there is no cursor, the icon is used).
  • An animated icon, if you like (Appearance → Animation): looping frames, by hand or with Slice sprite sheet (the same slicer as for characters), with their FPS. It moves in the inventory, in containers, in UI PRO views and on the cursor while you hold it (unless it has its own cursor), and so does the item a combination gives. An animated GIF or WebP icon animates by itself. For an item that changes (the wig with lice that becomes clean), swap it for another item with a script: each one keeps its own name, description and combinations.
  • Whether it is in the inventory at the start and, with inventory per character, who carries it.

Using items ​

In the game, clicking an inventory item selects it as the cursor. Then:

  • Clicking something in the scene fires the “Use item with…” event.
  • Clicking another item combines them.
  • Right-clicking looks at it.
  • Clicking again the item you hold uses it on its own (event “On using … from the inventory”: reading a note, turning on a radio). With the verb bar, Use + the item uses it straight away if it can't be used with anything; if it also works with other things, it stays in your hand (“Use the card with…”).

Quick use ​

Optional, off by default: in Settings → Held item, turn on Quick use: offer the items that work with what you point at. When you point at something an item you carry does something specific with, their icons appear above it (up to three) and clicking one is use that item with it, the same as taking it from the inventory: the protagonist walks there and the usual happens. It counts its «On using … with …» script, the key of its lock while it is still locked and a reaction to that specific item (not the «any item» one). Give doesn't show. It doesn't appear with an item in hand or while a script takes control away. The strip stays for a moment when the pointer moves away, so it can be reached. With a finger, it shows when something is pointed at without acting (Points first, the second tap acts in the Mobile plugin). It takes no place in walkthroughs: it is Use X with Y.

Quick use: pointing at the workshop door shows the key that opens it next to its name

Items that are read ​

A letter, a map or a note the player has to read: tick Read when clicked in the item's card and choose How it is read. What happens when it is read is its “On using … from the inventory” script (opening a document, saying something); without one, the protagonist reads its description.

  • Left click (not held in hand): one click reads it straight away, without having to guess that it needs two clicks. In exchange it isn't held, so it can't be given or combined. With the verb bar it is read with Use + the item, as usual.
  • Right-click, when looked at (can be given and combined): looking at it (right-click or the Look verb) reads it. Left click holds it in hand like any item, so it can be given to someone or tried in combinations.

Many items ​

In the editor, the button in the list header switches between a list and a thumbnail grid (with the same search box, folders and menu; the keyboard arrows move through the grid). It is remembered per project.

If the protagonist carries more items than fit, the inventory does not grow: it shows the ones that fit and the last column becomes two arrows (▲▼ in the verb bar panel, ◀▶ in the loose row of the two-button mouse) that move one row at a time and dim at the ends. When a new item is picked up, the inventory jumps to show it. With UI PRO, the kits bring the same: some visible slots and arrows that only appear when needed.

Article of the name ​

So you don't have to write “the door” or “the cannon” in the name, inventory items, characters, scene objects and hotspots have an Article field (one per language): the, a, an, some… or a custom one. With the name “door” and the article “the”, the action sentence says “Look at the door” and, with an item in hand, “Use the key with the door”. In interface texts, [the:target] gives the name with its article and [target] just the name. If you don't pick an article, the name is used as is (so projects that already had “the door” as the name don't change).

With the verb bar, hovering an inventory item names it in the sentence: “the flour” if no verb is chosen, “Look at the flour” with a verb, and “Use the key with the flour” if you are holding another item.

Combinations without scripts ​

In Combinations you define this item + another → result, which ingredients disappear and the player's line. For more complex cases use the “Combine items” event.

They are edited in each item's card or, all together, in the Inventory Combinations tab (next to Items and Containers): one row per combination with its items as “rope + hook = grappling hook” (a click on an item opens its card), a search box by ingredient or result and the No result and With a deleted item filters. + Combination asks for the two ingredients and creates it when you choose them (no half-made combinations are left).

  • What is used up: both (they turn into the result), only one (the knife stays and the rope is used up) or none (both stay and the result appears). Without a result, it just says the line.
  • Several ingredients at once (+ Another ingredient): flour + egg + milk + pot → cake. Combining any two of them, if the player carries all of them the result appears; if one is missing, they say the line if an ingredient is missing (or “I'm still missing something for this”) and nothing is used up. For each ingredient you choose whether it is used up or stays (the pot).
  • Without creating the items first: the ingredient, result and + Another ingredient lists have + New item…, which asks for the name and creates it right there (one Ctrl+Z removes it all). On an item's page, the card starts with the item itself: “Flour + Egg → Cake”.
  • In a chain, without extra ingredients: A + B → AB, then AB + C → ABC… each step with its own line.
  • Hidden combination: if another combination has two of its ingredients (for example, a two-item “A + B” and “A + B + C”), putting those two together always gives the first one. The recipe itself warns about it and so does Diagnostics (a warning if it never comes out; a note if it still comes out with another pair). The second ingredient does not offer the result or the extras.
  • If a “When combining” script handles those same two items, the script wins. Test walkthroughs (“Combine the milk with the pot”) and the solvability check understand multi-ingredient combinations.

An item that changes: states ​

An item that goes through several moments (the empty glass, a quarter, half, full; the cone without a scoop, with a scoop, with hair…) is one item with states. In its card, States section, press Give it states and add as many as you like. Each state has:

  • Its name in the editor and in blocks (“half”).
  • Optionally, the name the player sees (“Half-full glass”), its description when looked at, its icon (animated too) and its cursor. Whatever it lacks comes from the item.
  • Starts like this marks which one the game starts in (otherwise, the first).

The item doesn't leave its slot and stays the same item: “On using Glass with…” scripts, combinations, containers and “Used in” work whatever state it's in. In Logic two blocks change it and ask about it:

text
On using Tap:
    If Glass in the inventory is in the state empty:
        Set Glass in the inventory to the state half.
    Otherwise:
        Set Glass in the inventory to the state full.
  • They say “in the inventory” so they aren't confused with a scene object's states, which often has the same name (the glass on the table).
  • The saved game keeps which state each item is in. A stackable item has a single state for all its units.
  • With the item in hand, the cursor changes with it. With UI PRO, Inventory.Items already carries its state's name and icon.
  • If you delete a state a script uses, it tells you which, and Diagnostics marks the block left without a state.
  • From code: game.items.setState("Glass", "full") and game.items.state("Glass").

Swap an item for another ​

When it really is another item (the key for the broken key, the letter for the opened letter), the Swap an item for another block puts the new one in the same slot of the inventory, instead of removing the old one and adding the other at the end:

text
On using Key with Lock:
    Swap Key for Broken key in the inventory.
  • If the player doesn't carry the old one, the new one goes in at the end, as with Add to inventory.
  • If the old one stacks and they carry several, only one changes: the new one goes right after it.
  • If they already carried the new one, the old one disappears and the new one gains a unit.
  • If the old one was in hand, it is put down.

From code it is game.items.swap("Key", "Broken key").

The pet as a tool ​

To use a companion on something as if it were an item («Use dog with hole»): create an inventory item (the dog, with its icon) and, in its card, pick the character in Stands for a companion. The item is in the inventory only while that character follows the protagonist (Follow character block): it comes in when it starts following and goes when it stops, with no messages. While it is there it works like any item: its «On using dog with hole» script, a lock that asks for the dog, a reaction, giving it, combining it or quick use. If you switch protagonist, it goes with whoever it follows. It doesn't start in the inventory. In a walkthrough it is Use dog with hole, as always.

Ideas: the deduction inventory ​

In a detective adventure, clues and conclusions are kept too, as in Discworld Noir or the Sherlock Holmes games. Mark an item with Is an idea (deduction) and it becomes an idea: a clue or a conclusion, not a thing carried in a pocket.

The ideas tab of the inventory: the button back to the items and three ideas (a note, a ticket and a light bulb)

  • It goes in its own tab. While the protagonist carries any idea, the inventory shows a 💡 button that switches between the items and the ideas (🎒 goes back to the items). In the verb bar it sits between the arrows; without one, before the slots. When an idea is gained with the items on show, it flies to that button.
  • It works like any item. It is gained with Add to inventory, combined with another idea (with a combination without scripts or an On combining script: «alibi» + «train ticket» → «he lied about the time») and used with a character to ask about it (On using alibi with the butler). Has conditions count it too.
  • What you hold in hand stays there when switching tabs, so an item can be combined with an idea too.
  • With UI PRO, the Inventory.Items list follows the tab. Inventory.HasIdeas tells whether any idea is carried and Inventory.Ideas whether the ideas are shown. The Show the ideas or the items command (Inventory.Ideas) switches tabs. The kits don't bring this button: add it to your interface if the game has ideas.

An item card with «Is an idea (deduction)» on

Stackable items ​

Turn on Stackable on an item (coins, arrows, matches) and the inventory keeps count: a single slot with the number of units. If it starts in the inventory, choose Units at start.

  • Add 5 units of the Coin to the inventory and Remove 3 units of the Coin from the inventory. If none are left, it disappears.
  • If the player has at least 3 units of the Coin: to pay or for collecting puzzles.
  • Add to inventory and Remove from inventory add and subtract one unit; picking up an item from the scene also adds one.
  • With inventory per character, each player keeps their own count and Give passes the whole pile.

Containers ​

In Inventory → Containers you create chests, safes, wardrobes or an NPC's backpack, each with its contents at start. In the game they are opened with Open the container … (for example, in “On using the chest”): a window appears with what is inside and, below, the protagonist's inventory. Clicking something inside takes it; clicking something in the inventory puts it in. The script continues when the player closes it.

From scripts: Put 2 units of … into …, Take 1 units of … out of … and the condition if … contains … (placement puzzles: the weight on the scales, the gem on the pedestal). The contents are kept in the saved game, Diagnostics counts containers when checking whether an item can be obtained and the Puzzle map shows what opening each one gives.

In a character's hand ​

A VERB Rig character can carry the item in the hand (or on the head, the back…) with the "carries … on …" block. How it looks, in the In the hand (VERB Rig) section of its card: Attach points.

Used in ​

The Used in section lists every script, scene, conversation, container and combination where the item appears, with the scene first (“Dock › Use the coin · Carries item”) and combinations with all their ingredients (“with Rope + Hook”, “result of Rope + Hook”). Click to go to the exact block. An item that is only in a container is not shown as “Unused”.

When you delete an item (or a container) that is in use, the editor first tells you what will stop working, with Go to each place; the containers it is taken out of and the combinations deleted with it go in a note (see Deleting something that is in use). New items, containers and characters are called “Object 3”, “Container 2”… in English and in Spanish if the game has both languages, without repeating numbers.

Related tutorials ​

On the editor's home screen, Tutorials:

  • Pick up and use items: A scene object picked up without a script (“Pick up”), an “On using X with Y” event, changing an object's state, using up an inventory item and getting another one.
  • Combine items: Two ways to combine inventory items: a combination without a script (Inventory → Combinations) and an “On combining X with Y” script. Then, using the result with the scene.
  • Items used on their own and documents: The “On using … from the inventory” and “On looking at … from the inventory” events: reading a letter (a document kept in the journal), eating an apple or changing what is said when looking at an item.
  • Coins and a chest: Stackable items (coins with their number in the slot), paying if you have at least N, and a chest that opens in a window to take items out and put them in.