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...") |
m (→Definition) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This is a property of DYNAMIC objects only. This property should be set for any liquids or containers that currently contain a liquid. | 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 | + | 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: |
− | <table border=0><td bgcolor="#000000" | + | <table border=0><td bgcolor="#000000"> |
<FONT COLOR=#FF0000> | <FONT COLOR=#FF0000> | ||
> drink water <br></FONT> | > drink water <br></FONT> | ||
− | <FONT COLOR=# | + | <FONT COLOR=#00FF00> |
You can't drink the water! </FONT> | You can't drink the water! </FONT> | ||
</td></table> | </td></table> | ||
Line 12: | Line 12: | ||
If an object has this property, then the "drink %object%" general command will respond as follows: | If an object has this property, then the "drink %object%" general command will respond as follows: | ||
− | <table border=0><td bgcolor="#000000" | + | <table border=0><td bgcolor="#000000"> |
<FONT COLOR=#FF0000> | <FONT COLOR=#FF0000> | ||
> drink water <br></FONT> | > drink water <br></FONT> | ||
− | <FONT COLOR=# | + | <FONT COLOR=#00FF00> |
As delicious as the water looks, you are not thirsty right now.</FONT> | As delicious as the water looks, you are not thirsty right now.</FONT> | ||
</td></table> | </td></table> | ||
Line 22: | Line 22: | ||
== Definition == | == Definition == | ||
− | + | This property is defined in the "Eat and Drink" folder of [[The Standard Library]]. | |
[[File:PropertyDialogDrinkable.jpg]] | [[File:PropertyDialogDrinkable.jpg]] |
Latest revision as of 06:33, 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
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: 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 >>> |