2 !=========================================================================
3 ! Copyright (C) 2019 Jason Self <j@jxself.org>
5 ! This program is free software: you can redistribute it and/or modify
6 ! it under the terms of the GNU Affero General Public License as
7 ! published by the Free Software Foundation, either version 3 of the
8 ! License, or (at your option) any later version.
10 ! This program is distributed in the hope that it will be useful,
11 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ! GNU Affero General Public License for more details.
15 ! You should have received a copy of the GNU Affero General Public
16 ! License along with this program. If not, see
17 ! <https://www.gnu.org/licenses/>.
19 !This file incorporates work covered by the following copyright and
22 ! Copyright (C) 2008 Daniel Bartholomew
24 ! This program is free software: you can redistribute it and/or modify
25 ! it under the terms of the GNU General Public License as published by
26 ! the Free Software Foundation, either version 3 of the License, or
27 ! (at your option) any later version.
29 ! This program is distributed in the hope that it will be useful,
30 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
31 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ! GNU General Public License for more details.
34 ! You should have received a copy of the GNU General Public License
35 ! along with this program. If not, see
36 ! <https://www.gnu.org/licenses/>.
37 !=========================================================================
38 Constant Story "The Server Room";
39 Constant Headline "^An Interactive Fiction by Daniel Bartholomew.^";
42 Constant MAX_SCORE = 6;
45 Global openedbackpack = 1;
46 Global openedtray = 1;
49 !=========================================================================
52 Object break_room "Break Room"
54 "Your standard break room. A fridge, and a long counter
55 take up one wall. East is the outside world and west is
56 the hallway to the server room.",
59 "You take one look outside and think better of it. The
60 daystar is too bright and terrible to face today. Besides,
61 you have work to do.",
64 Object fridge "refrigerator" break_room
65 with description "Your standard refrigerator.",
66 name 'fridge' 'refrigerator',
67 has container openable scenery;
69 Object counter "long counter" break_room
71 "A long counter. You can't quite determine the color,
72 it's somewhere between green and brown. On the counter is
75 has static supporter scenery;
77 Object microwave "microwave" counter
79 "A combination of silver and black, this microwave looks
80 like a real workhorse. It's compact, quiet, and works
82 name 'microwave' 'micro',
83 has container openable scenery;
85 Object table "table" break_room
86 with description "It's a table. Were you expecting something else?",
90 "Let me spell it out for you: it is a T A B L E and you
95 Object backpack "backpack" table
97 "This backpack looks like a modern art piece that was
98 made using brown and light blue-green watercolors. A black
99 line was traced around to make the stitching lines.
100 Well-worn and quite suitable for travel, it looks like it
101 could carry a lot of belongings.",
102 name 'pack' 'back' 'bag' 'backpack',
106 if (openedbackpack == 1) {
111 has clothing container openable;
113 Object disc "Trisquel CD" backpack
115 "An automatic recovery CD, guaranteed to fix almost any
116 server.^^Ok, it's just an install CD that auto-installs
117 Trisquel, but hey, if it works, it works.",
118 name 'disk' 'disc' 'Trisquel' 'cd',
124 print_ret "You pick up the Trisquel CD.^";
129 Object hallway "Hallway"
131 "Bereft of features, adornment or even adequate lighting,
132 this hallway is as plain as they come. Doors lead east
133 back to the break room, north to the server room, or
134 west to the restrooms.",
138 "When nature calls, you'll know about it, but right now,
144 "^^You use your key card to open the server room
145 door and step into your world.^";
150 Object server_room "Server Room"
152 "The fans, the lights, the chill . . . yep, it's a server
153 room. Full of servers from a dozen different
154 manufacturers, each with their own quirks.^^Your
155 attention is immediately drawn to a server 2/3 of the way
156 up rack 7. The little indicator light is blinking red, and
163 "^The beeping is driving you crazy.";
165 "^It's hard to think, with all of the beeping.";
167 "^The monotony of the beeping is maddening.";
169 "^You can't stand the beeping.";
171 "^The beeping reminds you of your alarm clock.";
173 "^beep . . . beep . . . beep . . . beep . . . beep
176 "^If you don't stop the beeping soon, you'll loose
177 what little hair you have left.";
182 Object server "server" server_room
184 "The indicator light on this ancient server is blinking
185 orange. The rest the front is featureless except for the
186 CD tray. The beeping seems to emanate from somewhere
188 name 'server' 'machine' 'computer' 'ancient' 'old',
191 Object tray "tray" server_room
192 with description "It's a CD tray. Just like every other CD tray.",
197 print_ret (The) noun, " is too big to fit.";
199 if (openedtray == 1) {
206 print_ret "You press the button and the CD tray pops out.";
211 "^With the CD in the tray, you quickly reboot the
212 server.^^After the bios posts, your disc starts
213 doing its thing and before you know it the server
214 is happily running Trisquel, and even more than
215 that, the beeping has stopped. Yay!";
218 has container openable scenery;
220 !=========================================================================
221 ! Entry point routines
224 location = break_room;
225 "^^^^It's Saturday, a nice one at that, and you've been called in
226 to fix a server that's on the blink. Again.^^You've had it. This
227 server is going to run GNU/Linux from this day forward! The
228 process will be easy - just put the disc into the server and away
229 we go. Now where is that Trisquel CD?^";
234 print "You have won";
237 !=========================================================================
238 ! Standard and Extended Grammar
240 !=========================================================================