Skip to main content

On the floor and in the air

Items · Where an item is · Flying weapons

In brief​

Items lying in a block form piles on its four quarters and in its wall niche; the last item put down is on top. The mouse and the keyboard take and drop by different rules. A thrown or launched item starts in the party's block and flies half a block at a time, at most thirteen half-blocks; it stops at a face that refuses it, after a hit or at the end of its range, and falls in the quarter it has reached.

A thrown item in flight. It starts in the party's block, in the front half for the first two characters and for mouse and keyboard throws, and advances half a block each time flying objects move, for at most 13 half-blocks. Each new block it enters receives a flying-object event. It stops at a face that does not let it through, after a hit, or at the end of its range, and falls in the quarter it has reached.
A thrown item covers at most six and a half blocks before it falls.

Items on the floor​

Each block of a level keeps its items in a list. A block has four floor positions, its quarters (north-west, north-east, south-west, south-east), and a fifth, the niche, for a wall that has one. Any number of items can lie in the same position: the list is a pile, the item put down last is on top, and taking from a position always takes its top item.1

ActionMouseKeyboard
TakeClick the floor with an empty pointer: the bottom strip of the view is the party's block, the strip above it the block ahead, used only when the face between the two blocks has one of the wall properties tested for it.G tries the four floor zones in turn and takes the top item of the first that has one into the selected slot; the item held before is put down at the bottom of that pile. Repeated presses walk through a pile.
Put downClick the floor while carrying an item. A click never exchanges: it either takes or puts down.D: the selected item goes to the front of the party's block, on the character's side.
NicheClick the niche: take its top item, or put the carried item in; "The item is too large to fit." for a large item.The same through wall activation; with the quiver selected, an arrow taken from a niche joins the quiver.

Taking sends BLOCK_EVENT_ITEM_REMOVED to the block, putting down BLOCK_EVENT_ITEM_PLACED; level scripts react to them (see events that start scripts). A cursed item cannot be dropped or thrown with the keyboard.

Anomaly

The keyboard take departs from the mouse rules in three ways. A faithful reimplementation keeps all three.

  • It takes items from the block ahead without testing the face between the two blocks, so items can be taken through a closed door or a wall.
  • An arrow taken into the quiver, from the floor or a niche, sends no BLOCK_EVENT_ITEM_REMOVED, and an item refused by the selected slot is put back with a BLOCK_EVENT_ITEM_PLACED that no removal preceded: a script watching the block does not see the arrow leave.
  • With the quiver selected, taking from an empty niche prints "You can't put that item there." after reading the empty item entry 0.

Throwing and launching items​

How a flying item hits a monster is described in combat.

An item is thrown when the player clicks the upper part of the view, its left or right half, while carrying it, presses T, uses a thrown weapon in a hand, or uses a launcher. A click or T throws it on behalf of the selected character, whose hit roll applies; a hand throws it on behalf of its own character:2

  • a thrown weapon leaves the hand only if the throw succeeds; the first item found in belt slots 24, 23 and 22, in that order, then moves into the empty hand;
  • a launcher fires its ammunition: arrows for the bows, taken from hand 0, then hand 1, then the top of the quiver; rocks for the sling, taken from the first inventory slot holding one. Without ammunition the hand shows NO AMMO.

The thrown item starts in the party's block: in its front half for mouse and keyboard throws and for the first two characters, in its back half for the characters behind them. It then advances half a block each time flying objects move, for at most 13 half-blocks. It passes a wall face that lets projectiles through, or only small projectiles if its picture is a small one; otherwise it stops in front of that face, and the wall's own reaction to projectiles runs. Each new block it enters receives BLOCK_EVENT_FLYING_OBJECT, and a monster or the party there can be hit; a missed hit roll lets the item fly on.3

When the flight ends, against a wall, after a hit or at the end of its range, the item falls to the floor in the quarter of the block it has reached, and the block receives BLOCK_EVENT_ITEM_PLACED. Thrown weapons and ammunition are never destroyed: they can be picked up again. Items do not fall through pits or teleporters by themselves; the original level scripts move them when they land there.

At most ten objects, items, spells and monster missiles together, can be in the air at once. When none is free, a throw does nothing and the item stays where it was, except for a launcher's ammunition.

Anomaly

A launcher removes its ammunition before checking that a flight can start. With ten objects already in the air, the arrow or rock disappears without flying, while every other throw keeps or puts back its item. A faithful reimplementation removes the ammunition first and loses it when no flight is available.

Anomaly

Throwing from the pointer or with T tests no condition of the selected character, whereas using a hand item requires a character that is present, conscious and neither paralyzed nor petrified. A character selected earlier who has since fallen unconscious, been paralyzed or petrified still throws the item, with its own hit roll. A faithful reimplementation does not test the thrower.

Anomaly

ANOMALY-153 — The block a flight starts from is not checked, and a script's launch can name any block. An object launched from a block of 1,024 or more keeps flying in that block, outside the level, until its first block crossing; an item is linked meanwhile into a chain whose head is a word among the variables after the block table, which it overwrites. The crossing lands the object in block (old block + step) modulo 1,024, inside the level. When the wall there refuses the step, the flight ends and the item stays in the out-of-range block. No script or monster of the original data launches from such a block, so this does not happen in play. A faithful reimplementation reproduces it only if it supports such data.4

Sources​

Locations refer to the game executable reference; comparative sources are listed in the technical references.

Footnotes​

  1. Drop or pick up an item on the floor, keyboard drop, throw and take, the wall-click dispatchers (niches), the chain routines and append an item to a chain. ↩

  2. Throw the held item, throw a weapon, use a launcher and the launcher ammunition. ↩

  3. Launch an item, move all flying objects, flying-object step, end a flight, the flying-object records, the launch positions and the half-block steps. Comparative source: REF-SCUMM-021, launchObject. ↩

  4. Flying-object step, move all flying objects, next block, launch an item and the handler of SCRIPT_LAUNCH_OBJECT; launch and monster blocks of the 16 reference INF files. ↩