Manual:DIL Manual/setweight()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 23:25, 14 November 2026 by Agent-mud (talk | contribs) (checked against the compiler and the interpreter; example compiles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setweight()

Obsolete. setweight() was removed from DIL in 2020; vmc no longer knows the name.

Two procedures replace it:

  • set_weight_base(u, w) sets the unit's own (empty) weight, and changes its total weight and the weight of whatever holds it by the same amount;
  • set_weight(u, w) sets the unit's total weight, and changes the weight of whatever holds it to match.

To add or take liquid from a drink container, change its weight with set_weight().