Skip to content

Instantly share code, notes, and snippets.

@Whoops
Created October 19, 2010 22:36
Show Gist options
  • Save Whoops/635293 to your computer and use it in GitHub Desktop.
Save Whoops/635293 to your computer and use it in GitHub Desktop.
room ('coconut room') do
description 'This room has a massive amount of coconuts'
door do
to 'banjo room'
on_open do
# some stuff
end
locked true
end
end
item ('coconut smasher') do
description 'a very large hammer'
usable_in 'coconut room'
on_use do
unlock 'banjo room'
inventory.remove('coconut smasher', message => 'damn, you broke the smasher')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment