1 ! Copyright (C) 2019 Jason Self <j@jxself.org>
3 ! This file is free software: you may copy, redistribute gand/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 neighor'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. There's another
22 room to the north. A door is to the east.^^A machine as
23 tall as you sits in the center of their livingroom. It
24 consists of three transparent spheres joined together
25 containing machinery. A barrel with a small aperture comes
26 out of the farthest sphere, pointing down and to the wall.
27 The entire thing rests on a shiny metal platform allowing
28 it to rotate and tilt with ease.",
34 if (bluebutton has on && poker notin machine) {
41 Object redbutton "red button" neighborlivingroom
42 with name 'red' 'red button' 'button' 'buttons',
45 if (bluebutton has on && poker notin machine) {
47 "You reach for the red button, but not in
54 "You press the red button but it's futile because
55 the machine's shorted out.";
58 "You push the red button. The machine makes clunky
59 noises as machinery moves inside. A loud humming
60 begins to emanate from it. It comes to life, spins
61 around on its base, aims, and quickly fires a
62 series of three bright blue sparks at you. You
63 hear a small explosive sound as they impact your
64 chest. You feel a little disoriented as it
65 teleports you away.^";
72 Object bluebutton "blue button" neighborlivingroom
73 with name 'blue' 'blue button' 'button' 'buttons',
76 if (bluebutton has on) {
77 if (poker notin machine) {
79 "You reach for the blue button, but not
86 print_ret "You push the blue button.";
91 if (poker notin machine) {
95 print_ret "You push the blue button.";
100 Object machine "machine" neighborlivingroom
101 with name 'machine' 'machinery' 'sphere' 'spheres' 'platform' 'barrel'
102 'aperture' 'metal platform' 'shiny metal platform' 'shiny platform'
105 "It consists of three transparent spheres joined together
106 containing machinery. A barrel with a small aperture comes
107 out of the farthest sphere, pointing down and to the wall.
108 The entire thing rests on a shiny metal platform allowing
109 it to rotate and tilt with ease. There is a blue button
118 if (weapon ~= poker) {
119 print "That wasn't helpful.^";
120 if (bluebutton has on)
131 if (bluebutton has on)
139 if (bluebutton has on)
145 if (player in parent(self) && poker notin machine)
149 destination = random(3);
151 "^A loud humming begins to emanate from the machine.
152 It comes to life, spins around on its base, aims, and
153 quickly fires a series of three bright blue sparks at
154 you. You hear a small explosive sound as they impact
155 your chest. You feel a little disoriented as it
156 teleports you away.^";
157 if (destination == 1)
159 if (destination == 2)
160 PlayerTo(livingroom);
161 if (destination == 3)
165 if (machine hasnt visited) {
167 give machine visited;
170 print "You put the poker into ", (the) self,
172 fly wildly in every direction as it shorts out.^";
174 has scenery container open;