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/
15 Global guardscalled = 0;
16 Constant DEATH_MENTION_UNDO;
17 Constant MAX_SCORE = 7;
18 Constant Story "Homeland";
20 "^A work of interactive fiction.
21 ^If you get stuck try typing HELP.
22 ^Ongoing development: https://jxself.org/git/?p=homeland.git
23 ^Send bugs and feedback by email to j@@64jxself.org.
24 ^IFID AC0898CB-0668-4853-9EB9-757958D4AF56
25 ^Copyright (C) 2019, 2020 Jason Self
26 ^You can change and share this game under the terms of the GNU
27 Affero General Public License as published by the Free Software
28 Foundation (FSF), either version 3 of the License, or (at your
29 option) any later version published by the FSF. See the GNU Affero
30 General Public License for more details.^^You should have received
31 a copy of this game's source code along with a copy of the GNU
32 Affero General Public License so that you can know your rights.
33 If not, contact the place you got it from.^^";
38 Include "src/objects/intro/kitchen.inf";
39 Include "src/objects/intro/livingroom.inf";
40 Include "src/objects/intro/bedroom.inf";
41 Include "src/objects/intro/grandlivingroom.inf";
42 Include "src/objects/intro/sidewalk.inf";
43 Include "src/objects/intro/frontporch.inf";
44 Include "src/objects/intro/neighborlivingroom.inf";
45 Include "src/objects/intro/backyard.inf";
46 Include "src/objects/intro/neighborkitchen.inf";
48 Include "src/objects/overworld/campsite.inf";
49 Include "src/objects/overworld/westofcampsite.inf";
53 print "To Be Continued";
57 print ", earning you the rank of ";
78 print "^It happened again.^^";
80 "While reading the morning newspaper, there was another small
81 explosion from your neighbor's home. This time you were able
82 to see the series of three bright blue sparks that your
83 friends were talking about from your kitchen window through
84 the curtains covering their living room window.^^";
86 "You crane your neck out the window to look, but all is
87 quiet. ~What's going on over there?~ you wonder.^^";
93 "^If you need help try some of the commands from:
94 ^http://pr-if.org/doc/play-if-card/^";
98 print "Nothing obvious happens.^";
103 if (location == kitchen && window hasnt open) {
105 "It might be nice to open that window and get some
108 if (location == kitchen && window has open) {
110 "That window seems almost large enough to climb
113 if (location == livingroom || location == bedroom || location ==
114 sidewalk || location == frontporch && window hasnt open) {
116 "Maybe you should go back to the kitchen and try the
117 HELP command again.^";
119 if (location == livingroom || location == bedroom || location ==
120 sidewalk || location == frontporch && window has open) {
122 "That window in your kitchen seems just large enough to
125 if (television hasnt on && television.watch_count < 3) {
126 print "I wonder what's on TV?^";
128 if (television has on && television.watch_count < 3) {
130 "The TV show U.S. News And Grue Report is usually very
133 if (TestScope(poker)) {
135 "The poker looks like it could make an effective
161 Verb 'snort' = 'smell';
167 Verb 'stick' = 'put';
169 Verb 'thrust' = 'put';
172 * 'through' / 'out' / 'via' noun -> Go;
175 * 'through' / 'out' / 'via' noun -> Go;
178 * 'through' / 'out' / 'via' noun -> Go;
181 * 'through' / 'out' / 'via' noun -> Go;
184 * 'through' / 'out' / 'via' noun -> Go;
187 * noun 'with' noun -> Attack;