Difference between revisions of "Object weight"
(Created page with "This is a property of DYNAMIC objects only. This property should be set for all dynamic objects if you want to limit how much weight the player is able to carry with them, and fo...") |
|||
Line 23: | Line 23: | ||
Each named value has a value defined by the Weight property. (see Definition section below) | Each named value has a value defined by the Weight property. (see Definition section below) | ||
− | [[File: | + | [[File:PropertyObjectWeight.jpg]] |
The maximum weight that the character can carry is set on the character's property page. | The maximum weight that the character can carry is set on the character's property page. | ||
Line 43: | Line 43: | ||
* Its not mandatory. | * Its not mandatory. | ||
* It only appears if the object type is dynamic, so is not available on static objects. | * It only appears if the object type is dynamic, so is not available on static objects. | ||
+ | * At the bottom is a list of values, each of which has a name. It is the name which is shown in drop-down lists when setting the weight of an object, or the maximum weight that a character can carry, but it is the number which is returned by the [[Weight]] function and used in restrictions. | ||
+ | |||
+ | [[File:PropertyDialogMaxWeight.jpg]] | ||
+ | |||
+ | * Property of: Characters - It is only available on the property page of Characters. | ||
+ | * Type: Integer. | ||
+ | * Its not mandatory. | ||
+ | * Integer type: Object weight - This property uses the Object Weight value property to define its possible values. | ||
+ | * Refine by value: <No restriction value> | ||
+ | * This property is not dependant on any other, so will appear on the properties page of every character. | ||
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object is edible|<<< Object is edible]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main_Page#The_Main_Items|Main_Page]]</TD><TD ALIGN=CENTER>[[Object size|Object size >>>]]</TD></TABLE> | <TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Object is edible|<<< Object is edible]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main_Page#The_Main_Items|Main_Page]]</TD><TD ALIGN=CENTER>[[Object size|Object size >>>]]</TD></TABLE> | ||
[[Category:Object properties]] | [[Category:Object properties]] |
Revision as of 07:42, 19 September 2013
This is a property of DYNAMIC objects only. This property should be set for all dynamic objects if you want to limit how much weight the player is able to carry with them, and force them to choose which objects they keep.
If the player uses the "get %object%" command on an object that does not have this selected, or who have not reached their weight limit yet, then the "get %object%" general command will respond as follows:
> get brick |
If an object has this property, and taking it would exceed the weight limit on what the player may carry, then they will get the following restriction failure message:
> get brick |
Setting the weights
The weight of the object is set by choosing one of the names in the drop-down list. Each named value has a value defined by the Weight property. (see Definition section below)
The maximum weight that the character can carry is set on the character's property page. This is set as a count of the number of objects of a certain weight that they can carry. The total maximum weight is the given number multiplied by the named value as defined on the Weight property:
Using the weight value
You can print the weight of the object, or use the value in an expression, by using the Weight function.
Definition
This property is defined in the "Eat and Drink" folder of The Standard Library.
- Property of: Objects - It is only available on the property page of Objects.
- Type: Value - The property can be set to one of the predefined values in the "Value List" box.
- Its not mandatory.
- It only appears if the object type is dynamic, so is not available on static objects.
- At the bottom is a list of values, each of which has a name. It is the name which is shown in drop-down lists when setting the weight of an object, or the maximum weight that a character can carry, but it is the number which is returned by the Weight function and used in restrictions.
- Property of: Characters - It is only available on the property page of Characters.
- Type: Integer.
- Its not mandatory.
- Integer type: Object weight - This property uses the Object Weight value property to define its possible values.
- Refine by value: <No restriction value>
- This property is not dependant on any other, so will appear on the properties page of every character.
<<< Object is edible | Main_Page | Object size >>> |