Help for this page

Select Code to Download


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