Advertisement
Guest User

Untitled

a guest
Mar 26th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.39 KB | None | 0 0
  1. #If the room's item array contains the item the player is attempting to pick up...
  2.         if $facilityMap[@coordinates][1].include? command[1]
  3.  
  4. #Tell the player she picked up the item...
  5.           puts "You got the #{ command[1] }!"
  6.  
  7. #Add the item to her inventory array...
  8.           @inventory << command[1]
  9.  
  10. #Then remove it from the room.
  11.           $facilityMap[@coordinates][1][???] = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement