Constant MAX_SCORE = 6;
Include "parser";
Include "verblib";
-Global openedbackpack = 1;
-Global openedtray = 1;
-Global takencd = 1;
Global beeping = 1;
!=========================================================================
! The Game Objects
you have work to do.",
has light;
+Object tv "television" break_room
+ with description
+ "It looks like a cheap, generic flat screen television
+ with an edge-to-edge matte screen. You see no buttons on
+ it. There should be a remote control somewhere.",
+ name 'tv' 'television' 'telly',
+ before [;
+ SwitchOn:
+ print_ret
+ "The television can only be turned on using the
+ remote.";
+ ],
+ has container openable scenery switchable;
+
+Object whitecouch "white couch" break_room
+ with description
+ "With a smooth and modern design, this looks to be a luxurious couch.
+ It is extremely durable and easy to clean and maintain. Offering
+ enough room to sit or lay, it looks very soft and comfortable.",
+ name 'white' 'couch' 'sofa',
+ before [;
+ Take, Pull, Push, PushDir:
+ print_ret (The) self, " is too heavy for that.";
+ ],
+ has static supporter enterable;
+
Object fridge "refrigerator" break_room
with description
"This refrigerator makes a statement with a sleek, modern
article "your",
before [;
Open:
- if (openedbackpack == 1) {
+ if (backpack hasnt visited) {
score = score + 2;
- openedbackpack = 2;
+ give backpack visited;
}
],
has clothing container openable;
name 'disk' 'disc' 'Trisquel' 'cd',
after [;
Take:
- if (takencd == 1) {
+ if (disc hasnt visited) {
score = score + 2;
- takencd = 2;
- print_ret "You pick up the Trisquel CD.^";
+ give disc visited;
}
],
has ;
if (noun ~= disc)
print_ret (The) noun, " is too big to fit.";
Open:
- if (openedtray == 1) {
+ if (tray hasnt visited) {
score = score + 2;
- openedtray = 2;
+ give tray visited;
}
],
after [;
!=========================================================================
! Standard and Extended Grammar
Include "grammar";
-!=========================================================================
\ No newline at end of file
+!=========================================================================