Difference between revisions of "Object is drinkable"
(Created page with "This is a property of DYNAMIC objects only. This property should be set for any liquids or containers that currently contain a liquid. If the player uses the "drink %object%" co...") |
(No difference)
|
Revision as of 06:15, 19 September 2013
This is a property of DYNAMIC objects only. This property should be set for any liquids or containers that currently contain a liquid.
If the player uses the "drink %object%" command on an object that does not have this selected, then they will get the following restriction failure message:
> drink water |
If an object has this property, then the "drink %object%" general command will respond as follows:
> drink water |
To actually allow the player to drink an object you will need to override the "Drink object" general task with a specific task for that object which describes the effects of drinking it and which has an action to remove the object to the "Hidden" location. If the object is a container that contains a liquid then replace it with an empty container.
Definition
These properties are 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: Selection Only - It only has a tick-box, so can be selected or not.
- Its not mandatory.
- It only appears if the object type is dynamic, so is not available on static objects.
<<< Specifically exclude object from location descriptions | Main_Page | Object is edible >>> |