Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.594 kB
---
syntax:
- "open <prop:item>"
- "open <prop:item> with <prop:with_prop>"
- "use <prop:with_prop> to open <prop:item>"
- "open <door:item>"
- "open <door:item> with <prop:with_prop>"
- "use <prop:with_prop> to open <door:item>"
logic: |
prop = arg['item']
with_prop = arg['with_prop']
# we should prolly change so just send the object, not id
if (with_prop)
open_output = @game.attempt_open_item(prop.id, with_prop.id)
else
open_output = @game.attempt_open_item(prop.id, nil)
end
if open_output != ''
open_output
else
"You failed to open it.\n"
end
Jump to Line
Something went wrong with that request. Please try again.