-
Notifications
You must be signed in to change notification settings - Fork 0
/
s10.html
84 lines (78 loc) · 3.75 KB
/
s10.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>DM4 §10: Food and Drink</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="dm4.css">
</head>
<body>
<p class="navbar">
<a href="index.html">home</a> /
<a href="contents.html">contents</a> /
<a href="ch3.html" title="Chapter III: The Model World">chapter III</a> /
<a href="s9.html" title="§9: Directions and the map">prev</a> /
<a href="s11.html" title="§11: Clothing">next</a> /
<a href="dm4index.html">index</a>
</p>
<div class="page">
<a id="p125" name="p125"></a>
<h2>§10 Food and drink</h2>
<p class="normal"><span class="atleft"><img src="dm4-125_1.jpg" alt=""></span>
Any object with the attribute edible can be eaten by the player,
and the library provides the action <code>Eat</code> for this.
If it succeeds, the library removes whatever was eaten from the object
tree, so that it disappears from play (unless the designer has written
any code which later moves it back again). Two edible objects have
already appeared in ‘Ruins’: the mushroom,
<a href="s4.html">§4</a>, and the honeycomb,
<a href="s5.html">§5</a>.</p>
<p class="indent">Because drinking is a less clear-cut matter than
eating, there is no attribute called <code>drinkable</code>. Although
the library does provide the action <code>Drink</code>, you have
to write your own code to show what happens when the object has
been drunk. Here is an example where the object is entirely consumed:</p>
<p class="lynxonly"></p>
<pre class="code">
Object -> "glass of milk"
with name 'glass' 'of' 'milk',
before [;
Drink: remove self;
"Well, that's the sixth stomach that hillside
of grass has been in.";
];
</pre>
<p class="normal">Other rules which might be needed, instead of
simply removing the object, would be to replace it with an “empty
glass” object, or to change some counter which records how many
sips have been taken from a large supply of drink.</p>
<p class="aside"><span class="warning"><b>•</b> <b>REFERENCES</b></span><br>
Players discover almost at once that ‘Advent’ contains
“tasty food”, actually tripe although the text is too
delicate to say so. (Type “get tripe ration” if you don't
believe this.) Less well known is that the moss growing on the Soft
Room's walls is also edible.
<span class="warning"><b>•</b></span>The product-placement parody
‘Coke Is It’ contains the occasional beverage.
(“You are standing at the end of a road before a small brick
building. Coca-Cola… Along The Highway To Anywhere, Around
The Corner From Everywhere, Coca-Cola is The Best Friend Thirst Ever
Had. A small stream flows out of the building and down a gully.”)
<span class="warning"><b>•</b></span>Inform doesn't provide an
automatic system for handling liquids because it is difficult to find
one that would satisfy enough people for enough of the time: for
more on the issues that liquids raise, see
<a href="s50.html">§50</a>. In its handling of liquids the
source code for the alchemical mystery ‘Christminster’
is much borrowed from.</p>
</div>
<p class="navbar">
<a href="index.html">home</a> /
<a href="contents.html">contents</a> /
<a href="ch3.html" title="Chapter III: The Model World">chapter III</a> /
<a href="s9.html" title="§9: Directions and the map">prev</a> /
<a href="s11.html" title="§11: Clothing">next</a> /
<a href="dm4index.html">index</a>
</p>
</body>
</html>