Object is drinkable

From ADRIFT 5 Manual Wiki
Revision as of 05:15, 19 September 2013 by Saabie (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
You can't drink the water!

If an object has this property, then the "drink %object%" general command will respond as follows:

> drink water
As delicious as the water looks, you are not thirsty right now.

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.

PropertyDialogDrinkable.jpg

  • 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 descriptionsMain_PageObject is edible >>>