1 ! Copyright (C) 2019, 2020 Jason Self <j@jxself.org>
3 ! This file is free software: you may copy, redistribute and/or
4 ! modify it under the terms of the GNU Affero General Public License
5 ! as published by the Free Software Foundation, either version 3 of
6 ! the License, or (at your option) any later version.
8 ! This file is distributed in the hope that it will be useful, but
9 ! WITHOUT ANY WARRANTY; without even the implied warranty of
10 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ! Affero General Public License for more details.
13 ! You should have received a copy of the GNU Affero General Public
14 ! License along with this file. If not, see https://gnu.org/licenses/
16 Object neighborlivingroom "Neighbor's Livingroom"
18 "You are in your neighbor's livingroom. It seems that no
19 one has lived here in a long time, even though you saw
20 your neighbor here last week. All of the furniture has
21 been removed and the air smells stale. A large bay window
22 enclosed by sheer cobalt blue curtains allowing light to
23 come through. A door is to the east.^^A machine as tall as
24 you sits in the center of their livingroom. It consists
25 of three transparent spheres joined together containing
26 machinery. A barrel with a small aperture comes out of the
27 farthest sphere, pointing down and to the wall. The
28 entire thing rests on a shiny metal platform allowing it
29 to rotate and tilt with ease.",
34 if (bluebutton has on && poker notin machine) {
41 Object neighborwindow "window" neighborlivingroom
42 with name 'large' 'bay' 'window' 'windows',
43 description "A large bay window enclosed by sheer cobalt blue
44 curtains allowing light to come through.",
47 print_ret "The window is not something you can go through.";
49 print_ret "This isn't the type of window that can be
54 Object neighborcurtains "curtains" neighborlivingroom
55 with name 'cobalt' 'blue' 'curtain' 'curtains',
57 "Cobalt blue in color, the curtains have been decorated with
58 intricate embroidery.",
60 Take, Pull, Push, PushDir:
61 print_ret "Don't you think they look nice where they are?";
63 has scenery openable pluralname;
65 Object embroidery "embroidery" neighborlivingroom
66 with name 'embroidery' 'pattern' 'patterns',
69 Object redbutton "red button" neighborlivingroom
70 with name 'red' 'red button' 'button' 'buttons',
73 if (bluebutton has on && poker notin machine) {
75 "You reach for the red button, but not in
82 "You press the red button but it's futile because
83 the machine's shorted out.";
86 "You push the red button. The machine makes clunky
87 noises as machinery moves inside. A loud humming
88 begins to emanate from it. It comes to life, spins
89 around on its base, aims, and quickly fires a
90 series of three bright blue sparks at you. You
91 hear a small explosive sound as they impact your
92 chest. You feel a little disoriented as it
93 teleports you away.^";
100 Object bluebutton "blue button" neighborlivingroom
101 with name 'blue' 'blue button' 'button' 'buttons',
104 if (bluebutton has on) {
105 if (poker notin machine) {
107 "You reach for the blue button, but not
114 print_ret "You push the blue button. The machine
115 sounds like it powers down.";
120 if (poker notin machine) {
124 print_ret "You push the blue button.";
129 Object machine "machine" neighborlivingroom
130 with name 'machine' 'machinery' 'sphere' 'spheres' 'platform' 'barrel'
131 'aperture' 'metal platform' 'shiny metal platform' 'shiny platform'
134 "It consists of three transparent spheres joined together
135 containing machinery. A barrel with a small aperture comes
136 out of the farthest sphere, pointing down and to the wall.
137 The entire thing rests on a shiny metal platform allowing
138 it to rotate and tilt with ease. There is a blue button
147 if (weapon ~= poker) {
148 print "That wasn't helpful.^";
149 if (bluebutton has on)
160 if (bluebutton has on)
168 if (bluebutton has on)
174 if (player in parent(self) && poker notin machine)
178 destination = random(3);
180 "^A loud humming begins to emanate from the machine.
181 It comes to life, spins around on its base, aims, and
182 quickly fires a series of three bright blue sparks at
183 you. You hear a small explosive sound as they impact
184 your chest. You feel a little disoriented as it
185 teleports you away.^";
186 if (destination == 1)
188 if (destination == 2)
189 PlayerTo(livingroom);
190 if (destination == 3)
194 if (machine hasnt visited) {
196 give machine visited;
199 print "You put the poker into ", (the) self,
201 fly wildly in every direction as it shorts out.^";
203 has scenery container open;