Difference between revisions of "Manual:DIL Manual/setweight()"
Jump to navigation
Jump to search
(checked against the compiler and the interpreter; example compiles) |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | = setweight( | + | = setweight() = |
| + | '''Obsolete.''' <code>setweight()</code> was removed from DIL in 2020; vmc no longer knows the name. | ||
| − | + | Two procedures replace it: | |
| − | + | * [[Manual:DIL Manual/set weight base|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; | |
| − | + | * [[Manual:DIL Manual/set weight|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 <code>set_weight()</code>. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | weight ( | ||
Latest revision as of 23:25, 14 November 2026
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().