Manual:DIL Manual/set weight base

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 07:14, 29 November 2020 by Papi (talk | contribs) (Created page with "= set_weight_base( u : unitptr, i : integer ) = ''' Parameters ''' u : the unit on which you wish to alter the weight. i : the new base weight ''' Description ''' Use th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

set_weight_base( u : unitptr, i : integer )

Parameters

 u : the unit on which you wish to alter the weight.
 i : the new base weight

Description Use this procedure to set a unit's base weight. This function will ensure the base-weight is set to the new value. To ensure weight consistency this procedure also adjusts the weight of all units outside the altered unit.