Difference between revisions of "Manual:DIL Manual/set weight base"

From DikuMUD Wiki
Jump to navigation Jump to search
(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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= set_weight_base( u : unitptr, i : integer ) =
+
= set_weight_base( u : unitptr, lbs : integer ) =
  
 
''' Parameters '''
 
''' Parameters '''
 
   u : the unit on which you wish to alter the weight.
 
   u : the unit on which you wish to alter the weight.
   i : the new base weight
+
   lbs : the new base weight in lbs (½ kg)
  
 
''' Description '''
 
''' Description '''
Line 10: Line 10:
 
consistency this procedure also adjusts the weight of all units outside
 
consistency this procedure also adjusts the weight of all units outside
 
the altered unit.
 
the altered unit.
 +
 +
See also:
 +
  > [[Manual:DIL_Manual/set_weight|set_weight()]]

Latest revision as of 21:51, 9 December 2020

set_weight_base( u : unitptr, lbs : integer )

Parameters

 u : the unit on which you wish to alter the weight.
 lbs : the new base weight in lbs (½ kg)

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.

See also:

 > set_weight()