Constant MAX_SCORE = 6;
Include "parser";
Include "verblib";
-Global openedbackpack = 1;
-Global openedtray = 1;
-Global takencd = 1;
Global beeping = 1;
!=========================================================================
! The Game Objects
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 [;