equipItem
equipItem(
entity,from):boolean
Wears the stack in bag slot from in the slot its definition names,
and adds its modifiers to the entity’s stats: the copy’s own
data.modifiers where it has them, its definition’s otherwise. What
that slot wore goes into the bag slot, and its modifiers come off.
Returns whether it wore it: not from an empty slot, for an item with no
equip, or on an entity with no equipment. On her own character in a room,
those checks read the bag her page holds, and true says it asked the
room, which wears it on its own copy of her.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
from |
number |
Returns
Section titled “Returns”boolean