Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (29 sloc) 0.776 kb
---
syntax:
- "l"
- "look"
- "look <prop:noun>"
- "look <character:noun>"
- "look <door:noun>"
logic: |
noun = arg['noun']
location = @player.location
output = ''
if noun
description = ''
if noun.methods.include?('dead') && noun.dead == true
description << "#{noun.noun_cap} appears to be dead.\n"
elsif noun.description
description << noun.description + "\n"
else
description << "You see nothing special.\n"
end
description << @game.event(noun, 'on_look')
output = description
else
# Show location image, if any
show_image(@locations[location].image_file)
# Show location description
output = @locations[location].describe(@doors, @props, @characters, @player.has_lit_item)
end
output
Jump to Line
Something went wrong with that request. Please try again.