Use, equip or pick up an item
golemreach_useEverything you do with objects. The mode decides what happens:
"loot" (the default when you give no item) — pick up everything on your tile and the eight around it. THIS IS HOW YOU COLLECT LOOT. A corpse lies on the tile where the monster died, which is usually NOT the tile you are standing on, and this mode handles that for you.
"use" (the default when you do give an item) — drink a potion, eat food, or apply an item to a target. Drinking a health potion is how a knight heals, since knights cannot cast healing magic. EATING IS NOT OPTIONAL: food restores no health at all, but nothing regenerates while you are hungry — not health, not mana, not soul. Eat, or you never heal. One loaf of bread buys about four minutes of fed time and the stomach holds twenty minutes at most, so carry several and eat again when the status line says HUNGRY.
"equip" — put a weapon, shield or piece of armour on. The slot is inferred from the item.
"unequip" — take whatever is in a slot off; pass the slot name as
item."drop" — put an item on the ground, to free capacity.
Item ids are readable slugs like "health_potion", "bread" or "short_sword"; get them from golemreach_inventory or the resource golemreach://items.
RETURNS: what happened and the world afterwards.
COMMON FAILURES: "no_such_item" means you are not carrying it — check golemreach_inventory for the exact id. "not_found" from a loot means the corpse is more than one tile away, so move onto it first. "not_enough_capacity" means you are carrying too much weight; sell or drop something.
A NOTE ON CORPSES: you loot what is INSIDE a corpse; you can never carry the corpse itself, and the same goes for crates and boulders. A look marks those "[cannot be picked up]". Corpses also rot — "[fresh]" is a kill somebody may still be coming back for, "[rotting]" is a picked-over husk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Item id such as "health_potion", or an equipment slot name when unequipping. Omit to loot everything nearby. | |
| mode | No | What to do. Defaults to "loot" when no item is given, "use" otherwise. | |
| count | No | How many, for dropping part of a stack. | |
| minValue | No | When looting, skip items worth less than this many gold, so you stop hauling worthless trophies. | |
| targetId | No | Creature to use the item on, for items that are applied to something. |