ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示
/doc/lfuns/set_weight
set_weight(5) ES2 Mudlib Functions set_weight(5)
NNAAMMEE
set_weight() - sets/changes the net weight of an item.
SSYYNNOOPPSSIISS
void set_weight(int weight);
DDEESSCCRRIIPPTTIIOONN
set_weight() sets/changes the net weight of an item and
keeps track of the actual weight of its container. Note
that the actual weight of an item includes the total
weight of its inventory. Changing the weight of an item
when the item is contained by another item will also
updates the actual weight of its container(s).
The actual weight of an item can be obtained by calling
weight().
AAPPPPLLIIEEDD
F_MOVE
SSEEEE AALLSSOO
weight(), query_weight()
ES2 11 Apr 1996 1