Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

inventoryCommandDeclarations

const inventoryCommandDeclarations: object

The item verbs a page asks of the room on the player’s character, as inventory() declares them: each runs the verb of its name on the room’s copy of the character, whose own checks refuse a slot the character’s bag does not have. Four a second past a burst of eight, as a player sorts their bag.

Name Type Description
drop CommandDeclaration<{ count: NumberCommandField; slot: NumberCommandField; }, never, undefined, true, false, false, false> dropItem.
equip CommandDeclaration<{ slot: NumberCommandField; }, never, undefined, true, false, false, false> equipItem.
move CommandDeclaration<{ from: NumberCommandField; to: NumberCommandField; }, never, undefined, true, false, false, false> moveStack.
split CommandDeclaration<{ count: NumberCommandField; from: NumberCommandField; to: NumberCommandField; }, never, undefined, true, false, false, false> splitStack.
unequip CommandDeclaration<{ slot: OneOfCommandField<EquipmentSlot>; }, never, undefined, true, false, false, false> unequipItem.
use CommandDeclaration<{ slot: NumberCommandField; target: EntityCommandField & object; }, never, undefined, true, false, false, false> activateItem, on target where one is named, within the character’s reach.