- or download this
sub process_command {
print "\n\n:";
...
}
... etcetera ...
}
- or download this
$currentRoom = HALLWAY;
return;
- or download this
if ($uniform == HAVE) {
print "\n\nOne slightly uncomfortable uniform.";
...
if ($closetKey == HAVE) {
print "\n\nThe key to the utility closet.";
}
- or download this
# At start of program, set up the starting location and description of
+ each object
my $Objects = (
...
}
}
}
- or download this
sub bedroomCommand {
...
...
print "There are no paintings or posters on the wall...
sleep 5;
}
- or download this
elsif ($command =~ "keycard" or $command =~ "take keycard" ...
...
...
sleep 2;
$Objects{keycard}{location} = HAVE;
$Objects{keycard}{description} = 'Your access keycard.
+';